---
title: "Ad insight range invalid (ad-insight-range-invalid)"
description: "PubNio ad-insight-range-invalid problem, HTTP 422: An ad insights from or to is not a valid date or is reversed (invalid_range), or the span is over 730 days (range_too_wide)."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Ad insight range invalid (ad-insight-range-invalid)

HTTP 422 Ad insight range invalid. An ad insights `from` or `to` is not a valid date or is reversed (`invalid_range`), or the span is over 730 days (`range_too_wide`).

## When it happens

40 of 175 API operations declare it.

## Response body

```json
{
  "type": "https://pubnio.com/docs/problems/ad-insight-range-invalid/",
  "status": 422,
  "title": "Ad insight range invalid",
  "code": "ad_insight_range_invalid",
  "reason": "range_too_wide",
  "maxDays": 730,
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
```

| Field     | Type                                  | Always present |
| --------- | ------------------------------------- | -------------- |
| `reason`  | `"invalid_range"`, `"range_too_wide"` | Yes            |
| `maxDays` | integer                               | No             |

## Recovery for agents

- Read `detail` for the cause.

## Retryable

No: the SDKs mark HTTP 422 not `retryable`.

## Limits

- Match on `type` or `code`, not on `detail`.

## Related

- [Ads problems](https://pubnio.com/docs/problems/#ads)
- [API reference](https://pubnio.com/docs/api/)

Source: https://pubnio.com/docs/problems/ad-insight-range-invalid/index.mdx
