Can RateExceededError happen only for part of operations in case PartialFailure is true

11 views
Skip to first unread message

Dzmitry Zahusta

unread,
Sep 24, 2014, 10:33:33 AM9/24/14
to adwor...@googlegroups.com
Hi all!

Is it possible that part of operations are performed but the remaining are failed with RateExceededError (in case PartialFailure is true)? I just wondering if this situation should be handled in code.

Anash P. Oommen (AdWords API Team)

unread,
Sep 24, 2014, 3:34:05 PM9/24/14
to adwor...@googlegroups.com
Hi Dzmitry,

I haven't seen that happen, though you wouldn't need a special handling for RateExceededError in this case. You just need to handle this case like any other:

try {
  Make API call
} catch (ex) {
  Pick the operations that failed. (this would be everything when partialfailure is not set)
  See if they can be retried. (can be rate exceeedederror, policyviolationerror, databaseerror, etc.)
  If yes, keep them. If not, remove them.
  If there is at least one retryable operation, then retry.
}

Cheers,
Anash P. Oommen,
AdWords API Advisor.
Reply all
Reply to author
Forward
0 new messages