From 87c6b19d5ffde25a9caea829b991c3bd77e18372 Mon Sep 17 00:00:00 2001 From: mobile-ads-github Date: Thu, 12 May 2022 20:46:23 +0400 Subject: [PATCH] Release 5.0.1 --- .../project.pbxproj | 28 +- .../Base.lproj/Main.storyboard | 382 +++++++++--------- .../Yandex/Banner/BannerViewController.swift | 14 +- .../InterstitialViewController.swift | 8 + .../Native/CustomNativeViewController.swift | 8 + .../Native/TemplateNativeViewController.swift | 8 + .../Rewarded/RewardedViewController.swift | 8 + changelog/mobileads/CHANGELOG.md | 19 +- 8 files changed, 261 insertions(+), 214 deletions(-) diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample.xcodeproj/project.pbxproj b/Examples/YandexMobileAdsExample/YandexMobileAdsExample.xcodeproj/project.pbxproj index 9183ac7..5129987 100644 --- a/Examples/YandexMobileAdsExample/YandexMobileAdsExample.xcodeproj/project.pbxproj +++ b/Examples/YandexMobileAdsExample/YandexMobileAdsExample.xcodeproj/project.pbxproj @@ -57,9 +57,9 @@ 149931882722C423005D2E87 /* AdFoxBannerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 149931872722C423005D2E87 /* AdFoxBannerViewController.swift */; }; 1499318B2722CD44005D2E87 /* AdFoxInterstitialViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1499318A2722CD44005D2E87 /* AdFoxInterstitialViewController.swift */; }; 14A06392273030BA00BED7A7 /* MediationTestConfigurator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 14A06391273030BA00BED7A7 /* MediationTestConfigurator.swift */; }; - 46D1BFF027DC9AF100EFE7CF /* IronSourceInterstitialViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46D1BFEF27DC9AF100EFE7CF /* IronSourceInterstitialViewController.swift */; }; - 46D1BFF227DCA6D600EFE7CF /* IronSourceRewardedViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46D1BFF127DCA6D600EFE7CF /* IronSourceRewardedViewController.swift */; }; - 46D1BFF427DCBD5000EFE7CF /* IronSourceManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46D1BFF327DCBD5000EFE7CF /* IronSourceManager.swift */; }; + 46C354A0282560FE00832C7C /* IronSourceRewardedViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46C3549D282560FE00832C7C /* IronSourceRewardedViewController.swift */; }; + 46C354A1282560FE00832C7C /* IronSourceInterstitialViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46C3549E282560FE00832C7C /* IronSourceInterstitialViewController.swift */; }; + 46C354A2282560FE00832C7C /* IronSourceManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46C3549F282560FE00832C7C /* IronSourceManager.swift */; }; B394AC8627A868DB00D92CD9 /* AdPlayerErrorConverter.swift in Sources */ = {isa = PBXBuildFile; fileRef = B394AC8527A868DB00D92CD9 /* AdPlayerErrorConverter.swift */; }; BAB52D75A74975130850B568 /* libPods-YandexMobileAdsExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B7B2F6F1A96B25E24D5E486C /* libPods-YandexMobileAdsExample.a */; }; /* End PBXBuildFile section */ @@ -118,9 +118,9 @@ 149931872722C423005D2E87 /* AdFoxBannerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdFoxBannerViewController.swift; sourceTree = ""; }; 1499318A2722CD44005D2E87 /* AdFoxInterstitialViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdFoxInterstitialViewController.swift; sourceTree = ""; }; 14A06391273030BA00BED7A7 /* MediationTestConfigurator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MediationTestConfigurator.swift; sourceTree = ""; }; - 46D1BFEF27DC9AF100EFE7CF /* IronSourceInterstitialViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IronSourceInterstitialViewController.swift; sourceTree = ""; }; - 46D1BFF127DCA6D600EFE7CF /* IronSourceRewardedViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IronSourceRewardedViewController.swift; sourceTree = ""; }; - 46D1BFF327DCBD5000EFE7CF /* IronSourceManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IronSourceManager.swift; sourceTree = ""; }; + 46C3549D282560FE00832C7C /* IronSourceRewardedViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IronSourceRewardedViewController.swift; sourceTree = ""; }; + 46C3549E282560FE00832C7C /* IronSourceInterstitialViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IronSourceInterstitialViewController.swift; sourceTree = ""; }; + 46C3549F282560FE00832C7C /* IronSourceManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IronSourceManager.swift; sourceTree = ""; }; B394AC8527A868DB00D92CD9 /* AdPlayerErrorConverter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AdPlayerErrorConverter.swift; sourceTree = ""; }; B7B2F6F1A96B25E24D5E486C /* libPods-YandexMobileAdsExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-YandexMobileAdsExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; B999054E57E2B5872F906D20 /* Pods-YandexMobileAdsExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-YandexMobileAdsExample.release.xcconfig"; path = "Target Support Files/Pods-YandexMobileAdsExample/Pods-YandexMobileAdsExample.release.xcconfig"; sourceTree = ""; }; @@ -160,8 +160,8 @@ 14033F692720245600A24D5E /* Third-PartyMediation */ = { isa = PBXGroup; children = ( - 46D1BFEE27DC9ABC00EFE7CF /* IronSource */, 14033F772720274500A24D5E /* AdMob */, + 46C3549C282560FE00832C7C /* IronSource */, ); path = "Third-PartyMediation"; sourceTree = ""; @@ -402,12 +402,12 @@ path = Adfox; sourceTree = ""; }; - 46D1BFEE27DC9ABC00EFE7CF /* IronSource */ = { + 46C3549C282560FE00832C7C /* IronSource */ = { isa = PBXGroup; children = ( - 46D1BFEF27DC9AF100EFE7CF /* IronSourceInterstitialViewController.swift */, - 46D1BFF127DCA6D600EFE7CF /* IronSourceRewardedViewController.swift */, - 46D1BFF327DCBD5000EFE7CF /* IronSourceManager.swift */, + 46C3549D282560FE00832C7C /* IronSourceRewardedViewController.swift */, + 46C3549E282560FE00832C7C /* IronSourceInterstitialViewController.swift */, + 46C3549F282560FE00832C7C /* IronSourceManager.swift */, ); path = IronSource; sourceTree = ""; @@ -548,7 +548,6 @@ 14033FAE2720457800A24D5E /* InstreamViewController.swift in Sources */, 14033FB42720457800A24D5E /* LinkedList.swift in Sources */, 14033F7D27202A5800A24D5E /* AdMobInterstitialViewController.swift in Sources */, - 46D1BFF227DCA6D600EFE7CF /* IronSourceRewardedViewController.swift in Sources */, 14A06392273030BA00BED7A7 /* MediationTestConfigurator.swift in Sources */, 1474FC1E2721A4E500276688 /* GDPRUserConsentManager.swift in Sources */, 14033FB32720457800A24D5E /* LRUCache.swift in Sources */, @@ -556,9 +555,9 @@ 14033FC22720457800A24D5E /* InstreamInrollViewController.swift in Sources */, 147B0BDD27201213005F4062 /* MobileMediationBannerViewController.swift in Sources */, 14033FC12720457800A24D5E /* InrollsPlaybackController.swift in Sources */, - 46D1BFF427DCBD5000EFE7CF /* IronSourceManager.swift in Sources */, 14033FC42720598D00A24D5E /* TemplateNativeViewController.swift in Sources */, 147B0BC9271FFC53005F4062 /* InterstitialViewController.swift in Sources */, + 46C354A0282560FE00832C7C /* IronSourceRewardedViewController.swift in Sources */, 14033FB72720457800A24D5E /* VideoAVPlayer.swift in Sources */, 14033F8927202CA800A24D5E /* AdMobRewardedViewController.swift in Sources */, 147B0BD127200D14005F4062 /* NativeAdView.swift in Sources */, @@ -573,7 +572,7 @@ 14033F8027202AC300A24D5E /* AdMobNativeViewController.swift in Sources */, 14033FB62720457800A24D5E /* VideoPlayerProvider.swift in Sources */, 1474FC222721A4E500276688 /* SettingsViewController.swift in Sources */, - 46D1BFF027DC9AF100EFE7CF /* IronSourceInterstitialViewController.swift in Sources */, + 46C354A2282560FE00832C7C /* IronSourceManager.swift in Sources */, 14033FBA2720457800A24D5E /* PlayerView.swift in Sources */, 149931882722C423005D2E87 /* AdFoxBannerViewController.swift in Sources */, 14033FBC2720457800A24D5E /* VideoPlayerVisibilityTracker.swift in Sources */, @@ -588,6 +587,7 @@ 14033FBB2720457800A24D5E /* VideoAVPlayerDelegate.swift in Sources */, 149931842722BD94005D2E87 /* AdFoxNativeViewController.swift in Sources */, 14033F7A272028E100A24D5E /* AdMobBannerViewController.swift in Sources */, + 46C354A1282560FE00832C7C /* IronSourceInterstitialViewController.swift in Sources */, 1474FC212721A4E500276688 /* GDPRDDialogViewController.swift in Sources */, 147B0BD227200D14005F4062 /* CustomNativeViewController.swift in Sources */, 14033FBE2720457800A24D5E /* InstreamAdBinderToastDelegate.swift in Sources */, diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Base.lproj/Main.storyboard b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Base.lproj/Main.storyboard index 4ae1b5a..a70281e 100644 --- a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Base.lproj/Main.storyboard +++ b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Base.lproj/Main.storyboard @@ -777,29 +777,29 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + @@ -2144,178 +2144,178 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Banner/BannerViewController.swift b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Banner/BannerViewController.swift index 6456f86..c604eab 100644 --- a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Banner/BannerViewController.swift +++ b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Banner/BannerViewController.swift @@ -14,9 +14,9 @@ class BannerViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() - // Replace demo R-M-DEMO-320x500 with actual Ad Unit ID - let adSize = YMAAdSize.fixedSize(with: .init(width: 320, height: 100)) - self.adView = YMAAdView(adUnitID: "R-M-DEMO-320x100-context", adSize: adSize) + // Replace demo R-M-DEMO-320x50 with actual Ad Unit ID + let adSize = YMAAdSize.fixedSize(with: .init(width: 320, height: 50)) + self.adView = YMAAdView(adUnitID: "R-M-DEMO-320x50", adSize: adSize) self.adView.delegate = self } @@ -36,6 +36,14 @@ extension BannerViewController: YMAAdViewDelegate { self.adView.displayAtBottom(in: self.view) print("Ad loaded") } + + func adViewDidClick(_ adView: YMAAdView) { + print("Ad clicked") + } + + func adView(_ adView: YMAAdView, didTrackImpressionWith impressionData: YMAImpressionData?) { + print("Impression tracked") + } func adViewDidFailLoading(_ adView: YMAAdView, error: Error) { print("Ad failed loading. Error: \(error)") diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Interstitial/InterstitialViewController.swift b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Interstitial/InterstitialViewController.swift index c2b2759..5ff0481 100644 --- a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Interstitial/InterstitialViewController.swift +++ b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Interstitial/InterstitialViewController.swift @@ -37,6 +37,14 @@ extension InterstitialViewController: YMAInterstitialAdDelegate { print("Loading failed. Error: \(error)") } + func interstitialAdDidClick(_ interstitialAd: YMAInterstitialAd) { + print("Ad clicked") + } + + func interstitialAd(_ interstitialAd: YMAInterstitialAd, didTrackImpressionWith impressionData: YMAImpressionData?) { + print("Impression tracked") + } + func interstitialAdWillLeaveApplication(_ interstitialAd: YMAInterstitialAd) { print("Will leave application") } diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Native/CustomNativeViewController.swift b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Native/CustomNativeViewController.swift index 31aa2df..5c0a89c 100644 --- a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Native/CustomNativeViewController.swift +++ b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Native/CustomNativeViewController.swift @@ -78,6 +78,14 @@ extension CustomNativeViewController: YMANativeAdDelegate { // return self // } + func nativeAdDidClick(_ ad: YMANativeAd) { + print("Ad clicked") + } + + func nativeAd(_ ad: YMANativeAd, didTrackImpressionWith impressionData: YMAImpressionData?) { + print("Impression tracked") + } + func nativeAdWillLeaveApplication(_ ad: YMANativeAd) { print("Will leave application") } diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Native/TemplateNativeViewController.swift b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Native/TemplateNativeViewController.swift index 6de0879..3460e7f 100644 --- a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Native/TemplateNativeViewController.swift +++ b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Native/TemplateNativeViewController.swift @@ -74,6 +74,14 @@ extension TemplateNativeViewController: YMANativeAdDelegate { // return self // } + func nativeAdDidClick(_ ad: YMANativeAd) { + print("Ad clicked") + } + + func nativeAd(_ ad: YMANativeAd, didTrackImpressionWith impressionData: YMAImpressionData?) { + print("Impression tracked") + } + func nativeAdWillLeaveApplication(_ ad: YMANativeAd) { print("Will leave application") } diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Rewarded/RewardedViewController.swift b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Rewarded/RewardedViewController.swift index 15176ca..a4e9ede 100644 --- a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Rewarded/RewardedViewController.swift +++ b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Yandex/Rewarded/RewardedViewController.swift @@ -42,6 +42,14 @@ extension RewardedViewController: YMARewardedAdDelegate { func rewardedAdDidFail(toLoad rewardedAd: YMARewardedAd, error: Error) { print("Loading failed. Error: %@", error) } + + func rewardedAdDidClick(_ rewardedAd: YMARewardedAd) { + print("Ad clicked") + } + + func rewardedAd(_ rewardedAd: YMARewardedAd, didTrackImpressionWith impressionData: YMAImpressionData?) { + print("Impression tracked") + } func rewardedAdWillLeaveApplication(_ rewardedAd: YMARewardedAd) { print("Rewarded ad will leave application") diff --git a/changelog/mobileads/CHANGELOG.md b/changelog/mobileads/CHANGELOG.md index ae2fd17..987b307 100644 --- a/changelog/mobileads/CHANGELOG.md +++ b/changelog/mobileads/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log All notable changes to this project will be documented in this file. +# Version 5.0.1 + +SDK archive: [**download**](https://storage.mds.yandex.net/get-ads-mobile-sdk/223308/YandexMobileAds-5.0.1-ios-600986ab-fae2-4f1d-a8ca-e9908d3e126d.zip) + +#### Added +* Added improvements and fixes + # Version 5.0.0 SDK archive: [**download**](https://storage.mds.yandex.net/get-ads-mobile-sdk/212922/YandexMobileAds-5.0.0-ios-19291768-8833-47f7-a4ef-06686dc09227.zip) @@ -312,7 +319,7 @@ SDK archive: [**download**](https://storage.mds.yandex.net/get-ads-mobile-sdk/21 #### Added * Added support for VMAP format -* Added support for VAST wrappers +* Added support for VAST wrappers # Version 2.12.0 @@ -404,7 +411,7 @@ SDK archive: [**download**](https://storage.mds.yandex.net/get-ads-mobile-sdk/21 #### Added -* Added native ad mediation +* Added native ad mediation #### Fixed @@ -444,7 +451,7 @@ SDK archive: [**download**](https://storage.mds.yandex.net/get-ads-mobile-sdk/21 #### Added -* Added HTML banners and interstitials mediation +* Added HTML banners and interstitials mediation ## Version 2.7.0 @@ -498,12 +505,12 @@ SDK archive: [**download**](https://storage.mds.yandex.net/get-ads-mobile-sdk/20 * Updated compatible AppMetrica versions range #### Added -* Added minor improvements +* Added minor improvements ## Version 2.2.2 #### Added -* Added minor improvements +* Added minor improvements ## Version 2.2.1 @@ -534,7 +541,7 @@ SDK archive: [**download**](https://storage.mds.yandex.net/get-ads-mobile-sdk/20 ## Version 2.1.1 #### Added -* Added minor improvements +* Added minor improvements ## Version 2.1.0