Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
228 views
in Technique[技术] by (71.8m points)

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

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 ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...