Admob shows Test ads but not real ads

When apps are newly registered with AdMob, it takes some time and a few ads requests to allow inventory to build. Because of this, you may not see live impressions immediately. Once your app starts making more requests, you should see more consistent results. Please note that test ads operate through the same channels as … Read more

Action requested: Declare your Ad ID permission

Case 1: The app doesn’t contain any Ads: You can simply remove/ignore it by adding tools:node=”remove” in the AndroidManifest.xml file. <uses-permission android:name=”com.google.android.gms.permission.AD_ID” tools:node=”remove”/> Make sure you have xmlns:tools at the top of AndroidManifest.xml file Even if another third-party library asks for this specific permission, the build will be forced not to merge it in your … Read more

Adding Admob to libgdx

Add AdMob Ads without Firebase : Put these lines inside build.gradle of android module. dependencies { compile ‘com.google.android.gms:play-services-ads:10.2.4’ } Add permission in AndoidManifest.xml file <uses-permission android:name=”android.permission.INTERNET”/> <uses-permission android:name=”android.permission.ACCESS_NETWORK_STATE” /> Inside <application tag add Activity if want to use Interstitial Ads <meta-data android:name=”com.google.android.gms.version” android:value=”@integer/google_play_services_version” /> <activity android:name=”com.google.android.gms.ads.AdActivity” android:configChanges=”keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize” android:theme=”@android:style/Theme.Translucent” /> AndroidLauncher class. public class AndroidLauncher extends … Read more

Mopub ads not showing

It is ProGuard indeed. If you don’t want it to “get rid” of Mopub, AdMob and MMedia code entirely, just put the following lines into proguard-project.txt file of your project: -keep class com.google.ads.** {*;} -keep class com.mopub.mobileads.** {*;} -keep class com.millennialmedia.android.** {*;} -keep class com.millennialmedia.google.** {*;}

Interstitial Admob ads: “IllegalStateException: Only fullscreen activities can request orientation”

EDIT Now a newer admob version is available. I confirm that using the latest releases (15.0.1 or newer) the issue doesn’t appear anymore, so you can use the latest version of Admob com.google.firebase:firebase-ads:17.1.2 setting the target version to the latest, if you have used the workaround previously suggested. ———————————————————- Set the target to Android API … Read more

tech