Hello Javeed,
You need to send xsi:type value for Operation for service to understand which one it is. Something like: <v20:operations xsi:type="CampaignOperation"> I seriously suggest to use one of our client libraries that handle this (and many other) issues for you: https://developers.google.com/adwords/api/docs/clientlibraries -Danial, AdWords API Team. On Thursday, September 26, 2013 6:49:02 PM UTC+4, Javeed Syed wrote: > > Hi, > > Am using 201306 WSDL to send request and retrieving response. > > When i try to add an adgroup from MutateJobService(201306). > > I am gettignt he following error. > > Error response : > > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soap:Body> > <soap:Fault> > <faultcode>soap:Client</faultcode> > <faultstring>Unmarshalling Error: cvc-type.2: The type definition > cannot be abstract for element v20:operations.</faultstring> > </soap:Fault> > </soap:Body> > </soap:Envelope> > > SOAP Request : > > <SOAP-ENV:Envelope v20="https://adwords.google.com/api/adwords/cm/v201306" > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> > <SOAP-ENV:Header> > <v20:RequestHeader xmlns:v20=" > https://adwords.google.com/api/adwords/cm/v201306"> > <v20:authToken>*****************</v20:authToken> > <v20:developerToken>*******</v20:developerToken> > <v20:clientCustomerId>***-***-*****</v20:clientCustomerId> > </v20:RequestHeader> > </SOAP-ENV:Header> > <SOAP-ENV:Body> > <v20:mutate xmlns:v20=" > https://adwords.google.com/api/adwords/cm/v201306"> > <v20:operations> > <v20:operator>ADD</v20:operator> > <v20:Operation.Type name="AdGroupOperation" > type="xsd:string"> > <v20:operand name="operand" type="tns:AdGroup"> > <v20:campaignId>*******</v20:campaignId> > <v20:campaignName>My New Campaign</v20:campaignName> > <v20:name>Test adgroup</v20:name> > <v20:status>Active</v20:status> > </v20:operand> > </v20:Operation.Type> > </v20:operations> > </v20:mutate> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > > You please point out what is the problem causing this error? > > Thank you in advance. > > Syed > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- 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 adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.