AI-generated Key Takeaways
-
This page details how to create a site for a specified account using a POST request to the provided URL.
-
The request requires a
parentpath parameter in the formatplatforms/{platform}/accounts/{account_id}to specify the account. -
The request body should contain an instance of
Site, and a successful response body will also contain a newly created instance ofSite. -
The API call requires the
https://www.googleapis.com/auth/adsenseauthorization scope.
Creates a site for a specified account.
HTTP request
POST https://adsenseplatform.googleapis.com/v1/{parent=platforms/*/accounts/*}/sites
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. Account to create site. Format: platforms/{platform}/accounts/{account_id} |
Request body
The request body contains an instance of Site.
Response body
If successful, the response body contains a newly created instance of Site.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adsense