Method: accounts.adclients.customchannels.patch
Updates 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
PATCH https://adsense.googleapis.com/v2/{customChannel.name=accounts/*/adclients/*/customchannels/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
customChannel.name |
string
Output only. Resource name of the custom channel. Format: accounts/{account}/adclients/{adclient}/customchannels/{customchannel}
|
Query parameters
Parameters |
updateMask |
string (FieldMask format)
The list of fields to update. If empty, a full update is performed. This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo" .
|
Request body
The request body contains an instance of CustomChannel
.
Response body
If successful, the response body contains an 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 2025-02-19 UTC.
[null,null,["Last updated 2025-02-19 UTC."],[[["This operation updates a custom channel, primarily for AdSense for Platforms publishers."],["It utilizes an HTTP PATCH request with path and query parameters for specifying the channel and update fields."],["The request body should contain a `CustomChannel` object outlining the desired changes."],["A successful response will return the updated `CustomChannel` object."],["Authorization requires the `https://www.googleapis.com/auth/adsense` scope."]]],["This documentation details updating a custom channel via a `PATCH` request to a specific URL. The URL path is defined by the `customChannel.name` parameter, and the request requires specific authorization scopes. The `updateMask` query parameter determines which fields are updated. The request body utilizes the `CustomChannel` resource, and upon success, the response body returns an updated `CustomChannel` instance. This method is restricted to specific projects, primarily for AdSense for Platforms publishers.\n"]]