• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Reward Ads problem

F

Ferino_Tisovich

Guest
Hi again, i have another problem and now its reward ads. If i tap on object to show reward ad nothing is working!
Here is output:
03-29 12:54:30.116 28074 28074 I Ads : This request is sent from a test device.
03-29 12:54:30.163 2822 29078 W Ads : App does not have the required permissions to get location
03-29 12:54:30.218 2822 29353 I Ads : SDK version: afma-sdk-a-v20088999.15000000.1
03-29 12:54:30.956 28074 28074 W Ads : GET LOCATION COMPILED
Thats everything and ad is not working. Im using 2 objects. One to controller and one to tap.
Controller:
Game starts:

if os_type == os_android
{
app_id = "ca-app-pub-32284344771023781~5656556556";
rewarded_id = "ca-app-pub-3242432371023781/565656566";
}
GoogleMobileAds_LoadRewardedVideo(rewarded_id);
rewarded_loaded = false;
rewarded_viewed = false;

GoogleMobileAds_UseTestAds(true, "66A80E0E5371E54674865462BCD5415");

(IDS Are allright i onlyx changed it here)

Social Async:
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.goldnuggets += async_load[? "500"];
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;
break;
}
}

Tap object:

if (oCtrlAddObj.rewarded_loaded) {
GoogleMobileAds_ShowRewardedVideo();
oCtrlAddObj.rewarded_loaded = false;
} else {
GoogleMobileAds_LoadRewardedVideo(oCtrlAddObj.rewarded_id);
}

Can you please help me to solve this problem ? im really dissapointed :(
 
I did not buy it, first I do not know which one it is.
And I think it is something to do with google itself. I will see if it happens on any other apps.
Can you tell me which extension is?
 
Top