• 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!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Android admob error

duran can

Member
Hi, im using gms2 android my ads not working can anyone help please?

  • 09-01 13:27:51.643 3113 3489 W Ads : Not retrying to fetch app settings
  • 09-01 13:27:51.652 3113 3113 I Ads : This request is sent from a test device.
  • 09-01 13:27:51.662 23359 2553 W Ads : Received error HTTP response code: 400
  • 09-01 13:27:51.666 3113 3113 I yoyo : Banner Ad onAdFailedToLoad
  • 09-01 13:27:51.666 3113 3113 I Ads : Ad failed to load : 0
my code:

if os_type == os_ios
{
app_id = "ca-app-pub-1962396518736721~6906349236";
banner_id = "ca-app-pub-1962396518736721/8957797502";
interstitial_id = "ca-app-pub-1962396518736721/2494113895";
rewarded_id = "ca-app-pub-1962396518736721/9313020726";
}
else
{
app_id = "ca-app-pub-1962396518736721~6906349236";
banner_id = "ca-app-pub-1962396518736721/8957797502";
interstitial_id = "ca-app-pub-1962396518736721/2494113895";
rewarded_id = "ca-app-pub-1962396518736721/9313020726";
}
GoogleMobileAds_UseTestAds(true, "2D3B34BB2F894D9D07C42CFF12B4B8D6");
GoogleMobileAds_Init(interstitial_id, app_id);
GoogleMobileAds_LoadInterstitial();
interstitial_loaded = false;
GoogleMobileAds_AddBanner(banner_id, GoogleMobileAds_Banner);
 

duran can

Member
So. That code appears to be what you would put in the game start or create event of your ad-serving object. What does your async -social code look like?
this code from here: https://help.yoyogames.com/hc/en-us/articles/360002971751-iOS-and-Android-Google-Mobile-Ads-Setup
#async-social event

var _id = async_load[? "id"];
if _id == GoogleMobileAds_ASyncEvent
{
var ident = async_load[? "type"];
switch (ident)
{
case "banner_load":
if async_load[? "loaded"] == 1
{
var _bw = GoogleMobileAds_BannerGetWidth();
var _bh = GoogleMobileAds_BannerGetHeight();
var _hh = display_get_height();
var _ww = display_get_width();
GoogleMobileAds_MoveBanner((_ww / 2) - (_bw / 2), _hh - _bh);
}
break;
}
}

EDİT: When i add GoogleMobileAds_ShowBanner ads showing . Facepalm.
 
Last edited:
Top