How to use Admob in Xamarin in 2023?

N1ko 1 Reputation point
2023-01-10T20:38:39.9+00:00

How to use Admob on Android Apps in Xamarin Forms? i followed this tutorial but it does not work in 2023.

i found this link in chatGPT but it's doesn't exist : https://learn.microsoft.com/en-us/xamarin/android/platform/ads-monetization/admob/

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,231 Reputation points Microsoft Vendor
    2023-01-11T01:54:18.053+00:00

    Hello,

    Upon verification, this document does not exist in the Xamarin document library.

    For using Admob in Xamarin, you could refer to this google official documentation: Admob quick-start.

    Then, you will find this needed component com.google.android.gms:play-services-ads.

    On Xamarin.Froms, you could use this NuGet Package Xamarin.GooglePlayServices.Ads to use the methods and classes corresponding to com.google.android.gms:play-services-ads.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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

  2. N1ko 1 Reputation point
    2023-01-12T11:22:20.31+00:00

    I found this solution
    [https://github.com/marcojak/MTAdmob/issues/89