Hello,
Welcome to Microsoft Q&A!
There are some problems in your code:
1.Please add the neccessasy permission
, you didn't add INTERNET
permission.
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
2.Please recheck if you have used the right ads:adUnitId
.
You need to do is actually register for AdMob. This will give you two important pieces of information, your Application Code
and your Ad Unit Id
. You can go to: https://apps.admob.com, register for a new app, link to an app in Firebase.
Note: I found you used the ads:adUnitId
from official sample AdMobExample Sample .It is not correct.
You can refer document Xamarin.Forms: Google AdMob Ads in Android to implement your app.
Besides, you can also check the offical sample: https://learn.microsoft.com/en-us/samples/xamarin/monodroid-samples/google-services-admobexample/ .
Best Regards,
Jessie Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.