Google Ads API (opens in a new tab) authentication is based on OAuth 2.0 authorization (opens in a new tab) along with Developer Token (opens in a new tab).
Two methods are supported: OAuth 2.0 and Application Default Credentials.
Note: See the official documentation (opens in a new tab) describing different authorization options.
OAuth 2.0
The following options are available when using OAuth:
-
Using an existing access token
This token should be authorized for
https://www.googleapis.com/auth/adwords
scope (e.g. by using OAuth 2.0 Playground (opens in a new tab)). -
Using OAuth client ID & client secret
You can get your own OAuth credentials using this guide (opens in a new tab).
Application Default Credentials
See the official Application Default Credentials guide (opens in a new tab).
Note: You will still need to authorize these credentials for https://www.googleapis.com/auth/adwords
scope.
Available options are all the same options described here (opens in a new tab) in detail.