AppLovin Mediation API

This package provides the AppLovin mediation adapter for the Google Mobile Ads (GMA) React Native SDK, supporting the React Native New Architecture (TurboModules).

Usage

1. Privacy Settings

Configure user consent and privacy flags for the AppLovin adapter:

import { AppLovinMediation } from 'gma-mediation-applovin';

// Set user consent (GDPR)
AppLovinMediation.setHasUserConsent(true);

// Set Do Not Sell (CCPA)
AppLovinMediation.setDoNotSell(false);

2. Mediation Extras

To pass network-specific parameters (such as muting audio) to AppLovin, supply AppLovinMediationExtras in your AdRequest:

import { AdRequest } from '@google/mobile-ads';
import { AppLovinMediationExtras } from 'gma-mediation-applovin';

const request: AdRequest = {
  adUnitId: 'YOUR_AD_UNIT_ID',
  mediationExtras: [
    new AppLovinMediationExtras({
      isMuted: true,
    }),
  ],
};

Classes
AppLovinMediationExtras
Mediation extras for the AppLovin adapter.
Interfaces
AppLovinMediationExtrasParams
Parameter interface for building AppLovin mediation extras.
Variables
AppLovinMediation
Mediation privacy settings for AppLovin.

Variables


Const AppLovinMediation

AppLovinMediation: {
  setDoNotSell(doNotSell): void;
  setHasUserConsent(hasUserConsent): void;
}
Mediation privacy settings for AppLovin.

AppLovinMediationExtras

Mediation extras for the AppLovin adapter.
Constructors
constructor
Properties
androidAdapterClassName
The Android mediation extra adapter class name.
extras
The extra parameters passed to the mediation adapter.
iosAdapterClassName
The iOS mediation extra adapter class name.
isMuted
Specifies whether the loaded AppLovin ad will be muted or not.

Constructors


constructor

new AppLovinMediationExtras(params): AppLovinMediationExtras

Properties


Readonly androidAdapterClassName

androidAdapterClassName: "com.google.mobileads.mediation.applovin.AppLovinMediationExtras" = "com.google.mobileads.mediation.applovin.AppLovinMediationExtras"
The Android mediation extra adapter class name.

Readonly extras

extras: Readonly<Record<string, unknown>>
The extra parameters passed to the mediation adapter.

Readonly iosAdapterClassName

iosAdapterClassName: "AppLovinMediationExtras" = "AppLovinMediationExtras"
The iOS mediation extra adapter class name.

Readonly isMuted

isMuted: boolean
Specifies whether the loaded AppLovin ad will be muted or not.

AppLovinMediationExtrasParams

Parameter interface for building AppLovin mediation extras.
Properties
isMuted
Whether to mute audio for the ad.

Properties


Readonly isMuted

isMuted: boolean
Whether to mute audio for the ad.