praveen
praveen

Reputation: 228

AdMob not getting real ads in Android

I am working for Admob in Android and I got success in getting test ad. But When I Change My Test UnitId To To Live UnitID something like this "/5479/ctv.abcd.ca/myid" I am getting the warning like "is your unit id correct ?". and also i commented the lines for adding test devices. but still i am not seeing any real adds.

Any Ideas..... Any Better Solution..

    LinearLayout lladView = (LinearLayout) inflater.inflate(R.layout.addmob, null);
    AdView adView = (AdView) lladView.findViewById(R.id.adView1);
    adView.loadAd(new AdRequest());

and my xml is

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:orientation="vertical" >

    <com.google.ads.AdView
    xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
    android:id="@+id/adView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    ads:adSize="BANNER"
    ads:adUnitId="/5479/ctv.abcd.ca/myid"
    ads:loadAdOnCreate="true"/>
   </LinearLayout>

Upvotes: 0

Views: 833

Answers (1)

Rajesh
Rajesh

Reputation: 15774

You seem to be providing the wrong adUnitId. You have to specify your AdMob publisher ID that can be obtained from the AdMob Sites & Apps -> [Your App Name] -> Manage Settings. Step 1

Step 2

Upvotes: 1

Related Questions