Hi, If you have *partialFailure=true*, then each operation without errors will be applied, but operations with errors will be returned. With *partialFailure=false* (or not specified), all operations in a request will fail if *any* operation in the request has errors.
The basic validation checks on operations occur before any policy violation checks, so if you have fields that hit basic validation issues, you'll only get back those errors in the response. If all of an ad's fields pass the basic validation checks, then I would expect you to get back all of the policy violation errors for each ad in the error response. One reason for this is that performing more complex validation checks when there are basic validation issues could produce confusing or meaningless errors. For example, if a final URL has an invalid protocol, it wouldn't be very helpful if the AdWords API also returned an error to indicate that the final URL was unreachable. In the particular case you mentioned, the missing protocol in the final URL falls into the basic validation category, so you'd have to correct that before you'll get back policy violation errors. If you frequently encounter specific basic validation errors, then you may want to add validation within your application to avoid submitting those operations. As an alternative, you could submit your request with validateOnly=true <https://developers.google.com/adwords/api/docs/guides/call-structure#request_headers>, which will perform most of the validation steps for your request, but won't actually apply the changes. This would allow you to identify problematic operations, fix them, and then send the corrected operations in a second request with *validateOnly=false*. Thanks, Josh, AdWords API Team On Wednesday, January 10, 2018 at 7:13:27 AM UTC-5, cv wrote: > > Hello Vincent, > > Thanks for your reply. > > I am assuming that partial failure is not giving me errors for those ads > who fails. But without error ads will be submitted to Adwords. Right? > what about when I do not wants to post all the ads when any of the Ads > with error? > > That is why I tried using validate adtext before posting. > > Anyway I can get those ads also which has policy violation error along > with basic errors? > > Thanks, > > On Wednesday, 10 January 2018 13:34:05 UTC+5:30, Vincent Racaza (AdWords > API Team) wrote: >> >> Hi, >> >> You can set the partialFailure >> <https://developers.google.com/adwords/api/docs/guides/partial-failure#technical_details> >> to >> true to commit all the successful operations and get/handle all the errors >> from the failed operations in one request. You can check in the link the >> supported services for this feature. You can also see the code examples >> here >> <https://developers.google.com/adwords/api/docs/guides/partial-failure#code_examples> >> . >> >> Please try this and let me know if this works for you. >> >> Thanks, >> Vincent >> AdWords API Team >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/673b8eab-e97b-482a-9890-01b398e786d4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.