How can I get results from Facebook APIinsights? I managed to get a list of campaigns / ads, then pull out all the necessary data, but here results does not display this field at all. In the ads manager panel there is a column Results, how to pull data from this column as on the screen? enter image description here
UPD: used this method for get reports https://graph.facebook.com/v6.0/act_XXXX/insights?breakdowns=publisher_platform&time_range={"since":"2020-01-01","until":"2020-03-24"}&fields=["adset_name", "objective","impressions","spend","actions"]&access_token=XXXX&level=adset
objective field value is different from action value type, how now to understand which to use from actions?
Related
How can I display the link type when using Work Items and Direct Links?
Seems like Link Description is what I want but it is "not support in the query editor".
Contains the work item type, ID, and title of the work item that is the target of the link. You can configure this field to appear as a column in a list of links on a work item form. (Not supported in query editor.)
There isn’t such feature to display link type in UI Query Result. You can get it through REST API: Run a stored query
Found this https://developers.facebook.com/docs/marketing-api/reference/custom-conversion/
but it doesn't help me.
I'm trying to get the 'custom conversion' data for each ads but according to the ref. above I can the number for each custom conversion (not separate for each ads).
Any idea ? :)
The link you gave describes the custom conversion object itself (not related to any ad). For individual ad's conversion data you would look at the insights:
https://developers.facebook.com/docs/marketing-api/insights/v2.9
Specifically, query the actions field and filter by action_type (refer to the filtering parameter on insights for how to do filtering https://developers.facebook.com/docs/marketing-api/insights/parameters/v2.9)
And this answer has a concrete example:
Facebook Marketing API Select Fields
I can't find the way to look for users on tumblr with a specific hashtag.
Example with hashtag "garden". How can you get a list with all users who used this hashtag? And if possible within a certain timeframe?
I guess it's easy but I can't find it.
kind regards
You can't just fetch all users who have used a tag, but you can iterate through posts that have that tag. Use the /v2/tagged route in the Tumblr API.
GET /v2/tagged?tag=garden
Parse the response as json and fetch each response[i].blog_name to construct a list of blog names that have used the tag.
You can then fetch the next page by using the response[i].timestamp field of the last post in the array. Just pass it as a before query parameter in your next request.
GET /v2/tagged?tag=garden&before=1480712397
If you'd like to limit to a specific timeframe, you can just start with the most recent date in before, and proceed until you hit a post with a timestamp past your oldest date.
I have a Facebook Pixel on my website that is tracking events. I saw on the Ads Manager dashboard, that the pixel logs my events in a categorized way, i.e.:
PageView, ViewContent, InitiateCheckout, etc.
Although when logging stats, I include some extra parameters like the product_id maybe or other things, that way when the PageView is being logged, at least I will know which product_id it refers to.
The problem is that the Facebook Ads Dashboard doesn't show any of the extra parameters, it only displays the Count field.
After doing some research, I found this link on Facebook Pixel Stats, where they claim:
Use the Facebook Pixel Stats edge to get pixel statistics.
I tried using the Graph API Explorer, and even the iOS FB SDK for it (API Here) they both return an empty data array:
{
"data": [
]
}
I tried multiple parameter combinations, fields, and everything else to no avail.
If anyone knows whether I'm looking at the wrong place, or what not, all I'm interested in is reading those "extra" parameters that I'm appending to every FB Pixel event I log. Thank you!
You need specifing the parameters for it.
Example:
{fb_pixel_id}/stats?aggregation=url
The answer is displayed for a specific period of time in the past - I would say 24 hours.
You can use paging at the bottom of the json response for going back in time: use the link provided in the content of the field 'previous', and you can step back day by day.
I've got a web app that needs to update the values of fields in existing Open Graph objects. In particular I'm trying to edit the location on photos.
However I find I'm unable to directly alter any field at all. I've been experimenting with the Graph API Explorer using the POST method and an access_token with 'user_photos', 'publish_stream' and 'user_photo_video_tags' permissions. I've trying setting a photo's field 'caption' to another string value, and also the 'place' field to another Place ID such as 127571667351223 for Melbourne International Airport. When I click Submit for these commands, the response window just says 'true'. However when I check the Object, no change has occurred to it.
Can anyone explain why these changes aren't going through?
Thanks!