-
Notifications
You must be signed in to change notification settings - Fork 0
[EXPERIMENTAL BRANCH] API access using own credentials (server to server flow)
For experimental branch ONLY
This documentation only applies if you're using the Google Ads API PHP Client Library (BETA) from the experimental branch. If you're not, please see the stable version's README instead.
This guide will walk you through how to setup OAuth2 for API access using your own credentials using server to server flow. These steps only need to be done once, unless you revoke or delete your OAuth2 credentials.
Follow the steps for the product you're using to generate a service account with a JSON key file, then come back to this page.
If you're an AdWords user, please note that this flow requires a Google Apps Domain.
Under the [OAUTH2] section of your adsapi_php.ini file, insert the path to your JSON key file and set the scope for the ads API you're accessing.
jsonKeyFilePath = "****"
scopes = "****"