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

钢 屈 371 Reputation points
2021-08-23T07:11:58.533+00:00

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

Where are examples?

Developer technologies .NET Xamarin
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2021-08-24T06:22:04.647+00:00

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.