Choose a default for the whole player
- Open My Players in the MOAP sidebar and find the installation whose key your site already uses.
- In VAST ad source, choose an active Mediarazzi saved VAST tag, individual ad, rotation, or pod owned by the player’s account. Click Save. Choose No ads for an ad-free default, or Use existing server default to remove the player-level override.
- Make sure the installation’s
moap.jsondoesn’t set"advertising": false. Reload the player and press Play. Do not paste a VAST URL into the playlist.
Give one video its own ad
This is the setup used on the live MEDIARAZZI demo. In the installation’s moap.json, find the demo object inside playlist and insert the videoId line above its title. The sample URLs below are placeholders. Keep your actual video URL, poster, and license unchanged.
{
"videoId": "mediarazzi-demo",
"title": "MEDIARAZZI Demo Video",
"src": "https://video.example.com/media/demo.m3u8",
"poster": "https://video.example.com/media/demo.jpg"
}
- Back in My Players, expand Ad rules on the live player’s card.
- Under Match, choose Video ID. Enter
mediarazzi-demoin ID or slug, without quotation marks. - Choose a different VAST ad source from the player default and click Save rule.
- Reload the existing player page and press Play. The matched video should request the rule’s ad instead of the player default. No new key or separate page is needed.
Use one rule for a category
Add "category": "trailers" to each playlist item that should share the rule. In Ad rules, choose Category, enter trailers, and save the ad source. Each item supports one category slug. Video IDs and category slugs are case-sensitive. Start with a letter or number and use up to 120 letters, numbers, dots, colons, underscores, or hyphens.
| Priority | What MOAP uses |
|---|---|
| 1 | The matching video ID rule. |
| 2 | The matching category rule, if there is no video rule. |
| 3 | The player default, if neither rule matches. |
No ads on a matching rule stops the lookup. It doesn’t fall back to the next source. A matching rule whose source was paused or removed also plays without an ad. To edit a rule, save the same match type and value with a new source. To restore normal fallback, click Remove on the rule.
If the ad doesn’t play
- Check that you changed the same installation the site is using, and that the spelling and case match
moap.json. - Check that the assigned source is active, has eligible inventory, and that the account can serve it. A saved assignment isn’t proof an impression was delivered.
- Check whether
"advertising": falseis set or a browser ad blocker is stopping the request.