Wajib. Akun AdMob yang memiliki kumpulan pemetaan unit iklan ini. Format: accounts/{publisherId} Lihat https://support.google.com/admob/answer/2784578 untuk mendapatkan petunjuk tentang cara menemukan ID penayang AdMob Anda.
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Wajib. Pesan permintaan yang menentukan pemetaan unit iklan yang akan dibuat. Maksimum 100 pemetaan unit iklan dapat dibuat dalam satu kelompok. Jika jumlah pemetaan unit iklan dalam permintaan batch melebihi 100, seluruh permintaan akan ditolak dan pemetaan unit iklan tidak akan dibuat.
Isi respons
Respons yang berisi sekumpulan pemetaan unit iklan yang dibuat.
Jika berhasil, isi respons memuat data dengan struktur berikut:
[null,null,["Terakhir diperbarui pada 2025-08-21 UTC."],[[["\u003cp\u003eBatch create up to 100 ad unit mappings under a specific AdMob account.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehttps://www.googleapis.com/auth/admob.monetization\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"],["\u003cp\u003eUses a POST request to \u003ccode\u003ehttps://admob.googleapis.com/v1beta/{parent=accounts/*}/adUnitMappings:batchCreate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body includes an array of \u003ccode\u003eCreateAdUnitMappingRequest\u003c/code\u003e objects, each specifying an ad unit mapping to create.\u003c/p\u003e\n"],["\u003cp\u003eThe response body contains an array of created \u003ccode\u003eAdUnitMapping\u003c/code\u003e objects.\u003c/p\u003e\n"]]],["This content describes how to batch create ad unit mappings within an AdMob account using a `POST` request to the `adUnitMappings:batchCreate` endpoint. The request must include the `parent` account ID in the URL. The request body contains an array of `CreateAdUnitMappingRequest` objects, with a maximum of 100. The response body returns an array of the successfully created `adUnitMappings`. This method requires `admob.monetization` authorization scope and is subject to access limitations.\n"],null,["# Method: accounts.adUnitMappings.batchCreate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.BatchCreateAdUnitMappingsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [CreateAdUnitMappingRequest](#CreateAdUnitMappingRequest)\n - [JSON representation](#CreateAdUnitMappingRequest.SCHEMA_REPRESENTATION)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nBatch create the ad unit mappings under the specific AdMob account. The maximum allowed batch size is 100.\n\n\u003cbr /\u003e\n\n| This method has limited access. If you see a 403 permission denied error, please reach out to your account manager for access.\n\n\u003cbr /\u003e\n\n### HTTP request\n\n`POST https://admob.googleapis.com/v1beta/{parent=accounts/*}/adUnitMappings:batchCreate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The AdMob account which owns this collection of ad unit mappings. Format: accounts/{publisherId} See \u003chttps://support.google.com/admob/answer/2784578\u003e for instructions on how to find your AdMob publisher ID. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requests\": [ { object (/admob/api/reference/rest/v1beta/accounts.adUnitMappings/batchCreate#CreateAdUnitMappingRequest) } ] } ``` |\n\n| Fields ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requests[]` | `object (`[CreateAdUnitMappingRequest](/admob/api/reference/rest/v1beta/accounts.adUnitMappings/batchCreate#CreateAdUnitMappingRequest)`)` Required. The request message specifying the ad unit mappings to create. A maximum of 100 ad unit mappings can be created in a batch. If the number of ad unit mappings in the batch request exceed 100, the entire request will be rejected and no ad unit mappings will be created. |\n\n### Response body\n\nResponse containing a batch of created ad unit mappings.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"adUnitMappings\": [ { object (/admob/api/reference/rest/v1beta/accounts.adUnits.adUnitMappings#AdUnitMapping) } ] } ``` |\n\n| Fields ||\n|--------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `adUnitMappings[]` | `object (`[AdUnitMapping](/admob/api/reference/rest/v1beta/accounts.adUnits.adUnitMappings#AdUnitMapping)`)` The Ad units mappings created under the requested account. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/admob.monetization`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2).\n\nCreateAdUnitMappingRequest\n--------------------------\n\nRequest to create an ad unit mapping under the specific AdMob account and ad unit.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"parent\": string, \"adUnitMapping\": { object (/admob/api/reference/rest/v1beta/accounts.adUnits.adUnitMappings#AdUnitMapping) } } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent which owns the ad unit mapping. Format: accounts/{publisherId}/adUnits/{adUnitId} |\n| `adUnitMapping` | `object (`[AdUnitMapping](/admob/api/reference/rest/v1beta/accounts.adUnits.adUnitMappings#AdUnitMapping)`)` Required. The ad unit mapping to create. |"]]