Skip to content

Explore-In-HMS/huawei.ads.admost_mediation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Huawei-AdMost Mediation Github Documentation

Latest Version
Supported Platforms

Introduction

In this documentation we explained how to use Huawei-AdMost mediation plugin developed by AdMost. AdMost repository link is here

Compatibility

Banner Ad Interstitial Ad Rewarded Ad Native Ad
Native (Java/Kotlin)
Unity

How to start?

Create an ad unit on Huawei Publisher Service

  1. Sign in to Huawei Developer Console and create an AdUnit

Create a mediation network on AdMost

  1. Sign in to AdMost Dashboard

  2. Click on the "+" sign on the "Networks Credentials" page and activate "Huawei Ads Network"

  3. Create an "Ad Zone" Select your app and click on "+Zone"

  4. Click on the "Placements"tab next to your app, then click on "+New Placement". These actions are all taken on the My Apps page.

  5. After that, Users can list, edit, and delete all of your placements from "Placements" tab next to the app

  6. Follow this link for the next integration steps

    Note: This link also can be useful.

Integrate the Huawei-AdMost Mediation SDK

In the project-level build.gradle, include necessary Maven repositories.

repositories {
    maven { url 'http://repo.admost.com:8081/artifactory/amr'; allowInsecureProtocol true } // Add this line
    maven { url 'https://developer.huawei.com/repo/' } // Add this line
   
}

...

allprojects {
    repositories {
        maven { url 'http://repo.admost.com:8081/artifactory/amr'; allowInsecureProtocol true } // Add this line
        maven { url 'https://developer.huawei.com/repo/' } // Add this line
        
    }
}

In the app-level build.gradle, include necessary dependencies
dependencies {
    implementation 'com.android.volley:volley:1.2.1' 
    implementation 'com.admost.sdk:amr:2.6.6' 
    implementation 'com.google.android.gms:play-services-base:17.1.0' 
    implementation 'com.admost.sdk:admost-adapter:1.1.1.a32' 
    implementation 'com.admost.sdk:huawei-ads-adapter:3.4.55.302.a32' 
    implementation 'com.huawei.hms:ads-identifier:3.4.46.300'
}

Check the latest version here

Important Note : AdMost-Huawei Mediation SDK is released and maintained by AdMost team. Please use this link if you have any issues or feedbacks.

Permissions

The HUAWEI Ads SDK (com.huawei.hms:ads) has integrated the required permissions. Therefore, you do not need to apply for these permissions.

android.permission.ACCESS_NETWORK_STATE: Checks whether the current network is available.

android.permission.ACCESS_WIFI_STATE: Obtains the current Wi-Fi connection status and the information about WLAN hotspots.

android.permission.BLUETOOTH: Obtains the statuses of paired Bluetooth devices. (The permission can be removed if not necessary.)

android.permission.CAMERA: Displays AR ads in the Camera app. (The permission can be removed if not necessary.)

android.permission.READ_CALENDAR: Reads calendar events and their subscription statuses. (The permission can be removed if not necessary.)

android.permission.WRITE_CALENDAR: Creates a calendar event when a user clicks the subscription button in an ad. (The permission can be removed if not necessary.)

Configuring Obfuscation Scripts

Before building the APK, configure the obfuscation configuration file to prevent the HUAWEI Ads SDK () from being obfuscated.

Open the obfuscation configuration file proguard-rules.pro in the app-level directory of your Android project, and add configurations to exclude the HUAWEI Ads SDK from obfuscation.

-keep class com.huawei.openalliance.ad.** { *; }
-keep class com.huawei.hms.ads.** { *; }

Configuring Network Permissions

To allow HTTP and HTTPS network requests on devices with targetSdkVersion 28 or later, configure the following information in the AndroidManifest.xml file :

<activity
    ...
    android:usesCleartextTraffic="true"
    >
    ...
</activity>

Version Change History

2.6.6

Latest version

Platforms

Native

This section demonstrates how to use AdMost mediation feature with Huawei Ads Kit on Native android app.

Firstly, integrate the AdMost Mediation SDK for Android

AdMost Mediation SDK can be used for all ad types.

Note :

  1. Developers can find app level build.gradle in their project from "app-folder/app/build.gradle"
  2. If you use the native ad format in your application, please submit a ticket here to get support from Huawei.

Banner Ad

To use Banner ads in Native android apps, please check the AdMost Mediation SDK. Click here to get more information about AdMost Mediation SDKs Banner Ad development.

Interstitial Ad

To use Interstitial ads in Native android apps, please check the AdMost Mediation SDK. Click here to get more information about AdMost Mediation SDKs Interstitial Ad development.

Rewarded Ad

To use Rewarded ads in Native android apps, please check the AdMost Mediation SDK. Click here to get more information about AdMost Mediation SDKs Rewarded Ad development.

Native Ads

To use Native ads in Native android apps, please check the AdMost Mediation SDK. Click here to get more information about AdMost Mediation SDKs Native Ad development.

Screenshots

Banner Ad

Interstitial Ad

Rewarded Ad

Native Ad

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published