Wednesday, December 7, 2011

Digest for adsense-api@googlegroups.com - 4 Messages in 2 Topics

Group: http://groups.google.com/group/adsense-api/topics

    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

     

    "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