google mobile ads initialization errors

78 views
Skip to first unread message

James Berger

unread,
Mar 11, 2020, 10:32:20 PM3/11/20
to Google Mobile Ads SDK Developers
Hi,

Hi my ads have been suspended for a content overlay issue. I have fixed the issue and I have recompiled my app. I have also downloaded the google mobile ads unity plugin v5.0.1 and ran the Play services resolver too. Attached is the error I am getting when I run my app with abd logcat debugger running. Is there any suggestions of how to fix this issue? I would assume it doesn't have anything to do with the fact that my ads are still currently suspended does it?

Best,
James
google_mobile_ads_issue.PNG

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 11, 2020, 11:22:36 PM3/11/20
to jame...@gmail.com, google-adm...@googlegroups.com

Hi James,

 

Thank you for reaching out to us.

 

Upon investigation, this does seem less like an policy-related issue, and more of a build-related one. There might be some code stripping happening on the Unity side that might be causing this issue. With that said, could you confirm if you are in fact using any code stripping at all inside Unity (Player Settings -> Other Settings -> Optimization -> Managed Stripping Level)? See stripping_level screenshot. If so, then you may try setting the stripping level to Disabled instead and see if that fixes the issue.

 

Alternatively, could you check if you are Minifying your Unity code (Player Settings -> Publishing Settings -> Minify)? See proguard screenshot. If so, then you will have to check the ProGuard option (Player Settings -> Publishing Settings -> Build -> User Proguard File) and force the compiler to retain the AdMob SDK classes in the final build. You may check this link for further details. Specifically, you may put these lines in the ProGuard file:

-keep public class com.google.android.gms.ads.**{

public *;

}

 

Lastly, you may try exporting your project over to Android Studio instead and build from there to see if it would fix the issue (Build Settings -> Export Project).

 

Regards,

Ziv Yves Sanchez

Mobile Ads SDK Team



ref:_00D1U1174p._5001UXUrtS:ref
stripping_level.png
proguard.png
Message has been deleted

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 12, 2020, 4:55:03 AM3/12/20
to rashad...@gmail.com, google-adm...@googlegroups.com

Hi Rashad,

 

Thank you for reaching out to us.

 

Kindly create a new thread for your technical concerns with the AdMob SDK in order for us to assist you better. I also deleted your post since it contained sensitive data (such as your password). Below is a copy of your post with the sensitive data masked.

 

Regards,

Ziv Yves Sanchez

Mobile Ads SDK Team

On Thursday, March 12, 2020 at 4:37:17 PM UTC+8, Rashad Kanwal wrote:

plz help me check my acount I provied u my email and pswrd <removed>
pswrs
<removed>
and adsans admob axount cnfrm plz help me



ref:_00D1U1174p._5001UXUrtS:ref

James Berger

unread,
Mar 12, 2020, 7:28:31 AM3/12/20
to Google Mobile Ads SDK Developers
It was the proguard setting that was the issue. Thanks for the help!

James
Reply all
Reply to author
Forward
0 new messages