android - Weird Admob error -


weird admob error. still noob not sure if there wrong code.

admob not giving application error admob ads not appear in app.

even stranger when viewing main.xml in graphical layout see "ads google" ads should viewable. i've installed app several times , refreshed nothing appears on real device. using updated admob jar / package googleadmobadssdk-4.1.1.jar.

my main.xml below

<com.google.ads.adview     android:id="@+id/adview"     android:layout_alignparentbottom="true"     android:layout_width="fill_parent"     android:layout_height="wrap_content"     ads:adsize="banner"     ads:adunitid="a14e27391701ceb"     ads:loadadoncreate="true"/> </linearlayout> 

and manifest is:

<!-- admob begin code --> <meta-data      android:value="a14e27391701ceb"      android:name="admob_publisher_id" /> <activity android:name="com.admob.android.ads.admobactivity"/> <receiver      android:name="com.admob.android.ads.analytics.installreceiver"     android:exported="true"> <intent-filter> <action android:name="com.android.vending.install_referrer"/> </intent-filter> </receiver> <meta-data      android:value="true"      android:name="admob_allow_location_for_ads"/> </application> <!-- admob end code --> 

try use this:

adview adview = (adview)findviewbyid(r.id.adview1); adrequest re = new adrequest(); re.settesting(true); adview.loadad(re);

hope helps.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -