Method: networks.sites.batchCreate
Stay organized with collections
Save and categorize content based on your preferences.
API to batch create Site
objects.
HTTP request
POST https://admanager.googleapis.com/v1/{parent}/sites:batchCreate
Path parameters
Parameters |
parent |
string
Required. The parent resource where Sites will be created. Format: networks/{networkCode} The parent field in the CreateSiteRequest must match this field.
|
Request body
The request body contains data with the following structure:
Fields |
requests[] |
object (CreateSiteRequest )
Required. The Site objects to create. A maximum of 100 objects can be created in a batch.
|
Response body
Response object for sites.batchCreate
method.
If successful, the response body contains data with the following structure:
JSON representation |
{
"sites": [
{
object (Site )
}
]
} |
Fields |
sites[] |
object (Site )
The Site objects created.
|
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/admanager
For more information, see the OAuth 2.0 Overview.
CreateSiteRequest
Request object for sites.create
method.
JSON representation |
{
"parent": string,
"site": {
object (Site )
}
} |
Fields |
parent |
string
Required. The parent resource where this Site will be created. Format: networks/{networkCode}
|
site |
object (Site )
Required. The Site to create.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[],[],null,["# Method: networks.sites.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.BatchCreateSitesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [CreateSiteRequest](#CreateSiteRequest)\n - [JSON representation](#CreateSiteRequest.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nAPI to batch create `Site` objects.\n\n### HTTP request\n\n`POST https://admanager.googleapis.com/v1/{parent}/sites:batchCreate`\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent resource where `Sites` will be created. Format: `networks/{networkCode}` The parent field in the CreateSiteRequest must match this field. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requests\": [ { object (/ad-manager/api/beta/reference/rest/v1/networks.sites/batchCreate#CreateSiteRequest) } ] } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requests[]` | `object (`[CreateSiteRequest](/ad-manager/api/beta/reference/rest/v1/networks.sites/batchCreate#CreateSiteRequest)`)` Required. The `Site` objects to create. A maximum of 100 objects can be created in a batch. |\n\n### Response body\n\nResponse object for `sites.batchCreate` method.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------|\n| ``` { \"sites\": [ { object (/ad-manager/api/beta/reference/rest/v1/networks.sites#Site) } ] } ``` |\n\n| Fields ||\n|-----------|-------------------------------------------------------------------------------------------------------------|\n| `sites[]` | `object (`[Site](/ad-manager/api/beta/reference/rest/v1/networks.sites#Site)`)` The `Site` objects created. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/admanager`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2).\n\nCreateSiteRequest\n-----------------\n\nRequest object for `sites.create` method.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------|\n| ``` { \"parent\": string, \"site\": { object (/ad-manager/api/beta/reference/rest/v1/networks.sites#Site) } } ``` |\n\n| Fields ||\n|----------|-----------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent resource where this `Site` will be created. Format: `networks/{networkCode}` |\n| `site` | `object (`[Site](/ad-manager/api/beta/reference/rest/v1/networks.sites#Site)`)` Required. The `Site` to create. |"]]