---
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&amp;badge=0&amp;autopause=0&amp;player_id=0&amp;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"%> 

<!-- Hero_Image start --> 

<table cellspacing="0" cellpadding="0" align="center" border="0" width="660" bgcolor="#ffffff" style="width:660px;max-width:660px;background-color:#ffffff" class="w330px"> 
  <tr> 
    <td align="center"><a href="#" target="_blank"><img src="<%${user.RelatedAttribute.stores['Image Url']}%>" width="660" height="356" class="w330px hauto" /></a> 
</td> 
  </tr> 
</table> 

<!-- End Hero_Image --> 

<%/InsertIf%>
```
