googleads / googleads-mobile-android-examples

googleads-mobile-android
Apache License 2.0
1.7k stars 1.87k forks source link

Ads won't load on a physical phone. #190

Open MelodyLi2017 opened 5 years ago

MelodyLi2017 commented 5 years ago

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

stowy commented 5 years ago

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 notifications@github.com 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 .

MelodyLi2017 commented 5 years ago

This is an issue with your sample app.

stowy commented 5 years ago

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 notifications@github.com 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 .

MelodyLi2017 commented 5 years ago

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

stowy commented 5 years ago

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 notifications@github.com 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 .

MelodyLi2017 commented 5 years ago

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 commented 5 years ago

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.

joaobbaptista commented 4 years ago

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

elberdev commented 4 years ago

@stowy Any updates on @MelodyLi2017 's issue?

stowy commented 4 years ago

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.

devsideal commented 11 months ago

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.