[null,null,["上次更新時間:2025-08-21 (世界標準時間)。"],[[["\u003cp\u003eCreate an ad unit mapping under a specific AdMob account and ad unit using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eThis method requires specific authorization and might need account manager approval if access is denied.\u003c/p\u003e\n"],["\u003cp\u003eThe request should include the parent account and ad unit information in the URL path.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an \u003ccode\u003eAdUnitMapping\u003c/code\u003e object, and a successful response will return the newly created \u003ccode\u003eAdUnitMapping\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou'll need the \u003ccode\u003ehttps://www.googleapis.com/auth/admob.monetization\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],["This describes how to create an ad unit mapping within AdMob. A `POST` HTTP request is sent to the specified URL, including the `parent` path parameter (account and ad unit IDs). The request body requires an `AdUnitMapping` instance. A successful response returns the newly created `AdUnitMapping`. Access requires the `admob.monetization` OAuth scope. Access may be restricted, needing permission from an account manager.\n"],null,["# Method: accounts.adUnits.adUnitMappings.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nCreate an ad unit mapping under the specific AdMob account and ad unit.\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/*/adUnits/*}/adUnitMappings`\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 parent which owns the ad unit mapping. Format: accounts/{publisherId}/adUnits/{adUnitId} |\n\n### Request body\n\nThe request body contains an instance of [AdUnitMapping](/admob/api/reference/rest/v1beta/accounts.adUnits.adUnitMappings#AdUnitMapping).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [AdUnitMapping](/admob/api/reference/rest/v1beta/accounts.adUnits.adUnitMappings#AdUnitMapping).\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)."]]