Creating a Custom OAuth App
When to Create a Custom OAuth App
User Account Authentication
You might want to create a custom OAuth app to change the information displayed when users log into the Google Campaign Manager OAuth endpoint to grant permissions to the adapter.
Service Account Authentication
You need to create an OAuth app in the service account flow.
Create an OAuth App for User Account Authentication
Follow the procedure below to register an app and obtain the OAuthClientId and OAuthClientSecret.Create a Custom OAuth App: Desktop
- Log into the Google API Console and open a project. Select the API Manager from the main menu.
- Click Credentials -> Create Credentials -> OAuth Client Id. Click Other.
- Click Library -> DCM/DFA Reporting And Trafficking API -> Enable API.
Create an OAuth App for Service Account Authentication
To obtain the necessary authentication properties, follow the steps below to create an OAuth application and generate a private key:
- Log into the Google API Console and open a project. Select the API Manager from the main menu.
- Click Create Credentials -> Service Account Key.
- In the Service Account menu, select New Service Account or select an existing service account.
- If you are creating a new service account, additionally select one or more roles. You can assign primitive roles at the project level in the IAM and Admin section; other roles enable you to further customize access to Google APIs.
- In the Key Type section, select the P12 key type.
- Create the app to download the key pair. The private key's password is displayed: Set this in OAuthJWTCertPassword.
- In the service accounts section, click Manage Service Accounts and set OAuthJWTIssuer to the email address displayed in the service account Id field.