Forum Xamarin.Android

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Ad Mob Mediation with multiple Ad SDKs and adapters in Xamarin.Android app

chetszotchetszot PLMember ✭✭

Hello

I am following the official Google Firebase's guide to integrate Android application with Google Ad Mob Mediation https://firebase.google.com/docs/admob/android/quick-start. However, I am working on Xamarin.Forms project and I am not able to follow that instructions step by step.

What I already tried to do is:
1. Downloaded Xamarin.GooglePlayServices.Ads NuGet package.
This broke the build with "java.exe exited with code 2". I searched the problem source and people suggested to target API 21, which I cannot do (my app has to run on KitKat).

  1. Tried to create Android Bindings project with manually added all required Google Play Services Ads JARs (copied from Android Studio gradle build output).
    This does not work as I cannot access any com.google.* namespace from my C# code (Android Binding project was referenced by Xamarin.Android one).

Can anyone provide a step by step tutorial of how to integrate Xamarin.Android application with Google Ad Mob Mediation with multiple Ad providers SDKs?

Any help would be appreciated

Best regards

Sign In or Register to comment.