question

80240195 avatar image
0 Votes"
80240195 asked WenyanZhang-MSFT edited

How to embed AdMob ads into the xamarin.forms program?

How to embed AdMob ads into the xamarin.forms program?

Where are examples?

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

WenyanZhang-MSFT avatar image
0 Votes"
WenyanZhang-MSFT answered WenyanZhang-MSFT edited

Hello,
Welcome to our Microsoft Q&A platform!
ADMob is supported in Android and iOS, there are Xamarin.Firebase.iOS.AdMob and Xamarin.Firebase.Ads packages from Nuget. You could create a view to display AdMob in Xamarin.Forms, and use customrenderer on each platform.
First,you have to setup an Admob account and create one app for Android and one for iOS.
Second, you need to create the Ad Unit of these two apps.
Finally, you need to implement the view on each platform.
Here is a link about Android, you could have a try to search for "AdMob In Xamarin.Forms" with search engine, there are some blogs about this.

Best Regards,
Wenyan 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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.