Getting the action_type assigned as Result Indicator for an ads from Facebook Ads API - facebook

I am developing a Data Warehouse for Ads Performance Analytics and, as many, I am interested in getting 'Results' from the Facebook Ads API. I know that 'Results' is variable. I mean, each ad has its own action_type defined as the result indicator.
Is there a way to get the action_type defined as the result indicator from the API? I thought the possibility to use this value as a filter applied to action_type column when I get ALL the actions performed into the ad.
Thanks a lot !

Related

Determine Custom Conversion Action for AdSet in Facebook Marketing API

I'm using the Facebook API Marketing API to get insight information about different ad campaigns. In the ad campaign insight results, there are a number of actions with values. When I look in the Facebook Ad Manager UI, I see the Result column for Campaigns where it shows me the value I'd like to extract from the API. The problem I'm running into is that I need to programmatically determine what action to pull the value from.
When I look in the AdSet settings in the UI, I see the Conversion Event which ties to a Custom Conversion but I don't know how to get that Custom Conversion ID for the ad set from the API.

How I get impression level log data using facebook api

I am working on facebook api. I can get total impression and clicks etc. data from facebook campaigns stats report. But my requirement is to get each impression in individual line. For example if campaign stats report shows 100 impression than I want to know 100 impression individually where they shown. Can anybody help me how I achieve this functionality of facebook marketing api.
Thanks
Hej,
You can breakdown the data by platform, device and such (check Facebook API Documentation about Breakdowns ) but as far as I am aware the API always aggregates Views that come from the same source or occurred in the same timeframe.

How to filter ads in Facebook Marketting insight by type

I want to filter ads in Insight by type of ads.
Currently, I am using this. It returns all ads whether it is photo, link, or video.
graph.facebook.com/v2.8/act_XXXXXXXXXXXX/insights?fields=ad_id,ad_nameadset_name,impressions,reach,relevance_score,date_start,date_stop&level=ad
I want to filter ads by type in this. I want to get ads with link type in return.
Or is there any parameter so that it returns the type of ads. So that I know the type of ads from the result returned from graph.
The Insights API does not currently support creating a breakdown, or grouping of insights based on ad type. We keep a list of possible breakdowns current here, which are autogenerated based on available breakdowns in the API: https://developers.facebook.com/docs/marketing-api/insights/breakdowns.

Facebook total Reach with insights API

On Facebook Insights UI there is a section called "Reach".
Using page_impressions_unique of Insights API (which is supposed to carry the "Reach" value) I get a value which is 1/3 of the one appearing on UI. It seems they add some other metrics but it's not clear how to get that very same value using page metrics from Insights API.
https://developers.facebook.com/docs/graph-api/reference/v2.8/insights
Does anyone have any clue about it?
Reach in Facebook Ads Manager does not equal page_impressions_unique or even contain it. page_impressions_unique is a form of non-advertising, organic reach for your page; namely people who visited your page based on non-ads activity on Facebook.
Reach in Ads Manager is the number of unique ad impressions that Facebook delivered to people.
To see a full list of insights-related fields in our UIs as they map to the API, see "Metrics Names and API Fields" here https://developers.facebook.com/docs/marketing-api/insights

Facebook C# SDK: what is account_id and how do I obtain it?

I am trying to implement the ads.createAdreportSchedules example found here:
http://facebooksdk.codeplex.com/wikipage?title=Code%20Examples&referringTitle=Documentation
The account_id is set in the example. However, I'm not sure what this is. I know what my Application ID is but not my Account ID (I only have username/password). What is "account_id" and how can I obtain it from my account?
Also, the example always throws an exception ("Param schedule_specs-time_next_ref must be a timestamp in the future") even though the code clearly sets one with a future date. Any idea of how to fix this error?
As far as I know, you're trying to implement method of Facebook Ads API. You can use the Ads API as an alternative to the Facebook Advertising Manager tool.
You can find more information about Ads APi here: http://developers.facebook.com/docs/adsapi
AccountID is an ID of ads account. User of your application can have multiple ads accounts. You can get account ids that the current session user owns by ads.getAccounts API call.
If you're trying to find your own ads account id, go to
http://www.facebook.com/ads/manage/accounts.php
This will show you a list of ad accounts you have access to. One of the columns in the list is the account id of each account. Hope this helps. This is the id that the Facebook Ads API is referring to.