📈UDP Adversitement with IronSource
IronSource and UDP: A guide to integrating Huawei ads and distributing games with Unity.
IronSource is not only compatible with UDP, but it also offers a custom adapter for Huawei Ads Kit, Huawei's mobile ad platform. With IronSource's Huawei custom adapter, game developers can easily integrate Huawei Ads Kit into their Unity games and monetize their games on Huawei's app store.
Developers can use the IronSource Unity Plugin to integrate IronSource's ad formats and the Huawei custom adapter into their games. The UDP Integration Manager tool can be used to download the necessary IronSource SDK and adapters, including the Huawei custom adapter, directly from the Unity Development Platform.
The IronSource dashboard provides developers with a user-friendly interface for configuring ad placements and settings for both IronSource and Huawei Ads Kit. By using IronSource with Huawei's custom adapter through UDP, developers can effectively monetize and distribute their games across multiple app stores, including Huawei's app store.
In summary, IronSource's compatibility with UDP and its custom adapter for Huawei Ads Kit provides developers with a comprehensive platform for monetizing and distributing their games across different app stores. So go ahead and unleash the power of IronSource and Huawei Ads Kit to maximize your game's revenue potential!
This guide assumes you have a Unity and Huawei AppGallery Developer account. If you do not have an account, it is important to create one first and then continue with the guide for a seamless flow.
Step 1: Creating an Account on IronSource and Adding Your App
Go to the IronSource website and create an account if you don't have one already.
Once you are logged in, click on the "Add App" button located in the top right corner of the page.
You will then be prompted to integrate the IronSource SDK into your app. Follow the instructions provided by IronSource to complete the integration process.
After the integration is complete, you will be able to view data about your app's performance on the IronSource dashboard, such as impressions, clicks, and revenue.
Step 2: Unity Portal Mediation Setup
Go to the Unity Portal and Log in.
Open the Monetization tab and click Get Started.
Select "I plan to use Mediation" and "Unity LevelPlay" in the pop-up.
Follow unity's guidance for the next steps.
At the end of the process, you will get Organization Core Id and Game Ids that you will use later.
Step 3: Downloading and Setting up the IronSource Plugin in Your Project
Download the ironSource Unity Plugin here.
Make sure your Unity project is opened and import the Unity package. Double-click on the extracted file; the different files will be populated automatically as shown below.
Go to ironSource > Integration Manager in the Unity menu bar. Choose “Install” or “Update” for ironSource SDK and any adapters you want to use.
Select scene in Assets > IronSource > DemoScene > IronSourceDemo.unity path.
Step 4: Mobile Dependency Resolver and Troubleshooting Errors
For Android, you need to add some permissions and activities to your AndroidManifest.xml file outside and inside the <application> tag respectively. You also need to resolve dependencies using Assets > Mobile Dependency Manager > Android Resolver > Resolve.
After activating our demo scene, we will Resolve the project using Mobile Dependency Resolver. But there is a high probability that you will have a problem while doing this process. You can Resolve and solve the problem by following the images below.
After getting an error, we download a file named gradlew.bat and copy it here by following the Temp > PlayServicesResolverGradle path in our project.
Then we perform the resolve operation again. 🫠
Step 5: Building and Testing the IronSource Demo
Build the IronSource demo scene in your Unity project.
Test the IronSource demo to make sure everything is working correctly.
Step 6: Creating a Reporting API in Your AppGallery Connect Account
Create a reporting API in your Huawei AppGallery Connect account.
Make note of Client ID and Key.
Check out this link for a detailed guide.
Step 7: Creating an IronSource Custom Adapter for Huawei Ads
Step 7.1: Create Custom Adapter(Huawei)
Enter the ClientID and SecretKey obtained from Huawei Console
Enter the Network Key (Network Key is: 15b993999).
Go to SDK Networks, click Manage Networks, and add Custom Adapter.
Sign in to your Platform Ironsource and add an App.
Step 7.2: Fill in Custom Adapter(Huawei) Information
Log in to AppGallery Connect and select My apps.
Select your app from the list.
On the Project settings page, find App information.
Under Essential information, you can see your App ID then copy this.
Back to the IronSource panel and open the SDK Network area.
Click the setup button on Custom Adapter(Huawei).
In the field that opens, fill in the information we already have for Rewarded Name and Interstitial name.
Rewarded Test AdUnitId => “testx9dtjwj8hp”
Interstitial Test AdUnitId => “testb4znbuh3n2”
Step 8: Turning Off IronSource Test Mode
Disable the IronSource test mode on the IronSource panel.
Step 9: Configuring Huawei Ads for IronSource Mediation in the Unity Editor
Configure the Huawei Ads SDK settings in the Unity Editor.
Step 10: Building and Testing the Huawei Ads Demo
Build the Huawei Ad demo scene in your Unity project.
Test the Huawei Ad demo to make sure everything is working correctly.
Step 11: Inserting Huawei Ads into the Game Scene Using IronSource
Add Huawei Ads to your game scene using the IronSource plugin.
You can reach IronSource sample ads for Huawei code.
Step 12: Designing the Advertising Screen
Design the advertising screen for your game using the IronSource plugin.
After adding our code to our project, we prepare a simple screen as in the image below. The structure here is completely up to you. The structure here is prepared only for a simple display.
Step 13: Building and Testing Huawei Ads
Build your game and test Huawei Ads to make sure everything is working correctly.
Well folks, we’ve made it to the finish line of yet another marathon guide. Step by step and in detail, we have implemented together how Huawei ads are added as mediation using Unity LevelPlay — IronSource. Thank you for reading this far. Thanks to the steps you have applied, you can now show Huawei ads in your game and earn profit 💰💲
Thank you for reading this far. Please don't forget to star our github repo 😄
Last updated