> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/aatkit-unity-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aatkit.gitbook.io/aatkit-unity-integration/formats/fullscreen-interstitial.md).

# Fullscreen (Interstitial)

Integrate fullscreen ads

### Usage

To create fullscreen placement, call [createPlacement](/aatkit-unity-integration/other/reference/aatkitbinding/methods/createplacement.md) function passing placement name and the size as `PlacementSize.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](/aatkit-unity-integration/other/reference/aatkitbinding/methods/reloadplacement.md) function. Also it's possible to let fullscreen ad be auto-reloaded by calling [startPlacementAutoReload](/aatkit-unity-integration/other/reference/aatkitbinding/methods/startplacementautoreload.md).

When fullscreen ad is loaded, you can show it calling [showPlacement](/aatkit-unity-integration/other/reference/aatkitbinding/methods/showplacement.md) function.

Check if ad is ready to show using [HasAdForPlacement](/aatkit-unity-integration/other/reference/aatkitbinding/methods/hasadforplacement.md) method. 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.

```csharp
public class YourAdsManager : MonoBehaviour {

    bool fullscreenAdPresented = false;

...

    public void InitializeAATKit()
    {
        //Register OnHaveAd delegate
        AATKitBinding.OnHaveAdDelegate += OnHaveAd;
        //Initialize AATKit
        ...
    }

    void OnApplicationPause(bool pauseStatus)
    {
        if (!pauseStatus && fullscreenAdPresented)
        {
            fullscreenAdPresented = false;
            //Handle logic after closing the ad
            ...
        }
    }

    public void CreateFullscreen() 
    {
        AATKitBinding.CreatePlacement("YourPlacementName", AATKitBinding.PlacementSize.Fullscreen);
        AATKitBinding.StartPlacementAutoReload("YourPlacementName");
    }

    public void ShowFullscreen() 
    {
        if(AATKitBinding.HasAdForPlacement("YourPlacementName"))
        {
            fullscreenAdPresented = AATKitBinding.ShowPlacement("YourPlacementName");
        }
    }

    public void OnHaveAd(string placementName) 
    {
        Debug.Log("onHaveAd event: " + placementName);
    }
}
```
