- Home /
Admob test ads not showing up? and the codes are perfect?
So I started Unity like 3 years ago and I made a game and published it with ads working fine, so after I left unity for about 2 years and now decided to get back to it, so I got the Unity 2018.2.15f1 version, and I had to update my sdk to 26 as the program asked me to. And after finishing my game and add the ads in, they not working, and I used the old codes I used for my last game, I tried new codes that come with the admob plugin and they don't work either, and I'm sure the codes work fine because I use a debug and they show in the editor but when I build it into my phone they don't show anything. So is the sdk version has to do something with this? because I read that some developer don't update their sdk or unity? or is there something else I'm missing? And please if there is a new method or tutorial please link it. my new game is done and all I need is the ads.
Answer by hrpahlevan · Jul 07, 2019 at 07:38 AM
In your project files Search "proguard-user.txt.DISABLED" and open it, then copy the below code into it, and rename file to "proguard-user.txt".
-keep class com.google.unity.** {
*;
}
-keep public class com.google.android.gms.ads.**{
public *;
}
-keep public class com.google.ads.**{
public *;
}
-keepattributes *Annotation*
-dontobfuscate
Your answer
Follow this Question
Related Questions
Admob ads not showing when using Unity 2018 0 Answers
How to remove Admob SDK from Unity? 2 Answers
Failed to re-package resources Admob integration 0 Answers
Admob Mediation with Chartboost Ad network setup 1 Answer
App crash on launch. 1 Answer