Method: generateWazeAccessToken

User login with Google OAuth credentials.

HTTP request

POST https://ads.wazeapis.com/v1/generateWazeAccessToken

The URL uses gRPC Transcoding syntax.

Request body

The request body contains data with the following structure:

JSON representation
{
  "googleAccessToken": string,
  "googleIdToken": string
}
Fields
googleAccessToken

string

Required. access_token received from https://accounts.google.com/o/oauth2/token. Follow the quickstart guide for how to obtain this parameter.

googleIdToken

string

Required. id_token received from https://accounts.google.com/o/oauth2/token. Follow the quickstart guide for how to obtain this parameter.

Response body

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

JSON representation
{
  "wazeAccessToken": string
}
Fields
wazeAccessToken

string

JSON Web Token that must be supplied as a Bearer token in an Authorization header to access all other API services, with the prefix Bearer added. See example queries in the developer documentation. The token is valid for one hour.