0

I am dealing with several custom conversions in facebook that we created. However, using graph api I am only able to pull their id and not name.

Is there any way to get the name of the custom conversion?

I went into business manager id;

1231412345324?fields=link,id,name,adspixels{audiences{ads{insights{actions},tracking_specs,adlabels}}} 

enter image description here

5
  • What endpoint are you attempting to pull those values from? You can receive custom conversion names on the adaccount/customconversions edge graph.facebook.com/act_ADACCOUNTID/customconversions?fields=name&access_token=USERACCESSTOKEN Commented Jan 30, 2018 at 21:48
  • pulling it from business manager Commented Jan 30, 2018 at 21:57
  • on the graph api, what endpoint are you attempting to pull from? Commented Jan 30, 2018 at 22:37
  • I'm using my personal user access token. Check the image if it helps, not exactly sure what you mean. Commented Jan 31, 2018 at 14:52
  • Ok thanks for the screenshot, i've added a call below, hopefully this will help you achieve what you're looking for. Commented Jan 31, 2018 at 15:47

1 Answer 1

2

Can you try https://graph.facebook.com/v2.11/BUSINESSMANAGERID/owned_ad_accounts?fields=link,id,name,customconversions{name,id}&access_token=USERACCESSTOKEN This will give you a list of your adaccounts in Business Manager and their custom conversion id and name.

First ad account has no custom conversions, second has

Sign up to request clarification or add additional context in comments.

15 Comments

In a browser, it gives me "You are calling a deprecated version of the Ads API. Please update to the latest version: v2.10." error. Using graph api, the custom conversion doesn't exist inside owned_ac_accounts, it looks like it's parallel. I think my issue is with authorization at this point. Looks like we know where to get the proper data.
can you try again with the version number in the url? I've added it to above
yeah, ive done that as well. it just returns id and name. nothing more.
the id and name of your custom conversion, or the id and name of your ad accounts?
As in you're using the Graph Explorer tool and using the autocompletes on the left handside to choose which fields to append to your query? I've never used that autocomplete unfortunately so don't know what dictates which fields show up/don't show up. It could be based on popularity of the fields, or it could simply be that it has not been kept up to date and so new fields aren't added, but I'd be guessing as to why it doesn't appear tbh. edit (or the field is undocumented for that particular edge)
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.