How to extract data from Facebook Ads into Google Sheets

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

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

Follow the steps below:

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:


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:

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.


Get the ebook on Google Data Studio (50+ Pages)Get the ebook on Google Data Studio (50+ Pages)


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

Step-4: Click on ‘Data Source’ drop-down menu:

Step-5: Find and then click on the ‘Facebook Ads’ option:

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:

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

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

Step-10: Click on the ‘Select Accounts’ drop-down menu:

Step-11: Select your Facebook Ads account from which you to pull data into Google Sheets:

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 set the date to the last month:

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:

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

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’ drop-down menu and then add the following dimension

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

So I added the corresponding dimension via the 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): 

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

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:

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

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

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

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

Now compare this extracted data with your Facebook Ads report:

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.

   

EXCLUSIVE FREE TRAINING REVEALS....

"How to use Digital Analytics to generate floods of new Sales and Customers without spending years figuring everything out on your own."


(even if you are completely new to analytics)


Here’s what we’re going to cover…

#1 Why digital analytics is the key to online business success.

​#2 The number 1 reason why most marketers are not able to scale their advertising and maximize sales.

#3 Why Google and Facebook ads don’t work for most businesses & how to make them work.

#4 ​Why you won’t get any competitive advantage in the marketplace just by knowing Google Analytics.

​#5 The number 1 reason why conversion optimization is not working for your business.

​#6 How to advertise on any marketing platform for FREE with an unlimited budget.

​#7 How to learn and master digital analytics and conversion optimization in record time.

 
   

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

Himanshu Sharma

Digital Marketing Consultant and Founder of Optimizesmart.com

Himanshu helps business owners and marketing professionals in generating more sales and ROI by fixing their website tracking issues, helping them understand their true customers' purchase journey and helping them determine the most effective marketing channels for investment.

He has over 12 years of experience in digital analytics and digital marketing.

He was nominated for the Digital Analytics Association's Awards for Excellence. The Digital Analytics Association is a world-renowned not-for-profit association that helps organisations overcome the challenges of data acquisition and application.

He is the author of four best-selling books on analytics and conversion optimization:

error: Alert: Content is protected !!