Comments (6)
Hi @NXT-Max,
Glad you find the tool useful!
You can absolutely use it to export conversions, I should be able to get back to you with a concrete example sometime this week.
Thanks!
from facebook-ads-reporting-google-apps-script.
Hi @NXT-Max!
To export conversions, you'll first want to make sure that 'actions' is included in FIELDS.
You'll then want FILTERING to look something like this:
const FILTERING = [{'field':'action_type','operator':'IN','value':['offsite_conversion.fb_pixel_view_content','offsite_conversion.fb_pixel_add_to_cart','offsite_conversion.custom.<custom_conv_id>','link_click']}]
This should make your chosen conversions appear as columns in your report.
Let me know if it works!
from facebook-ads-reporting-google-apps-script.
Hello Frederic,
thanks for the fast reply. I tried your suggestion.
Unfortunately it just works partly.
This is what my code looks like:
var FILTERING = "[{'field':'action_type','operator':'IN','value':['offsite_conversion.fb_pixel_view_content','offsite_conversion.fb_pixel_add_to_cart','offsite_conversion.custom.939225159828570','offsite_conversion.custom.landing_page_view','link_click']}]"
It just shows "link klicks" and "add to cart", the other events are not shown. There is no colum created in google sheets for them.
Hint: I'm working on ad-set level. I don't now if this is a relevant info.
Do you have an idea what I'm doing worng?
Thanks in advance
Max
from facebook-ads-reporting-google-apps-script.
Hi Max!
The one thing I'm noticing is 'offsite_conversion.custom.landing_page_view', where landing_page_view should be replaced by the ID of that custom conversion.
from facebook-ads-reporting-google-apps-script.
Hi Fred,
sorry for the late reply. Your answer helped me a lot!
The only struggle I wasn't able to figure out yet is to show the pixel conversion event "submit application" and "contact". Can you advise here? I can't find it in the documentation.
Thanks in advance
Max
from facebook-ads-reporting-google-apps-script.
Hi Fred,
Thanks for this script, it helps save a lot of time.
It works perfectly fine for me except I can't add the 'Results' column from my Facebook Ads Data.
const FIELDS = 'campaign_name,adset_name,ad_name,clicks,impressions,frequency,cpm,actions,cost_per_action_type,conversions'
const FILTERING = "[{'field':'action_type','operator':'IN','value':['cost_per_action_type','offsite_conversion.custom.Results','ad_name','cpm','clicks','impressions','adset_name','campaign_name','frequency']}]"
The ID for the column I want is 'Results' in the Facebook Ads data.
Could you please help solve this problem.
from facebook-ads-reporting-google-apps-script.
Related Issues (20)
- Can't add Results column HOT 1
- No response HOT 4
- Organizing report results HOT 2
- OAuth problems HOT 3
- Super helpful script. Thank you.
- Love What I'm Seeing But I May Need Some Help... HOT 1
- Issue with Parsing Text HOT 1
- Day/Date column
- Error at line 39 HOT 8
- No output to Google Sheet HOT 1
- Field actions empty
- Could not parse text - get-facebook-report.js.gs:40
- how to get Unique Purchase, Cost Per Unique Purchase and Purchase Conversion Value HOT 1
- Could parse text
- Code 500 Error
- I am faced this issue while execute the code
- Convert to Page Insights
- Just a question about caching and campaign report id
- Error: Exception: Could not parse text HOT 1
- Trying to append a Row instead of updating the existing one HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-ads-reporting-google-apps-script.