Method: platforms.accounts.create

Creates a sub-account.

HTTP request

POST https://adsenseplatform.googleapis.com/v1alpha/{parent=platforms/*}/accounts

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Platform to create an account for. Format: platforms/{platform}

Query parameters

Parameters
requestId

string

Required. An opaque token that uniquely identifies the account to be created among all the platform's accounts.

This string may contain at most 64 non-whitespace ASCII characters, but otherwise has no predefined structure. However, it is expected to be a platform-specific identifier for the user creating the account, so that only a single account can be created for any given user.

This field must not contain any information that is recognizable as personally identifiable information. e.g. it should not be an email address or login name.

Account creation for a given requestId is idempotent. Once an account has been created, a second attempt to create an account using the same requestId will simply return the original account (and will otherwise ignore all fields specified in the request Account field above).

Request body

The request body contains an instance of Account.

Response body

If successful, the response body contains a newly created instance of Account.

Authorization scopes

Requires the following OAuth scope:

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