AdMob ID created 24hours ago still not available on the app

一个人想着一个人 提交于 2019-12-29 02:07:14

问题


I created an AdMOb ad unit 24 hours ago. The test ID works fine in the app but the real one is still taking a lot of time.

Here's what I have done on the mainactivity:

AdView ads;

@Override
protected void onCreate(Bundle savedInstanceState){
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    result= (EditText) findViewById(R.id.outputText);

    ads = (AdView) findViewById(R.id.adView);
    AdRequest adRequest = new AdRequest.Builder().build();

    ads.loadAd(adRequest);
}

Here's what I did in the XML :

<com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/apk/res-auto"
        android:id="@+id/adView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="31dp"
        ads:adSize="BANNER"
        ads:adUnitId="id goes here" />

And in the manifest file I have added

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

Logcat:

I/Ads: Starting ad request. I/Ads: Use AdRequest.Builder.addTestDevice("111938875CFC9AB024C69BABE7ED487C") to get test ads on this device

Do I necessarily need to have a Google Play Developer account for AdMob to work ?


回答1:


If your test Ad working fine with your App and you're not getting live Ads.

Follow these steps :

  1. Wait for some times.

  2. If you're able to load test ads but not live ads, it sounds like an issue with your AdMob account.

  3. After waiting some times/hours if still having problem then you need to cross check Ad unit Id and AppId from AdMob account.

  4. Make sure that you properly set up a payment system and/or verified your PIN? If they are not done, then live ads would not be served from your account.
  5. Still problem now you need to post your problem in this group for assistance.

No, you don't need to have a Google Play Developer account for AdMob to work.



来源:https://stackoverflow.com/questions/44744677/admob-id-created-24hours-ago-still-not-available-on-the-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!