# Feed Actions: Maximum length

LitCommerce Feed Management offers multiple rules when setting up your feed, enabling you to locate, modify, and optimize your product data for the target platform.

This article introduces you to the “Maximum length” action.

## <mark style="color:$primary;">**Set up and apply**</mark>

For more details on how to set up and apply the rule, refer [HERE](https://litcommerce.gitbook.io/litcommerce-helpdesk/feed-management/feed-basics-and-setup/feed-setup/feed-create-and-set-up-your-feed/feed-rules).

## <mark style="color:$primary;">**How it works**</mark>

The “Maximum length” action appears under the Then and And-statements. It allows you to limit the number of characters in a product attribute.

{% hint style="info" %}
**The character limit counts spaces.**
{% endhint %}

You can trim the text when it reaches the set limit. There are two available options:

* **Trim on words:** Shorten text only at full word boundaries.

* **Trim directly:** Shorten text immediately at the exact character limit, without checking for word boundaries.

<figure><img src="/files/N7no7KWVnCISBnECh2ep" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**If no trim option is selected, LitCommerce will use `Trim on words` as the default setting.**
{% endhint %}

This rule is ideal for ensuring your product data fits within the platform’s character limits.

**Example:** Google Shopping has a 150-character limit for product titles. You can use this action to prevent your titles from exceeding this limit.

Take “Product Title” and “maximum length” - of “150” characters and “trim on words”.

<figure><img src="/files/boqXEiFWbE9fF7n7OT7I" alt=""><figcaption></figcaption></figure>

* **Before - Title (165 characters):** “Sunflower Cupcakes with Buttercream Frosting – Cupcakes Decorated with Bright Yellow Petals & Chocolate Center, Perfect for Parties & Gifts To Create Lovely Memories-Caramel”.

* **After trim - Title (148 characters):** “Sunflower Cupcakes with Buttercream Frosting – Cupcakes Decorated with Bright Yellow Petals & Gooey Chocolate Center, Perfect for Parties & Gifts To”.

<div><figure><img src="/files/JFbdFx2Tmc06cebbNPK7" alt=""><figcaption></figcaption></figure> <figure><img src="/files/imY8MLi2fZpi02t9UxwY" alt=""><figcaption></figcaption></figure></div>

* **In case “trim directly” is selected, after trim - Title (150 characters):** Sunflower Cupcakes with Buttercream Frosting – Cupcakes Decorated with Bright Yellow Petals & Chocolate Center, Perfect for Parties & Gifts To C“.

If you have any questions, let us know via the Chat Box in the bottom-right corner of our Help Center.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.litcommerce.com/feed-management/feed-basics-and-setup/feed-setup/feed-create-and-set-up-your-feed/feed-rules/feed-actions/feed-actions-maximum-length.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
