Method: partners.channels.sites.create
Stay organized with collections
Save and categorize content based on your preferences.
Creates a site in a channel.
HTTP request
POST https://displayvideo.googleapis.com/v1beta2/partners/{partnerId}/channels/{channelId}/sites
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
channelId |
string (int64 format)
Required. The ID of the parent channel in which the site will be created.
|
partnerId |
string (int64 format)
The ID of the partner that owns the parent channel.
|
Query parameters
Parameters |
advertiserId |
string (int64 format)
The ID of the advertiser that owns the parent channel.
|
Request body
The request body contains an instance of Site
.
Response body
If successful, the response body contains a newly created instance of Site
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/display-video
For more information, see the OAuth 2.0 Overview.
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 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eCreates a new site within a specified channel using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the parent channel and partner IDs as path parameters, and optionally the advertiser ID as a query parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain a Site object defining the new site's properties.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns the newly created Site object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: partners.channels.sites.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n\nCreates a site in a channel.\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v1beta2/partners/{partnerId}/channels/{channelId}/sites`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `channelId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the parent channel in which the site will be created. |\n| `partnerId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the partner that owns the parent channel. |\n\n### Query parameters\n\n| Parameters ||\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the advertiser that owns the parent channel. |\n\n### Request body\n\nThe request body contains an instance of [Site](/display-video/api/v1beta2/reference/rest/v1beta2/advertisers.channels.sites#Site).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Site](/display-video/api/v1beta2/reference/rest/v1beta2/advertisers.channels.sites#Site).\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/display-video`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]