AdMob/Google Ads Mediation

Prerequisites:

Before diving into the integration of HMS Unity Plugin and Google AdMob, ensure that you have set up mediation groups and Ad Units in your Google AdMob account and properly configured Huawei Ads as a mediation network.

Go to Assets -> Plugins -> Android

Open baseProjectTemplate.gradle in a text editor and add the maven lines from the mediation readme file.

Next, open mainTemplate.gradle in a text editor and add the implementation lines depending on your selected platform.

Lastly, open gradleTemplate.properties and add the necessary lines.

That's it! You have now successfully integrated AdMob mediation into Unity using the HMS Unity Plugin and can display Huawei ads in your app.

Last updated