v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13101321.0 KB
platforms

Creates a sub-account.

post/v1/{+parent}/accounts

Path parameters

parentstring required

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

Request body

state'STATE_UNSPECIFIED' | 'UNCHECKED' | 'APPROVED' | 'DISAPPROVED'

Output only. Approval state of the account.

displayNamestring

Display name of this account.

regionCodestring

Required. Input only. CLDR region code of the country/region of the address. Set this to country code of the child account if known, otherwise to your own country code.

createTimestring google-datetime

Output only. Creation time of the account.

namestring

Output only. Resource name of the account. Format: platforms/pub-[0-9]+/accounts/pub-[0-9]+

creationRequestIdstring

Required. An opaque token that uniquely identifies the account 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. Once an account has been created, a second attempt to create an account using the same creation_request_id will result in an ALREADY_EXISTS error.

Response

Successful response