Hello, I try to run a test application, and run into problems.
Here is what i did:
Build-Tools 26.0.0
MIN 16
Added Google Play Service
1 Room
1 Object
1 Sprite
Object on Create:
Object on Touch:
Object on Async-Social:
My App does crash after shortly shown.
The Output shows:
This might cause the problems I guess?
How can i fix this?
Here is what i did:
Build-Tools 26.0.0
MIN 16
Added Google Play Service
1 Room
1 Object
1 Sprite
Object on Create:
Code:
ads_app_id = "ca-app-pub-xxxxx~yyyy";
banner_id = "ca-app-pub-aaaa/bbbb";
interstitial_id = "ca-app-pub-cccc/dddd";
rewarded_id = "ca-app-pub-wwwww~rrrr";
GoogleMobileAds_UseTestAds(true, "PPPPPP"); //taken from output console
GoogleMobileAds_LoadRewardedVideo(rewarded_id);
rewarded_loaded = false;
rewarded_viewed = false;
Code:
if rewarded_loaded == true
{
GoogleMobileAds_ShowRewardedVideo();
rewarded_loaded = false;
}
Object on Async-Social:
Code:
var _id = async_load[? "id"];
if _id == GoogleMobileAds_ASyncEvent
{
var ident = async_load[? "type"]
switch (ident)
{
case "rewardedvideo_adopened":
show_debug_message("Rewards Video Opened");
break;
case "rewardedvideo_videostarted":
show_debug_message("Rewards Video Started");
break;
case "rewardedvideo_watched":
show_debug_message("Rewards Video Watched");
rewarded_viewed = true;
global.Money += async_load[? "amount"];
break;
case "rewardedvideo_adclosed":
show_debug_message("Rewards Video Closed");
if rewarded_viewed == false
{
// Reward video was closed before the end
// Here you can set button states, show a message, etc...
}
else rewarded_viewed = false;
GoogleMobileAds_LoadRewardedVideo("ca-app-pub-xxxxx~yyyy");
break;
}
}
The Output shows:
I can not remember I ever used firebase?11-14 16:55:26.631 31744 31896 I yoyo : X-Cache: Miss from cloudfront
11-14 16:55:26.640 31744 31948 W Ads : Invoke Firebase method getInstance error.
11-14 16:55:26.640 31744 31948 W Ads : The Google Mobile Ads SDK will not integrate with Firebase. Admob/Firebase integration requires the latest Firebase SDK jar, but Firebase SDK is either missing or out of date
11-14 16:55:26.650 31744 31790 I yoyo : vsync timeout...
11-14 16:55:26.701 31744 31744 I yoyo : Setting vis flags to 5894
11-14 16:55:26.702 31744 31744 I yoyo : Setting vis flags to 5894
11-14 16:55:26.711 31744 31935 W Ads : Update ad debug logging enablement as false
11-14 16:55:27.313 31744 31790 I yoyo : vsync timeout...
11-14 16:55:27.439 31744 31790 I yoyo : vsync timeout...
11-14 16:55:27.575 31744 31790 I yoyo : vsync timeout...
11-14 16:55:27.960 8943 32097 I Ads : SDK version: afma-sdk-a-v14170999.11910000.1
11-14 16:55:27.960 8943 32097 W Ads : Error while connecting to ad server: no protocol:
11-14 16:55:27.967 31744 31744 I Ads : Ad failed to load : 2
11-14 16:55:28.198 31744 31744 I yoyo : onPause
11-14 16:55:28.205 31744 31744 I yoyo : Pausing the Runner
11-14 16:55:28.328 31744 31790 I yoyo : vsync timeout...
This might cause the problems I guess?
How can i fix this?