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.
[[["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 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,["- [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\nHTTP 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\nPath 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\nQuery 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\nRequest body\n\nThe request body contains an instance of [CustomChannel](/adsense/management/reference/rest/v2/accounts.adclients.customchannels#CustomChannel).\n\nResponse body\n\nIf successful, the response body contains an instance of [CustomChannel](/adsense/management/reference/rest/v2/accounts.adclients.customchannels#CustomChannel).\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/adsense`"]]