Facebook Marketing API, retrieving ad hourly_stats_aggregated_by_advertiser_time_zone analytics in the past - facebook

I'm build historical database for facebook adaccount analytics.
In our query, we set breakdown to 'hourly_stats_aggregated_by_advertiser_time_zone' and aggregate insights later.
Problem is some ads in the past seem not support this breakdown and return empty so i just want to know from which time in the past this breakdown can be applied?
Thanks

Since 12th of April 2016 the v2.6 of the Facebook Marketing API supports 'hourly_stats_aggregated_by_advertiser_time_zone' breakdowns
Visit:
https://developers.facebook.com/docs/apps/changelog?locale=us_EN
for further information

Related

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.

Access education/work data from Facebook Graph API

Facebook recently (4th of April) deprecated the education and work nodes on the user object in their graph api.
I am creating an app which requires a user's previous education and work experience. The only data I really need is name of the institution/place of work and dates that the person was there.
I can't see anywhere in the changelog how to access education and work data now. Is it still possible to access that data and if so, how?
If it is not, do you know if support for getting this data is going to be re-added?
As of April 2019, there's no way to retrieve that information.
There's no mention in the documentation or the changelog why the API was removed, but looking at the timeline it could indeed be related to the Cambridge Analytica scandal.
This node is deprecated
https://developers.facebook.com/docs/graph-api/reference/education-experience/
This node has been deprecated as of April 4, 2018 and will return no data. Please see the changelog for more information.
Deprecated Permissions — The following permissions are deprecated: [...]
user_education_history

Can I access Facebook Ad Billing data through an API?

/business.facebook.com/ads/manager/billing/transactions/
Thats the url id like to pull data from. I looked at all the API's, but none of them seem to offer up this data.
Try this: https://graph.facebook.com/v2.9/{business_id}/business_invoices
YES YOU CAN USIG FACEBOOK MARKETING API Marketing APIs are a collection of Graph API endpoints that can be used to help you advertise on Facebook. To get started with advertising on Facebook, we recommend you learn about Facebook's Ad Campaign Structure, to understand the objects you're working with and how they relate to each other.
CHECK THIS OUT
https://developers.facebook.com/docs/marketing-apis/

Facebook API Insight Metrics Daily graph API

Hi Guys I am hoping someone could help me.
I have been toying around with the Facebook API for our company's facebook analytics page. I am looking to get information on the likes, shares, impressions etc and store directly to a database
I have been able to pull this information back using the Graph API Explorer. Now I want to be able to pull the information back for say today. When I add today's date in it only relates to the actual posts that were posted today, not today's activity. if that makes sense.
An example of this is if I had liked a post today that was created 2 days ago, it doesnt show in in today's activity, but the activity from 2 days ago.
The code I have been using is:
feed?fields=comments.limit(1).summary(true),likes.limit(1).summary(true)&since=2016-10-28
Just wondering if I am missing something as surely should be an easy way of getting todays actual activity from users?
Your example isn't fetching Insights, you're fetching the posts visible on the page's Timeline, then asking for a count of the comments and likes
There's a totally different API for fetching Insights data: https://developers.facebook.com/docs/platforminsights/page
This is the same API used by the Insights UI, so for the same set of metrics/dates, it should give identical results to the UI

Facebook credits API / Facebook payment API

Facebook has credits / payment feature, but I can't seem to find a payment API.
How does my app give out credits or receives credits from its users?
Facebook Credits is still in beta phase, so I guess they are keeping it a secret for now. Facebook is looking for developers to take part in the beta program though.
Documentation is available:
http://developers.facebook.com/docs/creditsapi
but you still have to request beta access at the moment (26 Oct 2010)
Today, we’re announcing a significant expansion in the number of developers that can be part of Facebook Credits, the virtual currency used in games and applications on Facebook. And working with our friends at PlaySpan, we plan to add more than 20 new ways for people to pay for Facebook Credits in the coming months.
From Facebook Developers Blog