Hi Tim we were having exactly the same problem as you were but found a solution which will hopefully be of use to you
What was happening was that we were specifying the xsi types when attempting to do a MUTATE-SET, including for example the following in our soap request <ns1:bids xsi:type="ns1:ManualCPCAdGroupCriterionBids"/> The reason we were doing this is because it's required when doing a MUTATE-ADD, but it's not needed when doing a SET, (because it's already defined) and hence it generates an error message. When we removed it, the request worked fine! On Dec 2, 6:45 pm, Timothy Merrifield <timothymerrifi...@gmail.com> wrote: > Thanks Eric! > > Sounds great! But I just tried it out and got a required field error > on my mutate. How can a figure out what fields are required on a > Campaign object? > > On Nov 30, 1:21 pm, AdWords API Advisor <adwordsapiadvi...@google.com> > wrote: > > > Hi Tim, > > > When creating the new DTO you only need tosetthe required fields and > > the fields you want to change. Any fields not included in the request > > (setas null) will be left unchanged. For example, to pause an ad you > > only need the followingoperation: > > > <v20:operations> > > <v20:operator>SET</v20:operator> > > <v20:operand> > > <v20:adGroupId>XXXXX</v20:adGroupId> > > <v20:ad> > > <v20:id>XXXXX</v20:id> > > </v20:ad> > > <v20:status>PAUSED</v20:status> > > </v20:operand> > > </v20:operations> > > > Best, > > - Eric Koleda, AdWords API Team > > > On Nov 27, 3:19 pm, Timothy Merrifield <timothymerrifi...@gmail.com> > > wrote: > > > > Hey guys, > > > > I'm trying to mutate a campaign object but I'm running into a "Read- > > > only" error being throw. I found a previous thread that said that you > > > should create a new data transfer object and pass that into the mutate > > > function. Apparently this is because some fields are read-only and > > > passing in a DTO with those fieldssettriggers a read-only error. > > > > My problem is that I only want to mutate a single field, STATUS. I'm > > > afraid that if I create a new DTO that other fields could be mutated. > > > Even if I dosetall the fields to the pre-existing DTO, how can I be > > > sure that I get them all? This api call will modify our client's > > > campaigns so it's very important that I don't modify any other fields. > > > Is there any easy way to be certain that I only mutate a single field? > > > > Any advice would be great. Thanks! > > > Tim -- 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-...@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.