Facebook Marketing insights Grouped By Day - facebook

How is possible to get insights grouped by days?
Means get one row per day with all the statistics.
I see that I can use "hourly_stats_aggregated_by_audience_time_zone" in "breakdowns" but I dont know exactly what is the result.
I need one record each day depending from the level (for instance is I choose level=campaign) I need to have campaign_id, campaign_name, day, spent
Is is possible?
Thanks, Alex.

The parameter that I'm looking for is "time_increment" equals 1.
Here is the docs https://developers.facebook.com/docs/marketing-api/insights/v2.5

Usually, facebook insight URLs are compiled like
https://graph.facebook.com/v2.5/<object>/insights/<metric>/<period>
in your example something like
175527252532294/insights/page_impressions/day?breakdowns=/hourly_stats_aggregated_by_audience_time_zone
where <object> is your page/ad/post/app/... ID
You may try it first over here: Graph Explorer

Related

How can I make query for specific time in AzureDevOps?

I need to make a query in AzureDevOps. I need to search every bug that was created in the same specific time (for example in one sprint). The bugs are not important status today but when was create.
Can you help me, please? Thank you.
How can I make query for specific time in AzureDevOps?
For this issue ,you can make query like below, using Created Date field in the query:
Or using Iteration path field to query the bugs in a specific spirit:

Facebook Marketing API - Keywordstats empty

I am working with ADs api and using keywordstats.
It worked well, now I am getting some weird responses, or maybe it should be like that.
I created AD 7 days ago, 24 days after using keywordstats and fields like, cpc, actions, impressions, unique_actions returned me good results, matched at what I was seeing on ADS manager. AD was live one day.
Now 6 days after after, actions and unique actions has only one element "attention_event"? Impressions by each interest are also weird, for each I am getting from 1 to 5? In total I have more then 5K impressions, how is this possible? I have tried with specific dates, for one day it returns this weird data, for other days just returns empty response.
Actions fields, 6 days ago contained and events from FB Pixel, now none is returned in response.
Is this supposed to work like this, or I am missing something?
I've also dealt with some bugginess with the keywordstats endpoint.
If you look at the API documentation, you'll see a particular line: "To query from a particular day in the last week:". It seems like Facebook doesn't allow you to query for keywordstats that aren't from the past week. The discrepancy between metrics might arise because of this.
For some more context, I've found that even the last seven days isn't a reliable indicator of retrievable dates. I had to query each date individually (using <API_VERSION>/<AD_ID>/keywordstats?date=YYYY-MM-DD) and see which ones don't return an empty object. The dates that do return a metric are the ones that you should use in your calculations.

How to filter Facebook post comments by time range

Is there anyway to filter comments between a time range?
It looks like this was removed in a previous bug update, but I cannot be sure: https://developers.facebook.com/bugs/420363721670492/
Basically, I want to grab all comments for a post (which I am now doing), but then I want to filter those comments between a date range. Any way to do this? It seems like since and until no longer works when testing in the api explorer.
When using the unix timestamp, there should be no quotes, it is not a time format string.
Change your call to:
GET/V2.12/XXXX_XXXX?fields=comments&since=1516406400

Yahoo Weather API current conditions

I am trying to get the current weather conditions for a certain location, but for some reason I always get the conditions for a semi-random day/time (more or less past week). I am using this query: https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%20%3D%20639660%20AND%20u%3D%22c%22&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=
Even trying out the example query on their website doesn't work for me. When I click on "Current conditions for San Diego, CA" I get the same, random results. Is there any way to get the current conditions?
I am seeing the same thing. It has to be on Yahoo's side. Unfortunately it looks like their support page is down too. Returned a 404
I've also notice the random ( 1 day up to 2 wks) of old data being transmitted
http://xml.weather.yahoo.com/forecastrss/55364_f.xml It seems to change about every 30 seconds

Zend Gdata calendar retrieve events in a date range

I am attempting to retrieve events from my calendar, the below function works to a degree but only pulls the events over the first week or so (specifically until the 24th of the first month). I was hoping to find someone to help me figure out why.
Here is my code
$query = $service->newEventQuery();
$query->setUser('default');
$query->setVisibility('private');
$query->setProjection('full');
$query->setOrderby('starttime');
$query->setsingleevents('true');
$query->setStartMin('2013-07-14T00:00:00.000-10:00');
$query->setStartMax('2013-09-15T00:00:00.000-10:00');
$query->setSortOrder("ascending");
$eventFeed = $service->getCalendarEventFeed($query)
In the end I had to set max-results as in $query->setMaxResults('1000'); the reason is because apparently Google limits results to 25.
Here is the documentation:
Note: The max-results query parameter for Calendar is set to 25 by
default, so that you won't receive an entire calendar feed by
accident. If you want to receive the entire feed, you can specify a
very large number for max-results.
Found Here -> http://code.google.com/apis/calendar/data/1.0/reference.html#Parameters
P.S.
After figuring out the problem I further searched this forum with the known answer and found another similar question with the same answer, I'm listing this because honestly finding help for the Zend Framework and Google Calendar Api is not the easiest thing to do. It would be benificial to us all if there were a more stardardize way of refferencing these two libraries-> Google calendar query returns at most 25 entries