import { Meta, Canvas } from '@storybook/blocks'; import * as InlineAdStories from './InlineAd.stories.svelte'; # InlineAd Add programmatic ads inline on your page. > **IMPORTANT!** Make sure ads are only used on dotcom pages, never on embeds. ```svelte ``` ```svelte {#each content.blocks as block} {#if block.Type === 'inline-ad'} {#if !embedded} {/if} {/if} {/each} ``` You may add **up to three** inline ads per page, but must set the `n` prop on multiple ads in sequential order, 1 - 3. ```svelte ```