

OAuth Service Account Flow


Step 1 - Creating OAuth2 credentials


Step 2 - Adding Private Key JSON and Delegate Account to Configuration

Set the private key JSON file path and delegate account ID in your configuration. If you're using a google-ads.yaml file, YAML string or dict add the following:

path_to_private_key_file: PRIVATE_KEY_FILE_PATH
delegated_account: DELEGATE_ACCOUNT

If you're using environment variables add the following to your bash configuration or environment: