Method: accounts.adclients.customchannels.create
Stay organized with collections
Save and categorize content based on your preferences.
Creates a custom channel.
This method can be called only by a restricted set of projects, which are usually owned by AdSense for Platforms publishers. Contact your account manager if you need to use this method.
HTTP request
POST https://adsense.googleapis.com/v2/{parent=accounts/*/adclients/*}/customchannels
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The ad client to create a custom channel under. Format: accounts/{account}/adclients/{adclient}
|
Request body
The request body contains an instance of CustomChannel
.
Response body
If successful, the response body contains a newly created instance of CustomChannel
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adsense
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-08-21 UTC.
[null,null,["Last updated 2024-08-21 UTC."],[[["\u003cp\u003eCreates a new custom channel under a specified ad client for use with AdSense for Platforms publishers.\u003c/p\u003e\n"],["\u003cp\u003eThe method requires authorization using the \u003ccode\u003ehttps://www.googleapis.com/auth/adsense\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eIt involves sending a POST request to a specific URL with details about the custom channel in the request body.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful execution, the response includes the details of the newly created custom channel.\u003c/p\u003e\n"],["\u003cp\u003eThis functionality is restricted and primarily intended for use by projects associated with AdSense for Platforms publishers.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.adclients.customchannels.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- [Try it!](#try-it)\n\nCreates a custom channel.\n\nThis method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method.\n\n### HTTP request\n\n`POST https://adsense.googleapis.com/v2/{parent=accounts/*/adclients/*}/customchannels`\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 ad client to create a custom channel under. Format: accounts/{account}/adclients/{adclient} |\n\n### Request body\n\nThe request body contains an instance of [CustomChannel](/adsense/management/reference/rest/v2/accounts.adclients.customchannels#CustomChannel).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [CustomChannel](/adsense/management/reference/rest/v2/accounts.adclients.customchannels#CustomChannel).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/adsense`"]]