Ads not showing in build Unity app

132 views
Skip to first unread message

Azanul Haque

unread,
May 5, 2021, 10:44:19 AM5/5/21
to Google Mobile Ads SDK Developers
I have tried every way to setup ads that came to my mind. 
The ads show perfectly in unity editor, but won't show up at all in built apk.
No errors while running in Unity.
"AndroidJavaException: java.lang.ClassNotFoundException: didn't find class com.google.android.gms.ads.initialization.OnInitializationCompleteListener" while running on my android (added test device) [Error logged using logcat]

Have been facing this issue for days.

Mobile Ads SDK Forum Advisor Prod

unread,
May 5, 2021, 1:42:59 PM5/5/21
to azanu...@gmail.com, google-adm...@googlegroups.com
Hi Azanul,

Are you getting this error creating from scratch with our guide an ad placement?

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2GK8jO:ref

Azanul Haque

unread,
May 6, 2021, 1:38:55 AM5/6/21
to Google Mobile Ads SDK Developers
Yes

Azanul Haque

unread,
May 6, 2021, 1:47:52 AM5/6/21
to Google Mobile Ads SDK Developers
The most confusing thing is that the ads are visible in Unity Editor without any error but as soon as I build it, it gives me the above mentioned error.
This is a screenshot of my screen where we can see the errors.signal-2021-05-05-193012_004.png

Mobile Ads SDK Forum Advisor Prod

unread,
May 6, 2021, 4:14:40 AM5/6/21
to azanu...@gmail.com, google-adm...@googlegroups.com

Hi Azanul,

Thank you for reaching out to us.

I work with Aryeh and will be assisting you on this. Could you please provide the following details via Reply privately to author option or send it directly to mobileads...@gmail.com?

  • Sample app(if any)
  • Device name and Android version of devices affected
  • Steps to replicate the issue
  • Unity Version

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2GK8jO:ref

Azanul Haque

unread,
May 6, 2021, 4:57:43 AM5/6/21
to Google Mobile Ads SDK Developers
I've sent it.

On Thursday, 6 May 2021 at 13:44:40 UTC+5:30 mobileadssdkforumadvisor wrote:

Hi Azanul,

Thank you for reaching out to us.

I work with Aryeh and will be assisting you on this. Could you please provide the following details via Reply privately to author option or send it directly to mobileadstesting99@gmail.com?

Mobile Ads SDK Forum Advisor Prod

unread,
May 6, 2021, 6:09:25 AM5/6/21
to azanu...@gmail.com, google-adm...@googlegroups.com

Hi Azanul,

Thank you for your response.

Have you attach a sample app in the email you sent to us? Upon checking, I wasn't able to see your sample app that can help us to investigate your concern. Can you please resend it, so that we can check it in our end. You can send it via Reply privately to author option or send it directly to mobileads...@gmail.com?

Azanul Haque

unread,
May 6, 2021, 11:33:01 AM5/6/21
to Google Mobile Ads SDK Developers
Yes, I sent it.

On Thursday, 6 May 2021 at 15:39:25 UTC+5:30 mobileadssdkforumadvisor wrote:

Hi Azanul,

Thank you for your response.

Have you attach a sample app in the email you sent to us? Upon checking, I wasn't able to see your sample app that can help us to investigate your concern. Can you please resend it, so that we can check it in our end. You can send it via Reply privately to author option or send it directly to mobileadstesting99@gmail.com?

Mobile Ads SDK Forum Advisor Prod

unread,
May 6, 2021, 2:45:43 PM5/6/21
to azanu...@gmail.com, google-adm...@googlegroups.com
Hi Azanul,

Thank you for sending over the requested files. In seeing the issue that you have shown us, I was able to reproduce the issue on our end also. I just wanted to gather a bit more information. What SDK version are you using? As it would appear that you might be using v20? Which is not working well yet with Unity as we have not yet released the plugin for it. Also as mentioned previously, what Unity version was this build in?

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2GK8jO:ref

Azanul Haque

unread,
May 7, 2021, 1:24:24 AM5/7/21
to Mobile Ads SDK Forum Advisor Prod, google-adm...@googlegroups.com
But in GoogleMobileAdsDependencies.xml, it says 19.5.0. That is what I'm supposed to see, right?

Azanul Haque

unread,
May 7, 2021, 1:29:22 AM5/7/21
to Google Mobile Ads SDK Developers
Also, Unity version 2019.4.20f1

Mobile Ads SDK Forum Advisor Prod

unread,
May 7, 2021, 5:54:53 AM5/7/21
to azanu...@gmail.com, google-adm...@googlegroups.com

Hi Azanul,

Thank you for your response. I already raised this to the rest of the team for further investigation. We will update you once we have an update from them.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2GK8jO:ref

Azanul Haque

unread,
May 8, 2021, 1:52:20 AM5/8/21
to Google Mobile Ads SDK Developers
Her royal highness, Princess Pamela,

I'm eagerly waiting for your response.

Mobile Ads SDK Forum Advisor Prod

unread,
May 9, 2021, 11:09:57 PM5/9/21
to azanu...@gmail.com, google-adm...@googlegroups.com

Hi Azanul,

Thank you for your response.

After further investigation, the team see's that the possible reason why the ads are not showing in APK was because of implementation issue in building the app.

Azanul Haque

unread,
May 10, 2021, 2:18:59 AM5/10/21
to Google Mobile Ads SDK Developers
How can I make it work?

Mobile Ads SDK Forum Advisor Prod

unread,
May 10, 2021, 5:12:15 AM5/10/21
to azanu...@gmail.com, google-adm...@googlegroups.com

Hi Azanul,

Thank you for your response.

To make it work, make sure that you follow the get started guide in using AdMob unity and follow all the prerequisites. That said, I've found this unity docs in building android apps, could you try if anything here helps you?

Azanul Haque

unread,
May 11, 2021, 4:40:54 AM5/11/21
to Google Mobile Ads SDK Developers
Your majesty, you and your knights have been deceived. While trying random fixes, one of my team members stumbled upon "force resolve". Clicking it unleashed some kind of ancient magic which at first made no difference but on building fixed all our problems even though "resolve" was succeeding. 
Even though we had to look through random relics, we are grateful for you and your knights' service.

Thank You for your assistance.

Mobile Ads SDK Forum Advisor Prod

unread,
May 11, 2021, 5:24:59 AM5/11/21
to azanu...@gmail.com, google-adm...@googlegroups.com
Hi Azanul,

I'm a colleague of Princess. Thank you for updating us, and I'm glad that you were able to resolve the issue.

If you have any other concerns related to Mobile Ads SDK, please let us know. We'll be happy to assist you.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2GK8jO:ref
Reply all
Reply to author
Forward
0 new messages