AdMob Mediation
Last updated
Last updated
The HyprMX Android AdMob Adapter allows you to integrate HyprMX in your AdMob rewarded, interstitial, and banner/MREC waterfalls. See below for instructions on how to set up a new adapter or upgrade to newer versions.
The HyprMX-AdMob adapter version 6.4.2.2 is compatible with AdMob v22.0+.
1. Open your existing application in Android Studio.
2. Add or update the following dependency to your app's build.gradle
file:
3. If you are upgrading, class names may have changed since you last updated the adapter. Please review the section below to ensure you are using the latest class names.
4. If you are using mediation extras to pass in user consent, follow the instructions in .
Please note that the user ID has been removed in version 6.4.2.0 and can be safely removed from the integration.
That's it! You're up and running with the latest version of the HyprMX SDK.
Create your Mediation Group on the AdMob dashboard. If you are integrating Interstitial and Rewarded Video, follow these steps for both.
In the Ad Sources section, select Add Custom Event
.
In the popup, enter HyprMX
in the label field and set the default eCPM (e.g. $15.00).
Click 'Continue'.
Set the adapter Class Name:
AdMob Ad Format
Class Name
com.hyprmx.android.HyprMXCustomEventRewarded
com.hyprmx.android.HyprMXCustomEventInterstitial
com.hyprmx.android.HyprMXCustomEventBanner
In the parameter field, enter the distributor ID and placement name assigned to you by your HyprMX account manager. Please reach out to your account manager with what placements you'd like to use in your app and whether they will be rewarded or interstitial. The example below will assume that your account manager has created a "REWARDED" placement.
Click 'Done' and then 'Save'.
HyprMX provides an API to indicate a user’s consent status. This API will be used to indicate a user’s opt-in or opt-out consent for the collection and use of personal data under applicable laws and jurisdictions (GDPR, CPRA, etc.). You can set CONSENT_DECLINED
by calling setHasUserConsent(false), or CONSENT_GIVEN
with setHasUserConsent(true) depending on the user's consent collected by your application. Not setting consent will leave the status as CONSENT_STATUS_UNKNOWN
.
Pass the consent status with the HyprMXAdapterConfiguration before initializing AdMob.
Regional laws and regulations such as COPPA, GDPR, and Google Play Store policies require child-directed treatment of applicable users. If you participate in Google Play’s Families Program, are listed in Google Play’s Family section, or include children as one of the target audiences, it is your responsibility as the app developer to ensure compliance with regional laws and regulations, and, including, and not limited to, to prevent access to the AAID for end-users flagged as children.
For instructions on how to tag the ad request as child-directed, please follow .
By integrating the HyprMX SDK, you are agreeing to the .