Hi, One option that would get you very close to #1 is if you passed *true* for the partialFailure <https://developers.google.com/adwords/api/docs/guides/soap#partialFailure> header when you are adding the negative criteria. That way, one CANNOT_TARGET_AND_EXCLUDE error won't cause all of the operations in your *mutate* request to fail.
This approach will require a bit of development work on your side to properly handle partial failures, but that should be pretty straightforward. Cheers, Josh, AdWords API Team On Wednesday, July 23, 2014 9:22:07 AM UTC-4, Alan Coleman wrote: > > Hello everyone, > > I'm adding negative keywords to AdGroups via the API using the > NegativeAdGroupCriterion. > > I understand the concept of CANNOT_TARGET_AND_EXCLUDE and why it is > necessary, I just need to find a way of avoiding it in my app. > > 1) Is there a way I can skip adding a *Negative Keyword* in an AdGroup > (if it exists as a *Keyword*) whilst using the NegativeAdGroupCriterion? > > Or > > 2) Should I collect a list of keywords from my destination AdGroup and > filter my Negative keywords through it before proceeding? > > Option 1 would be more suitable in terms of API Requests and development > time. > > Thoughts? > > Many thanks > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. For more options, visit https://groups.google.com/d/optout.
