GithubHelp home page GithubHelp logo

Comments (6)

fredericharnois avatar fredericharnois commented on August 23, 2024 1

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.

fredericharnois avatar fredericharnois commented on August 23, 2024

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.

NXT-Max avatar NXT-Max commented on August 23, 2024

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.

fredericharnois avatar fredericharnois commented on August 23, 2024

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.

NXT-Max avatar NXT-Max commented on August 23, 2024

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.

Angad-Boparai avatar Angad-Boparai commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.