Hello, When I run the latest version of the schedule_report.rb sample code against the Sandbox, without changing anything other than supplying valid Sandbox request headers, the full scheduleReportJob() request looks like:
<?xml version="1.0" encoding="utf-8" ?> <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Header> <password env:mustUnderstand="0">XXXX</password> <email env:mustUnderstand="0">XXXX</email> <clientEmail env:mustUnderstand="0">XXXX</clientEmail> <useragent env:mustUnderstand="0">XXXX</useragent> <developerToken env:mustUnderstand="0">XXXX</developerToken> <applicationToken env:mustUnderstand="0">XXXX</ applicationToken> </env:Header> <env:Body> <scheduleReportJob xmlns='https://adwords.google.com/api/adwords/ v13'> <job xsi:type='DefinedReportJob'> <selectedReportType>Keyword</selectedReportType> <name>Sample Keyword Report</name> <aggregationTypes>Summary</aggregationTypes> <adWordsType>SearchOnly</adWordsType> <keywordType>Broad</keywordType> <startDay>2009-01-01</startDay> <endDay>2009-01-31</endDay> <selectedColumns>Campaign</selectedColumns> <selectedColumns>AdGroup</selectedColumns> <selectedColumns>Keyword</selectedColumns> <selectedColumns>KeywordStatus</selectedColumns> <selectedColumns>KeywordMinCPC</selectedColumns> <selectedColumns>KeywordDestUrlDisplay</selectedColumns> <selectedColumns>Impressions</selectedColumns> <selectedColumns>Clicks</selectedColumns> <selectedColumns>CTR</selectedColumns> <selectedColumns>AveragePosition</selectedColumns> </job> </scheduleReportJob> </env:Body> </env:Envelope> And I don't receive a SOAP fault from the Sandbox server when sending that request. I also tried modifying the code to go against the Production ReportService and things work there as well. So I don't know of anything that would be causing the issues you're encountering, other than perhaps, as you suggest, some sort of version incompatibility with a Ruby dependency. But using the adwords4r client library is definitely the best approach. Cheers, -Jeff Posnick, AdWords API Team On Apr 4, 5:20 am, P3 <[email protected]> wrote: > Thank you for spending time to answer, > > Indeed the impl: is not in the original code, but I clearly specify in > the first message that the job did pass validation… > and removing "impl:" it doesn't change anything to the problem: same > JavaBean-related exception ! > (I would say "hopefully !", because both versions are strictly > identical from an XML semantical point of view...) > > And you miss to answer the point: > why a validated job fails with a server side error at scheduling > time ? > > + > the original schedule_report.rb example doesn't even pass validation > if you don't add > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > to the validateReportJob XML tag, > so please don't tell me "don't modify our examples, they are so > perfect…" > (kidding) > > + > before reading yout answer, I ended-up doing the job in Java, > so the problem is not CPM-related, the same parameters set works fine > from the Java reporting example. > (the original schedule_report.rb report parameters set fails with the > same message…) > > + > after reading your answer, I also do the testing with the Ruby AdWord > Gem, and it works… > so the conclusion is: there is something in the way the SOAP request > is built that is quite different between the schedule_report.rb and > the report.rb using the Gem, … > with some more time, I would investigate exactly what … > > but at first sight, due to the fact that I had to add a "xmlns" tag to > the original example to pass validation, the problem may be related to > the version of the REXML lib installed here… (…side effect modifying > the way the SOAP request is built… ?) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
