Added
Aug 3rd, 2022
over 3 years ago by Moloco Dev
We now support error identifiers in our APIs! 🎉
This change would help you understand the root cause of the error more in detail and also enable you to handle errors more properly.
{
"code": 3,
"message": "\"ad_account_id\" is required but missing [id:iBe7CAAUainlyPM]",
"details": [
{
"@type": "type.googleapis.com/api.adcloud.common.APIErrorInfo",
"error_log_id": "iBe7CAAUainlyPM",
"reason": "REQUIRED",
"context": {
"field": "ad_account_id"
}
}
]
}You can now get more detailed information of the error by following fields.
messagecontains the human readable error message. This can be changed at any time.reasoncontains the error code. It categorizes the cause of the error.contextis a map type, which provides useful information about the origin and important values. For example, we provide the name of the problematic field by the keyfield. For each error, there could be different information in thecontextfield.
You can find each API's possible error reasons in each API's response page.
You can learn about our new error system more in detail here.
