Hi Oliver,
Here's a log that shows you how a partialFailure request looks like. You
can see that the second and 4th operations fail, so they have an empty
AdGroupCriterion node (bolded). The partialFailures node tells what went
wrong.
Cheers,
Anash
AdsClientLibs.DetailedRequestLogs Informatio
Thanks Anash.
Just to confirm, when you say:
>> But the failed operations will not have a valid ad field or ids.
Do you mean there will be a NULL in the position of the failed Ad, or do
you mean there will be an AdGroupAd with invalid Ad ID (maybe something
like 0)?
On Tuesday, January 20, 2
Hi Oliver,
All the operations (failed and successful) will be returned in the results,
in the same order as you passed them to the server. But the failed
operations will not have a valid ad field or ids. You can use either that
information, or lookup the errors to see which operations failed an
Thanks Anash.
I forgot to mention we have partialFailure enabled. We're also aware of
how to find out about the failed operations as you pointed out in the
examples.
Our question was about how to handle the successful operations returned
result. We need to know the ID of the new ads that wer
Hi Oliver,
The behavior is controlled by an AdWords API SOAP header called
partialFailure. If you disable partialFailure, then the whole request fails
if at least one operation fails (this is the default). If you enable
partial failure, the failed operations will be returned in a separate field
Assume we want to create 10 new text Ads.
We use *AdGroupAd.mutate()* and pass the 10 *AdGroupAdO**peration *objects. The
response from the mutate method is an *AdGroupAdReturnValue *object.
Assume the creation of 3 out of the 10 Ads failed (Policy violation, etc.)
How long is the *AdGroupAd*[]