Bloodred566
Bloodred566

Reputation: 53

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!

Upvotes: 1

Views: 209

Answers (1)

Bloodred566
Bloodred566

Reputation: 53

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.

Upvotes: 1

Related Questions