Unable to display any ads on android build

165 views
Skip to first unread message

Andrew McShane

unread,
Jun 29, 2018, 9:20:02 PM6/29/18
to google-adm...@googlegroups.com
  • I have been attempting to implement ads into a unity project using AdMob with little luck. I copied the code of the AdMob getting started video here: https://youtu.be/UOptam261Ts. However, when the build is launched on the device and I request any type of ad (using the google "dummy" adUnitId), after 10 or so seconds I receive an internal error message in logcat (See below).

  • Additionally, I have:

  • downloaded the most recent package from their GitHub repo

  • force-resolved Android dependencies and updated the version via unity menu options.

  • Updated my version of Unity ( to 2017.4.3f1 )

  • Run my Android in development build

  • Tried implementing other ad types such as banner.

  • Run my Android Build in ADB Logcat

    • Gone through Android studio and ensured I have downloaded the most recent sdk tools, sdk platform tools, google play services, and sdk build-tools.



When the AdMob getting started result was ran in adb using Adb Logcat -s Unity in the console, I get this error message though, as if the ad continuously fails to load and instead throws a timeout error. (I've tried many times to get it to work in the case that it could just be a timeout error, but no luck )


  1. HandleRewardBasedVideoFailedToLoad event received with message: Internal error
  2. 06-29 16:14:50.664 31067 31067 I Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
  3. 06-29 16:14:50.664 31067 31067 I Unity : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
  4. 06-29 16:14:50.664 31067 31067 I Unity : UnityEngine.Logger:Log(LogType, Object)
  5. 06-29 16:14:50.664 31067 31067 I Unity : UnityEngine.Debug:Log(Object)
  6. 06-29 16:14:50.664 31067 31067 I Unity : UnityEngine.MonoBehaviour:print(Object)
  7. 06-29 16:14:50.664 31067 31067 I Unity : GoogleMobileAdsDemoScript:HandleRewardBasedVideoFailedToLoad(Object, AdFailedToLoadEventArgs) (at C:\


What has stuck me as even stranger is that when searching for a solution on this forum, i came across a link which pointed to a fully compiled SDK file. I downloaded that onto my test device and while running Logcat again I received the same message as above, which leads me to think more so that there could be an issue with the server that is serving the ads?


Link in reference: https://groups.google.com/d/msg/google-admob-ads-sdk/tO6o-KGt7sk/rMgKBHTWBAAJ


mobileadssdk-a...@google.com

unread,
Jul 2, 2018, 3:18:12 AM7/2/18
to Andrew McShane, Google Mobile Ads SDK Developers
Hi Andrew,

Below are some factors that could result to the Internal Error you've encountered.
For us to test on our end, could you provide to us your Ad Unit Id/s in question privately using Reply privately to author option?

On the other hand, for the "fully compiled SDK file" you mentioned, are you referring to this sample app mentioned in this old forum thread? I also tested that sample app (which was created and modified years ago) on my end but I kept on getting build issues with my Unity 2018.1.1f1. However, looking at the code implementation of that sample app, it is almost similar to our latest HelloWorld example app. Thus, I instead, tested our latest HelloWorld example app and I was able to build the app and load test ads successfully.

That said, could you test your Ad Unit Id/s with our latest HelloWorld example app and see if you are still getting the same Internal Error?

Regards,
Ivan Bautista
Mobile Ads SDK Team

mobileadssdk-a...@google.com

unread,
Jul 3, 2018, 1:49:49 AM7/3/18
to Andrew McShane, Google Mobile Ads SDK Developers
Hi Andrew,

No worries and thank you for sharing your Ad Unit Id privately and other helpful information.

I tested your Ad Unit Id and App Id with our latest HelloWorld example app and I was able to load ads successfully. Also, your code snippets is just a copy of our sample code so it should have worked was expected. 

Are you also getting the Internal Error if you try to load sample Ad Unit Ids in your own implementation?

Also, based from previous experiences, some publishers encountered the Internal Error using a specific bundle Id only. Thus, could you try testing your Ad Unit Id using a different bundle Id or try directly testing your Ad Unit Id to our HelloWorld example since it has a different bundle Id as well?

mobileadssdk-a...@google.com

unread,
Jul 9, 2018, 2:18:41 AM7/9/18
to Andrew McShane, Google Mobile Ads SDK Developers
Hi Andrew,

I'm glad that it is now working on your end which confirms that there's no issue with your Ad Unit Id nor with your bundle Id and that your code implementation is working correctly.

It is indeed odd that the Internal Error stopped showing without any significant changes in your app aside from setting a test device.

On the other hand, we appreciate your efforts to capture the Charles logs, however, the needed data was not captured because the SSL Proxying is still not enabled properly. Nevertheless, you are now able to load ads on your end successfully so the Internal Error is probably just a transient issue.

If you encounter the Internal Error again, then feel free to get back to us and we'll be happy to assist you.
Reply all
Reply to author
Forward
0 new messages