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:
Following are the attributes of this report:
It contains one dimension named ‘Name’ (which denotes Facebook Campaign Name).
It contains five metrics named: ‘Amount Spent’, ‘Clicks (All)’, ‘Landing Page Views’, ‘Reach’ and ‘Frequency’.
The data table is sorted by ‘Clicks (All)’ metrics in descending order.
The data table contains five rows of data.
The data is for the month of Sept 2019 (not shown in the screenshot above)
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.
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
Free GA4 Mastery Course (30 Days Access) – Certification Upon Completion! (Over 4000 Students)
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.