Skip to content

Configure API

Requirements

  • Google Ads manager account: You need a Google Ads manager account to apply for the Google Ads API.
  • Developer token: This token lets your app connect to the Google Ads API. Each developer token is assigned an API access level which controls the number of API calls you can make per day with as well as the environment to which you can make calls.
  • Google API Console project: The project is used for generating an OAuth 2.0 client ID and secret for your app. The ID and secret can then be used to generate the OAuth 2.0 credentials needed in API calls to the Google Ads account. The project also enables the API to accept calls.
  • Google Ads client account: This is the account you're making API calls against. You need necessary permissions to operate on this account, such as fetching reports or making changes to campaigns. You also need the 10-digit account number of the account you're making API calls to. This is displayed in the Google Ads web interface in the form 123-456-7890.

Create Ads Manager Account

Follow this link, and follow the steps ( https://ads.google.com/home/tools/manager-accounts/ )

Create Ads Developer Token

Developer Token is required to validate that event transaction is legitimate to your GAds account.

  1. Go to Admin > API Center

Warning

If you do not find the API Center option it would mean that your account is not configured as a manager account, check the above section and Create Ads Manager Account

  1. Complete the fields with your personal data
  2. Select the company type as "independent Google Ads Developer"
  3. Set intended use as "recovery missing purchase conversions"
  4. Accept the terms
  5. Click on generate the token
  6. Copy the token and paste it in GAds section from module configuration

Create Ads API Acess Token

First we have to create an API Project

  1. Click at the top dropdown list
  2. Click on New Project

  1. Name it as "reaction-code-gapis"
  2. Click "Create" button
  3. Select the project and click on "APIs and Services" button

  1. Click on "+ Enable APIS and Services"

  1. Look for "Google Ads API" and enable it

  1. Click on credentials Configure Consent Screen

  1. Select External

  2. Click Create

Add the same