Admob With adRequest error

Asked

Viewed 63 times

1

inserir a descrição da imagem aquiinserir a descrição da imagem aqui

By adding the admob to my project , when running the application , he follows with this error , I did not understand why

XML from ad

com.google.android.gms.ads.Adview android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" ads:adSize="BANNER" ads:adUnitId="@string/banner_ad_unit_id">

Strings: ca-app-pub- 1770401303076452/3069328127

  • Edit the question and enter the error that is in the log.

  • @Acklay Ready, I put

  • Did you notice that you have important information cutting in your image? Try to put here the writing and not the image.

  • at br.com.paivasdev.fazendocafe.Mainactivity.onCreate(Mainactivity.java:50)

  • it is giving error on line 50 which corresponds to mAdView.loadAd(adRequest);

  • Paiva has been bad the mistake I found was a gap between the pub-177. My ads do not appear. Only the test so I found your doubt, I do not know if they only appear after publishing the app if you know something let me know! vlw. The code below is without space! ca-app-pub-1770401303076452/3069328127

  • I already solved it was dependency error, but thank you!!

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.