MediationGroupLine
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-08-21 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-21 (UTC)."],[[["\u003cp\u003eMediation group settings configure ad networks for use within a mediation group.\u003c/p\u003e\n"],["\u003cp\u003eEach mediation line has an ID, display name, associated ad source, CPM mode, CPM value, ad unit mappings, and a state (enabled, disabled, or removed).\u003c/p\u003e\n"],["\u003cp\u003eCPM modes include LIVE (calculated per request), MANUAL (user-defined), and ANO (retrieved from the ad network).\u003c/p\u003e\n"],["\u003cp\u003eMediation lines can participate in A/B experiments, belonging to either variant A, variant B, or the original (non-experimental) group.\u003c/p\u003e\n"],["\u003cp\u003eThe status of a mediation line dictates whether it is actively serving ads (enabled), inactive but recoverable (disabled), or permanently removed.\u003c/p\u003e\n"]]],["This document details the settings for an ad network within a mediation group, specifying a JSON structure for a mediation line. Key elements include the `id`, `displayName`, `adSourceId`, and `cpmMode` (LIVE, MANUAL, or ANO). The `cpmMicros` value determines the CPM, with a minimum of $0.01 USD. `adUnitMappings` links ad units to the line. The `state` can be ENABLED, DISABLED, or REMOVED. `experimentVariant` indicates A/B test group allocation (VARIANT_A, VARIANT_B, or ORIGINAL).\n"],null,["# MediationGroupLine\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [CpmMode](#CpmMode)\n- [State](#State)\n- [Variant](#Variant)\n\nSettings for an ad network used by a mediation group.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"displayName\": string, \"adSourceId\": string, \"cpmMode\": enum (/admob/api/reference/rest/v1beta/MediationGroupLine#CpmMode), \"cpmMicros\": string, \"adUnitMappings\": { string: string, ... }, \"state\": enum (/admob/api/reference/rest/v1beta/MediationGroupLine#State), \"experimentVariant\": enum (/admob/api/reference/rest/v1beta/MediationGroupLine#Variant) } ``` |\n\n| Fields ||\n|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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. |\n| `displayName` | `string` User-provided label for this mediation line. The maximum length allowed is 255 characters. |\n| `adSourceId` | `string` The ID of the ad source this mediation line is associated with. |\n| `cpmMode` | `enum (`[CpmMode](/admob/api/reference/rest/v1beta/MediationGroupLine#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 (\u003chttps://admob.google.com\u003e) if you wish to create or update to other cpm modes. |\n| `cpmMicros` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` 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. |\n| `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\" }`. |\n| `state` | `enum (`[State](/admob/api/reference/rest/v1beta/MediationGroupLine#State)`)` The status of the mediation group line. Only enabled mediation group lines will be served. |\n| `experimentVariant` | `enum (`[Variant](/admob/api/reference/rest/v1beta/MediationGroupLine#Variant)`)` Output only. The Mediation A/B experiment variant to which the mediation group line belongs to. |\n\nCpmMode\n-------\n\nTypes of Cpm that an ad unit allocation line can have.\n\n| Enums ||\n|------------------------|----------------------------------------------------------------------------------------------|\n| `CPM_MODE_UNSPECIFIED` | Default value for an unset field. Do not use. |\n| `LIVE` | CPM is calculated per ad request based on the ad auction. |\n| `MANUAL` | CPM is set by the user manually. |\n| `ANO` | CPM is retrieved from the ad network using the publisher specified credentials. Output only. |\n\nState\n-----\n\nTypes of statuses available for a Mediation Group Line.\n\n| Enums ||\n|---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `STATE_UNSPECIFIED` | Default value for an unset field. Do not use. |\n| `ENABLED` | The mediation group line is active and used to serve ads. |\n| `DISABLED` | The mediation group line has been disabled and is no longer served. Disabled mediation group lines can be re-enabled. |\n| `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. |\n\nVariant\n-------\n\nThe Mediation A/B experiment variant to which the mediation group line belongs to.\n\n| Enums ||\n|-----------------------|---------------------------------------------------------|\n| `VARIANT_UNSPECIFIED` | Default value for an unset field. Do not use. |\n| `VARIANT_A` | The mediation group line belongs to the variant A. |\n| `VARIANT_B` | The mediation group line belongs to the variant B. |\n| `ORIGINAL` | The mediation group line isn't a part of an experiment. |"]]