Method: platforms.accounts.sites.create
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."],[[["Creates a new AdSense site under a specified account using an HTTP POST request."],["Requires providing the parent platform and account ID as path parameters."],["The request body needs to contain the site details as defined in the `Site` object."],["Successful requests will return the newly created `Site` object in the response."],["Requires authorization with the `https://www.googleapis.com/auth/adsense` scope."]]],["A site is created for a given account using a POST request to the specified URL: `https://adsenseplatform.googleapis.com/v1alpha/{parent=platforms/*/accounts/*}/sites`. The `parent` parameter, indicating the account, is required in the URL path. The request body, which should be a `Site` object, defines the details of the site. A successful operation will return a `Site` object in the response body. Authorization with the OAuth scope `https://www.googleapis.com/auth/adsense` is required.\n"]]