-
Notifications
You must be signed in to change notification settings - Fork 4
SDK Migration
d.eshenko edited this page Dec 28, 2022
·
1 revision
This page covers migrations for current and previous versions.
The table below lists the removed/replaced methods in version 3.0.
Outdated initialization methods have been removed from the MobileAds class.
Removed | New |
---|---|
IMediationManager Initialize()
|
BuildManager().Initialize() |
IMediationManager InitializeFromResources()
|
BuildManager().Initialize() |
string GetActiveMediationPattern()
|
GetActiveNetworks() |
The general ad loading events have been completely replaced with new separate events for each ad format.
Removed | New |
---|---|
event OnLoadedAd
|
OnInterstitialAdLoaded , OnRewardedAdLoaded
|
event OnFailedToLoadAd
|
OnInterstitialAdFailedToLoad , OnRewardedAdFailedToLoad
|
string GetLastActiveMediation()
|
No longer supported |
Use IAdView
for each banner ad size instead of IMediationManager
methods. Call manager.GetAdView(AdSize)
to get IAdView
instance for specific ad size.
Removed from IMediationManager
|
New in IAdView
|
---|---|
event OnBannerAdOpening
|
OnImpression |
event OnBannerAdFailedToShow
|
OnFailed |
event OnBannerAdClicked
|
OnClicked |
event OnBannerAdHidden
|
No longer supported |
event OnBannerAdShown
|
No longer supported |
AdSize bannerSize
|
size |
AdPosition bannerPosition
|
position |
void Show(AdType.Banner)
|
SetActive(true) |
void HideBanner()
|
SetActive(false) |
float GetBannerHeightInPixels()
|
rectInPixels.height |
float GetBannerWidthInPixels()
|
rectInPixels.width |
Banner visibility change events are no longer supported because they are invoked at the same time that SetActive()
is changed.
Removed | New |
---|---|
event OnPresented
|
No longer supported |
event OnHidden
|
No longer supported |
Removed | New |
---|---|
float GetHeightInPixels()
|
rectInPixels.height |
float GetWidthInPixels()
|
rectInPixels.width |
- Project Setup
- Configuring SDK
- Include Android
- Include iOS
- Additional mediation steps
- App-ads.txt🔗