Hi everyone, I am studying the underlying SOAP request and response of AdWords API. In AccountLabelService.wsdl, complex type DateRange has properties min and max which are of the type tns:Date But in CampaignService.wsdl, min and max of DateRange are of the type xsd:string They are all under same target namespace https://adwords.google.com/api/adwords/cm/v201609
By posting this hand crafting SOAP request (I omitted soap header part) to https://adwords.google.com/api/adwords/mcm/v201609/AccountLabelService <?xml version="1.0" encoding="utf-8" standalone="yes"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Body> <get xmlns="https://adwords.google.com/api/adwords/mcm/v201609"> <selector> <fields xmlns="https://adwords.google.com/api/adwords/cm/v201609">Id</fields> <fields xmlns="https://adwords.google.com/api/adwords/cm/v201609">Name</fields> <dateRange xmlns="https://adwords.google.com/api/adwords/cm/v201609"> <min><year>2016</year><month>1</month><day>1</day></min> <max><year>2017</year><month>1</month><day>1</day></max> </dateRange> </selector> </get> </soap:Body> </soap:Envelope> I can get status 200. But if I picked another structure and posted it again to https://adwords.google.com/api/adwords/mcm/v201609/AccountLabelService <?xml version="1.0" encoding="utf-8" standalone="yes"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Body> <get xmlns="https://adwords.google.com/api/adwords/mcm/v201609"> <selector> <fields xmlns="https://adwords.google.com/api/adwords/cm/v201609">Id</fields> <fields xmlns="https://adwords.google.com/api/adwords/cm/v201609">Name</fields> <dateRange xmlns="https://adwords.google.com/api/adwords/cm/v201609"> <min>20160101</min> <max>20170101</max> </dateRange> </selector> </get> </soap:Body> </soap:Envelope> I got an error status 500 and the reason was EARLIER_THAN_MINIMUM_DATE Since in the C# client library the DateRange follows the SOAP structure as defined in CampaignService.wsdl When I tried to run the above request via C# client library, I got the same 500 error and the same reason. Is it a bug? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a3374b1a-d244-4341-bfd7-8d09ab1d6bc6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
