Hi Jim,

All AdWords API mutate calls are transactional (i.e. all-or-nothing 
business). The recommended practice around detecting errors in AdWords API 
is to use the validateOnly header. If you mention validateOnly header when 
making an API call, then the API call will throw APIException if there is 
something wrong with the API call, but won't perform any action if the call 
has no errors. You can refer to the following resources for more details:

- 
http://adwordsapi.blogspot.com/2009/12/discover-v2009-validateonly-header.html: 
Technical blog covering the details for validateOnly header
- 
http://code.google.com/p/google-api-adwords-java/source/browse/trunk/examples/v201101/HandlePolicyViolationError.java:
 
Java code example that shows how to make validateOnly calls, remove faulty 
operations, and make calls again.

Finally, AdGroupCriterionService supports a partial update option if you 
mention a partialFailure header. See 
http://code.google.com/p/google-api-adwords-java/source/browse/trunk/examples/v201101/HandlePartialFailures.java
 
for an example. You need to use this only if you are interested; 
AdGroupCriterionService.mutate is also all-or-nothing by default.

Cheers,
Anash P. Oommen,
AdWords API Advisor.


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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