anuj607 / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Adding alt=csv to AdSense API report call results in exception in the PHP client libraries #128

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the AdSense API to make a report call
2. Set alt=csv to get CSV output
3. Receive an exception

What is the expected output? What do you see instead?
    Data in CSV format.  Exception while attempting to parse the response.  Seems like client libraries expect JSON so an exception is thrown while trying to JSON decode the CSV.

What version of the product are you using? On what operating system?
    AdSense Management API v1.1, PHP client libraries

(I logged this with the AdSense API folks and they said to log an issue here 
instead.  Let me know if this is not the right place.  Thanks!)

-Suwei

Original issue reported on code.google.com by su...@google.com on 7 May 2012 at 6:45

GoogleCodeExporter commented 9 years ago

Original comment by chirags@google.com on 9 May 2012 at 1:02

GoogleCodeExporter commented 9 years ago
It's documented in the service comment. Either this option should be removed or 
the code should detect the appropriate format. May be worth referring to the 
other libs for how they handle this case. 

Original comment by ianbar...@google.com on 22 Mar 2013 at 2:11

GoogleCodeExporter commented 9 years ago
This issue tracker is now closing. Development on the Google PHP client library 
moved to GitHub with the release of the 1.0.0-alpha, and now the 1.0 branch has 
reached beta status there will be no further releases of the 0.6 branch of the 
library. 

Please take a look at the latest version on 
https://github.com/google/google-api-php-client

For information on migrating, please take a look at this guide: 
https://developers.google.com/api-client-library/php/guide/migration

For general library support please ask a question on StackOverflow: 
http://stackoverflow.com/questions/tagged/google-api-php-client

If you are looking for support with a specific API, please contact the team 
working with that API via StackOverflow or their preferred support mechanism. 

If your issue still exists with the new version of the library, please raise a 
bug in the GitHub issue tracker with a minimal code sample. 

Thanks!

Original comment by ianbar...@google.com on 22 Jan 2014 at 4:53