Method: accounts.adclients.customchannels.patch
Stay organized with collections
Save and categorize content based on your preferences.
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-28 UTC.
[null,null,["Last updated 2025-02-28 UTC."],[[["\u003cp\u003eThis operation updates a custom channel, primarily for AdSense for Platforms publishers.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes an HTTP PATCH request with path and query parameters for specifying the channel and update fields.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain a \u003ccode\u003eCustomChannel\u003c/code\u003e object outlining the desired changes.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will return the updated \u003ccode\u003eCustomChannel\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/adsense\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["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"],null,["# Method: accounts.adclients.customchannels.patch\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- [Try it!](#try-it)\n\nUpdates 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`PATCH https://adsense.googleapis.com/v2/{customChannel.name=accounts/*/adclients/*/customchannels/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| `customChannel.name` | `string` Output only. Resource name of the custom channel. Format: accounts/{account}/adclients/{adclient}/customchannels/{customchannel} |\n\n### Query parameters\n\n| Parameters ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` 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\"`. |\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 an 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`"]]