Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Add support for delivery_estimate besides the reach estimates #68

Open
flovv opened this issue Aug 21, 2017 · 2 comments
Open

Add support for delivery_estimate besides the reach estimates #68

flovv opened this issue Aug 21, 2017 · 2 comments

Comments

@flovv
Copy link

flovv commented Aug 21, 2017

I am using the command
reachestimate - v2.9:

> esti <- fbad_reachestimate(targeting_spec = targeting_spec, currency = "EUR", optimize_for = "REACH" )
> esti
$users
[1] 12000000

previously the call returned much more information.
Also return data looks different in this post:
https://stackoverflow.com/questions/24782045/can-i-get-a-facebook-reach-estimate-from-the-api-without-paying-for-an-ad

@daroczig
Copy link
Owner

Yeah, the API is changing from version to version -- at Facebook, it's not at the R package level: https://developers.facebook.com/docs/apps/changelog#v2_9_targeting

See the delivery_estimate API endpoint. I'm modifying this ticket to add support to this new API endpoint

@daroczig daroczig changed the title fbad_reachestimate returns only the item users Add support for delivery_estimate besides the reach estimates Aug 21, 2017
@flovv
Copy link
Author

flovv commented Aug 21, 2017

Thanks, right it is more an enhancement.
I tried to run this GET command
"https://graph.facebook.com/v2.9/<account-ID>/delivery_estimate?currency=US&access_token=<token>&targeting_spec={\"currency\":[\"USD\"],\"targeting_spec\":[\"{\\\"age_min\\\":20,\\\"age_max\\\":49,\\\"genders\\\":[2],\\\"geo_locations\\\":{\\\"countries\\\":[\\\"DE\\\"]}}\"],\"optimize_for\":[\"REACH\"]}"

but I get the following reponse:

$error$error_user_msg
[1] "Your audience targeting is incomplete. Select at least one location, or choose a Custom Audience."

Any ideas?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants