Wednesday, May 21, 2014

Digest for adsense-api@googlegroups.com - 5 updates in 1 topic

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

    Andreas Osswald <admob@adrastea.com> May 20 09:21AM -0700  

    Hi,
     
    I also had the same '(403) User does not have an AdSense account.' problem
    with service account authentication today. Are you planning to support this
    functionality one day? The web-based authentication works fine, but
    unfortunately it is no option in our use case.
     
    Best regards,
    Andreas

     

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> May 20 09:27AM -0700  

    Hi Andreas,
     
    There is no need for Service Accounts. If you can't use "Web application",
    you can probably use "Installed application" (see the getting started guide<https://developers.google.com/adsense/management/getting_started>).
    What's your specific use case?
     
    Cheers,
    Jose
     
     
    ---
    Jose Alcérreca
    Developer Relations
     
    Google UK Limited
    Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W
    9TQ
    Registered in England Number: 3977902
     
    On Tuesday, 20 May 2014 17:21:11 UTC+1, Andreas Osswald wrote:

     

    admob@adrastea.com May 20 09:51AM -0700  

    Dear Jose,
     
    Thank you for your quick answer! I have just seen that there are "refresh
    tokens" which never expire and can create more "access tokens" so that
    there's only one manual login necessary. Nevertheless, I'm not sure if this
    works without a web-browser. In the use case I want to run a PHP script
    regularly through the crontab.
     
    I haven't found a way yet to access the "refresh token" through the PHP
    library from https://github.com/google/google-api-php-client - but maybe I
    need to investigate it a bit further. :)
     
    Best regards,
    Andreas

     

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> May 20 10:16AM -0700  

    Hey Andreas,
     
    You might be looking for the access_type. Set it to offline so that you get
    a refresh_token.
     
    Check out the generic OAuth
    guide: https://developers.google.com/adsense/management/tutorials/oauth-generic
     
    Cheers,
    Jose
     
     
     
    ---
    Jose Alcérreca
    Developer Relations
     
    Google UK Limited
    Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W
    9TQ
    Registered in England Number: 3977902
     

     

    admob@adrastea.com May 20 10:23AM -0700  

    Hey Jose,
     
    Looks like as if it works! Thanks a lot!
     
    Best regards,
    Andreas

     

--
You received this message because you are subscribed to the Google Groups "AdSense API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adsense-api+unsubscribe@googlegroups.com.
To post to this group, send email to adsense-api@googlegroups.com.
Visit this group at http://groups.google.com/group/adsense-api.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment