real ads not shown even in googleads-mobile-android-examples

111 views
Skip to first unread message

Oleg Mirzaev

unread,
Jan 26, 2020, 2:27:16 PM1/26/20
to Google Mobile Ads SDK Developers
Hi,

I've added a banner, however the real add isn't shown.
even using googleads-mobile-android-examples real ads not shown.
test add is working as expected.

I can provide APP_ID an ADUNIT_ID in private.
in logcat I only see "Google Mobile Ads SDK initialization functionality unavailable for this session. Ad requests can be made at any time."

Thanks, Oleg.

Mobile Ads SDK Forum Advisor Prod

unread,
Jan 26, 2020, 9:57:21 PM1/26/20
to oleg...@gmail.com, google-adm...@googlegroups.com

Hi Oleg,

 

Thank you for raising this to us. For us to further investigate on our end, could you share with us the details below via Reply privately to author option?

 

Regards,

Mark Albios

Mobile Ads SDK Team



ref:_00D1U1174p._5001USwzkY:ref

Sundeep Kandoi

unread,
Jan 27, 2020, 3:28:03 AM1/27/20
to Google Mobile Ads SDK Developers

I am trying to work out on the Admob since few days and I am also having the problem.

To make it simple to compare i edited the SampleBannerApp. I added two Ad banners, one banner with Sample AdUnitId and one banner with myApp AdUnitId.

Then tried the App in two ways i.e. using the Sample AppId and MyApp AppId inside the AndroidManifest.xml.

1) using my AppId     : Both Test ads are showing properly in the Emulator but in real device only sample AdUnitId  is showing.

2) using Sample AppId     : again same result -  Both Test ads are showing properly in the Emulator but in real device only sample AdUnitId  is showing.

Please see the below screentshots with information in the image also.


sampleAppId.jpgmyAppID.jpg


One more query the SampleBannerApp was crashing  every time on start itself, so I had to remove the below codes from the MyAcitivity.java to run the App, and both these attributes were defined inside the activity_my.xml file. What can be the reason?
adView.setAdSize(AdSize.BANNER);
adView.setAdUnitId("ca-app-pub-3940256099942544/6300978111");

Mobile Ads SDK Forum Advisor Prod

unread,
Jan 27, 2020, 5:33:26 AM1/27/20
to skan...@gmail.com, google-adm...@googlegroups.com

Hi Sundeep,

 

Thank you for reaching out to us. For us to check on our end, could you share with us the details below via Reply privately to author option?

 

     

    As an aside, please note that adding the Banner AdView can be done either via XML layout or via programmatically. This shouldn't cause any issue; however, to further confirm, could you also share your sample implementation privately?

    Sundeep Kandoi

    unread,
    Jan 28, 2020, 1:24:35 AM1/28/20
    to Google Mobile Ads SDK Developers
    Hi Mark,

    I sent private message twice with all the info and attached activity files, but I am not able to see the sent messages anywhere, please confirm if you have received it.

    Regards
    Sundeep

    Mobile Ads SDK Forum Advisor Prod

    unread,
    Jan 28, 2020, 3:35:01 AM1/28/20
    to skan...@gmail.com, google-adm...@googlegroups.com

    Hi Sundeep,

     

    Thank you for sharing with me the requested details in private.

     

    As per checking, I can confirm that there is nothing wrong with your banner implementation. In addition, I also tested your Ad Unit ID and I was able to load both test and live ads (see attached screenshot). Inconsistently, I also encountered the no fill error which indicates an ad-serving issue due to lack of ad in the ad inventory. Please note that this behavior isn't controlled by the Mobile Ads SDK.

     

    Having that said, for ad-serving related concerns, you may use this Ads Troubleshooter or directly reach out to our Product Support Team as they're the appropriate team that could further assist you with such issues.

    banner.png

    Hisham BAN AYAD

    unread,
    Jan 28, 2020, 4:43:19 PM1/28/20
    to Google Mobile Ads SDK Developers

    Mobile Ads SDK Forum Advisor Prod

    unread,
    Jan 29, 2020, 12:21:31 AM1/29/20
    to oleg...@gmail.com, google-adm...@googlegroups.com

    Hi Oleg,

     

    Thank you for sharing with me the details in private.

     

    I have tested your Ad Unit IDs and I also encountered the no fill error. Please note that this error indicates an ad-serving issue and isn't controlled by the Mobile Ads SDK. You may want to use this Ads Troubleshooter or directly reach out to our Product Support Team so the product specialist there can further assist you with your ad-serving concerns.

     

    With regard to the warning log (App does not have the required permissions to get location) you're getting, allow me to provide insights to this. Please note that our SDK automatically passes location data (if your app already requests location permissions from users) to serve location-based ads to users that are usually more relevant to their needs. You may refer to this article for more details about this.

    Mohammad Amaan

    unread,
    Jan 29, 2020, 12:26:10 AM1/29/20
    to Mobile Ads SDK Forum Advisor Prod, oleg...@gmail.com, google-adm...@googlegroups.com
    Hi, Can you please help me transfer my admob account from amaan...@gmail.com to mohammad...@gmail.com

    --

    ---
    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...@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/Zr4j6000000000000000000000000000000000000000000000Q4US7100IR3ydHH8Qf-_pVskW0x2NQ%40sfdc.net.


    --
    Mohammad Amaan
    about.me/amaanzworld

    Mobile Ads SDK Forum Advisor Prod

    unread,
    Jan 29, 2020, 12:26:16 AM1/29/20
    to hisham...@gmail.com, google-adm...@googlegroups.com

    Hi Hisham,

     

    Thank you for reaching out to us.

     

    Could you confirm if you're also having issues on displaying your ads? If so, could you share with us the details below via Reply privately to author option so we could further check on our end?

     

      Mobile Ads SDK Forum Advisor Prod

      unread,
      Jan 29, 2020, 12:40:17 AM1/29/20
      to amaan...@gmail.com, google-adm...@googlegroups.com

      Hi Mohammad,

       

      Thank you for posting your concern. However, I'm afraid that we can only assist you with regard to the code implementation of the Mobile Ads SDK.

       

      Since your concern is already account-related, I would suggest reaching out to our Product Support Team so they could further help you with your account issues.

      Sundeep Kandoi

      unread,
      Jan 29, 2020, 2:43:56 AM1/29/20
      to google-adm...@googlegroups.com
      Hi Mark,

      I have put up the post on the support group link given by you. but i really dont know if i will get any solution because there are already 100s of similar queries and couldn't see anyone saying that he found a solution and the ads have started working.

      on too much googling i found many suggestion but there was no mention by anyone that he or she found a particular solution.
      I am putting below some of the suggestion can you please guide me whether they are valid or how can i try them.

      --------------------------------------------------
      I am getting error code 3 for my AdUnitId
      I am creating my apk file from AndroidStudio>Build>GenerateAPK>release version using my own keystore key and password.
      I am installing my app on a real device under normal case i.e. not under any USB debug mode.
      Firstly, see if I am missing some setting in above procedure.
      Below are some of the selected suggestion on various forum, please see and suggest on 'MY REMARKS' on them

      1) SUGGESTION: use the below code the set the device as an emulator for testing
              final AdRequest myadRequest = new AdRequest.Builder()
                      .addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
                      .addTestDevice("my_device_id")
                      .build();
      MY REMARK:  I Tried the app with and without the above codes but no success. (i put my 16 digit mobile device id in place of "my_device_id")

      2) SUGGESTION: We have to enable :: GoogleDeveloperConsole > ApplicationSettings >"Pricing and Distribution" > checkbox "CONTAINS ADS".
       
      MY REMARK :since at present my app is to be installed directly and not through play store so i think this is not applicable please. suggest if this is correct.
      Also i couldn't find this option, so in case when i plan to put my app on playstore then where will i see this option?
       
      3) SUGGESTION: Another reason your fill rate may be low is that you don’t have AdSense backfill enabled,
      MY REMARK : where is this setting , how to enable this?


      4) SUGGESTION: This Error is also caused when you change your Keystore after implementing the Ad to previous Keystore.
       If you have changed your Keystore then you can fix this error just by replacing the Ad Unit. 
       Still if you find this error then you don't worry and upload the App in Play Store or App Store and 
       Connect your App With Admob. Hope this was Helpful for you.
      MY REMARK:  Again I think the above is applicable for playstore. so not applicable for my present app which is a direct install.
      Also please confirm that when later i put up the app through playstore is there any relation in this?
       
       
      5) SUGGESTION: This is a simple WORKAROUND (no solution):
      You can install a mediation such as InMobi:
      In this way, if for whatever reason admob is not showing you ads,
       you can still show them from other ad networks.
       MY REMARK:  Is this recommended?

      6) can i get any working app id and ad unit id which i can use for trial only? other than the sample/demo ids

      7) finally if still there is no solution then i would have to forget the admob implementation and would  like to design my app to be 3 months demo and 
      then payment option, if you have any link for the demo period implementation then please share with me.

      Your suggestions/comments on above will be very helpful.

      Mobile Ads SDK Forum Advisor Prod

      unread,
      Jan 29, 2020, 5:28:50 AM1/29/20
      to skan...@gmail.com, google-adm...@googlegroups.com

      Hi Sundeep,

       

      I understand your concern. I'm sorry to hear that you're having troubles in reaching out our Product Support Team; however, they're the appropriate team that could help you with your ad-serving concerns. I hope you get a response from them the soonest time possible.

       

      As an aside, allow me to provide insights on the suggestions mentioned below:

       

      1) With this suggestion, it is always a best practice to use Test Ads when testing your app. However, when using the Enable test device feature, although this produces a production-looking ads, it isn't a guarantee that you will always have an ad if you're encountering an ad-serving issue.

       

      2) I'm afraid that I can't comment to this any further as this is already out of our scope. You may want to reach out to the Play Store Support Team for this.

       

      3) I'm afraid that I can't comment to this any further as this is also out of our scope. Fill rate concerns are best handled by our Product Support Team.

       

      4) I'm afraid that I can't comment to this any further as this is also out of our scope. You may want to reach out to the Play Store Support Team for this.

       

      5) Mediation is a good feature in AdMob that lets you serve ads from multiple sources. You may refer to this guide for more details and to what specific mediation network you would want to integrate.

       

      6) I'm afraid that we can only provide our Test Ad Unit IDs and our sample implementation via this link.

       

      7) As for the demo period, I'm afraid that I can't also comment to this. Please note that your AdMob implementation is not the issue since you were able to load test ads. Your app is experiencing an ad-serving issue which isn't controlled by the Mobile Ads SDK. In addition, loading of ads on unpublished app really affects its fill rate.

      Reply all
      Reply to author
      Forward
      0 new messages