Connectors / Service / Google Ads

Artisan IMG > Google Ads (google-ads)

Google Ads

Google Ads is Google's advertising system in which advertisers bid on certain keywords in order for their clickable ads to appear in Google's search results.

Overview

Google Ads is an online advertising platform developed by Google, where advertisers pay to display brief advertisements, service offerings, product listings, video content, and generate mobile application installs within the Google Ads network to web users.

API INFO: The Base URL used for the google-ads connector is https://googleads.googleapis.com/v6. More information can be found on their main API documentation (v6) site.

Below is an example of a way in which you could potentially use the Google Ads connector, to retrieve the details of a custom audience.

The steps will be as follows:

  1. Setup using a manual trigger and list all the custom audiences.

  2. Loop through the received list of custom audiences.

  3. Retrieve the details of each custom audience.

Your completed workflow should look similar to this:

google-ads-complete-workflow

1 - Setup Trigger & List custom audiences

Select the manual trigger from the trigger options available. From the connectors panel on the left, add a Google Ads connector to your workflow. Set the operation to 'List resources'.

google-ads-step-1

Feel free to re-name your steps as you go along to make things clearer for yourself and other users. The operation names themselves often suffice.

Upon completion, you will have set up the manual trigger and fetched a list of all the custom audiences.

2 - Loop collection

Next, search for the Loop collection connector within your connector panel, and drag it into your workflow as your next step. Set your operations to 'Loop list'.

The Loop Collection connector allows you to iterate through a list of results. In this example, we will use it to iterate through the data found within the previous Google Ads connector step.

In order to specify the list you want to loop through, start by using the list mapping icon (found next to the list input field, within the properties panel) to generate the connector-snake.

While hovering over the 'List Custom Audiences' step (with the tail end of the connector-snake), select results from the list of output properties displayed. This will auto-populate a jsonpath within your list input field, and update the type selector to jsonpath.

For more clarification on the pathways you have available, open the Debug panel to view your step's Input and Output.

JSONPATHS: For more information on what jsonpaths are and how to use jsonpaths with Tray.io, please see our Intro page and Data Guide for more details.

CONNECTOR-SNAKE: The simplest and easiest way to generate your jsonpaths is to use our feature called the Connector-snake. Please see the main page for more details.

google-ads-step-2-loop

Now, you will be able to loop through the list of the custom audience you have fetched in the first step.

3 - Get custom audience details

The last step is to drag a Google Ads connector inside of the Loop Collection step itself. Set the operation to 'Get resource'. As you can see, the 'Resource name' field is required.

Use the connector snake and hover over the 'Loop Collection' step (with the tail end of the connector-snake) and select the jsonpath for the specified identifier from the list of output properties displayed.

INTERPOLATION: When you wish to include JSON generated data within another input/output result, use our Interpolation method as described here.

google-ads-step-3

You can always inspect the logs of your workflow by using the ‘Debug’ tab available on the top of the Tray builder.

If you go through each execution of the 'Get Custom Audience' step, you will see the results of each loop.

google-ads-step-3-debug

BEST PRACTICES: Whenever you do decide to create your own workflow, please make sure you take a look at our managing data best practices guide.

All Operations

Latest version:

3.0

Get offline user data job status

Get offline user data job status.

Add operations to offline user data job

Add operations to an offline user data job.

Create offline user data job

Create an offline user data job.

Run offline user data job

Run an offline user data job.

Custom query

Perform a custom Google Ads query.

Describe resource type

Describe a resource type.

List customers

List all accessible customers/accounts upon your current credentials.

List customers DDL

List resource type fields DDL

List resource type metrics DDL

List resource type segments DDL

List resource types DDL

List resources

Get a list of resources of a given type.

List service fields DDL

Mutate resources

Mutate resources for a service, this includes operations such as create, update, and delete.

Raw HTTP request (advanced)

Perform a raw HTTP request with some pre-configuration and processing by the connector, such as authentication.