Skip to content

Advanced Settings

Ad Review Creative ID

To retrieve the Ad Review creative identifier, implement the creative ID callback as shown below:

public class ExampleScene: MonoBehaviour
{
void Start()
{
// Interstitial ads
MaxSdkCallbacks.Interstitial.OnAdReviewCreativeIdGeneratedEvent += OnInterstitialAdReviewCreativeIdGeneratedEvent;
// Rewarded ads
MaxSdkCallbacks.Rewarded.OnAdReviewCreativeIdGeneratedEvent += OnRewardedAdReviewCreativeIdGeneratedEvent;
// Banner ads
MaxSdkCallbacks.Banner.OnAdReviewCreativeIdGeneratedEvent += OnBannerAdReviewCreativeIdGeneratedEvent;
// MREC ads
MaxSdkCallbacks.MRec.OnAdReviewCreativeIdGeneratedEvent += OnMRecAdReviewCreativeIdGeneratedEvent;
}
// Interstitial ads
private void OnInterstitialAdReviewCreativeIdGeneratedEvent(string adUnitId, string adReviewCreativeId, MaxSdkBase.AdInfo adInfo)
{
Debug.Log("Interstitial ad review creative ID: " + adReviewCreativeId);
}
// Rewarded ads
private void OnRewardedAdReviewCreativeIdGeneratedEvent(string adUnitId, string adReviewCreativeId, MaxSdkBase.AdInfo adInfo)
{
Debug.Log("Rewarded ad review creative ID: " + adReviewCreativeId);
}
// Banner ads
private void OnBannerAdReviewCreativeIdGeneratedEvent(string adUnitId, string adReviewCreativeId, MaxSdkBase.AdInfo adInfo)
{
Debug.Log("Banner ad review creative ID: " + adReviewCreativeId);
}
// MREC ads
private void OnMRecAdReviewCreativeIdGeneratedEvent(string adUnitId, string adReviewCreativeId, MaxSdkBase.AdInfo adInfo)
{
Debug.Log("MRec ad review creative ID: " + adReviewCreativeId);
}
}