Getting an access token

We use Microsoft OAuth authentication endpoints with the client credentials flow. You can find Microsoft's documentation for the client credentials flow here.

Our technical support team will provide you with API credentials, including the following information:

  • client id (sometimes called application id)
  • client secret (sometimes called password)

Once you have API credentials, you can create an access token by calling the token endpoint.

You can then use the access_token value in the Authorization header for the API endpoints.

Authorization: Bearer <access_token>
Form Data
string
required

The client ID assigned to you

string
required

The client secret assigned to you

string
required
Defaults to client_credentials

The grant type. Always use client_credentials

string
enum
required

The type of API to request a token for (partners for advertisers APIs, reportingservice for publisher APIs)

Allowed:
Responses

Language
LoadingLoading…
Response
Choose an example:
application/json