Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Conversion #9

Open
NXT-Max opened this issue Feb 25, 2020 · 6 comments
Open

Export Conversion #9

NXT-Max opened this issue Feb 25, 2020 · 6 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@NXT-Max
Copy link

NXT-Max commented Feb 25, 2020

Hi Frederic!

First of all thank you so much for your amazing script!
It is running great after I changed to API v6.0.

I have the following question:

Can you advise how to export conversions?
For example the conversion view content, added to cart or custom conversions.

As far as I understood, conversions can be defined through ads action stats:
https://developers.facebook.com/docs/marketing-api/reference/ads-action-stats/

Another possibly easy solution would be to export a predefined report.
The report can be created in the ads manager with clicks and drag and drop and then saved.
Only the report ID is needed to export it:
#https://developers.facebook.com/docs/marketing-api/insights/best-practices/#export-reports

Is there a way to use your script to do this?

Thank you so much in advance!

@fredericharnois fredericharnois self-assigned this Feb 26, 2020
@fredericharnois fredericharnois added the question Further information is requested label Feb 26, 2020
@fredericharnois
Copy link
Owner

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!

@fredericharnois
Copy link
Owner

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!

@NXT-Max
Copy link
Author

NXT-Max commented Feb 28, 2020

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

@fredericharnois
Copy link
Owner

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.

@NXT-Max
Copy link
Author

NXT-Max commented Mar 11, 2020

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

@fredericharnois fredericharnois added the help wanted Extra attention is needed label May 25, 2020
@Angad-Boparai

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants