Unity: Google AdMob ads are shown in development build, but not in release and in Play Store

169 views
Skip to first unread message

alt3r3d

unread,
Dec 15, 2018, 8:44:42 AM12/15/18
to Google Mobile Ads SDK Developers
Hello! I'm expecting a problem with my Google Ads. I set the ads in my game and it's been a while after I registered my AdMob account.
The ads work when the 'Development Build' is checked in build settings, but don't if not.


The code for ads is here:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using GoogleMobileAds.Api;
public class AdsManager : MonoBehaviour {
 private BannerView bannerView;
 void Start() {
#if UNITY_ANDROID
  string appid = "ca-app-pub-7067959384271293~3288350070";
#else
  string appid = "unexpected_platform";
#endif
  MobileAds.Initialize(appid);
  RequestBanner();
 }
 void RequestBanner() {
#if UNITY_ANDROID
  string adunitid = GameManager.IsDebug ? "ca-app-pub-3940256099942544/6300978111" : "ca-app-pub-7067959384271293/2593505069";
#else
  string adunitid = "unexpected_platform";
#endif
  bannerView = new BannerView(adunitid, AdSize.SmartBanner, AdPosition.Bottom);
  AdRequest request = new AdRequest.Builder().Build();
  bannerView.LoadAd(request);
 }
 void OnApplicationQuit() {
  bannerView.Destroy();
 }
}

I hope you can help with something.

mobileadssdk-a...@google.com

unread,
Dec 17, 2018, 3:35:19 PM12/17/18
to google-adm...@googlegroups.com, redf...@gmail.com
Hi there,

Thanks for reaching out to us. Can you please share your complete device logs for us to take a look? Are you seeing any error code when an Ad request is failed? Are you able to load ads with your Ad unit Id using our sample apps? I was able to load ads with your Ad unit Id using our sample apps without any issues. 

You can use "Reply Privately to Author" option to share the details privately.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 12/15/18 08:44:42 redf...@gmail.com wrote:
Hello! I'm expecting a problem with my Google Ads. I set the ads in my game and it's been a while after I registered my AdMob account.
The ads work when the 'Development Build' is checked in build settings, but don't if not.


The code for ads is here:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using GoogleMobileAds.Api;
public class AdsManager : MonoBehaviour {
 private BannerView bannerView;
 void Start() {
#if UNITY_ANDROID
  string appid = "ca-app-pub-7067959384271293~3288350070";
#else
  string appid = "unexpected_platform";
#endif
  MobileAds.Initialize(appid);
  RequestBanner();
 }
 void RequestBanner() {
#if UNITY_ANDROID
  string adunitid = GameManager.IsDebug ? "ca-app-pub-3940256099942544/6300978111" : "ca-app-pub-XXXXXXXXX/XXXXXXXXXXX";

#else
  string adunitid = "unexpected_platform";
#endif
  bannerView = new BannerView(adunitid, AdSize.SmartBanner, AdPosition.Bottom);
  AdRequest request = new AdRequest.Builder().Build();
  bannerView.LoadAd(request);
 }
 void OnApplicationQuit() {
  bannerView.Destroy();
 }
}

I hope you can help with something.

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/dd9a78a3-668b-44ab-b52c-49554254ece6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mobileadssdk...@google.com

unread,
Feb 11, 2019, 9:45:48 AM2/11/19
to alt3r3d, Google Mobile Ads SDK Developers
Hello there,

The issue with no fill has been completely resolved. Please let us know if you are still seeing any no fill issues with your Ad unit Ids on your published apps.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 12/15/18 08:44:42 redf...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages