Method: accounts.provisionAccountTicket

  • The main purpose is to request a ticket for creating a Google Analytics account.

  • The HTTP request method is POST to the specified analyticsadmin API endpoint.

  • The request body requires an account object and a redirect URI string.

  • The successful response body contains an account ticket ID string.

  • The request requires the https://www.googleapis.com/auth/analytics.edit authorization scope.

Requests a ticket for creating an account.

HTTP request

POST https://analyticsadmin.googleapis.com/v1alpha/accounts:provisionAccountTicket

The URL uses gRPC Transcoding syntax.

Request body

The request body contains data with the following structure:

JSON representation
{
  "account": {
    object (Account)
  },
  "redirectUri": string
}
Fields
account

object (Account)

The account to create.

redirectUri

string

Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in Cloud Console as a Redirect URI.

Response body

Response message for accounts.provisionAccountTicket RPC.

If successful, the response body contains data with the following structure:

JSON representation
{
  "accountTicketId": string
}
Fields
accountTicketId

string

The param to be passed in the ToS link.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/analytics.edit