Search code examples
facebookfacebook-ads-apifacebook-marketing-api

Facebook marketing api access non existing field


I am trying to access campaigns of the facebook account. Using python lib: https://github.com/facebook/facebook-python-ads-sdk

Receive error: (#100) Tried accessing nonexisting field (campaigns) on node type (AdAccount)

Url: https://graph.facebook.com/v2.11/{account_id}/campaigns

Everything worked fine for months. Now, even facebook page for this url is empty: https://developers.facebook.com/docs/marketing-api/reference/ad-account/campaigns/

Any thoughts, what's the problem?


Solution

  • Seems to be a bug. Reported here: https://developers.facebook.com/bugs/707332642990208/

    Works perfectly without time_range param. So, could be temporary solution.