# Fullscreen (Interstitial)

### Usage

To create fullscreen placement, call [createPlacement](https://aatkit.gitbook.io/aatkit-ionic-integration/other/reference/functions/createplacement) function passing placement name and the size as `Fullscreen`. Please note that the placement name has to be constant after once defined and cannot change with every app restart. Next you can reload placement using [reloadPlacement](https://aatkit.gitbook.io/aatkit-ionic-integration/other/reference/functions/reloadplacement) function. Also it's possible to let fullscreen ad be auto-reloaded by calling [startPlacementAutoReload](https://aatkit.gitbook.io/aatkit-ionic-integration/other/reference/functions/startplacementautoreload). When fullscreen ad is loaded, you can show it calling [showPlacement](https://aatkit.gitbook.io/aatkit-ionic-integration/other/reference/functions/showplacement) function. Plugin provides callbacks which might be useful, for example to get notified when fullscreen ad is loaded. See the example of using fullscreen ads below.

```typescript
AATKitIonic.createPlacement({placementName: "FullscreenPlacement", placementSize: "Fullscreen"});

document.addEventListener('onHaveAd', (data: any) => {
    console.log('onHaveAd ' + data.placementName);
    if(data.placementName == "FullscreenPlacement") {
        AATKitIonic.showPlacement({placementName: "FullscreenPlacement"});
    }
  }
);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aatkit.gitbook.io/aatkit-ionic-integration/formats/fullscreen-interstitial.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
