MediationGroupLine

Settings for an ad network used by a mediation group.

JSON representation
{
  "id": string,
  "displayName": string,
  "adSourceId": string,
  "cpmMode": enum (CpmMode),
  "cpmMicros": string,
  "adUnitMappings": {
    string: string,
    ...
  },
  "state": enum (State),
  "experimentVariant": enum (Variant)
}
Fields
id

string

The 16 digit ID for this mediation line e.g. 0123456789012345. When creating a new mediation group line, use a distinct negative integer as the ID place holder.

displayName

string

User-provided label for this mediation line. The maximum length allowed is 255 characters.

adSourceId

string

The ID of the ad source this mediation line is associated with.

cpmMode

enum (CpmMode)

Indicates how the CPM for this mediation line is provided.

Note that MANUAL and LIVE are the only fully-supported mode at the moment. Please use the AdMob UI (https://admob.google.com) if you wish to create or update to other cpm modes.

cpmMicros

string (int64 format)

The CPM for this allocation line. $0.01 is the minimum allowed amount. For LIVE CPM modes, the default amount is $0.01.

This value is ignored if cpmMode is LIVE.

Warning: "USD" is the only supported currency at the moment. The unit is in micros.

adUnitMappings

map (key: string, value: string)

References of the ad unit mappings for each ad unit associated with this mediation line.

Key is the ad unit ID, value is resource name of the ad unit mapping. For mediation lines where the ad source id is the AdMob Network, ad unit mappings will be ignored.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

state

enum (State)

The status of the mediation group line. Only enabled mediation group lines will be served.

experimentVariant

enum (Variant)

Output only. The Mediation A/B experiment variant to which the mediation group line belongs to.

CpmMode

Types of Cpm that an ad unit allocation line can have.

Enums
CPM_MODE_UNSPECIFIED Default value for an unset field. Do not use.
LIVE CPM is calculated per ad request based on the ad auction.
MANUAL CPM is set by the user manually.
ANO CPM is retrieved from the ad network using the publisher specified credentials. Output only.

State

Types of statuses available for a Mediation Group Line.

Enums
STATE_UNSPECIFIED Default value for an unset field. Do not use.
ENABLED The mediation group line is active and used to serve ads.
DISABLED The mediation group line has been disabled and is no longer served. Disabled mediation group lines can be re-enabled.
REMOVED The mediation group line will be removed and no longer served. Removed mediation group lines can not be re-enabled and will no longer be visible. This is an input only field.

Variant

The Mediation A/B experiment variant to which the mediation group line belongs to.

Enums
VARIANT_UNSPECIFIED Default value for an unset field. Do not use.
VARIANT_A The mediation group line belongs to the variant A.
VARIANT_B The mediation group line belongs to the variant B.
ORIGINAL The mediation group line isn't a part of an experiment.