AI-generated Key Takeaways
-
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.
Creates a site for a specified account.
HTTP request
POST https://adsenseplatform.googleapis.com/v1alpha/{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