Group: http://groups.google.com/group/adsense-api/topics
- Get current CTR ? [3 Updates]
- Auden69 <Auden69@gmail.com> Dec 03 07:25AM -0800
Thanks for your support.. but i've some difficulty with POO et and I never
use a API :-(
I found the request I need with this this tool =>
https://code.google.com/apis/explorer/
What I need :
GET
https://www.googleapis.com/adsense/v1/reports?startDate=2011-12-02&endDate=2011-12-02&metric=PAGE_VIEWS_CTR&fields=totals&pp=1&key={YOUR_API_KEY}
I'ts ok in the explorer but out ot the exploreer, i need to be
authenficated before launch my request... and i don't know how to do :-(
This is my problem :
"error": {
> "message": "Login Required"
> }
> }
As you can see English is not my native language.... My goal is to get my
CTR with a Php script....
There is a french suppport ?
Thanks
- Silvano Luciani <silvano.luciani@google.com> Dec 03 09:27AM -0800
Hello,
I'm sorry but we provide support in english only, but don't worry, I
understand your question!
We have this article that explains how to do authentication with Java,
Python and PHP using the Google API's client libraries:
http://adsenseapi.blogspot.com/2011/11/adsense-management-api-oauth-20-for-web.html
If you want to write a script intended to be executed from a shell,
I'd suggest you to use Python instead, because the Python client
library supports the OAuth 2.0 authentication flow for native
applications.
You can find guides to use the AdSense Management API with the Google
APIs client libraries for Java, Python and PHP here:
http://code.google.com/apis/adsense/management/v1/complete_guide.html
If you'd rather do it in PHP, the Client library includes an example
of PHP web application:
http://code.google.com/p/google-api-php-client/source/browse/#svn%2Ftrunk%2Fexamples%2Fadsense
Don't hesitate to post if you have any additional questions!
Silvano
--
Silvano Luciani | Developer Programs Engineer
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London
SW1W 9TQ
Registered in England Number: 3977902
- Silvano Luciani <silvano.luciani@google.com> Dec 03 09:40AM -0800
Hello again,
in my previous reply I forgot this other resource, a blog post on the
OAuth 2.0 authentication flow for native applications in Java or
Python:
http://adsenseapi.blogspot.com/2011/11/adsense-management-api-oauth-20-for.html
It's the authentication flow to use for installed applications.
Cheers,
Silvano
--
Silvano Luciani | Developer Programs Engineer
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London
SW1W 9TQ
Registered in England Number: 3977902
You received this message because you are subscribed to the Google Group adsense-api.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.
You received this message because you are subscribed to the Google Groups "AdSense API Forum" group.
To post to this group, send email to adsense-api@googlegroups.com.
To unsubscribe from this group, send email to adsense-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/adsense-api?hl=en.
No comments:
Post a Comment