Migration to 4.7.3

Recommended integration updates

Backfill parameter is now split per ad type

// old
NeftaAdapterEvents.BackFillTrackDelay

// new in 4.7.3
NeftaAdapterEvents.BackfillInterstitialDelay
NeftaAdapterEvents.BackfillRewardedDelay
// old
NeftaPlugin._instance!._state._backfillTrackDelayInMs

// new in 4.7.3
NeftaPlugin._instance!._state._backfillInterstitialDelayInMs
NeftaPlugin._instance!._state._backfillRewardedDelayInMs
// old
NeftaPlugin._instance._state._backfillTrackDelayInMs

// new in 4.7.3
NeftaPlugin._instance._state._backfillInterstitialDelayInMs
NeftaPlugin._instance._state._backfillRewardedDelayInMs

Interstitial to Rewarded ad swapping

For Unity 4.7.3 integrations a feature was introduced that allows interstitial ad to show in rewarded placement. So every time an user initiates to watch a rewarded ad. All currently loaded ads are considered and the highest revenue one is shown. This feature can also be remotely disabled.

Wrapper

If an Reward ad is available should be now inferred from OnAdAvailabilityChanged (which wraps Interstitial and Rewarded OnAdLoadedEvent ).

At anytime the video availability can still be checked withNeftaSdk.GetRewardedAdReady().

If Interstitial ad is shown instead of Rewarded, the wrapper will also trigger OnAdReceivedRewardEvent for it.

// new
NeftaSdk.Rewarded.OnAdAvailabilityChanged += OnAdAvailabilityChanged;

private void OnAdAvailabilityChanged(MaxSdkBase.AdInfo adInfo)
{
   _ui.SetAvailability(adInfo != null);
}

/* old
private void OnAdLoadedEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
{
   _ui.SetAvailability(true);
}

private void Show()
{
   _ui.SetAvailability(false);
   ...
}

Manual

Complete changes:
https://github.com/Nefta-io/NeftaMAXAdapter-Unity/blob/main/Assets/AdDemo/InterstitialNeftaManual.cs
https://github.com/Nefta-io/NeftaMAXAdapter-Unity/blob/main/Assets/AdDemo/RewardedNeftaManual.cs



Did this page help you?