Google Ads API (v12)
Getting started
In order to start using the hibase connector to the Google Ads API (v12), you need to get a Developer Token and a OAuth2 Refresh Token from Google.
Navigate to your Google Ads Manager Account API Centre and first of all copy the Account ID you see right of the AdWords logo at the top of the page (e.g. 123-456-7890)
Fill out the form and apply for a Developer Token if you do not have one already. Apply for Basic API Access as described here. You will have to wait until your application is approved in order to start using the connector, but you can move on to the next steps already to ensure everything is set up
Navigate to the Google API Console Credentials page and select your Project (or create a new one if needed)
Click on Create Credentials, then OAuth client ID
Set up an OAuth consent screen if asked to do so. You only have to provide an Application name for the purpose of this guide
Back in the OAuth client ID setup form, select Web application as as Application type and provide a name for the application (e.g. hibase)
Under Authorized redirect URIs, type
https://developers.google.com/oauthplaygroundClick Create and note down the client ID and secret that are provided in the confirmation screen
Navigate to the Google OAuth2 Playground and click on the gear icon in the top-right corner
Paste your client ID and secret at the bottom of the form
On the left-hand side of the screen, under Select & authorize APIs, paste
https://www.googleapis.com/auth/adwordsand click Authorize APIs. Note that if you get a400error stating the redirect URI is not authorized, you might simply have to retry in a few minutes after the changes you just saved above have propagatedAuthenticate with your Google Account in the OAuth2 consent screen and grant permissions to manage AdWords campaigns
Back in the OAuth2 Playground, hit Exchange authorization code for tokens and copy the Refresh token that is provided
In your credentials page, you can now remove
https://developers.google.com/oauthplaygroundfrom the Authorized redirect URIs of your OAuth Client IDIn hibase, provide the Account ID, Developer Token, Client ID, Client Secret and Refresh Token when adding the Google Ads API connector