Friday, June 29, 2012

Digest for adsense-api@googlegroups.com - 10 Messages in 5 Topics

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

    "Sérgio Gomes" <sergiomdgomes@gmail.com> Jun 28 07:45AM -0700  

    Hi Filippo,
     
    I'll talk to the core engineering team to see if we can track down what's
    causing this. I'll let you know if we find anything!
     
    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, June 27, 2012 9:44:58 AM UTC+1, Filippo Silvestro wrote:

     

    Filippo Silvestro <filippo.silvestro@altervista.it> Jun 28 08:31AM -0700  

    Thank you Sèrgio!
     
    Il giorno giovedì 28 giugno 2012 16:45:21 UTC+2, Sérgio Gomes ha scritto:

     

    "Sérgio Gomes" <sergiomdgomes@gmail.com> Jun 28 07:44AM -0700  

    Hi Michael,
     
    Any chance you can send me the resulting HTTP request? I'd like to take a
    look at the headers and body in it to make sure everything is in order.
     
    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, June 27, 2012 8:57:29 AM UTC+1, Michael Ormonde wrote:

     

    Michael Ormonde <michael.ormonde2@gmail.com> Jun 28 09:41AM -0700  

    I've run the curl request with the -v option. If you need anything else, or
    if this isn't waht you meant, please just let me know:
     
    curl -v -d
    "client_id=123456789.apps.googleusercontent.com&scope=https://www.googleapis.com/auth/adsense.readonly"
    https://accounts.google.com/o/oauth2/device/code
    * About to connect() to accounts.google.com port 443
    * Trying 173.194.78.84... connected
    * Connected to accounts.google.com (173.194.78.84) port 443
    * successfully set certificate verify locations:
    * CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
    * SSLv2, Client hello (1):
    SSLv3, TLS handshake, Server hello (2):
    SSLv3, TLS handshake, CERT (11):
    SSLv3, TLS handshake, Server finished (14):
    SSLv3, TLS handshake, Client key exchange (16):
    SSLv3, TLS change cipher, Client hello (1):
    SSLv3, TLS handshake, Finished (20):
    SSLv3, TLS change cipher, Client hello (1):
    SSLv3, TLS handshake, Finished (20):
    SSL connection using RC4-SHA
    * Server certificate:
    * subject: /C=US/ST=California/L=Mountain View/O=Google
    Inc/CN=accounts.google.com
    * start date: 2011-07-21 00:00:00 GMT
    * expire date: 2013-07-18 23:59:59 GMT
    * common name: accounts.google.com (matched)
    * issuer: /C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA
    * SSL certificate verify ok.
    > POST /o/oauth2/device/code HTTP/1.1
    > User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5
    OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
    > Accept: */*
    > Content-Length: 104
    > Content-Type: application/x-www-form-urlencoded
     
    client_id=123456789.apps.googleusercontent.com&scope=https://www.googleapis.com/auth/adsense.readonlyHTTP/1.1
    400 Bad Request
    < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
    < Pragma: no-cache
    < Expires: Fri, 01 Jan 1990 00:00:00 GMT
    < Date: Thu, 28 Jun 2012 16:38:53 GMT
    < Content-Type: application/json
    < X-Content-Type-Options: nosniff
    < X-Frame-Options: SAMEORIGIN
    < X-XSS-Protection: 1; mode=block
    < Server: GSE
    < Transfer-Encoding: chunked
    {
    "error" : "invalid_scope"
    * Connection #0 to host accounts.google.com left intact
    * Closing connection #0
    * SSLv3, TLS alert, Client hello (1):
     
    Thanks for all your help with this Sergio :)
     
    Michael
     
    On Thursday, 28 June 2012 15:44:07 UTC+1, Sérgio Gomes wrote:

     

    Toruk Makhto <liftgallon@gmail.com> Jun 28 03:35AM -0700  

    Hi,
     
    Is there a way to get a quick summary of the details such as
     
    1. Today's earnings
    2. Last 7 days earnings
    3. Last 30 days earnings
    4. All time earnings, cpc etc
    etc
     
    like the ones shown in the adsense homepage. I'm currently downloading the
    entire
    data of an account and this takes up a lot of bandwidth. Also, I get values
    that are slightly
    off between the months and days(due to invalid clicks taken into account, I
    think) from the ones in the adsense website.
    For example, the total earnings from the individual months does not match
    all time totals. It is off by one cent.
     
    I can reduce the bandwidth and also get exact results as in the adsense
    site by splitting it into 3 requests for the day, week and month but
    since my application will run every hour and will have many
    users(hopefully), I could
    exhaust my quotas. So this isn't feasible.
     
    Thanks in advance.

     

    "Sérgio Gomes" <sergiomdgomes@gmail.com> Jun 28 07:52AM -0700  

    Hi Toruk,
     
    I'm afraid there's no way to aggregate all those reports into a single
    request.
     
    Is there any way you can reduce the frequency at which you run reports?
    Since the earnings you're getting seem to be on a daily basis at most,
    perhaps you can try running it just once a day.
     
    In case that's not possible, you can at least reduce the number of requests
    by not running the longer period reports every hour.
     
    As for invalid clicks, yes, these are things that are calculated up to a
    day or two after the click event, so you'll need to periodically update
    your data to make sure you get correct values.
     
    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 Thursday, June 28, 2012 11:35:04 AM UTC+1, Toruk Makhto wrote:

     

    Toruk Makhto <liftgallon@gmail.com> Jun 28 09:35AM -0700  

    Hi Sérgio,
     
    I'll try and reduce the requests that I make and ensure that it runs in
    longer durations. The reason I
    wanted to run it hourly was so that it would automatically show
    notifications periodically without
    users having to refresh their stats(which can become an addiction if
    unchecked :) ).
     
    It'd be great if you could consider adding the quick stats api call feature
    for the next version of the Adsense API.
     
    Thanks for the fast reply.

     

    Dor Ben Dov <doribd@gmail.com> Jun 28 05:15AM -0700  

    Sergio,
    In case it's a server that need to call this service (no user in the
    middle) and get results, do you have any code example on how to do the
    oauth 2.0 authentication procedure ?
     
    Sorry for interrupting Xiaohu.
    Regards,
    Dor
     
    On Saturday, June 23, 2012 4:04:21 AM UTC+3, Sérgio Gomes wrote:

     

    "Sérgio Gomes" <sergiomdgomes@gmail.com> Jun 28 07:54AM -0700  

    Hi Dor,
     
    In that case, I'd suggest you look at either the installed application or
    web server flows and use those for the initial authentication of your app.
    After that, just make sure you store and reuse the credential data, and you
    should never have to authenticate again. The client library guide<https://developers.google.com/adsense/management/complete_guide>should get you started.
     
    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 Thursday, June 28, 2012 1:15:06 PM UTC+1, Dor Ben Dov 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