Dieses Paket enthält den InMobi-Vermittlungsadapter für das Google Mobile Ads (GMA) React Native SDK, das die neue React Native-Architektur (TurboModules) unterstützt.
Nutzung
Wenn Sie Targeting-Parameter an InMobi übergeben möchten, geben Sie InMobiMediationExtras in Ihrem AdRequest an:
import { AdRequest } from '@google/mobile-ads';
import {
InMobiMediationExtras,
InMobiAgeGroup,
InMobiEducation,
InMobiLogLevel,
} from 'gma-mediation-inmobi';
const inmobiExtras = new InMobiMediationExtras({
ageGroup: InMobiAgeGroup.BETWEEN_25_AND_29,
education: InMobiEducation.COLLEGE_OR_GRADUATE,
logLevel: InMobiLogLevel.DEBUG,
postalCode: '12345',
city: 'NY',
state: 'NY',
country: 'US',
interests: 'sports',
keywords: 'football',
});
const request: AdRequest = {
adUnitId: 'YOUR_AD_UNIT_ID',
mediationExtras: [inmobiExtras],
};| Klassen | |
|---|---|
In
|
Zusätzliche Vermittlungsfunktionen für den InMobi-Adapter. |
| Schnittstellen | |
|---|---|
In
|
Parameter zum Konfigurieren von InMobi-Mediationsextras.
|
| Typaliasse | |
|---|---|
In
|
Typ, der eine Altersgruppe für die demografische Zielgruppe von InMobi darstellt.
|
In
|
Typ, der den Bildungsabschluss einer demografischen Zielgruppe von InMobi darstellt.
|
In
|
Typ, der eine Protokollebene des InMobi SDK darstellt. |
| Variablen | |
|---|---|
In
|
Export des InMobi-Vermittlungs-Namespace. |
Typaliasse
InMobiAgeGroup
InMobiAgeGroup: typeof InMobiAgeGroup[keyof typeof InMobiAgeGroup]
InMobiEducation
InMobiEducation: typeof InMobiEducation[keyof typeof InMobiEducation]
| Attribute | |
|---|---|
COLLEGE_
|
Hochschul- oder Bachelorabschluss |
HIGH_
|
Weiterführende Schule oder niedriger |
POST_
|
Postgraduiertenstudium oder höher |
InMobiLogLevel
InMobiLogLevel: typeof InMobiLogLevel[keyof typeof InMobiLogLevel]
| Attribute | |
|---|---|
DEBUG
|
Debugging-Logebene. |
ERROR
|
Fehler-Logebene. |
NONE
|
Logging deaktiviert. |
Variablen
Const InMobiMediation
InMobiMediation: {} = {}
InMobiMediationExtras
Zusätzliche Vermittlungsfunktionen für den InMobi-Adapter.
| Konstruktoren | |
|---|---|
constructor
|
|
| Attribute | |
|---|---|
android
|
Der Name der zusätzlichen Adapterklasse für die Android-Vermittlung.
|
extras
|
Die zusätzlichen Parameter, die an den Vermittlungsadapter übergeben werden.
|
ios
|
Der Name der zusätzlichen Adapterklasse für die iOS-Vermittlung. |
Konstruktoren
constructor
new InMobiMediationExtras(params?): InMobiMediationExtras
| Parameter | |
|---|---|
|
|
| Ausgabe | |
|---|---|
InMobiMediationExtras
|
|
Attribute
Readonly androidAdapterClassName
androidAdapterClassName:
"com.google.mobileads.mediation.inmobi.InMobiMediationExtras"
=
"com.google.mobileads.mediation.inmobi.InMobiMediationExtras"
Readonly Extras
extras: Readonly<Record<string, unknown>>
Readonly iosAdapterClassName
iosAdapterClassName:
"GADRInMobiMediationExtras" = "GADRInMobiMediationExtras"
InMobiMediationExtrasParams
Parameter zum Konfigurieren von InMobi-Mediationsextras.
| Attribute | |
|---|---|
age
|
Das genaue Alter des Nutzers. |
age
|
Die Altersgruppe des Nutzers. |
area
|
Die Ortsvorwahl des Standorts des Nutzers. |
city
|
Die Stadt des Nutzerstandorts. |
country
|
Das Land des Standorts des Nutzers. |
education
|
Der Bildungsabschluss des Nutzers. |
interests
|
Eine durch Kommas getrennte Liste der Nutzerinteressen. |
keywords
|
Durch Kommas getrennte Liste von Targeting-Keywords. |
language
|
Die bevorzugte Sprache des Nutzers, z. B. ein ISO-Sprachcode.
|
log
|
Die Protokollebene für das InMobi SDK. |
postal
|
Die Postleitzahl des Standorts des Nutzers. |
state
|
Der Status des Standorts des Nutzers. |
year
|
Das Geburtsjahr des Nutzers. |
Attribute
Optional Readonly age
age?: number
Optional Readonly ageGroup
ageGroup?:
InMobiAgeGroup
Optional Readonly areaCode
areaCode?:
string
Optional Readonly Ort
city?: string
Optional Readonly country
country?: string
Optional Readonly education
education?:
InMobiEducation
Optional Readonly Interessen
interests?:
string
Optional Readonly Keywords
keywords?:
string
Optional Readonly language
language?:
string
Optional Readonly logLevel
logLevel?:
InMobiLogLevel
Optional Readonly
postalCode
postalCode?:
string
Optional Readonly state
state?: string
Optional Readonly
yearOfBirth
yearOfBirth?:
number