googleads-mobile-android-examples icon indicating copy to clipboard operation
googleads-mobile-android-examples copied to clipboard

Ads won't load on a physical phone.

Open MelodyLi2017 opened this issue 6 years ago • 11 comments

I am able to get test ads when running this sample app on the simulator (for reference I have looked at both googleads-mobile-android-examples/java/admanager/BannerExample/ and googleads-mobile-android-examples/java/advanced/APIDemo/). However, when I run the app on a device, I am unable to get any ads. This happens even after I add the device as a test device. When looking in the debug console, I see this error: I/Ads: Ad failed to load : 0. I've attached the debug logs for when I was looking at AdMobAdListenerFragment.java and DFPFluidSizeFragment.java in googleads-mobile-android-examples/java/advanced/APIDemo/.

adFailedToLoad.txt

MelodyLi2017 avatar Sep 05 '19 18:09 MelodyLi2017

Hi, thanks for your query.

For support debugging your apps, can we request that you make a request on our support forum at https://groups.google.com/forum/#!categories/google-admob-ads-sdk/android - they will be able to help debug your issue with you efficiently.

Generally these issues are specifically for issues with the sample apps only, as more in depth support for your specific issues is handled by our support team on the forum.

When posting to the forum, please also provide specific details including any errors being seen and code showing how to reproduce the problem.

If you have a specific issue with a sample app, please provide details including which sample app and specific steps to reproduce the issue.

Regards

Sam

On Thu, Sep 5, 2019 at 11:08 AM Melody Li [email protected] wrote:

I am able to get test ads when running this sample app on the simulator (for reference I have looked at both googleads-mobile-android-examples/java/admanager/BannerExample/ and googleads-mobile-android-examples/java/advanced/APIDemo/). However, when I run the app on a device, I am unable to get any ads. This happens even after I add the device as a test device. When looking in the debug console, I see this error: I/Ads: Ad failed to load : 0. I've attached the debug logs for when I was looking at AdMobAdListenerFragment.java and DFPFluidSizeFragment.java in googleads-mobile-android-examples/java/advanced/APIDemo/.

adFailedToLoad.txt https://github.com/googleads/googleads-mobile-android-examples/files/3579861/adFailedToLoad.txt

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/googleads/googleads-mobile-android-examples/issues/190?email_source=notifications&email_token=ABNGOFFB6RW5ZP2SLUUQ3U3QIFDINA5CNFSM4IUA325KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HJTSIPQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNGOFHG7SLARRLMENWC4HLQIFDINANCNFSM4IUA325A .

stowy avatar Sep 05 '19 23:09 stowy

This is an issue with your sample app.

MelodyLi2017 avatar Sep 05 '19 23:09 MelodyLi2017

Hi Melody,

To confirm, are you using the provided sample ad units or your own ad units?

Regards

Sam

On Thu, Sep 5, 2019 at 4:48 PM Melody Li [email protected] wrote:

This is an issue with your sample app.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/googleads/googleads-mobile-android-examples/issues/190?email_source=notifications&email_token=ABNGOFBLCCHSBZ4WY2EO7ZDQIGLDRA5CNFSM4IUA325KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6BI2WI#issuecomment-528649561, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNGOFBLZSOH3SWE3RQM3BDQIGLDRANCNFSM4IUA325A .

stowy avatar Sep 05 '19 23:09 stowy

I am using your ad units. I haven't changed the code and am running the app as is.

MelodyLi2017 avatar Sep 06 '19 00:09 MelodyLi2017

Ok I'll review and get back to you. Thanks for the info. By the way, can you confirm which device you are running on and the Android version?

On Thu, Sep 5, 2019 at 5:14 PM Melody Li [email protected] wrote:

I am using your ad units. I haven't changed the code and am running the app as is.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/googleads/googleads-mobile-android-examples/issues/190?email_source=notifications&email_token=ABNGOFH67Q2KRHD25KR2PWTQIGOH3A5CNFSM4IUA325KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6BKILQ#issuecomment-528655406, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNGOFEUUHBRXYKPK2BDW7LQIGOH3ANCNFSM4IUA325A .

stowy avatar Sep 06 '19 21:09 stowy

Yea! I'm seeing this issue on a Samsung S8 on Android 9 and a Pixel on Android 10. It seems like any device on an Android version lower than 9 works alright.

MelodyLi2017 avatar Sep 09 '19 15:09 MelodyLi2017

Just an update: I am now seeing the same problem on a Samsung Galaxy S7 on Android 7, but not on a Nexus 6P on Android 8 or a Pixel 3 on Android 9.

MelodyLi2017 avatar Sep 12 '19 15:09 MelodyLi2017

I'm experiencing the same problem with both the sample app and my Company's app. BUT, if you breakpoint and go step by step thru all the Ads process it shows up normally.

Ads not showing: Pixel 3a - Android 10 Razr phone - Android 9 Huawei Nova 3e, Android 9.0

Ads showing: HTC One M8, Android 6.0
Samsung S10, Android 9.0 Pixel 2, Android 9

joaobbaptista avatar Sep 25 '19 18:09 joaobbaptista

@stowy Any updates on @MelodyLi2017 's issue?

elberdev avatar Sep 26 '19 15:09 elberdev

Can you please file an issue in the support forum https://groups.google.com/forum/#!categories/google-admob-ads-sdk/android - they will be able to help file an issue for this issue.

Generally these issues are specifically for issues with the sample app code, as more in depth support for SDK specific issues is handled by our support team on the forum.

When posting to the forum, please also provide specific details including any errors being seen and code showing how to reproduce the problem.

stowy avatar Oct 03 '19 16:10 stowy

I'm also getting same issue, Ads loading on Emulator but not on physical devices getting Ad failed to load : 0 Any updates on this? If Any one posted this issue on support forum so please share the link here as well for the follow up. Thanks.

devsideal avatar Oct 05 '23 16:10 devsideal