مطلوب. حساب AdMob الذي يملك هذه المجموعة من عمليات ربط الوحدات الإعلانية التنسيق: accounts/{publisherId} راجع https://support.google.com/admob/answer/2784578 للحصول على تعليمات حول كيفية العثور على الرقم التعريفي للناشر في AdMob.
مطلوب. رسالة الطلب التي تحدِّد عمليات ربط الوحدات الإعلانية المطلوب إنشاؤها. يمكن إنشاء 100 عملية ربط للوحدات الإعلانية بحدّ أقصى في دُفعة واحدة. إذا تجاوز عدد عمليات ربط الوحدات الإعلانية في الطلب المجمّع 100 عملية ربط، سيتم رفض الطلب بالكامل ولن يتم إنشاء أي عمليات ربط للوحدات الإعلانية.
نص الاستجابة
ردّ يحتوي على مجموعة من عمليات ربط الوحدات الإعلانية التي تم إنشاؤها
إذا كانت الاستجابة ناجحة، سيحتوي نص الاستجابة على بيانات بالبنية التالية:
تاريخ التعديل الأخير: 2025-08-21 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\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. |"]]