--- title: "Example: Integrate Local Store Promotions in Your Regular Campaigns" slug: "integrate-local-store-promotions-in-your-regular-campaigns" updated: 2024-07-01T14:44:20Z published: 2024-07-01T14:44:20Z canonical: "docs.mapp.com/integrate-local-store-promotions-in-your-regular-campaigns" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # Example: Integrate Local Store Promotions in Your Regular Campaigns [Embedded content](https://player.vimeo.com/video/927455335?h=27fdaa381a&badge=0&autopause=0&player_id=0&app_id=58479) All the steps we mention in the video are listed below. **Prerequisites** 1. The custom attribute for the city must be set up: [Create Custom Attribute](/v1/docs/create-custom-attribute). 2. Images for each city uploaded to the Content Store: [Create New Content Store Element](/v1/docs/create-new-content-store-element-window). 3. Related data set with details of stores: [Create Related Data Set](/v1/docs/create-related-data-set). | Step | Navigation path | Description | | --- | --- | --- | | 1 | *Content > Content Store* | - Create a Content Store Element called "New Store Code": - In the **Content / Attachment** section, select **HTML / HTML Editor**. - Paste the if expression in the HTML Editor. You will find it below this table. - Click **Save**. - Go to the **Details** section of the Content Store Element. - Copy the the first if statement from **Placeholder for Email**. See this and more code examples: [Display Conditional Related Data-based Content in an Email Message](/v1/docs/display-conditional-related-data-based-content-in-an-email-messages). | | 2 | *Messages > Prepared Messages > Email* | - Open the prepared message to add the code. - Paste the copied if statement after the header of the email. - Use the **Preview** option to test the message. - Click **Prepare Sendout**. - Continue with your campaign sendout. For more information, see [Use a Content Store Element in an Email](/v1/docs/use-a-content-store-element-in-an-email). | ```xml <%InsertIf expression="${ecm:between(user.RelatedAttribute.stores['OpeningDate'], ecm:addInterval(date['Today'], '-2W'), ecm:addInterval(date['Today'], '+2W'))}" id="Adbanner"%>