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

Is there any way to Show Google Admob in Android Recycler View

Here is complete example. I just created an example app for you. Main Activity import android.content.Context; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; import java.util.ArrayList; import java.util.List; public class Main extends AppCompatActivity { public static final String TAG = Main.class.getSimpleName(); private Context mContext; private List<MyListModel> mList; private RecyclerView mRecyclerView; private RecyclerView.Adapter mAdapter; … Read more

Implementing admob for different activities

you can do it just load ad in application class and use it in any activity. you can download demo as I do it, App class import android.app.Application; import android.view.ViewGroup; import android.widget.LinearLayout; import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdSize; import com.google.android.gms.ads.AdView; public class App extends Application { AdView adView; @Override public void onCreate() { // TODO Auto-generated method … Read more

Admob on Multiple Activities?

I DID this. Thankx to yorkw comment. This is not an efficient code. But you can modify accordingly. That reduces your code for each activity. Just Extends “TestingAdmobActivity” & call SetupAds() to call your advs. My SuperClass “TestingAdmobActivity.java” package com.test.myadmob; import com.google.ads.Ad; import com.google.ads.AdListener; import com.google.ads.AdRequest; import com.google.ads.AdRequest.ErrorCode; import com.google.ads.AdSize; import com.google.ads.AdView; import android.app.Activity; import … Read more

Cordova does not create AndroidManifest.xml

Cordova CLI v8.0 will use [email protected] by default. As most of the cordova plugins do not support [email protected] yet, you can also try using the older one by specifying version: cordova platform add [email protected] Or, if you feel comfortable to use [email protected], you can also wait for a update on cordova-plugi-admobpro to support the [email protected], … 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

Admob implementation Error

I had exactly the same problem with getting the “you must have AdActivity declared in AndroidManifest.xml with configChanges.” error message after integrating the latest AdMob SDK. Even though I have found this and the other two related discussions (see links at the bottom of this article) at StackOverflow, they didn’t help me to solve the … Read more

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