Question

Following the Ads API docs for reachestimate (http://developers.facebook.com/docs/reference/ads-api/reachestimate/), I received a "false" response when calling

https://graph.facebook.com/act_0000000000000000/reachestimate?currency=EUR&targeting_spec={'countries':['US']}&access_token=___

(Note: act_0000000000000000 is my user Id and _ is my access token - these tokens work correctly for other Ads API calls).

Using the Graph API Explorer tool, I receive the following response on this API call

{
  "error": {
    "message": "(#10) Application does not have permission for this action",
    "type": "OAuthException",
    "code": 10
  }
}

However, when I call

https://graph.facebook.com/1111111111111111/reachestimate?currency=EUR&targeting_spec={'countries':['US']}&access_token=___

where 1111111111111111 is an adgroup, I get a valid data structure.

Has anyone come across this elsewhere? Is there a "magic" setting somewhere that enables this capability on the user account (enabled for ads_management, offline_access)?

Any thoughts very welcome. Thank you.

Was it helpful?

Solution

Thanks @Igy - just confirmed that my issue was indeed the misuse of my UserID in account field - have since migrated these queries to use the designated account ID and works as expected.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top