Error handling for AddOfflineUserDataJobOperationsRequest

80 views
Skip to first unread message

Ilya Karpov

unread,
Jan 19, 2021, 2:34:27 AM1/19/21
to AdWords API and Google Ads API Forum
Hi,

I'm looking forward to implement user list upload for Customer Match using Google Ads API. In the provided example I see that response can contain partial failure, and I want to understand how can I handle it if many issues occurred simultaneously(invalid data, quota exceeded etc). For example:
say I have quota for 1_000 operations, then if request 2_000 mutate operations (ADD) where some operations (say first 300) have invalid data, then:
1. What StatusCode will I receive?
2. Am I right that for 2_000 operations I will receive 1_300 errors: first 300 - with errorCode saying that data is invalid, then 1_000 with errorCode saying that resource exhausted?

I assume that response will look something like this:
Exception: {
  "StatusCode": 8, // (1) first question
  "Details": "Resource has been exhausted (e.g. check quota).",
  "RequestId": "MoKNN9ntONjF9nPdug0xSg",
  "Failure": {
    "errors": [ // (2) second question
      {
        "errorCode": {
          "quotaError": "RESOURCE_EXHAUSTED"
        },
        "message": "Too many requests. Retry in 3254 seconds.",
        "details": {
          "quotaErrorDetails": {
            "rateScope": "DEVELOPER",
            "rateName": "Get requests for standard access",
            "retryDelay": "3254s"
          }
        }
      }
    ]
  }
}  

Thanks forward!

Google Ads API Forum Advisor Prod

unread,
Jan 19, 2021, 2:42:26 PM1/19/21
to karp...@gmail.com, adwor...@googlegroups.com
Hi Ilya,

Here is our guide on Partial Failures and how to handle them. I will need to further investigate to see what these status codes mean. Can you please reply privately with your API request so I can take a look?

Thanks,
Anthony

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q2B1P0y:ref
Reply all
Reply to author
Forward
0 new messages