{"section":"tutorials","requestedLocale":"en","requestedSlug":"ads-from-vtex-sales-app","locale":"en","slug":"ads-from-vtex-sales-app","path":"docs/en/tutorials/vtex-sales-app/ads-from-vtex-sales-app.md","branch":"main","content":"The new offer area in VTEX Sales App features two main types of offers: specific products or search results. This flexibility allows merchants to adapt their marketing strategies based on their specific needs and goals, promoting individual products or groups of related products.\n\nTo customize a store's window display, merchants can add an `Offers by store` page by specifying the store ID in the [Master Data](https://developers.vtex.com/docs/guides/master-data-introduction) to which the offer will be linked, allowing them to create personalized offers for each store.\n\nIn this document, we will provide detailed instructions on how to install, configure, and use the new offer area. Follow the steps below to set up this tool and boost your online sales.\n\n- [Install VTEX dependencies](#install-vtex-dependencies)\n- [Configure the Headless CMS app](#configure-the-headless-cms-app)\n- [Create an offer page](#create-an-offer-page)\n- [Activate the offer menu in VTEX Sales App](#activate-the-offer-menu-in-VTEX-Sales-App)\n- [Access ads in the VTEX Sales App](#access-ads–in-the-vtex-sales-app)\n\n## Installing VTEX dependencies\n\nBefore installing the dependencies, you must have VTEX IO CLI installed. With VTEX IO CLI installed, execute the following commands in your computer's command prompt to install the necessary dependencies:\n\n1.  ```\n    vtex login {account}\n    ```\n2.  ```\n    vtex install vtex.admin-cms@1.x vtex.admin-cms-graphql@0.x vtex.admin-cms-graphql-rc@1.x vtex.admin-releases@0.x vtex.cms-builder-sf-jamstack@1.x\n    ```\n\n## Configuring the Headless CMS app\n\nTo create an offer page for VTEX Sales App, follow the steps below:\n\n1. In the VTEX Admin, go to **Apps > App Management**, or type **App Management** in the search bar at the top of the page.\n2. Click the **CMS (alpha)** item's `Settings`.\n3. Click `Add More`.\n4. In the **Project ID** field, type `assisted-sales-app`.\n5. In the **Sections URL** field, type `https://instore--instore.vtex.app/assisted-sales/cms/sections.json`.\n6. In the **Content types URL** field, type `https://instore--instore.vtex.app/assisted-sales/cms/content-types.json`.\n7. Click `Save`.\n\n## Creating an offer page\n\nTo create an offer page for VTEX Sales App, follow the steps below:\n\n1. Access the VTEX Admin URL: `https://{main_account}.myvtex.com/admin/new-cms/assisted-sales-app`\n2. Click **Create New** and select **Ads**.\n3. Click **Untitled** to edit and include the desired name. We recommend using the name **Offers**.\n4. In the **Sections** tab, click the + button to add a new section. Each section is a collection of products or search terms. Each section will be displayed as a carousel. You can reorder custom displays by clicking the Move down or Move up buttons.\n5. Select an offer type, either products or search results.\n\n- **Product custom display:** It will display each product and SKU (optional) that you specify. Add the following information: - **Custom display title:** Name of the custom display that will be displayed on the page. - **Product ID:** Identifier number of the product you want to display. Required field. - **Product SKU ID:** Iidentifier number of the product's SKU you want to display. Optional field.\n  ![vitrine-produto-en](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/vtex-sales-app/ads-from-vtex-sales-app_1.png)\n  After completing the fields, the product image will be displayed with the \"starting at\" price. If you include the SKU, the price and promotion of the indicated SKU will be displayed. You can add more products by clicking + NEW PRODUCT. You can add up to 10 products in each custom display. The result of the product custom display will be displayed as shown in the image below.\n  ![vitrine-produto-2-en](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/vtex-sales-app/ads-from-vtex-sales-app_2.png)\n- **Search results custom display:** It will display products from a search result that you define. Add the following information:\nCustom display title: Name of the custom display that will be displayed on the page. - **Search image:** image that will represent the selection of products in the showcase. - **Search name:** Name of the search that will be displayed on the page. - **Search term:** Search term: Search term that will be used as a reference for the products.\n![vitrine-busca-en](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/vtex-sales-app/ads-from-vtex-sales-app_3.png)\nWhen the seller clicks the search term, they will be directed to the search result determined in the Search term. You can also include up to 10 searches in each custom display. See the result in the image below:\n![vitrine-busca-2-en](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/vtex-sales-app/ads-from-vtex-sales-app_4.png)\n<ol start=\"6\">\n  <li>After creating the sections, click `Save`, then click `Publish` and `Publish Now` to finalize.</li>\n</ol>\n\nThe publication of the custom display will enter the indexing queue and will be published within a few seconds.\n\n- **Collection custom display:** It will display products from a specified collection. Please add the following details:\n  - **Custom display title:** Name of the custom display as it will appear on the page.\n  - **Collection ID:** The collection identifier number that will be displayed on the page.\n\n![Vitrine - EN](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/vtex-sales-app/ads-from-vtex-sales-app_5.png)\n\n## Activate the offer menu in VTEX Sales App\n\nAccess the technical settings of VTEX Sales App at:\n\n```\nhttps://{main_account}.myvtex.com/admin/portal/#/sites\n```\n\n1. Click the <i class=\"fas fa-cog\"></i> button.\n2. Select the **Code** tab.\n3. Select the `checkout-instore-custom-js` file in the side tab.\n   ![checkout-instore-custom-js-file](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/vtex-sales-app/ads-from-vtex-sales-app_6.png)\n4. In the `window.INSTORE_CONFIG` object, add the flag `enableExplore: true,`.\n   ![window.INSTORE_CONFIG](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/vtex-sales-app/ads-from-vtex-sales-app_7.png)\n5. Click <i class=\"fas fa-save\"></i> `Save`.\n6. Optionally, you can set the offer page as the seller's homepage. To do this, add the flag `initialPage: 'advertisements',` to the `window.INSTORE_CONFIG` object.\n   ![initialPage : advertisements](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/vtex-sales-app/ads-from-vtex-sales-app_8.png)\n\n## Accessing offers in VTEX Sales App\n\nIn VTEX Sales App, the seller will can access the offer page in two different ways:\n\n- **Homepage:** If the store administrator previously set the offer page as the seller's homepage, upon logging into the platform, the seller will be directed straight to the offer page. This configuration ensures that sellers are always up-to-date with relevant offers and promotions as soon as they access the system.\n\n- **Explore Menu:** If the offer page is not set as the seller's homepage, it can still be easily accessed through the Explore menu. To access the offer page, the seller should click the Explore menu. This will directly take the seller to the offer page, where they can view and interact with the available products and promotions.\n\n![vitrine-sale-app-en](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/vtex-sales-app/ads-from-vtex-sales-app_9.png)"}