Thanks for pointing this out, I'll get the docs updated. We strongly encourage you to use a client library to make SOAP calls, very few developers take this route. Making raw requests like this will result in numerous headaches (such as this) trying to craft the appropriate SOAP. We have plenty of code examples showing how to do numerous actions with the API. For example, adding campaigns in java: https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201209/basicoperations/AddCampaigns.java
- Kevin Winter AdWords API Team On Thursday, January 3, 2013 1:01:37 AM UTC-5, Noah wrote: > > Still stuck on this. > > 1) Has anyone resolved how that keyword_match_settings became mandatory? > Should the documentation examples be updated? > > 2) I can't figure out, from the online SOAP documentation, the correct way > to set this variable. Can someone provide me with an example SOAP request > that includes this parameter? > > Thanks > > > On Sunday, December 30, 2012 7:34:42 PM UTC-8, Noah wrote: >> >> Hello, >> >> I'm following, step-by-step, the documentation at: >> https://developers.google.com/adwords/api/docs/ >> >> 1) Get an auth token using CURL. Works fine >> >> 2) Send manual SOAP request with supplied auth, client id, etc. FAILS >> >> I get an error back from google that says (from the SOAP response): >> >> MUST_SPECIFY_KEYWORD_MATCH_SETTINGS >> >> However, the example in the docs doesn't say anything about keyword match >> settings. My guess is that Google updated some rules for creating >> campaigns, but failed to update the documentation. >> >> Suggestions? >> >> >> >> <?xml version="1.0" encoding="UTF-8"?><soap:Envelope >> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> >> <soap:Header> >> <ResponseHeader >> xmlns="https://adwords.google.com/api/adwords/cm/v201209"> >> <requestId>0004d21d2c0c80800a42b6a8000037e3</requestId> >> <serviceName>CampaignService</serviceName> >> <methodName>mutate</methodName> >> <operations>0</operations> >> <responseTime>698</responseTime> >> <units>0</units> >> </ResponseHeader> >> </soap:Header> >> <soap:Body> >> <soap:Fault> >> <faultcode>soap:Server</faultcode> >> <faultstring>[CampaignError.MUST_SPECIFY_KEYWORD_MATCH_SETTINGS @ >> operations[0].operand.settings]</faultstring> >> <detail> >> <ApiExceptionFault >> xmlns="https://adwords.google.com/api/adwords/cm/v201209"> >> <message>[CampaignError.MUST_SPECIFY_KEYWORD_MATCH_SETTINGS @ >> operations[0].operand.settings]</message> >> >> <ApplicationException.Type>ApiException</ApplicationException.Type> >> <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:type="CampaignError"> >> <fieldPath>operations[0].operand.settings</fieldPath> >> <trigger /> >> >> <errorString>CampaignError.MUST_SPECIFY_KEYWORD_MATCH_SETTINGS</errorString> >> <ApiError.Type>CampaignError</ApiError.Type> >> <reason>MUST_SPECIFY_KEYWORD_MATCH_SETTINGS</reason> >> </errors> >> </ApiExceptionFault> >> </detail> >> </soap:Fault> >> </soap:Body></soap:Envelope> >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en