Method: platforms.accounts.sites.delete

  • Deletes a specific site from a designated AdSense account.

  • Requires an HTTP DELETE request with the site's resource name in the URL path.

  • An empty request body is necessary, and a successful deletion results in an empty response body.

  • Authorization requires the https://www.googleapis.com/auth/adsense OAuth scope.

Deletes a site from a specified account.

HTTP request

DELETE https://adsenseplatform.googleapis.com/v1alpha/{name=platforms/*/accounts/*/sites/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the site to delete. Format: platforms/{platform}/accounts/{account}/sites/{site}

Request body

The request body must be empty.

Response body

If successful, the response body is an empty JSON object.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/adsense