Google Ads

If you don't already have a developer token from Google Ads, make sure you follow the instructions so your request doesn't get denied.

Sync overview

This source can sync data for the Google Ads.

Output schema

This source is capable of syncing the following streams:

Main streams:

Report streams

Features

Feature

Supported?

Full Refresh Sync

Yes

Incremental Sync

Yes

Replicate Incremental Deletes

No

SSL connection

Yes

Namespaces

No

Performance considerations

This source is constrained by whatever API limits are set for the Google Ads that is used. You can read more about those limits in the google developer docs.

Getting started

Requirements

Google Ads Account with an approved Developer Token (note: In order to get API access to Google Ads, you must have a "manager" account. This must be created separately from your standard account. You can find more information about this distinction in the google ads docs.)

  • developer_token

  • client_id

  • client_secret

  • refresh_token

  • start_date

  • customer_id

  • login_customer_id (you can find more information about this field in Google Ads docs)

Setup guide

This guide will provide information as if starting from scratch. Please skip over any steps you have already completed.

  • Create an Google Ads Account. Here are Google's instruction on how to create one.

  • Create an Google Ads MANAGER Account. Here are Google's instruction on how to create one.

  • You should now have two Google Ads accounts: a normal account and a manager account. Link the Manager account to the normal account following Google's documentation.

  • Apply for a developer token (make sure you follow our instructions) on your Manager account. This token allows you to access your data from the Google Ads API. Here are Google's instructions. The docs are a little unclear on this point, but you will not be able to access your data via the Google Ads API until this token is approved. You cannot use a test developer token, it has to be at least a basic developer token. It usually takes Google 24 hours to respond to these applications. This developer token is the value you will use in the developer_token field.

  • Fetch your client_id, client_secret, and refresh_token. Google provides instructions on how to do this.

  • Select your customer_id. The customer_is refer to the id of each of your Google Ads accounts. This is the 10 digit number in the top corner of the page when you are in google ads ui. The source will only pull data from the accounts for which you provide an id. If you are having trouble finding it, check out Google's instructions.

Wow! That was a lot of steps. We are working on making the OAuth flow for all of our connectors simpler (allowing you to skip needing to get a developer_token and a refresh_token which are the most painful / time-consuming steps in this walkthrough).

How to apply for the developer token

Google is very picky about which software and which use case can get access to a developer token. The Airbyte team has worked with the Google Ads team to whitelist Airbyte and make sure you can get one (see issue 1981 for more information).

When you apply for a token, you need to mention:

  • Why you need the token (eg: want to run some internal analytics...)

  • That you will be using the Airbyte Open Source project

  • That you have full access to the code base (because we're open source)

  • That you have full access to the server running the code (because you're self-hosting Airbyte)

If for any reason the request gets denied, let us know and we will be able to unblock you.

Understanding Google Ads Query Language

The Google Ads Query Language can query the Google Ads API. Check out Google Ads Query Language

CHANGELOG

Version

Date

Pull Request

Subject

0.1.10

2021-09-13

#6022

Annotate Oauth2 flow initialization parameters in connector spec

0.1.9

2021-09-07

#5302

Add custom query stream support

0.1.8

2021-08-03

#5509

allow additionalProperties in spec.json

0.1.7

2021-08-03

#5422

Correct query to not skip dates

0.1.6

2021-08-03

#5423

Added new stream UserLocationReport

0.1.5

2021-08-03

#5159

Add field login_customer_id to spec

0.1.4

2021-07-28

#4962

Support new Report streams

0.1.3

2021-07-23

#4788

Support main streams, fix bug with exception DATE_RANGE_TOO_NARROW for incremental streams

0.1.2

2021-07-06

#4539

Add AIRBYTE_ENTRYPOINT for Kubernetes support

0.1.1

2021-06-23

#4288

Bugfix: Correctly declare required parameters