AATKit Unity Integration
Release Notes
  • Start
    • Setup
    • Initialization
    • App Tracking Transparency
    • Google Mobile Ads SDK
    • Consent
      • Managed Consent
      • Vendor Consent
      • Simple Consent
  • Formats
    • Banner
    • Fullscreen (Interstitial)
    • Rewarded Video
  • Other
    • AATKitSettings Asset
    • AATKitPlaceholderManager
    • Closing the Application
    • Unity 2019.3.X Potential Issue
    • Reference
      • AATKitBinding
        • Properties
          • ScriptLogEnabled
        • Methods
          • Init
          • ReconfigureUsingConfiguration
          • SetDebugEnabled
          • SetDebugShakeEnabled
          • EnableCreativeHistory
          • GetVersion
          • GetDebugInfo
          • IsNetworkEnabled
          • SetNetworkEnabled
          • ShowConsentDialogIfNeeded
          • ShowConsentDialogIfNeededOrRejected
          • EditConsent
          • ReloadConsent
          • IsConsentOptIn
          • SetUserTargeting
          • CreatePlacement
          • CreatePlacement
          • CreateAppOpenAdPlacement
          • StartPlacementAutoReload
          • StopPlacementAutoReload
          • ReloadPlacement
          • ReloadPlacementForced
          • HasAdForPlacement
          • SetImpressionAction
          • AddPlacementToView
          • RemovePlacementFromView
          • StartPlacementAutoReloadWithSeconds
          • SetPlacementAlignment
          • SetPlacementAlignmentWithOffsetInPixels
          • SetPlacementAlignmentWithOffset
          • SetPlacementPositionInPixels
          • SetPlacementPosition
          • SetPlacementContentGravity
          • ShowPlacement
          • SetReAddingPlacementOnResumeEnabled
          • IsFrequencyCapReachedForPlacement
          • MuteVideoAds
          • SetMultiSizeAlignment
          • SetMultiSizeAlignmentWithOffset
          • SetMultiSizePosition
          • AddAdNetworkForKeywordTargeting
          • RemoveAdNetworkForKeywordTargeting
          • SetIsChildDirected
          • SetTargetingInfo
          • SetTargetingInfo (for placement)
          • SetMultiContentTargetingUrls
          • SetContentTargetingUrl
          • SetContentTargetingUrl (for placement)
          • GetScale
          • GetNativeScale
          • SetCollapsibleBannerOptions
          • ConfigureDebugScreen
          • GetAdInfo
        • Delegates
          • OnHaveAd
          • OnHaveAdOnMultiSizeBanner
          • OnNoAd
          • OnPauseForAd
          • OnResumeAfterAd
          • OnUserEarnedIncentive
          • OnObtainedAdRules
          • OnManagedConsentNeedsUserInterface
          • OnManagedConsentCMPFinished
          • OnManagedConsentCMPFailedToLoad
          • OnManagedConsentCMPFailedToShow
      • Other
        • AATKitConfiguration
        • AATKitConsent
        • AATKitDebugScreenConfiguration
        • AATKitAdNetworkOptions
          • AATKitAdMobOptions
          • AATKitAppNexusOptions
          • AATKitDFPOptions
          • AATKitFeedAdOptions
          • AATKitDatonomyOptions
          • AATKitGraviteRTBOptions
          • AATKitSuperAwesomeOptions
            • AATKitSuperAwesomeBannerOptions
            • AATKitSuperAwesomeInterstitialAdOptions
            • AATKitSuperAwesomeRewardedVideOptions
          • AATKitDisplayIOOptions
        • IAATKitStatisticsListener
Powered by GitBook
On this page
  1. Formats

Fullscreen (Interstitial)

Integrate fullscreen ads

PreviousBannerNextRewarded Video

Last updated 1 year ago

Usage

To create fullscreen placement, call 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 function. Also it's possible to let fullscreen ad be auto-reloaded by calling . When fullscreen ad is loaded, you can show it calling function. Check if ad is ready to show using 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.

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);
    }
}
createPlacement
reloadPlacement
startPlacementAutoReload
showPlacement
HasAdForPlacement