Method: accounts.platforms.childAccounts.sites.patch
Stay organized with collections
Save and categorize content based on your preferences.
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-07-04 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 2025-07-04 UTC."],[[["\u003cp\u003eThis endpoint is used to update a specific Platform Child Site resource.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePATCH\u003c/code\u003e HTTP method is used, and the request URL includes a required path parameter to identify the resource to be updated.\u003c/p\u003e\n"],["\u003cp\u003eUpdating the resource is done through the \u003ccode\u003eupdateMask\u003c/code\u003e query parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should be an instance of \u003ccode\u003ePlatformChildSite\u003c/code\u003e, and if the update is successful, the response body will also be an instance of \u003ccode\u003ePlatformChildSite\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/adsense\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This document details updating a Platform Child Site via a `PATCH` request to a specific URL: `https://adsenseplatform.googleapis.com/v1alpha/{platformChildSite.name=accounts/*/platforms/*/childAccounts/*/sites/*}`. The `platformChildSite.name` is a required path parameter. An optional query parameter, `updateMask`, specifies fields to update. The request and response bodies both utilize the `PlatformChildSite` object. The request requires the `https://www.googleapis.com/auth/adsense` OAuth scope.\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\nUpdate a Platform Child Site.\n\nHTTP request\n\n`PATCH https://adsenseplatform.googleapis.com/v1alpha/{platformChildSite.name=accounts/*/platforms/*/childAccounts/*/sites/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|--------------------------|------------------------------------------------------------------------------------------------------------------------------|\n| `platformChildSite.name` | `string` Identifier. Format: accounts/{account}/platforms/{platform}/childAccounts/{child_account}/sites/{platformChildSite} |\n\nQuery parameters\n\n| Parameters ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Optional. The list of fields to update - currently only supports updating the `platformGroup` field. 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 [PlatformChildSite](/adsense/platforms/reference/rest/v1alpha/accounts.platforms.childAccounts.sites#PlatformChildSite).\n\nResponse body\n\nIf successful, the response body contains an instance of [PlatformChildSite](/adsense/platforms/reference/rest/v1alpha/accounts.platforms.childAccounts.sites#PlatformChildSite).\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/adsense`"]]