Ad Income Enhancement: AdMost and HMS Unity Kit for Huawei Ad Display
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 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
🔌 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:
- 📱💰 Sign in and open an AdMost account.
- 🚀🔌 Download and import the Admost Unity SDK into your Unity project.
- 🛡️💻 Configure publishing settings in Unity by overriding the mainTemplate.gradle, baseProjectTemplate.gradle, and gradleTemplate.properties files in the project.
- 💾📥 Download the latest version of the HMS Unity Plugin from the official HMS Unity Plugin Gitbook.
- 🚀🌟 Initialize Huawei Ads in your Unity project by enabling the Ads Kit in the Huawei Kit Settings.
- 💰💸 Display Huawei Ads in Unity using the HMS Unity Plugin.
Prerequisites
- Admost account Admost Mediation Dashboard.
- App Gallery Connect Account.
- Unity 5.x or later.
- New Unity Jar Resolver package. (Recommended version: v1.2.124 and upwards )
- Xcode 12.5 and iOS 9 or later for iOS.
- Cocoapods for iOS.
➡️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.
Once you download it into your computer Import it into your unity project. Right click on Assets > Import Package > Custom Package.
➡️Step 3: 🛡 ️Configure Publishing Settings 🛡
- Navigate to Edit -> Project Settings -> Player -> Publishing Settings in Unity.
- 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.
📝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🔧
- 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🔌
- In your Unity project, go to Editor > Huawei > Kit Settings
- Enable the Ads Kit:
➡️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👋