Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReportStats Asynchronous Query #11

Closed
tpaskhalis opened this issue Nov 20, 2014 · 3 comments
Closed

ReportStats Asynchronous Query #11

tpaskhalis opened this issue Nov 20, 2014 · 3 comments

Comments

@tpaskhalis
Copy link

There is currently no straightforward way to fetch Ad Report Stats through asynchronous queries. get_report_stats in AdAccount only allows direct GET requests. And most historical data is not accessible through it, returning error 1487535. Will this be implemented in the future?

@cscanlin
Copy link
Contributor

This issue still remains unresolved. Does anyone know a workaround for this that doesn't involve cURL?

@ebzlo
Copy link

ebzlo commented Jan 27, 2015

Hey guys, we're working on building this out. Sorry for the delay.

A workaround would be to use the FacebookAdsApi::call method and parse the response yourself.

Here's a sample of how to make a call using that method.

# Instantiate an API object. You likely already have one so you
# can use FacebookAdsApi.get_default_api()

api = FacebookAdsApi.get_default_api()
response = api.call('GET', 'https://graph.facebook.com/me')
print response.json()

# Output
# {u'first_name': u'Evan', u'last_name': u'Chen', u'verified': True, u'name': u'Evan C...}

@ebzlo ebzlo closed this as completed Jan 27, 2015
@maimonoded
Copy link

Hi, do you know when a solution will be ready in the sdk ?

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

No branches or pull requests

4 participants