Wednesday, May 2, 2012

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

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

    "Sérgio Gomes" <sergio.gomes@google.com> May 01 10:10AM -0700  

    Hello there!
     
    Just to confirm, what sort of authentication are you using? Is it Web
    Server authentication, i.e. the one described
    in https://developers.google.com/accounts/docs/OAuth2WebServer ?
     
    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 Monday, April 23, 2012 5:19:23 PM UTC+1, Ludo wrote:

     

    "Eric Haskins" <eric@voodoo.com> Apr 30 01:16PM -0400  

    Ludo Try this
     
    <?php
    require_once '/www/phpinclude/google_client_api/src/apiClient.php';
     
    $data = array(
    'client_id' => 'xxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com',
    'client_secret' => 'XXXXXXXXXXXXXXXXXX',
    'refresh_token' => XXXXXXXXXXXXXXXXXXXXXA85zRh8',
    'grant_type' => 'refresh_token'
    );
     
    $ch = curl_init("https://accounts.google.com/o/oauth2/token");
     
    curl_setopt($ch,CURLOPT_POST,true);
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
    curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($data));
    curl_setopt($ch, CURLINFO_HEADER_OUT, true);
     
     
    $resp = curl_exec($ch);
    curl_close($ch);
     
    $json = json_decode($resp,true);
     
    echo "Access Token: " . $json['access_token'];
     
    -----Original Message-----
    From: adsense-api@googlegroups.com [mailto:adsense-api@googlegroups.com] On
    Behalf Of Ludo
    Sent: Monday, April 23, 2012 12:19 PM
    To: AdSense API Forum
    Subject: Re: Error Invalid Grant w/ refresh token
     
    Hello,
     
    Same problem here !
     
    Bye.
     
     
    --
    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.

     

    Ludovic VUE <vue-_l@epitech.eu> May 01 07:14PM +0200  

    Hello !
     
    I did another test and it works fine !
     
    And yes i use this sort of authentification (OAuth2).
     
    Thanks for asking !
     
    2012/5/1 Sérgio Gomes <sergio.gomes@google.com>
     
     
    --
    *Ludovic VUE*
    EPITECH - Promo 2014
    Secrétaire général et Webmaster de Soul Of Sound
    06 07 29 63 27

     

    "Sérgio Gomes" <sergio.gomes@google.com> May 01 10:13AM -0700  

    Hi there,
     
    I'm afraid the Management API is read-only, and its purpose is simply to
    retrieve your inventory data, as well as to run reports. You cannot in any
    way control which ads are shown using the API.
     
    You probably want to look at general AdSense support for the answer to your
    question: http://support.google.com/adsense/?hl=en
     
    Hope this helps!
     
    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 Friday, April 27, 2012 11:04:02 PM UTC+1, veemer wrote:

     

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