> [!CAUTION]
> **Caution:** This documentation is for Google Ads API **v23** . The latest active version is [**v26**](https://developers.google.com/google-ads/api/reference/rpc/latest/MessagingRestrictionTypeEnum.MessagingRestrictionType).

The type of a text generation restriction.

[Proto definition ![GitHub](https://developers.google.com/site-assets/logo-github.svg)](https://github.com/googleapis/googleapis/blob/master/google/ads/googleads/v23/enums/messaging_restriction_type.proto)

| Enums ||
|---|---|
| ## `RESTRICTION_BASED_EXCLUSION` | Exclude text assets that are not compliant with this restriction. |
| ## `UNKNOWN` | Used for return value only. Represents value unknown in this version. |
| ## `UNSPECIFIED` | Not specified. |