Admob Banner ad showing blank? Why?
<p>I have tried so many times before but getting the same result always. Ads shows blank as my title says. I don't know what's getting error with me? I learn from <a href="http://www.androidhive.info/2016/02/android-how-to-integrate-google-admob-in-your-app/" rel="nofollow noreferrer">here</a>. Below is my code and screen shot: </p>

<p><a href="https://i.stack.imgur.com/6un56.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6un56.png" alt="why is this blank ad?"></a></p>

<p>This is my activity_main.xml, where I implemented ad at footer</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:id="@+id/fragment_container"&gt;
&lt;ImageButton
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:layout_weight="1"
    android:scaleType="centerCrop"
    android:id="@+id/img_boy"
    android:background="@drawable/big_img_boy" /&gt;
&lt;LinearLayout
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:layout_weight="1"
    android:weightSum="2"
    android:orientation="horizontal"&gt;
&lt;ImageButton
    android:layout_width="0dp"
    android:layout_height="match_parent"
    android:layout_weight="1"
    android:id="@+id/dog_male"
    android:scaleType="centerCrop"
    android:background="@drawable/one" /&gt;
    &lt;ImageButton
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:id="@+id/dog_female"
        android:scaleType="centerCrop"
        android:background="@drawable/two" /&gt;
&lt;/LinearLayout&gt;

&lt;ImageButton
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:layout_weight="1"
    android:scaleType="centerCrop"
    android:id="@+id/img_girl"
    android:background="@drawable/original_girl" /&gt;
&lt;com.google.android.gms.ads.AdView
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    ads:adSize="BANNER"
    ads:adUnitId="ca-app-pub-2679xxxxxxxxxxxxxxxx42"
    android:id="@+id/adView"
    &gt;
&lt;/com.google.android.gms.ads.AdView&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>In MainActivity I call this inside onCreate</p>

<pre><code>    AdView adView= (AdView) findViewById(R.id.adView);
    AdRequest adRequest=new AdRequest.Builder().build();
    adView.loadAd(adRequest);
</code></pre>

<p>Here's my manifest.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="queendevelopers.com.nepalibabiesnames"&gt;
&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
&lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
&lt;application

    android:allowBackup="true"
    android:icon="@drawable/launcher_icon"
    android:label="@string/app_name"
    android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|locale"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"&gt;

    &lt;meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" /&gt;


    &lt;activity android:name=".Splash_Screen"
        android:screenOrientation="portrait"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.MAIN" /&gt;
            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".MainActivity"
        android:screenOrientation="portrait"&gt;&lt;/activity&gt;

    &lt;activity android:name=".Settings"
        android:screenOrientation="portrait"&gt;&lt;/activity&gt;
    &lt;activity android:name=".About_Developer"
        android:screenOrientation="portrait"/&gt;

    &lt;activity
        android:name="com.google.android.gms.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
        android:theme="@android:style/Theme.Translucent" /&gt;

&lt;/application&gt;

&lt;/manifest&gt;
</code></pre>

<p>Did I lose/forgot any steps? I am using all other fragment and activity_main as container, when I go to fragment this  banner automatically shows at top instead of showing at bottom. Below is the screen shot.</p>

<p><a href="https://i.stack.imgur.com/mIlGm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mIlGm.png" alt="Fragment"></a></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;

&lt;android.support.v7.widget.CardView     xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/cardview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:orientation="vertical"
app:cardBackgroundColor="@android:color/transparent"
app:cardCornerRadius="8dp"
app:cardElevation="3dp"
app:cardPreventCornerOverlap="false"
app:cardUseCompatPadding="true"&gt;

&lt;TextView
    android:id="@+id/textView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:paddingLeft="20dp"
    android:paddingTop="3dp"
    android:textAlignment="center"
    android:textColor="#ff9901"
    android:textSize="35sp"
    android:textStyle="italic" /&gt;
&lt;/android.support.v7.widget.CardView&gt;
</code></pre>

<p>Call them in ManActivity when button is click like below code:-</p>

<pre><code>case R.id.img_boy:
            Recycler rc = new Recycler();
            FragmentManager fragmentManager = getFragmentManager();
            FragmentTransaction fragmentTransaction =     fragmentManager.beginTransaction();
            fragmentTransaction.replace(R.id.fragment_container, rc);
            fragmentTransaction.addToBackStack(null);
            fragmentTransaction.commit();
            break;
</code></pre>

<p>And below is how I inflated my View</p>

<pre><code>@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.recyclerview, container, false);
    rv = (RecyclerView) view.findViewById(R.id.rv);
    nameCollection = getActivity().getResources().getStringArray(R.array.boy);
    LinearLayoutManager llm = new LinearLayoutManager(getActivity());
    rv.setLayoutManager(llm);
    rv.setHasFixedSize(true);
    initializeData();
    initializeAdapter();
    return view;
</code></pre>

<p>Below is logcat </p>

<pre><code> 08-31 17:23:24.208 25652-25724/? D/HeadsetStateMachine: Disconnected process message: 10, size: 0
 08-31 17:24:43.512 15331-15331/queendevelopers.com.nepalibabiesnames D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
 08-31 17:24:43.929 15331-15331/queendevelopers.com.nepalibabiesnames I/Ads: Starting ad request.
 08-31 17:24:43.932 15331-15331/queendevelopers.com.nepalibabiesnames I/Ads: Use AdRequest.Builder.addTestDevice("0F7B337499FCAAA05252B09EFC57223C") to get test ads on this device.
 08-31 17:24:44.994 2526-2526/? I/Ads: Received log message: &lt;Google:HTML&gt; You are using version 8.5 of the Google Play Services Ads SDK. Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes. See [link][4] for instructions on how to get the latest version of Google Play services.
 08-31 17:24:45.267 2526-5326/? W/Ads: Error while connecting to ad server: Connection closed by peer
 08-31 17:24:45.272 15331-15352/queendevelopers.com.nepalibabiesnames W/Ads: There was a problem getting an ad response. ErrorCode: 2
 08-31 17:24:45.278 15331-15331/queendevelopers.com.nepalibabiesnames I/Ads: Scheduling ad refresh 60000 milliseconds from now.
 08-31 17:24:45.278 15331-15331/queendevelopers.com.nepalibabiesnames W/Ads: Failed to load ad: 2
 08-31 17:25:45.337 15331-15331/queendevelopers.com.nepalibabiesnames I/Ads: Starting ad request.
 08-31 17:25:45.339 15331-15331/queendevelopers.com.nepalibabiesnames I/Ads: Use AdRequest.Builder.addTestDevice("0F7B337499FCAAA05252B09EFC57223C") to get test ads on this device.
 08-31 17:25:46.775 2526-5324/? W/Ads: Error while connecting to ad server: Connection closed by peer
 08-31 17:25:46.777 15331-15352/queendevelopers.com.nepalibabiesnames W/Ads: There was a problem getting an ad response. ErrorCode: 2
 08-31 17:25:46.778 15331-15331/queendevelopers.com.nepalibabiesnames I/Ads: Scheduling ad refresh 60000 milliseconds from now.
 08-31 17:25:46.779 15331-15331/queendevelopers.com.nepalibabiesnames W/Ads: Failed to load ad: 2
 08-31 17:26:46.835 15331-15331/queendevelopers.com.nepalibabiesnames I/Ads: Starting ad request.
 08-31 17:26:46.836 15331-15331/queendevelopers.com.nepalibabiesnames I/Ads: Use AdRequest.Builder.addTestDevice("0F7B337499FCAAA05252B09EFC57223C") to get test ads on this device.
 08-31 17:26:47.185 2526-2526/? I/Ads: Received log message: &lt;Google:HTML&gt; You are using version 8.5 of the Google Play Services Ads SDK. Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes. See [link][4] for instructions on how to get the latest version of Google Play services.
 08-31 17:26:47.642 2526-5322/? W/Ads: Error while connecting to ad server: Connection closed by peer
 08-31 17:26:47.645 15331-15352/queendevelopers.com.nepalibabiesnames W/Ads: There was a problem getting an ad response. ErrorCode: 2
 08-31 17:26:47.646 15331-15331/queendevelopers.com.nepalibabiesnames I/Ads: Scheduling ad refresh 60000 milliseconds from now.
 08-31 17:26:47.648 15331-15331/queendevelopers.com.nepalibabiesnames W/Ads: Failed to load ad: 2
</code></pre>