Friday, March 22, 2013

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

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

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Mar 21 04:53AM -0700  

    Hi there,
     
    Your query seems to be using COUNTRY_CODE instead of DOMAIN_NAME. In either
    case, the 500 error should have a reason or a message and it may be telling
    you that the dimensions and metrics specified are incompatible.
     
    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
     
     
    Google Inc.| Developer Relations | *AdSense API Team* |
    developers.google.com/adsense
     
    On Thursday, 21 March 2013 10:58:46 UTC, The Mediacommentator wrote:

     

    The Mediacommentator <mediacommentator@gmail.com> Mar 21 07:02AM -0700  

    Yes, I first tried DOMAIN_NAME, when it failed, I tried COUNTRY_CODE which
    failed in exactly the same way.
    In both cases the 500 Error gave Null as the reason

    Where do I go now?

     
    On Thursday, 21 March 2013 11:53:39 UTC, Jose Alcérreca (AdSense API Team)
    wrote:
     

     

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Mar 21 07:23AM -0700  

    Hi,
     
    Looks like there is something wrong because I just tried the same request
    and it worked:
     
     
    GET https://www.googleapis.com/adsense/v1.2/reports?startDate=2013-01-01&endDate=2013-03-21&dimension=MONTH&dimension=COUNTRY_CODE&metric=PAGE_VIEWS&key={YOUR_API_KEY}
     
     
     
    200 OK
     
    {
    "kind": "adsense#report",
    "totalMatchedRows": "2",
    "headers": [
    {
    "name": "MONTH",
    "type": "DIMENSION"
    },
    {
    "name": "COUNTRY_CODE",
    "type": "DIMENSION"
    },
    {
    "name": "PAGE_VIEWS",
    "type": "METRIC_TALLY"
    }
    ],
    ...
     
     
    Can you please email us your account address so we can check if there's
    something wrong? adsenseapi-tech@google.com
     
    Thanks,
    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
     
     
    Google Inc.| Developer Relations | *AdSense API Team* |
    developers.google.com/adsense
     
    On Thursday, 21 March 2013 14:02:20 UTC, The Mediacommentator wrote:

     

    The Mediacommentator <mediacommentator@gmail.com> Mar 21 07:32AM -0700  

    Hi,
    Thanks for getting back so soon, I'm logged in as mediacommentator@gmail.com

     
    On Thursday, 21 March 2013 14:23:08 UTC, Jose Alcérreca (AdSense API Team)
    wrote:
     

     

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Mar 21 08:12AM -0700  

    Hi,
     
    Everything looks OK. Are you using client libraries for the request? it may
    be a problem with multiple dimensions. Can you try making the request with
    the APIs explorer? Please copy everything you can if you get the error.
     
    https://developers.google.com/adsense/management/v1.2/reference/reports/generate
     
    Thanks!
    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
     
     
    Google Inc.| Developer Relations | *AdSense API Team* |
    developers.google.com/adsense
     
     
    On Thursday, 21 March 2013 14:32:41 UTC, The Mediacommentator wrote:

     

    The Mediacommentator <mediacommentator@gmail.com> Mar 21 08:45AM -0700  

    Hi,
    I ran the query using the API explorer with the folloing result:

    adsense.reports.generate executed moments ago time to execute: 566 ms

     
    An error occurred. See the response for details.

    Request
    GET
    https://www.googleapis.com/adsense/v1.2/reports?startDate=2013-03-17&endDate=2013-03-18&dimension=MONTH&dimension=DOMAIN_NAME&metric=PAGE_VIEWS&key={YOUR_API_KEY
    }
    Authorization: Bearer
    ya29.AHES6ZSvKx7q-Ltqhr3M2dtKrGG0bS4XPPoEUblWcOq4MabLbQ
    X-JavaScript-User-Agent: Google APIs Explorer
    Response
    500 Internal Server Error - Show headers - { "error": { "code": 500,
    "message": null }}

    When I replaced DOMAIN_NAME by COUNTRY_CODE, it ran fine and produced a
    result.



     
    On Thursday, 21 March 2013 15:12:03 UTC, Jose Alcérreca (AdSense API Team)
    wrote:
     

     

    Ashesh <ppashesh@gmail.com> Mar 21 05:11AM -0700  

    Can anyone please help me with this?
     
    On Monday, March 18, 2013 1:39:20 PM UTC+5:30, Ashesh wrote:

     

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Mar 21 04:40AM -0700  

    Hi there!
     
    That means there is no data for the HOSTED_AD_CLIENT_IDs that are not shown
    on the report.
     
    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
     
     
    Google Inc.| Developer Relations | *AdSense API Team* |
    developers.google.com/adsense
     
    On Monday, 18 March 2013 14:02:47 UTC, sorry chou 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 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

5 comments:

  1. I don't know if it's just me or if everybody else experiencing problems with
    your website. It appears as if some of the text within your
    content are running off the screen. Can somebody else please provide feedback and let me know if this is happening to them as well?
    This might be a problem with my browser because I've had this happen before. Thanks

    Feel free to visit my site :: Life style golf Holidays

    ReplyDelete
  2. Have you ever considered writing an ebook or guest authoring
    on other sites? I have a blog centered on the same information
    you discuss and would love to have you share some stories/information.
    I know my readers would value your work. If you're even remotely interested, feel free to shoot me an e-mail.

    Have a look at my site; Construction In architecture

    ReplyDelete
  3. What's up every one, here every one is sharing these kinds of know-how, thus it's pleasant
    to read this weblog, and I used to go to see this webpage all the time.


    Also visit my homepage; wedding Photography Cape Town

    ReplyDelete
  4. Saved as a favorite, I like your site!

    Also visit my blog: houses on auction

    ReplyDelete
  5. Pretty! This was an extremely wonderful post. Thank you for providing these
    details.

    Look into my web site ... click This website

    ReplyDelete