Group: http://groups.google.com/group/adsense-api/topics
- Only OAuth as authentication? [2 Updates]
- Can I edit Code? If can i codes how? [2 Updates]
- saverio mucci <saver.mucci@gmail.com> Dec 06 09:24AM -0800
Hi all,
Is the OAuth the only way to access the api because i just want to use them
to send some kind of scheduled e-mail.
I tried something like this:
service = build("adsense", "v1", developerKey=KEY)
service.adclients().list().execute()
from:
http://code.google.com/p/google-api-python-client/source/browse/samples/customsearch/main.py
but i get a "login required" as response, am I doing something wrong ?
Thanks
Saverio
- "Sérgio Gomes" <sergio.gomes@google.com> Dec 06 10:26AM -0800
Hi Saverio,
Yes, OAuth is currently the only supported method of authentication.
It does have facilities for automated access, however. If you follow the
auth flow at least once, you'll get back a "refresh token". This is a
long-lived token that you can use to generate access tokens automatically,
without requiring user input again. It will only ever expire if the user
revokes access to the application.
Our client library guide might be able to help (take a look at the
"Persisting authentication data" section). If not, let me know what
programming language you're using (and whether you're using our client
libraries), and I'll help you figure out how to persist that data.
Cheers,
Sérgio
---
Sérgio Gomes
Developer Relations
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W
9TQ
Registered in England Number: 3977902
- Harrison Jung <silverlake08@gmail.com> Dec 06 05:42AM -0800
I mean can i edit Adsense javascript code?
I make use full javascript site. So, that site very low reload page.
Just use hash( # ).
I can use Google Analytics API. It can use like this.
_gaq.push(['_setAccount', 'UA-12345-1']);
_gaq.push(['_trackPageview', '/home/landingPage']);
Link :
http://code.google.com/intl/ko/apis/analytics/docs/gaJS/gaJSApiBasicConfiguration.html#_gat.GA_Tracker_._trackPageview
There's no way to like that, in Adsens API ?
- "Sérgio Gomes" <sergio.gomes@google.com> Dec 06 10:21AM -0800
Hi Harrison,
I'm afraid that the goal of the AdSense Host API is not to customise the ad
code for your ads, but rather to provide functionality for hosts to make it
easier for their customers to sign up for AdSense. This page should explain
the basics: http://code.google.com/apis/adsense/host/index.html
As for the AdSense Management API, it does not support ad code generation
at this time.
Cheers,
Sérgio
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