Search code examples
firebasexamarincross-platformads

Google AdMobs Xamarin CrossPlatform


I am working on a cross-platform app and trying to implement google ad mobs, but google and firebase do not include an instructions list for Xamarin, only for Swift. Any ideas of what would be best to add ads?

Thank you!


Solution

  • Following either of these tutorials will work. Just change the iOS code, in AppDelegate to

    `MobileAds.Configure("Your App ID");

    Firebase.Core.App.Configure(); MobileAds.SharedInstance.Start(completionHandler); MobileAds.SharedInstance.RequestConfiguration.TestDeviceIdentifiers = new string[] {"kGADSimulatorID", "Your Device ID" };`

    to find your device ID, leave the test device identifiers blank, and the console will spit it out at you.