How do I get the number of hours in a period via API for Project Online - project-online

I am trying to pull the number of hours in a period, per the calendar and not the actual time logged in the timesheet.
I have not been able to find it in any of the api endpoints. For a week that has a single holiday, per the enterprise calendar, I would expect to see 32 hours. For weeks that don't have holidays, I would expect to see 40.

Related

Exchange Online: Changing timezone for meeting hours?

When updating mailbox timezone in Exchange Online with Set-MailboxRegionalConfiguration, the timezone changes correctly but checking the mailbox through the OWA gui reveals that meeting hours have not changed to match, requiring a manual step by the user.
Message reads:
The current zone for your meeting hours is [timezone]
and is asking if the user is going to remain in the new timezone and to change the meeting hours to match.
Is it possible to set the meeting hours via Powershell?
If anyone comes across this, we ended up using the Graph API to amend this

Paypal Sync Api last_refreshed_datetime - what does it mean, how often it refreshes?

Paypal documentation for PayPal Sync API (https://developer.paypal.com/docs/api/sync/v1/).
It gives some mysterious date, named "last_refreshed_datetime".
On the sandbox server it is usually in the past, once it was a few days in the past, now it is 2 hours in the past.
What does it mean? How often it refreshes?
I only know that if I create a transaction it will not be visible on PayPal Sync API until the refresh date will not be later than the transaction date. And I'm guessing it should be the transaction approval date that does not presented on this report. The transaction approval date is available on transaction object (https://developer.paypal.com/docs/api/subscriptions/v1/#definition-transaction), it is called "time".
time string
The date and time when the transaction was processed, in Internet date and time format.
Read only.
I have reached out to the product development team for the SYNC API and have gotten the following clarifications in regards to your questions:
If the "last_refreshed_datetime" (Time until which we have data available in our system) is smaller than the requested end date then, in the API response we show end date as "last_refreshed_datetime". As we only have data up until that point. In general there should be around 4-6hrs of delay.
From my own experience on sandbox, on different occasions it was 6.5, 2.5 hours and even 2 days behind.

Facebook insights API goes only week back

I am trying to do some advanced analytics over my FB page, but recently I have encountered a problem. When I try to get some data (lets say "page_views_by_referers_logged_in_unique") I am not able to request for longer period than one week. Api says that valid values for period field are day, week, days_28, month, lifetime, total_over_rangebut for period longer than week it returns only empty array. Can someone tell me what is the problem here? Page is like 2 years old, so I am sure there is enough data for longer periods.

time interval after which analytics server is updated

I am creating a report, in which i have to show the number of sessions, users and registrations that have occurred today in a live feed. I see that the ga dashboard is updated only till 7 am in the morning although its 10:41 am right now. Can I know after what time interval does the analytics server is updated? I am using core analytics api to fetch the data as of now, if any other api suits my requirements do suggest.

How many Facebook ad groups can be created in a given period of time?

I'm receiving more and more often the following error message from Facebook:
1487225 - The number of adgroups you can create in a given period of time has a limit determined by your daily spend level. Higher spend levels allow creation of more adgroups. Increase your daily spend limit or create fewer ads per time period.
I've looked in the API documentation for errors reference and on the page that specifically talks about the ad groups, but I haven't found a hint about how to identify a way to prevent or at least give dispositions when this error occurs.
I've seen some questions about adgroups around, but none connected to this specific topic.
What is the number/formula to know how many ad groups can be created in a given period of time?