REST Resource: accounts.adUnits.adUnitMappings
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
리소스: AdUnitMapping
AdMob 광고 단위를 서드 파티 광고 단위에 매핑하기 위한 설정입니다.
JSON 표현 |
{
"name": string,
"adapterId": string,
"state": enum (State ),
"adUnitConfigurations": {
string: string,
...
},
"displayName": string
} |
필드 |
name |
string
이 광고 단위 매핑의 리소스 이름입니다. 형식은 accounts/{publisherId}/adUnits/{ad_unit_id_fragment}/adUnitMappings/{adUnitMappingId}입니다. 예: accounts/pub-1234567890123456/adUnits/0123456789/adUnitMappings/987654321
|
adapterId |
string (int64 format)
이 광고 단위 매핑에 사용되는 미디에이션 광고 소스 어댑터의 ID입니다. 어댑터는 ad_network_settings에 필요한 정보를 결정합니다.
|
state |
enum (State )
출력 전용입니다. 이 광고 단위 매핑의 상태입니다.
|
adUnitConfigurations |
map (key: string (int64 format), value: string)
타사 광고 네트워크에 광고를 요청하기 위한 지정된 광고 단위의 설정입니다. 광고 네트워크에서 요청한 키에 대해 사용자가 설정한 값이 포함된 키-값 쌍입니다. 네트워크 설정을 구성하는 방법에 대한 자세한 내용은 https://support.google.com/admob/answer/3245073을 참조하세요. "key": value 쌍 목록을 포함하는 객체입니다. 예: { "name": "wrench", "mass": "1.3kg", "count": "3" }
|
displayName |
string
선택사항입니다. 이 광고 단위 매핑 인스턴스의 표시 이름입니다.
|
주
광고 단위 매핑의 상태입니다. 새로 생성된 광고 단위 매핑이 '사용 설정됨'으로 설정되었습니다.
출력 전용입니다.
열거형 |
STATE_UNSPECIFIED |
기본값입니다. |
ENABLED |
광고 단위 매핑이 활성 상태이며 광고를 게재하거나 통계를 수집하는 데 사용됩니다. |
메서드 |
|
특정 AdMob 계정 및 광고 단위 아래에서 광고 단위 매핑을 만듭니다. |
|
지정된 AdMob 계정 및 광고 단위 아래에 광고 단위 매핑을 나열합니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-21(UTC)
[null,null,["최종 업데이트: 2025-08-21(UTC)"],[[["\u003cp\u003eAdUnitMapping settings allow you to link an AdMob ad unit to a third-party ad unit for mediation.\u003c/p\u003e\n"],["\u003cp\u003eThe mapping includes configurations like adapter ID, state (enabled/disabled), and custom network settings.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage these mappings through methods to create and list them for specific AdMob accounts and ad units.\u003c/p\u003e\n"],["\u003cp\u003eAd unit mappings start in an enabled state and can be used to serve ads or gather statistics.\u003c/p\u003e\n"]]],["AdUnitMapping resources connect AdMob ad units to third-party ad units. Key actions involve creating and listing these mappings. Each mapping includes a name, adapter ID, state (like ENABLED), and ad unit configurations—settings for the third-party ad network. The `displayName` is an optional name for the mapping. The `State` field indicates the mapping's status. `adUnitConfigurations` contains key-value pairs for the third party settings.\n"],null,["# REST Resource: accounts.adUnits.adUnitMappings\n\n- [Resource: AdUnitMapping](#AdUnitMapping)\n - [JSON representation](#AdUnitMapping.SCHEMA_REPRESENTATION)\n- [State](#State)\n- [Methods](#METHODS_SUMMARY)\n\nResource: AdUnitMapping\n-----------------------\n\nSettings to map an AdMob ad unit to a 3rd party ad unit.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"adapterId\": string, \"state\": enum (/admob/api/reference/rest/v1beta/accounts.adUnits.adUnitMappings#State), \"adUnitConfigurations\": { string: string, ... }, \"displayName\": string } ``` |\n\n| Fields ||\n|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Resource name of this ad unit mapping. Format is: accounts/{publisherId}/adUnits/{ad_unit_id_fragment}/adUnitMappings/{adUnitMappingId} Example: accounts/pub-1234567890123456/adUnits/0123456789/adUnitMappings/987654321 |\n| `adapterId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of mediation ad source adapter used by this ad unit mapping. The adapter determines the information needed in the ad_network_settings. |\n| `state` | `enum (`[State](/admob/api/reference/rest/v1beta/accounts.adUnits.adUnitMappings#State)`)` Output only. The status of this ad unit mapping. |\n| `adUnitConfigurations` | `map (key: string (`[int64](https://developers.google.com/discovery/v1/type-format)` format), value: string)` Settings for the specified ad unit to make an ad request to 3rd party ad network. Key-value pairs with values set by the user for the keys requested by the ad network. Please see \u003chttps://support.google.com/admob/answer/3245073\u003e for details on how to configure the network settings. An object containing a list of `\"key\": value` pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`. |\n| `displayName` | `string` Optional. The display name of this ad unit mapping instance. |\n\nState\n-----\n\nStatus of the ad unit mapping. Newly created ad unit mapping is set to ENABLED.\n\nOutput only.\n\n| Enums ||\n|---------------------|--------------------------------------------------------------------------|\n| `STATE_UNSPECIFIED` | The default value. |\n| `ENABLED` | The ad unit mapping is active and used to serve ads or collecting stats. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------|\n| ### [create](/admob/api/reference/rest/v1beta/accounts.adUnits.adUnitMappings/create) | Create an ad unit mapping under the specific AdMob account and ad unit. |\n| ### [list](/admob/api/reference/rest/v1beta/accounts.adUnits.adUnitMappings/list) | List ad unit mappings under the specified AdMob account and ad unit. |"]]