Wednesday, May 23, 2012

Digest for - 2 Messages in 1 Topic


    Peter Diamant <> 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.


    "Sérgio Gomes" <> 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#.
    Sérgio Gomes
    Developer Relations
    Google UK Limited
    Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W
    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
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment