- Home /
The ads on my game runs when I run it on development build but not in release build.
The ads on my game runs when I run it on development build but not in release build. I tried many ways to fix this but I am unable to find the solution to it .
Answer by mayurasodariya33 · Sep 25, 2019 at 11:28 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". if you are not able to found pro guard file in project directory then go to publishing setting check on user proguard file and then unCheck it so it will generate pro guard file and edit with these lines
-keep class com.google.unity.** {
*;
}
-keep public class com.google.android.gms.ads.**{
public *;
}
-keep public class com.google.ads.**{
public *;
}
-keepattributes *Annotation*
-dontobfuscate
Now save.! with this name => proguard-user.txt
Done.! Now build project and run
Your answer
Follow this Question
Related Questions
AdMob for Unity 5 0 Answers
Admob ad show problem. Need Update? 0 Answers
My admob interstitial ads only shows once 0 Answers
Ads shows in the editor but not in the Game? please help. 0 Answers