• Products
      • Products

        Build Streaming Platforms like Netflix, Udemy or Audible

        Live stream events, shows, tournaments on any device

        Host, publish, manage video, and audio files in one place

        Cloud playout software for linear TV & FAST channels

        New

        Video compliance checks and fixes with AI

        New

        Host branded video meetings on your platform

        Sell your individual videos online with pay-per-view instantly

        SDKs to deliver cutting-edge video, efficiently and on any device

        Alie AI Header

        Alie AI - World's First Streaming Focused AI Engine

        • ExamplesRight Arrow
        • Alie AI DemoRight Arrow
        • Ask SalesRight Arrow
        • Switch to MuviRight Arrow
    • Alie AI
        • Alie AI
          Built on Alie

          Video compliance checks and fixes with AI.

          World’s First Streaming Focused AI Engine
          Discover Alie
          AI Subtitles

          Auto‑generate video subtitles in primary language.

          AI Translations

          Translate subtitles instantly in 75+ languages.

          AI Recommendations

          Deliver tailored content recommendations.

          AI Metadata

          Smart fill meta titles, descriptions, tags & casts.

          AI Compliance

          Automate regulation checks and edits in one click.

          AI Dubbing

          Dub videos into languages your customers speak.

          AI Chaptering

          Split long videos & audio files into structured chapters.

          AI Clips

          Create clips, reels, social snippets and more in one click.

          AI Chat with Video

          Chat with videos to ask questions, brainstorm & more.

          View all AI FeaturesRight Arrow
          Demo Center
          Menu Image

          Experience Muvi products first hand by taking a quick demo.

          Learn moreRight Arrow
    • Pricing
    • Solutions
        • Solutions
          • Video Streaming (VOD)
          • Audio Streaming (AOD)
          • Live Streaming
          • Offline Streaming
          • Video Hosting Platform
          • Podcast Platform
          • Mobile & TV Apps
          • Meetings & Webinars
          • Online Video Platform
          • IPTV Solution
          • Live Events
          • Media & Entertainment
          • Sports
          • Healthcare
          • Health & Fitness
          • Tourism & Hospitality
          • Education
          • Religion
          • Judiciary
          • Enterprises
          • Film Festivals
          • Broadcasters
          • Government
          • Telcos
          • Finance
          • Beauty
          Web App
          • Website
          Casting
          • Chromecast
          • AirPlay
          • Apple Watch
          Mobile
          • iOS
          • Android
          • Mobile SDKs
          Others
          • Get Only Apps
          • Muvi Onyx
          • Muvi Blue
          TV
          • Roku TV
          • Android TV
          • Apple TV
          • Samsung TV
          • Fire TV
          • LG TV
          • VEWD TV
          • VIDAA OS TV
          • Astro TV
          • Netflix
          • YouTube
          • ESPN+
          • Udemy
          • Audible
          • Apple Music
          • Zoom Meetings
          • AVO TV
          • Calm
          • Shahid
          • Nebula
          • Pluto TV
          • beIN
          • Poppo Live
          • Rumble
          • TikTok
          • Reelshort
          • OnlyFans
          • Clubhouse
          • Clipclaps
          • Google Podcast
          • Fanhouse
          • OnlyFans TV
          • Spotify
          • Bigo Live
          • Whatnot
          • Hulu
          • Tango
          • Equinox
          • Cerebral
          • Masterclass
          • Twitch
          • Curiosity Stream
          • WorldStarHipHop
          • Baller TV
          • TinyZone
          • BXNG
          • Dramabox
          • Boomplay
          • Blinkist
          • Seekho
          • UpScrolled
          • Featured Solutions
          • On-premise
          • Short Videos
          • eLearning
          • FAST
    • Help
        • Help
          Help & Support
          • Help Center
          • Community
          • Support Plans
          • Wiki
          • Migrate to Muvi
          Services
          • CMS Management
          • End-User Support
          • Design & Visuals
          • Product & UX Consulting
          • Professional Services
          • Critical Events Support
          Resources
          • Resource Center
          • Blogs
          • Events & Webinars
          • Case Studies
          • Product Updates
          • Free Tools
          Developers
          • APIs
          • SDKs
          • BYOD
          • Webhook
    • Company
        • Company
          Company
          • About Us
          • Newsroom
          • Compliances
          • Awards & Recognition
          • Muvi Academy
          • Contact Us
          • Ask Sales
          Partners
          • Partnership Program
          • Partner Portal Login
          • Find a Partner
          • Integrations
          • Become a Partner
          • Affiliate Program
          CareersRight Arrow
          Muvi Foundation
          Menu Image

          An inspiration, to strengthen, to help, to empower our entire community.

          Learn moreRight Arrow
    Login
    Free Trial
     
    Create a ticket
    Help Articles Help How to Use Ad Macros in Video Advertisement
    Table of Content
    • Introduction
    • How Ad Macros Work
    • Benefits of Ad Macros
    • Adding Ad Tags with Ad Macros
    • Integrating Ad Tag with Macros to the Video

    How to Use Ad Macros in Video Advertisement

    Introduction

    Ad Macros allows you to dynamically pass content, player, application, and device information to your advertising partners without manually modifying ad tag URLs for each campaign. During video playback, Muvi automatically replaces the configured macro placeholders with actual values, enabling your ad server to deliver more relevant and targeted advertisements.

    For example, if a viewer is watching your content from a mobile device, the ad server can use the device information passed through Ad Macros to return a mobile-optimized advertisement.

    Macros eliminate the need to create multiple ad URLs for different targeting scenarios and provide a flexible way to integrate with various advertising platforms.

    How Ad Macros Work

    Different ad servers require different URL parameters for ad targeting, reporting, and campaign optimization. Instead of manually updating the ad URL every time, you can configure the required parameters directly from the Muvi CMS. During playback, Muvi automatically replaces each macro with the corresponding runtime value before sending the ad request to the ad server.

    Example:

    Instead of sending:

    https://adserver.example.com/vast?title={content_title}&genre={genre}&device={device_type}

    Muvi automatically converts it to:

    https://adserver.example.com/vast?title=The%20Last%20Journey&genre=Drama&device=Mobile

    The advertising platform then uses this information to serve the most relevant advertisement.

    Benefits of Ad Macros

    Using Ad Macros provides several advantages:

    • No coding required to configure new ad parameters.
    • Supports multiple advertising platforms and ad servers.
    • Improves ad targeting by sending dynamic viewer and content information.
    • Enables richer campaign analytics and reporting.
    • Reduces dependency on engineering teams.
    • Simplifies ad server integrations.
    • Supports future expansion with additional macros based on customer requirements.

    Adding Ad Tags with Ad Macros

    • In the Dashboard, navigate to “Monetization” --> "Advertisements”.
    • Click on the “Ad Tags” tab.
    • Click on “Add Ad Tag”.
    • In the “Ad Type”, select “Video”.
    • In the “Ad Format”, select “VAST” (currently, we only support Macros for VAST format).
    • Type the “Ad Tag Name” (e.g., XYZ Ad).
    • Type or paste the “Ad Tag URL”. (This URL must contain the Ad Macro values).
    • In “Ad Macros”, “Enable Tag Parameters”.
    • For each “Parameter”, select the “Actual Value” from the drop-down menu.
    • For example, for the parameter “w”, you can select the actual value “Player Width” and so on.
    • You can also add “Custom” parameters and “Actual Values”.
    • Click on “Save”.
    • The Ad Tag will be added.
    • You can repeat the process to add more ad tags to the Dashboard.

    Integrating Ad Tag with Macros to the Video

    • Navigate to “Content Management “-->“Content Library" in the Dashboard.
    • In the Content Library, click on the "Edit Icon" under the content to which you want to integrate an ad.
    • In the edit content page, click on the "Monetization" tab.
    • Scroll down to "Advertisements".
    • Under "Ad Categories", select "Ad Tags".
    • Under "Ad Format", select "VAST".
    • You can choose either*“Pre-roll”, *“Mid-roll”, or *"Post-roll", or you can also choose all the 3 options or combinations like pre-roll + Post-Roll, or Mid-Roll +post-roll, and so on.
    • Click on "Add Pre-Roll Ad" to select the pre-roll option. The ad will be played from the beginning.
    • Select the Tag Value from the drop-down and click on "Done".
    • Click on "Mid-Roll Ad". The ad will be played in the middle. You can select the time or % of the video when the ad will appear in the video.
    • Select the Tag Value from the drop-down and type the "Break Timing" (e.g., 10 seconds, 30 Seconds, or in % of video, i.e., 10%, 40%, etc.)
    • Click on "Done".
    • Click on "Post-Roll Ad". The ad will be played at the end of the video.
    • Select the Tag Value from the drop-down and click on "Done".
    • Click on “Save and Publish”.
    • When the end-users play the video, they can view the ads integrated into the video. You can also check by clicking on the "Preview" button on the video content.

    Was this article helpful?
    Yes
    No
    Let us know so that we can improve.

    Your email address will not be published. Required fields are marked *

    Ask the Community

    Our super friendly community helpers are on hand to help out ask away. They can help with almost anything.

    Products

    • One
    • Live
    • Flex
    • Playout
    • TrueComply
    • Muvi Meet
    • TV
    • Player

    Products

    • One
    • Live
    • Flex
    • Playout
    • TrueComply
    • Muvi Meet
    • TV
    • Player

    Company

    • About Muvi
    • Careers
    • Partner Program
    • Find a Partner
    • Awards & Recognition
    • Global Compliances
    • Legal Policies
    • Muvi Foundation
    • Muvi University
    • Contact Us
    • Ask Sales
    Solutions
    • OTT Platform
    • Short Video Platform
    • Video on Demand
    • Academy
    • Live Streaming Platform
    • Video Hosting Platform
    • Online Video Platform
    • FAST Channels

    Apps

    • Web
    • Android
    • iOS
    • Apple TV
    • Android TV
    • Samsung TV
    • LG TV
    • Amazon Fire TV
    • Roku TV
    • VIDAA OS TV

    Resources

    • Blogs
    • Events & Webinars
    • Whitepapers
    • Case Studies
    • Free Tools
    • Switch to Muvi

    Help and Support

    • Help Center
    • Community
    • Support Service
    • Release Notes
    • Video Portal

    Developers

    • APIs
    • SDKs
    • BYOD
    • Webhook
    • Integrations
    Developers
    • APIs
    • SDKs
    • BYOD
    • Webhook
    • Integrations
    • 42241 Violet Mist Terrace, Ashburn, VA 20148
    • sales@muvi.com
    • +1-860-973-0083 (USA)

    Copyright ©2026 Muvi LLC | Leading the streaming revolution since 2010