Guide for migrating to version 5
This is an archived version of the documentation. Actual documentation for all platforms can be found here.
Additions
- YMAAdViewDelegate protocol
-
Added the
-adViewDidClick:
method that notifies you that the user clicked on the banner.
- YMAInterstitialAdDelegate protocol
-
Added the
-interstitialAdDidClick:
method that notifies you that the user clicked on the ad.
- YMANativeAdDelegate protocol
-
Added the
-nativeAdDidClick:
method that notifies your that the user clicked on the ad.
- YMARewardedAdDelegate protocol
-
Added the
-rewardedAdDidClick:
method that notifies you that the user clicked on the ad.
Changes
- YMAAdView class
-
The
blockID
property was renamedadUnitID
.The
-initWithBlockID:adSize:
method was renamed-initWithAdUnitID:adSize:
.
- YMAInterstitialAd class
-
The
blockID
property was renamedadUnitID
.The
-initWithBlockID:
method was renamed-initWithAdUnitID:
.
- YMANativeAdRequestConfiguration class
-
The
blockID
property was renamedadUnitID
.The
-initWithBlockID:
method was renamed-initWithAdUnitID:
.
- YMARewardedAd class
-
The
blockID
property was renamedadUnitID
.The
-initWithBlockID:
method was renamed-initWithAdUnitID:
.
Removals
- YMAAdSize class
-
Removed the following methods:
+flexibleSize
+flexibleSizeWithContainerWidth:
Recommendations
Version 4.X.Y | Version 5 |
---|---|
| Removed, an alternative option is |
| Removed, an alternative options is |
| The |
| The |
| The |
| The BlockID parameter is no longer supported, use the new parameter named AdUnitId :
|
Version 4.X.Y | Version 5 |
---|---|
| Removed, an alternative option is |
| Removed, an alternative options is |
| The |
| The |
| The |
| The BlockID parameter is no longer supported, use the new parameter named AdUnitId :
|