Coupler.io Blog

How to Connect Google Ads to BigQuery: Best Ways to Import Your Data

15 ads enable apis

Promoting your business through Google Ads requires an optimized budget. You must identify top-performing advertising efforts to invest more in and underperforming ones to pause. This involves a lot of data analysis, and what’s a better tool for this than BigQuery? Let’s explore how to export data from Google Ads into BigQuery and prepare your reports for analysis!

Ways to load Google Ads data to BigQuery

There are several common ways to get your data from Google Ads to Google BigQuery:

You can use Coupler.io to create custom reports based on extracted Google Ads data and have them automatically loaded into BigQuery on schedule. This method is simple and allows you to fetch marketing data from other apps into BigQuery for cross-channel analysis. Coupler.io also provides built-in dashboard templates. So you can gain insights from your data directly within the app interface without building reports or exporting them to external tools.

Here, you’ll need to export data from Google Ads as a CSV file and then upload it to BigQuery.

BigQuery’s feature, Data Transfer Service, enables you to automate the transfer of Google Ads data to BigQuery and keep it up to date.

This method involves writing a script that pulls data from Google Ads via the API and loading it into BigQuery. 

Let’s check out all these methods to choose the best one for your needs.

Option #1. No-code Google Ads BigQuery integration by Coupler.io

Would you like to automate data exports on a schedule, for example, every hour on Tuesday and Friday? You can do this quite easily with the help of the Google Ads BigQuery integration by Coupler.io in three simple steps:

Step 1. Extract data from Google Ads

Now, if you want to export data from more Google Ads accounts, select Google Ads from the gallery of sources and adjust the settings as described above. Later, you can merge all the datasets into a single one and import them into the same destination file.

Once ready, proceed to the next step.

Step 2. Transform data

In this step, you can preview your data and make the following transformations:

Once you’re ready with your data, move forward to set up your destination.

Step 3. Load data and schedule refresh

Now, you’re ready to connect your BigQuery account. To do this, you’ll first need to generate a Google Cloud JSON key. See these instructions on how to get it. Once done, upload it in the connection form. The Project ID and Connection name will be filled in automatically. Press Save.

Once the BigQuery account is connected, specify the dataset and table where Coupler.io should export your data. You can create a new dataset and table by typing new names.

Toggle on Autodetect table schema – this will help to structure your data correctly while importing.

In addition to BigQuery, Coupler.io allows you to load data from Google Ads to PostgreSQL.

You can optionally change the import mode. For the first import, the result won’t change, but it will matter when you set a schedule for the updates. If you select Replace, the old Google Ads dataset will be replaced with its updated version during each data refresh. If you opt for Append, the updated version will be below the previous one. The latter can be helpful if you need to track changes chronologically.

Proceed to toggle on Automatic data refresh and configure the desired schedule to automate data load from Google Ads to BigQuery. Coupler.io can refresh data as frequently as every 15 minutes!

After that, run the importer, and you’re done. Here’s an example of data exported from Google Ads to BigQuery:

Option #2. How to export Google Ads reports to BigQuery

The most straightforward way to load your data to BigQuery is by using CSV files. BigQuery can automatically create a table based on your CSV file schema, so let’s see how we can do this:

  1. Open Google Ads and navigate to the report you want to download.
  2. Click Download from the top of the report.
  1. Select .csv as the format.

Now that the report has been downloaded, we must add it to Google BigQuery. To do this:

  1. Open your Google BigQuery console.
  2. Choose the dataset that will contain the new report table.
  3. Click on Create Table from the Dataset menu.
  1. Select Upload as the source of the table, your file, and CSV as the file format.
  1. Specify the table name for the uploaded report.
  1. Put a tick against Auto detect. Then click Create Table.

Congratulations! Your report is now loaded in BigQuery and ready for analysis!

This simple manual method is fine if you want to transfer your data once. However, for recurring data exports, you’d better connect Google Ads to BigQuery. Let’s take a look at how this can be done.

Option #3. How to transfer Google Ads data to BigQuery using the Data Transfer Service

Another way you can transfer your Google Ads data to BigQuery is by using the official BigQuery Data Transfer Service. This helpful feature allows you to automatically transfer all your necessary Google Ads data to BigQuery and keep them up to date. Before starting, please ensure you have BigQuery Admin permissions and read access to the appropriate Google Ads account or Google Ads Manager account. 

Let’s see how you can set it up:

  1. Go to the Google Cloud Platform and open your BigQuery console.
  2. From the left pane, choose Data Transfers.
  1. Select Create transfer.
  1. In the Source field, select the Google Ads option.
  1. Give a distinctive name to the transfer (e.g., *** Ads Transfer).
  1. Schedule your transfer by selecting the frequency and start time. We suggest running the transfer daily.
  1. Select (or create) your dataset under which all the tables will be made.
  1. Provide the customer ID of the Google Ads account (e.g., 1231231234). The service accepts both standard and manager accounts, so if you need multiple accounts for one transfer, you can add the manager account ID.
  1. You can add a customized Refresh window (from 0 to 30) which means that on each transfer, the services will import and update the last X days of data. If you leave it blank, the default is set to 7 days. Toggle on Email notifications and click Save.

    This export will generate a set of tables and reports containing all the data you’ll need. Moreover, through backfilling, it will keep your data up to date, so you won’t need to do this all over again.

    Option #4. How to send data from Google Ads to BigQuery using Google Ads Scripts

    While the Data Transfer Service provides a fast and easy way to transfer all your data to Google BigQuery, there are times when you need only specific reports or to manipulate the data before uploading.

    In this case, and if you’re familiar with coding, Google Ads scripts can be your best friend. Through custom JavaScript code, you can query, manipulate, and send Google Ads data to BigQuery. Let’s see how you can set up such a report and a code example of how to query a campaign performance report and send it to Google BigQuery.

    1. Open Google Ads and navigate to the account of preference. Hover the pointer over Tools in the left sidebar. Select Scripts from the Bulk actions category.
    1. Click on the + sign to create a new script.
    1. Give a name to the script (e.g., Google Ads to BigQuery). Click on Advanced APIs.
      1. Enable BigQuery and click Save.

      With these settings, Google Ads Scripts can connect directly to both Google Ads API and BigQuery. Writing your own scripts, you can access and manipulate Google Ads reports and load them to Google BigQuery. 

      The official documentation contains?? everything related to Google Ads Script. Then, you can start building your custom scripts to upload any required data.

      Bonus: Ready-to-use Google Ads dashboards

      To get immediate insights into your Google Ads data, use pre-built dashboard templates by Coupler.io. They are designed in Google Sheets, Looker Studio, and Power BI and equipped with a Coupler.io connector to load data from your account. This way, you get ready-to-use reports without creating them from scratch. Let’s take a look at some of them.

      This dashboard provides a detailed overview of your Google Ads campaign performance and tracks the monthly dynamics of key metrics.

      The dashboard offers the following data points:

      The template is available for Looker Studio, Power BI, and Google Sheets. To track your ad performance with this dashboard, follow the setup instructions in the Readme tab and get your data visualized.

      Keyword performance dashboard in Looker Studio

      The keyword performance dashboard in Looker Studio displays the performance of your Google Ads campaigns by specific keywords to identify which drives the most value.

      This dashboard reveals the following aspects of keyword performance:

      To begin using this dashboard, go to the Readme tab and follow the straightforward setup guide to fetch your Google Ads data into Looker Studio. 

      Google Ads creatives dashboard in Looker Studio shows the performance of your creatives, including impressions, clicks, and conversions. It enables you to evaluate which ads drive the best results.

      Here’s what you’ll learn using this dashboard:

      To get started, follow the instructions in the Readme tab to install the Coupler.io connector, link your Google account, and visualize your ad data in the dashboard.

      Quality score analytics dashboard in Looker Studio

      This Looker Studio dashboard template lets you track the historical quality scores of your Google Ads campaigns to analyze changes over time and identify growth opportunities.

      Using this dashboard, you’ll gain the following insights: 

      Navigate to the Reame tab inside the template to set up the dashboard according to step-by-step instructions.

      Google Search Ads performance tracker + editor in Google Sheets

      This Google Sheets dashboard template allows you to review the performance of responsive search ads and make edits to them. This will help you ensure your campaigns are optimized and consistent across platforms.

      To set up the dashboard, go to the template’s Readme tab and follow the instructions. Then, select the campaign or ad group for which you’ll modify existing ads or create new ones and act upon the short guide in the Ad edit tool tab.

      Why connect Google Ads data to BigQuery

      Below are key reasons to connect Google Ads to BigQuery for data analysis:

      Which option to choose to connect Google Ads to BigQuery

      In this post, we reviewed a few ways to extract and load your Google Ads data to BigQuery. But what’s the best way to do it? Well, that always depends on your case study.

      If you need to regularly get your Google Ads data to BigQuery, knowing that the data will be refreshed according to the specified schedule, use Coupler.io. In addition, this automation platform supports other data sources, such as Google Analytics 4, different CRM applications, and so on. So, you can have one solution to get data from different places into your data warehouse.

      If you want to extract all your account(s) data and keep it up-to-date in real time, the Data Transfer service is the way to go. 

      If you are familiar with coding, Google Ads Scripts is your best friend. It allows you to choose which data you upload and gives you room to manipulate the data before loading them to BigQuery.

      Finally, if you’re looking to export a specific report for one-time analysis, you can do so without connecting but simply choose the necessary report and upload it. For more on this topic, review our article about transferring data from Google Ads to JSON.

      Choose wisely, and good luck with your data!

      Automate Google Ads reporting with Coupler.io

      Get started for free
      Exit mobile version