Skip to content Skip to sidebar Skip to footer

Admob Not Working

Manifest file is

Solution 1:

You're missing the following from the "application" section of your manifest

<!-- The application's publisher ID assigned by AdMob --><meta-dataandroid:value="xxxxxxxxxxx"android:name="ADMOB_PUBLISHER_ID" /><!-- AdMobActivity definition --><activityandroid:name="com.admob.android.ads.AdMobActivity"android:theme="@android:style/Theme.NoTitleBar.Fullscreen"android:configChanges="orientation|keyboard|keyboardHidden" /><!-- Track Market installs --><receiverandroid:name="com.admob.android.ads.analytics.InstallReceiver"android:exported="true"><intent-filter><actionandroid:name="com.android.vending.INSTALL_REFERRER" /></intent-filter></receiver>

Solution 2:

My Android game was published on the Google's market, but I didn't get any impressions from AdMob. There was no significant changes in the code, or even changes at all that touched AdMob sources and the previous versions of my game were working properly.

As it turned out the problem was elevated during obfuscation process done by proguard. If you're using it to do the mangling of Java's symbols get rid of the -optimize directive from your proguard.cfg and put -dontoptimize instead.

Post a Comment for "Admob Not Working"