laravel-facebook-ads icon indicating copy to clipboard operation
laravel-facebook-ads copied to clipboard

Filter amount spent in Ad Account

Open DzinPerformmaOnline opened this issue 6 years ago • 1 comments

How to filter amount spent in a Ad Account by start and end date? When I do $adAccounts->get(['amount_spent', 'name'], 'act_' . $id); it returns the total amount spent. I want it between two dates.

DzinPerformmaOnline avatar Aug 03 '18 17:08 DzinPerformmaOnline

Hi @DzinPerformmaOnline

Actually, for this you need to use the insights API, I've not implemented this yet.

Ref: https://developers.facebook.com/docs/marketing-api/insights/parameters

edbizarro avatar Sep 11 '18 05:09 edbizarro