singer-io / tap-facebook

Singer.io tap for Facebook Marketing API
GNU Affero General Public License v3.0
110 stars 141 forks source link

Add new stream: ad_insights_hourly_advertiser #151

Closed luandy64 closed 3 years ago

luandy64 commented 3 years ago

Description of change

This PR adds a new Ad Insights Stream: ads_insights_hourly_advertiser.

Notes

Excluded field

Breakdown Behavior

Here's a blog post from Facebook announcing this new breakdown.

In that link, you'll see that you can request data for multiple days at a time.

For example, your request could contain date_start = 2021-01-01 and date_end = 2021-01-02. While it's understandable that you get 48 data points out of this (one for each hour of the entire date range), that's not how this API works. It will aggregate all of the data for 01:00 - 02:00 for every day in the date range.

Because of this behavior, we have chosen to ask for a day's worth of data at a time, hoping that allows you to aggregate however you want in your warehouse.

Manual QA steps

Risks

Rollback steps