Wednesday, May 23, 2012

Digest for adsense-api@googlegroups.com - 2 Messages in 1 Topic

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

    Peter Diamant <peterdatwork@gmail.com> May 10 11:13PM -0700  

    Hi Sergio
     
    Thanks for the quick response. I'll look into that.
     
    My next problem (which is Google's problem!), is that there is a major
    bug in Version 1.1 of the .Net Beta Client API Library.
     
    Fortunately, I've fixed it in my version of the client library source.
     
    The problem is that the HttpWebRequestBuilder that constructs the REST
    service URI uses an IDictionary for the query parameters. This will
    not work for all calls to the service because some query parameters
    are repeated, in my particular case; the Metric key for the Generate
    Reports call has multiple values.
     
    Build and run your AdSense.Sample in the GoogleApisSamples solution
    and you will see a crash. You also have the report start and end
    dates the wrong way around in the sample which doesn't help.
     
    I've fixed it to allow multiple values for a particular query string
    parameter. I can send you my code if you want.
     
    Thanks
     
    Peter
     
     

     

    "Sérgio Gomes" <sergio.gomes@google.com> May 22 04:28AM -0700  

    Hi Peter,
     
    Apologies for the late response, looks like your message got stuck in the
    review queue.
     
    That's odd, I tested the samples quite thoroughly. Have you tried assigning
    an array to a parameter, instead of repeating it? That's generally the way
    that repeated HTTP parameters get mapped onto programming languages like C#.
     
    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, 11 May 2012 07:13:58 UTC+1, Peter Diamant 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