Tuesday, May 8, 2012

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

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

    Toruk Makhto <liftgallon@gmail.com> May 07 01:00AM -0700  

    Hi,
     
    I'd like to know if there is a way to get more than one metric from a
    single API call. I'd
    like to get around 5-10 metrics in a single request itself so that I
    don't waste requests/bandwidth.
    I tried the following url in the api playground
     
    https://www.googleapis.com/adsense/v1.1/reports?endDate=2012-05-07&startDate=2012-05-07&metric=PAGE_VIEWS,EARNINGS
     
    and got the following response
     
    HTTP/1.1 400 Bad Request
    status: 400
    content-length: 419
    x-xss-protection: 1; mode=block
    x-content-type-options: nosniff
    x-google-cache-control: remote-fetch
    expires: Mon, 07 May 2012 07:52:12 GMT
    server: GSE
    via: HTTP/1.1 GWA
    cache-control: private, max-age=0
    date: Mon, 07 May 2012 07:52:12 GMT
    x-frame-options: SAMEORIGIN
    content-type: application/json; charset=UTF-8
    -content-encoding: gzip
     
    {
    "error": {
    "errors": [
    {
    "domain": "global",
    "reason": "invalidParameter",
    "message": "Invalid value 'PAGE_VIEWS,EARNINGS'. Values must match
    the following regular expression: '[a-zA-Z_]+'",
    "locationType": "parameter",
    "location": "metric[0]"
    }
    ],
    "code": 400,
    "message": "Invalid value 'PAGE_VIEWS,EARNINGS'. Values must match
    the following regular expression: '[a-zA-Z_]+'"
    }
    }
     
    If anyone knows of a solution, please do let me know.
     
    Thanks.

     

    Pwn B <pwndzr@gmail.com> May 03 11:33PM -0700  

    An item, "AdSense API Referral Bounty", shows up as a product in the
    performance reports of Google Adsense.
     
    It reflects thousands of pageviews with zero earnings. What are these types
    of adverts, where are they shown and why doesn't it perform as good as
    "AdSense for Content"?
     
    Thanks
    Pwn B

     

    carl0s <carl@internetsomething.com> May 05 09:01AM -0700  

    Hi.
    How can I obtain text adwords data (e.g. JSON) for custom presentation
    within my search engine?
    I know of a site doing exactly that. (screenshot:
    http://www.internetsomething.com/test.png ). Those adverts at the top are
    AdWords. The data comes straight from the site though - it's not
    client-side javascript as far as I can see.
     
    We supply/install/maintain computers and networks here in England and we
    set our Google-like home/search page as the out-of-box default for the
    customer. We have previously used the Google-hosted Custom Search Engine,
    but now are building our own, and using the Custom Search API to obtain
    search data. We want to display adverts along with it, in a clean and
    integrated fashion like Google do on their homepage, and like the example
    site does in the screenshot. Of course the adverts need to tie in with what
    the user searches for, because this is a search engine!
     
    Can anybody please point me in the right direction?
     
    thanks,
    Carl

     

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