Hi Max,

The validateOnly header works with the BulkMutateJobService, but not
in the way you want.  Using this header you can validate that the job
is structured correctly, but it won't validate that the operations
within the job are valid.  If you want to validate your ads before
using the BMJS then you need to use the AdGroupAdService with the
validateOnly header to determine if there are policy violations.

Best,
- Eric Koleda, AdWords API Team

On Mar 3, 7:17 am, maxscan <[email protected]> wrote:
> 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-he...
> 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 [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.

Reply via email to