How to extract data from Facebook Ads into Google Sheets

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 extract data from Facebook ads into 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:

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.

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

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

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

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

A new tab will open in your browser window which will ask you to log in 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:

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

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

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

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:

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:

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:

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:

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 dimensions’ 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 ‘Name’ dimension:

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

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 stands for ‘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 your Facebook ads data in Google Sheets:

Step-20: 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.

Register for the FREE TRAINING...

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



Here’s what we’re going to cover in this training…

#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 !!