Hub
Pricing About
WorkflowWorkflow

Google Ads Query Explorer

Release 5.3Google AdsGoogleQuery
knime profile image
Versionv1.0 KNIME AP 5.3 ReleaseLatest, created on 
Jul 10, 2024 12:04 PM
Drag & drop
Like
Download workflow
Workflow preview

The main scope of this workflow is to provide a local data application to test Google Ads Custom Queries with your Google Ads data. Execute the "Custom Report" component and click the lens icon to open the view.

We are passing dynamically custom queries inside the component to the Google Ads Query node to demonstrate the capabilities of KNIME workflow building with the Google Ads Query node.

You can download and run the workflow in your local KNIME Analytics Platform. However, you need the latest version to do so.

It is also possible to deploy the workflow as a data application in KNIME Business Hub using the Secret Store feature and the Secrets Retriever node instead of the Google Authenticator.

Before you run the workflow, you need to authenticate actively. Using Google APIs with OAuth 2.0 "on your behalf" allows third-party applications to access and interact securely with your Google services, such as Google Sheets and Google Ads, enhancing functionality and user experience while maintaining security and control over your data.

Additionally, you will need:

  • Google Ads Developer Token

  • Manager Customer Account ID

  • Account ID

Please refer to the description of the Google Ads Connector to get more information about how to obtain these items.

Workflow Step-by-Step

  1. String Configuration Nodes

    • Pass the necessary items to connect to the desired Google Ads account (Developer token, Manager Customer ID, Account ID). You need to input your own as the default of the nodes. It is possible to add more than one account by passing them comma-separated (account1, account2, etc.).

  2. Unpack Account IDs

    • In the "Unpack Account Id" metanode, unpack the account IDs comma-separated into a table.

  3. Custom Report Component

    • Right-click Component > Open Component to access the "Custom Report" component.

    • Iterate Over Account IDs

      • Use a Table Row to Flow Variable Loop to iterate over the Account IDs, fetching the data for each account and then concatenating the results.

    • Authenticate and Connect

      • Use the Google Authenticator for interactive authentication, providing the custom scope in the node comments. Then, connect to the Google Ads Account by providing the specified items in the Google Ads Connector node (using previously generated flow variables).

    • Google Ads Query Node

      • Use the custom query mode controlled by a flow variable. Use the Google Ads Query Builder (see the link in the External Resources section) to help build your custom query.

    • Example Query:

      "SELECT

      segments.conversion_action,

      segments.conversion_action_name,

      segments.date,

      segments.hour,

      metrics.all_conversions,

      metrics.all_conversions_value

      FROM ad_group

      WHERE

      segments.date DURING LAST_MONTH"

    • You can copy-paste the above query into the data application.

  4. Collect and Plot Data

    • Collect data from all iterations (all the Account IDs) and plot them in the table view.

  5. Opening the View

  • After execution, open the component's view by clicking the lens icon. You can copy-paste custom queries and, by clicking refresh, see the results fetched from your Google Ads account.

External resources

  • Google Ads Query Builder
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 5.3.0
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime profile image
    knime
  • Go to item
    KNIME Google ConnectorsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime profile image
    knime
  • Go to item
    KNIME Nodes for Google Ads (Labs)Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 1.0.0

    knime profile image
    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime profile image
    knime
  • Go to item
    KNIME ViewsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime profile image
    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits