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
How do I get Ad Report Stats via the SDK? #14
Comments
Sorry, now I've got it.
|
it looks like you're doing a lot of work to just get the json again, you may want to think about something like:
|
Thanks, much better! |
I am using the same code as la-bas but I'm greeted with a permission error. It seems I can't reach reports as an Analyst account while I can reach the reports via the Ads Manager. What's the difference between calling them in the browser and calling them in code? Error: |
@siegerhansma, please create a new issue with the exact series of requests your using and we can look into it |
The SDK requires PHP 5.4 and above so this is why you see these errors. Sent from my iPhone
|
I can't figure out how to make calls to
reportstats
using the SDK.The class
AdAccount
do have a method namedgetReportsStats()
which takes an array of fields and an array of parameters as arguments, so I tried something like this:However this just returns the ad account data, not the actual stats.
When I examined the object
$account
after the call togetReportsStats()
method I found that it did indeed contain the stats. StillgetData()
doesn't return it. Am I supposed to use some other method to get the stats?The text was updated successfully, but these errors were encountered: