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

Rewarded Video

Integrate rewarded video ads

PreviousFullscreen (Interstitial)NextOther

Last updated 2 years ago

Usage

The integration steps for rewarded videos are very similar like for other . You will just need to use with AATKitBinding.PlacementSize.Rewarded parameter. If you’ve used rewarded videos before with the normal fullscreen placement, please make sure to use a different placement name for your new rewarded video placement. When the user watches the rewarded video and incentive is earned, the event is triggered. See the example of using rewarded video ads below.

public class YourAdsManager : MonoBehaviour {

...

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

    public void CreateRewarded() 
    {
        AATKitBinding.CreatePlacement("YourPlacementName", AATKitBinding.PlacementSize.Rewarded);
        AATKitBinding.StartPlacementAutoReload("YourPlacementName");
    }

    public ShowRewardedAd() 
    {
        if (AATKitBinding.HasAdForPlacement("YourPlacementName"))
        {
            AATKitBinding.ShowPlacement("YourPlacementName");
        }
    }

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

        if(placementName.Equals("YourPlacementName")) 
        {
            Debug.Log("OnHaveAd for YourPlacementName");
        }
    }

    public void OnUserEarnedIncentive(IncentiveData incentiveData) 
    {
        Debug.Log("OnUserEarnedIncentive event: " + incentiveData.ToString());
    }
}
fullscreen ads
createPlacement
onUserEarnedIncentive