Ad Income Enhancement: AdMost and HMS Unity Kit for Huawei Ad Display

Hilal Tepecik
Huawei Developers
Published in
5 min readApr 4, 2023

--

Resim ktphotography tarafından Pixabay’a yüklendi

Introduction 🎤

Monetizing mobile apps through ads is a popular way for developers to earn revenue. Admost is a mediation platform that allows developers to manage multiple ad networks and optimize their ad revenue. In this article, we will guide you through the process of integrating Admost Mediation with Admost to display ads in your app and generate revenue.

What is Admost Mediation?

Admost Mediation

Admost is a mobile advertising mediation platform that helps app developers maximize their ad revenue by connecting them to multiple ad networks. Admost provides developers with a single platform to manage their ad inventory, optimize their ad performance, and maximize their revenue. By using Admost, developers can streamline their ad management processes and increase their revenue by serving ads from multiple networks. The platform provides a range of features, such as automatic eCPM (effective cost per mille) optimization, cross-promotion, and real-time reporting, that help developers optimize their ad revenue and increase their user engagement

What is HMS Unity Plugin

HMS Unity Plugin Integration. In this article, I will mention about… | by  Kayahan Başkeser | Huawei Developers | Medium
Huawei Ads in Unity

🔌 The HMS Unity Plugin is a tool that allows developers to integrate the Huawei Mobile Services (HMS) Core SDK into their Unity projects. 🎮 By using the plugin, developers can access HMS features and services, such as the Ads Kit and Push Kit, and create innovative mobile apps for Huawei devices. 💡 The plugin streamlines the process of accessing HMS services, making it easier for developers to create high-quality mobile apps with advanced capabilities.

We’ve got the information we need about the programs we use. It’s time for the integration!

Before we begin Here’s a summary of the steps involved in integrating AdMost Mediation with the HMS Unity Plugin to display Huawei Ads:

  1. 📱💰 Sign in and open an AdMost account.
  2. 🚀🔌 Download and import the Admost Unity SDK into your Unity project.
  3. 🛡️💻 Configure publishing settings in Unity by overriding the mainTemplate.gradle, baseProjectTemplate.gradle, and gradleTemplate.properties files in the project.
  4. 💾📥 Download the latest version of the HMS Unity Plugin from the official HMS Unity Plugin Gitbook.
  5. 🚀🌟 Initialize Huawei Ads in your Unity project by enabling the Ads Kit in the Huawei Kit Settings.
  6. 💰💸 Display Huawei Ads in Unity using the HMS Unity Plugin.

Prerequisites

➡️Step 1: Sign in and Open an AdMost Account

To start, sign in to your AdMost account and create a new app if you haven’t already. This will allow you to access and integrate the AdMost SDKwith your Unity project.

➡️Step 2: Download and Admost Unity SDK.

Next, download Admost Unity Sdk into your project. To do this you need to visit the following link and download the Unity Package shown below.

AMR Unity Package

Once you download it into your computer Import it into your unity project. Right click on Assets > Import Package > Custom Package.

Admost Unity SDK Import

➡️Step 3: 🛡 ️Configure Publishing Settings 🛡

  1. Navigate to Edit -> Project Settings -> Player -> Publishing Settings in Unity.
  2. Select “Custom Main Gradle Template”, “Custom Base Gradle Template”, and “Custom Gradle Properties Template”. This will let you override the mainTemplate.gradle, baseProjectTemplate.gradle, and gradleTemplate.properties files in the project.
“Custom Main Gradle Template”, “Custom Base Gradle Template”, and “Custom Gradle Properties Template”.

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

📝Open mainTemplate.gradle in a text editor and add the following implementation lines depending on your selected platform:

📝Lastly, open gradleTemplate.properties and make sure to add the following lines:

➡️Step 4:🔧 Make Sure the Implementation of HMS Unity Plugin🔧

  1. Download the latest version of the HMS Unity Plugin from the official HMS Unity Plugin Gitbook. If you haven’t already.

➡️Step 5: 🔌 Initialize Huawei Ads in your Unity project🔌

  1. In your Unity project, go to Editor > Huawei > Kit Settings
  2. Enable the Ads Kit:
Hms Kits

➡️Step 6: Display Huawei Ads in Unity

After you have completed the Gradle configuration, you are ready to display Huawei Ads in Unity using the HMS Unity Plugin.

Here in this link you’ll find all the example codes you need to run Ad types in your Unity Project using AdMost Mediation.

Optionally you can check sample codes by downloading this package.

That’s it! We’ve come to an end into this easy and fun integration process.

Conclusion🕰️

In conclusion, integrating Admost Mediation with the HMS Unity Plugin is a great way for developers to maximize their ad revenue by connecting them to multiple ad networks. By using Admost, developers can manage their ad inventory, optimize their ad performance, and increase their revenue by serving ads from multiple networks. The HMS Unity Plugin allows developers to integrate the Huawei Mobile Services Core SDK into their Unity projects, enabling them to access features such as the Ads Kit and Push Kit. By following the simple steps outlined in this guide, developers can easily display Huawei ads in their Unity projects and generate revenue.

If you have any question left you don’t hesitate to ask in the comments.

Hope to see you in another article! Goodbye👋

References🌻

--

--

Hilal Tepecik
Huawei Developers

Game and SDK Developer @Huawei - Unity, Unreal, HMS Unity Plugin, XR Interactions Toolkit