Artisan IMG > Google Ads (google-ads) (bfe5301d-5d6f-47c8-845d-c86c3de3ff6a)
Artisan IMG > Google Ads (google-ads) (bfe5301d-5d6f-47c8-845d-c86c3de3ff6a)

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.


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 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:

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'.

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, please see our pages on Basic data concepts and Mapping data between steps

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.

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.

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.

BEST PRACTICES: Whenever you do decide to create your own workflow, be sure to check out some of our key articles such as: