Hi

I'm getting a lot of ad rejections when I use the BulkMutateJobService
so I would like to validate the ads first to make sure there are no
policy violations. I looked at the docs on the new validateOnly header
and it seems this would do the trick but I can figure out how I should
use it with a BulkMutateJob...

This post: 
http://adwordsapi.blogspot.com/2009/12/discover-v2009-validateonly-header.html
says that I will get an empty response on success or an API exception
on failure.

Obviously with BulkMutateJobs you don't get API exceptions but instead
a collection of OperationResults corresponding to the list of
operations you sent. However, when a result is a failure there is
nothing to identify which operation called the result so I tend to
filter out all the successful results (which pass back the ids of the
ads created in this instance) and that leaves me with the failures.
But if the successful results are blank I am left with a set of blank
operations and a set of failures and no way to tell which applies to
what data I sent...

Has anyone had any success using the validateOnly header with a
BulkMutateJob? How would you associate the failure results with your
original data? (in fact, in general, when you don't get a successful
result how would you do this?)

Thanks in advance,

Max

-- 
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.

Reply via email to