<!--
{
  "availability" : [
    "Apple Ads Platform API: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Apple-Ads-Platform-API",
  "identifier" : "/documentation/Apple-Ads-Platform-API/RecommendationResponseError",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple Ads Platform API"
    ],
    "preciseIdentifier" : "data:apple-ads-platform-api:RecommendationResponseError"
  },
  "title" : "ResponseError"
}
-->

# ResponseError

Error information returned in the response body when a Recommendations or Suggestions request fails.

```
object RecommendationResponseError
```

## Discussion

The `ResponseError` object is embedded in the `error` field of the response envelope when a Recommendations or Suggestions request fails.

When the error involves multiple field-level issues (for example, validation failures on several request fields), inspect the `details` array to identify and correct each specific problem before retrying the request.

### Example

```json
{
  "code": "VALIDATION_ERROR",
  "message": "Invalid query request",
  "details": [
    {
      "code": "MISSING_REQUIRED_FILTER",
      "message": "Filter 'promotedObjectId' is required"
    }
  ]
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)