title: Why Admob ads not showing up on actual devices?
body: <p><strong>First of all, some days ago some ads worked, but today i noticed they stopped working, i dont know if i changed something.</strong></p>
  
  <p><strong><em>They dont work in any device, and im not using test ads</em></strong></p>
  
  <p>In the test device of Android studio they show up with the little text on the top that says "test ad" (im using my admob ids so its not a problem) but then when i make the APK and run it on a device ads dont show up, at all, not even a test one, they are just gone, let me show you what i mean:</p>
  
  <p><strong>In the test virtual device:</strong> <a href="https://gyazo.com/704e18c00544794ec4e29faad1a1ab8d" rel="nofollow noreferrer">https://gyazo.com/704e18c00544794ec4e29faad1a1ab8d</a></p>
  
  <p><strong>In an actual device:</strong> <a href="https://imgur.com/a/iERofay" rel="nofollow noreferrer">https://imgur.com/a/iERofay</a></p>
  
  <p>I will put here some code, but i dont know what code should i put here so i let you guys tell me what to send so you guys can see whats the problem.</p>
  
  <p><strong>All the files that have something to do with the ads are this ones in the gif:</strong>
  <a href="https://gyazo.com/8ca6c2b10e9b392c424f641ffaefb26a" rel="nofollow noreferrer">https://gyazo.com/8ca6c2b10e9b392c424f641ffaefb26a</a></p>
  
  <p><em>(Tell me what files do you want me to send and i will send it here)</em></p>
  
  <p><strong>(Sorry for bad english, im from spain)</strong></p>
  
  <p><strong><em>I censored the ad ids and app ids with ///////!</em></strong></p>
  
  <p>List Activity</p>
  
  <pre><code>package com.example.samplestickerapp;
  
  import android.os.AsyncTask;
  import android.os.Bundle;
  import android.support.v7.widget.DividerItemDecoration;
  import android.support.v7.widget.LinearLayoutManager;
  import android.support.v7.widget.RecyclerView;
  
  import java.lang.ref.WeakReference;
  import java.util.ArrayList;
  import java.util.Arrays;
  import java.util.List;
  import com.google.android.gms.ads.AdRequest;
  import com.google.android.gms.ads.doubleclick.PublisherAdRequest;
  import com.google.android.gms.ads.doubleclick.PublisherAdView;
  import com.google.android.gms.ads.MobileAds;
  import com.google.android.gms.ads.InterstitialAd;
  import com.google.android.gms.ads.AdListener;
  
  
  public class StickerPackListActivity extends AddStickerPackActivity {
      private PublisherAdView mPublisherAdView;
      private InterstitialAd mInterstitialAd;
      public static final String EXTRA_STICKER_PACK_LIST_DATA = "sticker_pack_list";
      private static final int STICKER_PREVIEW_DISPLAY_LIMIT = 5;
      private LinearLayoutManager packLayoutManager;
      private RecyclerView packRecyclerView;
      private StickerPackListAdapter allStickerPacksListAdapter;
      private WhiteListCheckAsyncTask whiteListCheckAsyncTask;
      private ArrayList&lt;StickerPack&gt; stickerPackList;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_sticker_pack_list);
          MobileAds.initialize(this, "ca-app-pub-///////////~/////////");
          mPublisherAdView = findViewById(R.id.publisherAdView);
          PublisherAdRequest adRequest = new PublisherAdRequest.Builder().addTestDevice(AdRequest.DEVICE_ID_EMULATOR).build();
          mPublisherAdView.loadAd(adRequest);
          packRecyclerView = findViewById(R.id.sticker_pack_list);
          stickerPackList = getIntent().getParcelableArrayListExtra(EXTRA_STICKER_PACK_LIST_DATA);
          showStickerPackList(stickerPackList);
      }
  
      @Override
      protected void onResume() {
          super.onResume();
          whiteListCheckAsyncTask = new WhiteListCheckAsyncTask(this);
          whiteListCheckAsyncTask.execute(stickerPackList.toArray(new StickerPack[stickerPackList.size()]));
      }
  
      @Override
      protected void onPause() {
          super.onPause();
          if (whiteListCheckAsyncTask != null &amp;&amp; !whiteListCheckAsyncTask.isCancelled()) {
              whiteListCheckAsyncTask.cancel(true);
          }
      }
  
      private void showStickerPackList(List&lt;StickerPack&gt; stickerPackList) {
          allStickerPacksListAdapter = new StickerPackListAdapter(stickerPackList, onAddButtonClickedListener);
          packRecyclerView.setAdapter(allStickerPacksListAdapter);
          packLayoutManager = new LinearLayoutManager(this);
          packLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
          DividerItemDecoration dividerItemDecoration = new DividerItemDecoration(
                  packRecyclerView.getContext(),
                  packLayoutManager.getOrientation()
          );
          packRecyclerView.addItemDecoration(dividerItemDecoration);
          packRecyclerView.setLayoutManager(packLayoutManager);
          packRecyclerView.getViewTreeObserver().addOnGlobalLayoutListener(this::recalculateColumnCount);
      }
  
  
      private final StickerPackListAdapter.OnAddButtonClickedListener onAddButtonClickedListener = pack -&gt; {
          addStickerPackToWhatsApp(pack.identifier, pack.name);
      };
  
      private void recalculateColumnCount() {
          final int previewSize = getResources().getDimensionPixelSize(R.dimen.sticker_pack_list_item_preview_image_size);
          int firstVisibleItemPosition = packLayoutManager.findFirstVisibleItemPosition();
          StickerPackListItemViewHolder viewHolder = (StickerPackListItemViewHolder) packRecyclerView.findViewHolderForAdapterPosition(firstVisibleItemPosition);
          if (viewHolder != null) {
              final int max = Math.max(viewHolder.imageRowView.getMeasuredWidth() / previewSize, 1);
              int numColumns = Math.min(STICKER_PREVIEW_DISPLAY_LIMIT, max);
              allStickerPacksListAdapter.setMaxNumberOfStickersInARow(numColumns);
          }
      }
  
  
      static class WhiteListCheckAsyncTask extends AsyncTask&lt;StickerPack, Void, List&lt;StickerPack&gt;&gt; {
          private final WeakReference&lt;StickerPackListActivity&gt; stickerPackListActivityWeakReference;
  
          WhiteListCheckAsyncTask(StickerPackListActivity stickerPackListActivity) {
              this.stickerPackListActivityWeakReference = new WeakReference&lt;&gt;(stickerPackListActivity);
          }
  
          @Override
          protected final List&lt;StickerPack&gt; doInBackground(StickerPack... stickerPackArray) {
              final StickerPackListActivity stickerPackListActivity = stickerPackListActivityWeakReference.get();
              if (stickerPackListActivity == null) {
                  return Arrays.asList(stickerPackArray);
              }
              for (StickerPack stickerPack : stickerPackArray) {
                  stickerPack.setIsWhitelisted(WhitelistCheck.isWhitelisted(stickerPackListActivity, stickerPack.identifier));
              }
              return Arrays.asList(stickerPackArray);
          }
  
          @Override
          protected void onPostExecute(List&lt;StickerPack&gt; stickerPackList) {
              final StickerPackListActivity stickerPackListActivity = stickerPackListActivityWeakReference.get();
              if (stickerPackListActivity != null) {
                  stickerPackListActivity.allStickerPacksListAdapter.setStickerPackList(stickerPackList);
                  stickerPackListActivity.allStickerPacksListAdapter.notifyDataSetChanged();
              }
          }
      }
  }
  </code></pre>
  
  <p>Android Manifest</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      package="com.example.samplestickerapp"&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
      &lt;application
          android:allowBackup="false"
          android:fullBackupContent="false"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:name=".StickerApplication"
          android:roundIcon="@mipmap/ic_launcher_round"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"
          tools:ignore="GoogleAppIndexingWarning"&gt;
          &lt;activity android:name=".EntryActivity"&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=".StickerPackListActivity"
              android:label="@string/title_activity_sticker_packs_list" /&gt;
          &lt;activity
              android:name=".StickerPackDetailsActivity"
              android:parentActivityName=".StickerPackListActivity"
              tools:ignore="UnusedAttribute"&gt;
              &lt;meta-data
                  android:name="android.support.PARENT_ACTIVITY"
                  android:value="com.example.samplestickerapp.StickerPackListActivity" /&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".StickerPackInfoActivity"
              android:label="@string/title_activity_sticker_pack_info"
              android:parentActivityName=".StickerPackDetailsActivity"
              tools:ignore="UnusedAttribute"&gt;
              &lt;meta-data
                  android:name="android.support.PARENT_ACTIVITY"
                  android:value="com.example.samplestickerapp.StickerPackDetailsActivity" /&gt;
          &lt;/activity&gt;
  
          &lt;provider
              android:name=".StickerContentProvider"
              android:authorities="${contentProviderAuthority}"
              android:enabled="true"
              android:exported="true"
              android:readPermission="com.whatsapp.sticker.READ" /&gt;
                  &lt;meta-data
                      android:name="com.google.android.gms.ads.AD_MANAGER_APP"
                      android:value="true"/&gt;
          &lt;meta-data
              android:name="com.google.android.gms.ads.ca-app-pub-/////////////~//////////"
              android:value="ca-app-pub-/////////////~//////////"/&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>