---
title: "Interstitial Ad Format and Examples"
description: "How AdsGram interstitial ads work: full-screen video and post formats, blockId requirements, and where to place ads for the best UX."
outline: [2,3]
---
# Interstitial ad
Full-screen ad that should appear at natural breakpoints, covering the entire screen. User can close or interact with the ad before continuing. Can be a video, image or GIF — see [Media ads](/advertiser/banner-types#media-ads).

<div style="display: flex; gap: 12px; align-items: flex-start">
  <img src="./images/interstitial_video.webp" alt="Interstitial video" style="width: 40%;">
  <img src="./images/interstitial_post.webp" alt="Interstitial post" style="width: 40%;">
</div>

## Simple code example
In interstitial format you don't need to reward the user, so you can call `show` function in one row. In `catch` you can get errors like error during playing ad or error if no banner to show. You can handle error or just do nothing.

::: code-group
```js [javascript]
try {
    // code to show banner
  await window.Adsgram.init({ blockId: "your-block-id" }).show();
} catch (error) {
    // user get error during playing ad or no banner to show
    // do nothing or whatever you want
}
```
:::

::: warning 
`blockId` in interstitial ads must be in the format `'int-xxx'`, where **xxx** are numbers.
:::


## Show ad requirements
In order for advertising to bring money to you and not cause negative emotions in the user, it must be:
- placed in natural user breaks in an app (for example, during transitions in an app or between game levels)
- should not appear after every user action
- after watching or closing an ad, the user should resume exactly where he logically expect to be

## Interstitial types
There are several types of interstitial formats you can use. The below types are just examples, you can create any interstitial suitable for your App.
- [app loading](#app-loading)
- [transition between pages](#transition-between-pages)
- [transition between game levels](#transition-between-game-levels)
- [any interstitial suitable for your App](#any-interstitial-suitable-for-your-app)

### App loading
Show an ad when user open the app.

### Transition between pages
When user open page. You shouldn't show an ad for every page to avoid negative user experience

### Transition between game levels
When user has completed a game level. After watching an ad user redirects to the next level

### Any interstitial suitable for your App
The examples above are not the only possible ones. There may be a more suitable place for advertising in your application
