Learn to export Facebook ads data to Google Sheets

Note: Google Data Studio is now known as Looker Studio.

Make sure you have installed the Supermetrics for Google Sheets Add-on before you continue.

Pulling the data from Facebook ads into Google Sheets is similar to pulling the data from Google Analytics or Google Ads into Google Sheets.

Follow the steps below to export Facebook ads data to google sheets:

Step-1: Before you pull data from Facebook ads into Google Sheets, determine the overall layout and format of how your extracted data should look like in Google Sheets. 

For example, let’s create the following Facebook ads report in Google Sheets:

facebook ads report

Following are the attributes of this report:

  1. It contains one dimension named ‘Name’ (which denotes Facebook Campaign Name).
  2. It contains five metrics named: ‘Amount Spent’, ‘Clicks (All)’, ‘Landing Page Views’, ‘Reach’ and ‘Frequency’.
  3. The data table is sorted by ‘Clicks (All)’ metrics in descending order.
  4. The data table contains five rows of data.
  5. The data is for the month of Sept 2019 (not shown in the screenshot above)
  6. The data table is using the 1 day click attribution window (not shown in the screenshot above)

Step-2: Navigate to Google Sheets and then click on the cell where you want the extracted Facebook ads data to appear:

google sheets 1

Every time you pull data from a data source (like Facebook ads), the Supermetrics Google Sheets add-on run a query in the background.  

Supermetrics run queries at a specific location in Google Sheets. This location is specified by you when you click on a particular cell.

Step-3: Click on ‘Launch Sidebar’ from the ‘Supermetrics’ menu (under ‘Add-ons‘):

launch sidebar supermetrics

You should now see a dialog box like the one below:

export facebook ads data to google sheets

Step-4: Click on the ‘Data Source’ drop-down menu and then type ‘facebook ads’ in the text box to find this data source:

data source facebook ads

Step-5: Click on the ‘Facebook Ads’ option:

facebook ads option

A new tab will open in your browser window which will ask you to log in for Facebook Ads:

supermetrics login for facebook ads

If you are currently logged into Facebook, the account you are logged in with will automatically be used for authentication. If you wish to use another Facebook account, log out of Facebook before clicking the link above.

Step-6: Click on the ‘Continue with Facebook’ button.

Step-7: Allow supermetrics to receive your name and profile picture by clicking on the ‘Continue as…’ button:

continue as

Step-8: Select the Facebook Fan page you want to use with Supermetrics and then click on the ‘Next’ button:

select facebook fan page

Step-9: Allow Supermetrics to access your Facebook ads and related stats by clicking on the ‘Done’ button:

what is supermetrics allowed to do

Step-10: Click on the ‘Ok’ button:

you have now linked supermetrics to facebook

Once you clicked on the ‘OK’ button, you should automatically be redirected to your Google Sheets and you should be able to see ‘Facebook Ads’ listed as a data source:

data source facebook ads2

Step-11: Click on the ‘Select Accounts’ drop-down menu and then select your Facebook ads account from which you to pull data into Google Sheets:

select accounts 1

Note: If you don’t see your Facebook ads account then click on the ‘Refresh account list’ link. If that doesn’t work then it means you don’t have access to the Facebook ads account.

Step-12: Click on the ‘Select Dates’ drop-down menu and then select the date range for your data:

select date range

For this example, I selected the entire month of Sept 2019.

Note: The date range updates automatically every time you refresh/update the query.

Step-13: Click on the ‘Select Metrics’ drop-down menu and then add the following five metrics:

select metrics 1

I selected these particular metrics because if you remember, I want to replicate the following Facebook ads report in Google Sheets:

facebook ads report2

And this report contains five metrics named: ‘Amount Spent’, ‘Clicks (All)’, ‘Landing Page Views’, ‘Reach’ and ‘Frequency’. So I added corresponding five metrics via Supermetrics Google Sheets Add-on.

Step-14: Click on the ‘Split by dimensions’ drop-down menu and then add the following dimension:

split by dimensions 1

I selected this particular dimension because if you remember, I want to replicate the following Facebook ads report which contains the ‘Name’ dimension:

facebook ads report3

So I added the corresponding dimension via Supermetrics Google Sheets Add-on.

Step-15: Select the number of rows to fetch to 5 (as there are five rows in the data table of Facebook ads report): 

number of rows to fetch 1

Step-16: Set ‘Sort rows’ setting to ‘Clicks (All)’ and ‘Sort direction’ to ‘Descending’:

sort rows sort direction 1

We are going to sort the data table by ‘Clicks (All)’ metric in descending order because this is how our Facebook ads report has been sorted:

facebook ads report4

Step-17: Click on the ‘Options’ drop-down menu and then set the conversion window to ‘1 d click’ (which stands for ‘1 day click’ attribution window in the context of Facebook ads):

conversion window 1 day click

I used the 1-day click window because this is the attribution window that my Facebook ads report is using. 

Note: It is very important that you select the correct conversion window. Otherwise, your data in the Facebook ads report may not match with the extracted data in Google Sheets.

Step-18: Select the following checkbox ‘Format results for Google Data Studio’:

Format results for Google Data Studio 1

Step-19: Click on the ‘Get Data to Table’ button:

Get Data to Table 1

You should now see your Facebook ads data in Google Sheets:

google sheets2 1

Step-20: Now compare this extracted data with your Facebook ads report:

facebook ads report5

Since the extracted data matches the data from the Facebook ads report, we can conclude that we extracted the Facebook ads data correctly into Google Sheets.

That’s how you can pull data from Facebook ads into Google Sheets.

Other Articles on Google Sheets

  1. How to use Looker Studio with Google Sheets
  2. How to extract data from Excel or CSV file into Google Sheets
  3. How to extract data from Google Ads to Google Sheets
  4. How to use Supermetrics for Google Sheets Add-on
  5. Connect and transfer data from Google Sheets to BigQuery
  6. Sending data from Google Search Console to Google Sheets
  7. Supermetrics Queries for Google Sheets – Tutorial
  8. Google Sheets & Looker Studio Timezone Conversion
  9. How to extract data from Google Analytics into Google Sheets
  10. Looker Studio Date Format for Google Sheets – Tutorial
  11. Understanding Aggregation in Google Sheets

My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

About the Author

Himanshu Sharma

  • Founder, OptimizeSmart.com
  • Over 15 years of experience in digital analytics and marketing
  • Author of four best-selling books on digital analytics and conversion optimization
  • Nominated for Digital Analytics Association Awards for Excellence
  • Runs one of the most popular blogs in the world on digital analytics
  • Consultant to countless small and big businesses over the decade