Thursday, July 12, 2012

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

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

    Dor Ben Dov <doribd@gmail.com> Jul 11 09:33PM -0700  

    2 questions:
    First , in the api console, i don't see the secret key , how can i get it ?
     
    Second, same place, the api console, where do i define the redirect_uri ?
    don't have it in my api console.
     
    Thanks in advanced,
    Dor

     

    Steffan Hoeke <steffan.hoeke@gmail.com> Jul 11 12:00AM -0700  

    I'm taking my first steps with the AdSense Management API in combination
    with the Google API Client and don't quite understand something...
     
    I've set the scope to https://www.googleapis.com/auth/adsense.readonly but,
    the grant access screen says something else:
     
    - View *and manage* your AdSense data
    - View *and manage* your ad clients, ad units, and channels in AdSense
    - View your AdSense performance and earnings reports
    - *Manage* your AdSense URL blocks
    - Perform these operations when I'm not using the application
     
     
    I would expect the *bold *parts not to be there, unless i specify something
    other than the readonly scope ?

     

    "Sérgio Gomes" <sergiomdgomes@gmail.com> Jul 11 05:27AM -0700  

    Hi Steffan,
     
    I just tried the same thing, and it shows me:
     
    View your AdSense data
    View your ad clients, ad units, and channels in AdSense
    View your AdSense performance and earnings reports
     
    Are you sure you're not passing in the
    https://www.googleapis.com/auth/adsense scope as well?
     
    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
     
     
    ---
    On Wednesday, July 11, 2012 8:00:47 AM UTC+1, Steffan Hoeke wrote:

     

    Steffan Hoeke <steffan.hoeke@gmail.com> Jul 11 06:41AM -0700  

    Sérgio,
     
    I'm using
    $client->setScopes(
    array("https://www.googleapis.com/auth/adsense.readonly")
    );
    as per the google api client example to set the scope.
     
    I'm not (knowingly) setting the scope somewhere else...
     
     
    On Wednesday, 11 July 2012 14:27:35 UTC+2, Sérgio Gomes wrote:

     

    "Sérgio Gomes" <sergiomdgomes@gmail.com> Jul 11 05:29AM -0700  

    Hi Dor,
     
    It's easier if you just use the Java client library. Here's the client
    library
    guide: https://developers.google.com/adsense/management/complete_guide
     
    The Java client library also has a number of samples for the AdSense
    Management API and other APIs, which you can
    adapt: http://code.google.com/p/google-api-java-client/wiki/APIs
     
    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
     
     
    ---
    On Tuesday, July 10, 2012 2:59:57 PM UTC+1, Dor Ben Dov wrote:

     

    Dor Ben Dov <doribd@gmail.com> Jul 11 03:42AM -0700  

    Sergio,
     
    How can it be that the command line example doesn't use the client id key
    or the secret key to query ad sense reporting api ?
     
    Regards,
    Dor

     

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