# 4. Campaign Explained In Details

{% embed url="<https://www.youtube.com/watch?index=4&list=PLGASFo0vRDpks4cfL2V9D0z3Cm78A92Hq&v=0u13jhC05xI>" %}

The main idea of a campaign is to group multiple discounts together, allowing them to work in unison. However, it is not mandatory to have multiple discounts within a campaign. In some cases, you might want to have just one discount, such as a volume discount.

All properties of a campaign apply to every discount within that campaign.

Campaigns always have active dates: a start date and an end date. If you do not specify an end date, the campaign will never expire.

You can disable, enable, or delete a campaign at any time.

There are two types of campaigns: Automatic and Campaign Code.

Automatic Campaigns function automatically for all customers.

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

For Campaign Code campaigns, you specify a campaign code that customers need to apply for the campaign to take effect. When a customer applies the campaign code, all discounts within that campaign become functional.

You can also specify customer eligibility and set a maximum number of times the discount can be used.

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

After creating a campaign, the app will generate a special type of discount in your Shopify admin discounts page.

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

Please never modify or delete these discounts from the Shopify Discounts page. Perform all your actions directly from the app.


---

# 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://uniocode.gitbook.io/stack-discounts/4.-campaign-explained-in-details.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.
