diff --git a/Examples/YandexMobileAdsExample/Podfile b/Examples/YandexMobileAdsExample/Podfile index a6291d6..20eb464 100644 --- a/Examples/YandexMobileAdsExample/Podfile +++ b/Examples/YandexMobileAdsExample/Podfile @@ -5,6 +5,7 @@ target 'YandexMobileAdsExample' do pod 'YandexMobileAdsAdMobAdapters' pod 'YandexMobileAdsIronSourceAdapters' pod 'YandexMobileAdsMediation' + pod 'YandexMobileAdsInstream' end post_install do |installer| diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/1024.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/1024.png new file mode 100644 index 0000000..9c3728a Binary files /dev/null and b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/1024.png differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/114.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/114.png new file mode 100644 index 0000000..77e057c Binary files /dev/null and b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/114.png differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/120.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/120.png new file mode 100644 index 0000000..1d74799 Binary files /dev/null and b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/120.png differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/180.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/180.png new file mode 100644 index 0000000..3e8065e Binary files /dev/null and b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/180.png differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/29.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/29.png new file mode 100644 index 0000000..d2538a6 Binary files /dev/null and b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/29.png differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/40.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/40.png new file mode 100644 index 0000000..eb751e2 Binary files /dev/null and b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/40.png differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/57.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/57.png new file mode 100644 index 0000000..4fb1a12 Binary files /dev/null and b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/57.png differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/58.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/58.png new file mode 100644 index 0000000..313ca62 Binary files /dev/null and b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/58.png differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/60.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/60.png new file mode 100644 index 0000000..67d5010 Binary files /dev/null and b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/60.png differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/80.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/80.png new file mode 100644 index 0000000..fa322e1 Binary files /dev/null and b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/80.png differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/87.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/87.png new file mode 100644 index 0000000..d816550 Binary files /dev/null and b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/87.png differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Contents.json b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Contents.json index 0436ccc..af727e0 100644 --- a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,145 +1,73 @@ { "images" : [ { + "filename" : "40.png", "idiom" : "iphone", "scale" : "2x", "size" : "20x20" }, { + "filename" : "60.png", "idiom" : "iphone", "scale" : "3x", "size" : "20x20" }, { - "filename" : "Icon-29.png", + "filename" : "29.png", "idiom" : "iphone", "scale" : "1x", "size" : "29x29" }, { - "filename" : "Icon-29@2x.png", + "filename" : "58.png", "idiom" : "iphone", "scale" : "2x", "size" : "29x29" }, { - "filename" : "Icon-29@3x.png", + "filename" : "87.png", "idiom" : "iphone", "scale" : "3x", "size" : "29x29" }, { - "filename" : "Icon-40@2x.png", + "filename" : "80.png", "idiom" : "iphone", "scale" : "2x", "size" : "40x40" }, { - "filename" : "Icon-40@3x.png", + "filename" : "120.png", "idiom" : "iphone", "scale" : "3x", "size" : "40x40" }, { - "filename" : "Icon-57.png", + "filename" : "57.png", "idiom" : "iphone", "scale" : "1x", "size" : "57x57" }, { - "filename" : "Icon-57@2x.png", + "filename" : "114.png", "idiom" : "iphone", "scale" : "2x", "size" : "57x57" }, { - "filename" : "Icon-60@2x.png", + "filename" : "120.png", "idiom" : "iphone", "scale" : "2x", "size" : "60x60" }, { - "filename" : "Icon-60@3x.png", + "filename" : "180.png", "idiom" : "iphone", "scale" : "3x", "size" : "60x60" }, { - "idiom" : "ipad", - "scale" : "1x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "20x20" - }, - { - "filename" : "Icon-29.png", - "idiom" : "ipad", - "scale" : "1x", - "size" : "29x29" - }, - { - "filename" : "Icon-29@2x.png", - "idiom" : "ipad", - "scale" : "2x", - "size" : "29x29" - }, - { - "filename" : "Icon-40.png", - "idiom" : "ipad", - "scale" : "1x", - "size" : "40x40" - }, - { - "filename" : "Icon-40@2x.png", - "idiom" : "ipad", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "50x50" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "50x50" - }, - { - "filename" : "Icon-72.png", - "idiom" : "ipad", - "scale" : "1x", - "size" : "72x72" - }, - { - "filename" : "Icon-72@2x.png", - "idiom" : "ipad", - "scale" : "2x", - "size" : "72x72" - }, - { - "filename" : "Icon-76.png", - "idiom" : "ipad", - "scale" : "1x", - "size" : "76x76" - }, - { - "filename" : "Icon-76@2x.png", - "idiom" : "ipad", - "scale" : "2x", - "size" : "76x76" - }, - { - "filename" : "Icon-83@2x.png", - "idiom" : "ipad", - "scale" : "2x", - "size" : "83.5x83.5" - }, - { - "filename" : "Icon-1024.png", + "filename" : "1024.png", "idiom" : "ios-marketing", "scale" : "1x", "size" : "1024x1024" diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-1024.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-1024.png deleted file mode 100644 index e5c4021..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-1024.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-29.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-29.png deleted file mode 100644 index 571c53f..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-29.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png deleted file mode 100644 index cc59d71..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png deleted file mode 100644 index a99041f..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-40.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-40.png deleted file mode 100644 index 8b045c6..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-40.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png deleted file mode 100644 index 2034169..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png deleted file mode 100644 index 52fef0a..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-57.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-57.png deleted file mode 100644 index e0eb6e6..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-57.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-57@2x.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-57@2x.png deleted file mode 100644 index 7c674b3..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-57@2x.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png deleted file mode 100644 index 52fef0a..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png deleted file mode 100644 index dff5bfb..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-72.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-72.png deleted file mode 100644 index 1538317..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-72.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-72@2x.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-72@2x.png deleted file mode 100644 index 561287f..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-72@2x.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-76.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-76.png deleted file mode 100644 index 75b419f..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-76.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png deleted file mode 100644 index 48e5335..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-83@2x.png b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-83@2x.png deleted file mode 100644 index 89e292a..0000000 Binary files a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Assets.xcassets/AppIcon.appiconset/Icon-83@2x.png and /dev/null differ diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Info.plist b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Info.plist index a90bc64..e34275c 100644 --- a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Info.plist +++ b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Info.plist @@ -23,7 +23,7 @@ CFBundleVersion 1 GADApplicationIdentifier - ca-app-pub-3940256099942544~1458002511 + ca-app-pub-4449457472880521~6005554774 LSRequiresIPhoneOS UIApplicationSupportsIndirectInputEvents diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobBannerViewController.swift b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobBannerViewController.swift index 065c416..91b7614 100644 --- a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobBannerViewController.swift +++ b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobBannerViewController.swift @@ -9,14 +9,14 @@ import GoogleMobileAds class AdMobBannerViewController: UIViewController { private var bannerView: GADBannerView! - @IBOutlet weak var loadButton: UIButton! + @IBOutlet var loadButton: UIButton! override func viewDidLoad() { super.viewDidLoad() initializeAdMob() - // Replace ca-app-pub-4449457472880521/5093091962 with Ad Unit ID generated at https://apps.admob.com". + // Replace ca-app-pub-4449457472880521/8471882114 with Ad Unit ID generated at https://apps.admob.com". bannerView = GADBannerView(adSize: GADAdSizeBanner) - bannerView.adUnitID = "ca-app-pub-4449457472880521/5093091962" + bannerView.adUnitID = "ca-app-pub-4449457472880521/8471882114" bannerView.delegate = self bannerView.rootViewController = self bannerView.translatesAutoresizingMaskIntoConstraints = false @@ -24,7 +24,7 @@ class AdMobBannerViewController: UIViewController { func initializeAdMob() { loadButton.isUserInteractionEnabled = false - GADMobileAds.sharedInstance().start { [weak self] status in + GADMobileAds.sharedInstance().start { [weak self] _ in DispatchQueue.main.async { self?.loadButton.isUserInteractionEnabled = true } @@ -35,7 +35,7 @@ class AdMobBannerViewController: UIViewController { banner.removeFromSuperview() view.addSubview(banner) - var layoutGuide = self.view.layoutMarginsGuide + var layoutGuide = view.layoutMarginsGuide if #available(iOS 11.0, *) { layoutGuide = self.view.safeAreaLayoutGuide } @@ -46,7 +46,7 @@ class AdMobBannerViewController: UIViewController { NSLayoutConstraint.activate(constraints) } - @IBAction func loadAd(_ sender: UIButton) { + @IBAction func loadAd(_: UIButton) { bannerView.load(GADRequest()) } } @@ -57,7 +57,7 @@ extension AdMobBannerViewController: GADBannerViewDelegate { print("Ad view did receive ad") } - func bannerView(_ bannerView: GADBannerView, didFailToReceiveAdWithError error: Error) { + func bannerView(_: GADBannerView, didFailToReceiveAdWithError error: Error) { print("Ad view did fail to receive ad with error: \(error)") } } diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobInterstitialViewController.swift b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobInterstitialViewController.swift index 7d7ff7f..31960eb 100644 --- a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobInterstitialViewController.swift +++ b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobInterstitialViewController.swift @@ -9,8 +9,8 @@ import GoogleMobileAds class AdMobInterstitialViewController: UIViewController { var interstitial: GADInterstitialAd? - @IBOutlet weak var showButton: UIButton! - @IBOutlet weak var loadButton: UIButton! + @IBOutlet var showButton: UIButton! + @IBOutlet var loadButton: UIButton! override func viewDidLoad() { super.viewDidLoad() @@ -19,18 +19,18 @@ class AdMobInterstitialViewController: UIViewController { func initializeAdMob() { loadButton.isUserInteractionEnabled = false - GADMobileAds.sharedInstance().start { [weak self] status in + GADMobileAds.sharedInstance().start { [weak self] _ in DispatchQueue.main.async { self?.loadButton.isUserInteractionEnabled = true } } } - @IBAction func loadAd(_ sender: UIButton) { - self.showButton.isEnabled = false + @IBAction func loadAd(_: UIButton) { + showButton.isEnabled = false - // Replace ca-app-pub-4449457472880521/5935222734 with Ad Unit ID generated at https://apps.admob.com". - GADInterstitialAd.load(withAdUnitID:"ca-app-pub-4449457472880521/5935222734", + // Replace ca-app-pub-4449457472880521/3027983741 with Ad Unit ID generated at https://apps.admob.com". + GADInterstitialAd.load(withAdUnitID: "ca-app-pub-4449457472880521/3027983741", request: GADRequest()) { [self] ad, error in if let error = error { print("Did fail to receive ad with error: \(error.localizedDescription)") @@ -42,14 +42,14 @@ class AdMobInterstitialViewController: UIViewController { } } } - - @IBAction func showAd(_ sender: UIButton) { + + @IBAction func showAd(_: UIButton) { interstitial?.present(fromRootViewController: self) } } extension AdMobInterstitialViewController: GADFullScreenContentDelegate { - func ad(_ ad: GADFullScreenPresentingAd, didFailToPresentFullScreenContentWithError error: Error) { + func ad(_: GADFullScreenPresentingAd, didFailToPresentFullScreenContentWithError error: Error) { print("Did fail to present ad with error: \(error.localizedDescription)") } } diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobNativeViewController.swift b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobNativeViewController.swift index 43404ca..2a01ade 100644 --- a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobNativeViewController.swift +++ b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobNativeViewController.swift @@ -10,7 +10,7 @@ import GoogleMobileAds class AdMobNativeViewController: UIViewController { private var adLoader: GADAdLoader? private var adView: AdMobNativeAdView? - @IBOutlet weak var loadButton: UIButton! + @IBOutlet var loadButton: UIButton! override func viewDidLoad() { super.viewDidLoad() @@ -21,17 +21,17 @@ class AdMobNativeViewController: UIViewController { func initializeAdMob() { loadButton.isUserInteractionEnabled = false - GADMobileAds.sharedInstance().start { [weak self] status in + GADMobileAds.sharedInstance().start { [weak self] _ in DispatchQueue.main.async { self?.loadButton.isUserInteractionEnabled = true } } } - @IBAction func loadAd(_ sender: UIButton) { + @IBAction func loadAd(_: UIButton) { adLoader?.load(GADRequest()) } - + private func createAdView() { adView = Bundle.main.loadNibNamed("AdMobNativeAdView", owner: nil, @@ -44,8 +44,8 @@ class AdMobNativeViewController: UIViewController { private func addView(_ adView: UIView) { adView.translatesAutoresizingMaskIntoConstraints = false - self.view.addSubview(adView) - var layoutGuide = self.view.layoutMarginsGuide + view.addSubview(adView) + var layoutGuide = view.layoutMarginsGuide if #available(iOS 11.0, *) { layoutGuide = self.view.safeAreaLayoutGuide } @@ -58,8 +58,8 @@ class AdMobNativeViewController: UIViewController { } private func createLoader() { - // Replace ca-app-pub-4449457472880521/7598370022 with Ad Unit ID generated at https://apps.admob.com". - adLoader = GADAdLoader(adUnitID: "ca-app-pub-4449457472880521/7598370022", + // Replace ca-app-pub-4449457472880521/2142524905 with Ad Unit ID generated at https://apps.admob.com". + adLoader = GADAdLoader(adUnitID: "ca-app-pub-4449457472880521/2142524905", rootViewController: self, adTypes: [.native], options: nil) @@ -68,7 +68,7 @@ class AdMobNativeViewController: UIViewController { } extension AdMobNativeViewController: GADNativeAdLoaderDelegate, GADNativeAdDelegate { - func adLoader(_ adLoader: GADAdLoader, didReceive nativeAd: GADNativeAd) { + func adLoader(_: GADAdLoader, didReceive nativeAd: GADNativeAd) { guard let adView = adView else { return } nativeAd.delegate = self @@ -77,7 +77,7 @@ extension AdMobNativeViewController: GADNativeAdLoaderDelegate, GADNativeAdDeleg adView.isHidden = false } - func adLoader(_ adLoader: GADAdLoader, didFailToReceiveAdWithError error: Error) { + func adLoader(_: GADAdLoader, didFailToReceiveAdWithError error: Error) { print("Ad loader did fail to receive ad with error: \(error.localizedDescription)") } } diff --git a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobRewardedViewController.swift b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobRewardedViewController.swift index 18ba695..4abcaaa 100644 --- a/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobRewardedViewController.swift +++ b/Examples/YandexMobileAdsExample/YandexMobileAdsExample/Third-PartyMediation/AdMob/AdMobRewardedViewController.swift @@ -9,8 +9,8 @@ import GoogleMobileAds class AdMobRewardedViewController: UIViewController { var rewardedAd: GADRewardedAd? - @IBOutlet weak var showButton: UIButton! - @IBOutlet weak var loadButton: UIButton! + @IBOutlet var showButton: UIButton! + @IBOutlet var loadButton: UIButton! override func viewDidLoad() { super.viewDidLoad() @@ -19,19 +19,19 @@ class AdMobRewardedViewController: UIViewController { func initializeAdMob() { loadButton.isUserInteractionEnabled = false - GADMobileAds.sharedInstance().start { [weak self] status in + GADMobileAds.sharedInstance().start { [weak self] _ in DispatchQueue.main.async { self?.loadButton.isUserInteractionEnabled = true } } } - @IBAction func loadAd(_ sender: UIButton) { - self.showButton.isEnabled = false + @IBAction func loadAd(_: UIButton) { + showButton.isEnabled = false - // Replace ca-app-pub-4449457472880521/8830996342 with Ad Unit ID generated at https://apps.admob.com". - GADRewardedAd.load(withAdUnitID: "ca-app-pub-4449457472880521/8830996342", - request: GADRequest()) { [self] ad, error in + // Replace ca-app-pub-4449457472880521/1866149153 with Ad Unit ID generated at https://apps.admob.com". + GADRewardedAd.load(withAdUnitID: "ca-app-pub-4449457472880521/1866149153", + request: GADRequest()) { [self] ad, error in if let error = error { print("Did fail to receive ad with error: \(error.localizedDescription)") } else { @@ -43,7 +43,7 @@ class AdMobRewardedViewController: UIViewController { } } - @IBAction func showAd(_ sender: UIButton) { + @IBAction func showAd(_: UIButton) { rewardedAd?.present(fromRootViewController: self) { [weak self] in self?.showReward() } @@ -63,7 +63,7 @@ class AdMobRewardedViewController: UIViewController { } extension AdMobRewardedViewController: GADFullScreenContentDelegate { - func ad(_ ad: GADFullScreenPresentingAd, didFailToPresentFullScreenContentWithError error: Error) { + func ad(_: GADFullScreenPresentingAd, didFailToPresentFullScreenContentWithError error: Error) { print("Ad failed to present with error: \(error.localizedDescription)") } } diff --git a/changelog/adapter/admob-mobileads/CHANGELOG.md b/changelog/adapter/admob-mobileads/CHANGELOG.md index 2301866..148cd88 100644 --- a/changelog/adapter/admob-mobileads/CHANGELOG.md +++ b/changelog/adapter/admob-mobileads/CHANGELOG.md @@ -1,8 +1,19 @@ # Change Log All notable changes to this project will be documented in this file. +## Version 5.8.0.0 + +#### Updated +* Added support for Yandex Mobile Ads SDK 5.8.0 +* Added support for Google Mobile Ads SDK version 10.6.0 +* Updated minimum supported Google Mobile Ads SDK version to 10.6.0 + ## Version 5.7.0.0 + +#### Updated * Added support for Yandex Mobile Ads SDK 5.7.0 +* Added support for Google Mobile Ads SDK version 10.4.0 +* Updated minimum supported Google Mobile Ads SDK version to 10.4.0 ## Version 5.6.0.0 diff --git a/changelog/adapter/ironsource-mobileads/CHANGELOG.md b/changelog/adapter/ironsource-mobileads/CHANGELOG.md index dba0374..99f8445 100644 --- a/changelog/adapter/ironsource-mobileads/CHANGELOG.md +++ b/changelog/adapter/ironsource-mobileads/CHANGELOG.md @@ -1,8 +1,15 @@ # Change Log All notable changes to this project will be documented in this file. +## Version 5.8.0.0 + +### Updated +* Added support for Yandex Mobile Ads SDK 5.8.0 + ## Version 5.7.0.0 -* Added support for Yandex Mobile Ads SDK 5.7.0 + +### Updated +* Added support for Yandex Mobile Ads SDK 5.6.0 ## Version 5.6.0.0 diff --git a/changelog/mediation/mobileads-adcolony/CHANGELOG.md b/changelog/mediation/mobileads-adcolony/CHANGELOG.md index 840b115..eb357ec 100644 --- a/changelog/mediation/mobileads-adcolony/CHANGELOG.md +++ b/changelog/mediation/mobileads-adcolony/CHANGELOG.md @@ -1,15 +1,15 @@ # Change Log All notable changes to this project will be documented in this file. -## Version 4.9.0.2 +## Version 4.9.0.3 #### Added -* Updated minimum supported Yandex Mobile Ads SDK version to 5.7.0 +* Updated minimum supported Yandex Mobile Ads SDK version to 5.8.0 ## Version 4.9.0.1 #### Added -* Updated minimum supported Yandex Mobile Ads SDK version to 5.6.0 +* Updated minimum supported Yandex Mobile Ads SDK version to 5.7.0 ## Version 4.9.0.0 diff --git a/changelog/mediation/mobileads-admob/CHANGELOG.md b/changelog/mediation/mobileads-admob/CHANGELOG.md index 244f6c8..24994e1 100644 --- a/changelog/mediation/mobileads-admob/CHANGELOG.md +++ b/changelog/mediation/mobileads-admob/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log All notable changes to this project will be documented in this file. +## Version 10.6.0.0 + +#### Added +* Added support for AdMob SDK version 10.6.0 +* Updated minimum supported AdMob SDK version to 10.6.0 +* Updated minimum supported Yandex Mobile Ads SDK version to 5.8.0 + ## Version 10.4.0.0 #### Added diff --git a/changelog/mediation/mobileads-applovin/CHANGELOG.md b/changelog/mediation/mobileads-applovin/CHANGELOG.md index 92ea70a..3d5590c 100644 --- a/changelog/mediation/mobileads-applovin/CHANGELOG.md +++ b/changelog/mediation/mobileads-applovin/CHANGELOG.md @@ -1,11 +1,18 @@ # Change Log All notable changes to this project will be documented in this file. +## Version 11.10.1.0 + +#### Added +* Added support for AppLovin sdk version 11.10.1 +* Updated minimum supported AppLovin sdk version to 11.10.1 +* Updated minimum supported Yandex Mobile Ads SDK version to 5.8.0 + ## Version 11.9.0.0 #### Added -* Added support for AppLovin sdk version 11.9.0.0 -* Updated minimum supported AppLovin sdk version to 11.9.0.0 +* Added support for AppLovin sdk version 11.9.0 +* Updated minimum supported AppLovin sdk version to 11.9.0 * Updated minimum supported Yandex Mobile Ads SDK version to 5.7.0 ## Version 11.8.2.0 diff --git a/changelog/mediation/mobileads-bigoads/CHANGELOG.md b/changelog/mediation/mobileads-bigoads/CHANGELOG.md new file mode 100644 index 0000000..6a288d8 --- /dev/null +++ b/changelog/mediation/mobileads-bigoads/CHANGELOG.md @@ -0,0 +1,14 @@ +# Change Log +All notable changes to this project will be documented in this file. + +## Version 2.2.0.0 + +#### Added +* Added support for BigoADS sdk version 2.2.0 +* Updated minimum supported BigoADS sdk version to 2.2.0 +* Updated minimum supported Yandex Mobile Ads SDK version to 5.8.0 + +## Version 2.0.1.0 + +#### Added +* Added BigoADS mediation diff --git a/changelog/mediation/mobileads-chartboost/CHANGELOG.md b/changelog/mediation/mobileads-chartboost/CHANGELOG.md index 1ace893..c91fc23 100644 --- a/changelog/mediation/mobileads-chartboost/CHANGELOG.md +++ b/changelog/mediation/mobileads-chartboost/CHANGELOG.md @@ -1,21 +1,26 @@ # Change Log All notable changes to this project will be documented in this file. -## Version 9.3.0 +## Version 9.3.0.1 + +#### Added +* Updated minimum supported Yandex Mobile Ads SDK version to 5.8.0 + +## Version 9.3.0.0 #### Added * Added support for Chartboost sdk version 9.3.0 * Updated minimum supported Chartboost sdk version 9.3.0 * Updated minimum supported Yandex Mobile Ads SDK version to 5.7.0 -## Version 9.2.0 +## Version 9.2.0.0 #### Added * Added support for Chartboost sdk version 9.2.0 * Updated minimum supported Chartboost sdk version 9.2.0 * Updated minimum supported Yandex Mobile Ads SDK version to 5.6.0 -## Version 0.1.0 +## Version 0.1.0.0 #### Added * Added Chartboost mediation diff --git a/changelog/mediation/mobileads-ironsource/CHANGELOG.md b/changelog/mediation/mobileads-ironsource/CHANGELOG.md index af6a05b..0147b96 100644 --- a/changelog/mediation/mobileads-ironsource/CHANGELOG.md +++ b/changelog/mediation/mobileads-ironsource/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log All notable changes to this project will be documented in this file. +## Version 7.3.0.2 + +#### Updated +* Updated minimum supported Yandex Mobile Ads SDK version to 5.8.0 + ## Version 7.3.0.1 #### Updated diff --git a/changelog/mediation/mobileads-mintegral/CHANGELOG.md b/changelog/mediation/mobileads-mintegral/CHANGELOG.md index 11ef6e7..59faf96 100644 --- a/changelog/mediation/mobileads-mintegral/CHANGELOG.md +++ b/changelog/mediation/mobileads-mintegral/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log All notable changes to this project will be documented in this file. +## Version 7.3.8.0 + +#### Updated +* Added support for Mintegral SDK version 7.3.8 +* Updated minimum supported Mintegral SDK version to 7.3.8 +* Updated minimum supported Yandex Mobile Ads SDK version to 5.8.0 + ## Version 7.3.5.0 #### Updated diff --git a/changelog/mediation/mobileads-mytarget/CHANGELOG.md b/changelog/mediation/mobileads-mytarget/CHANGELOG.md index ad70ab4..5a29960 100644 --- a/changelog/mediation/mobileads-mytarget/CHANGELOG.md +++ b/changelog/mediation/mobileads-mytarget/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log All notable changes to this project will be documented in this file. +## Version 5.17.5.0 + +#### Updated +* Added support for MyTarget SDK version 5.17.5 +* Updated minimum supported MyTarget SDK version to 5.17.5 +* Updated minimum supported Yandex Mobile Ads SDK version to 5.8.0 + ## Version 5.17.4.1 #### Updated diff --git a/changelog/mediation/mobileads-unityads/CHANGELOG.md b/changelog/mediation/mobileads-unityads/CHANGELOG.md index a3ebba7..472a518 100644 --- a/changelog/mediation/mobileads-unityads/CHANGELOG.md +++ b/changelog/mediation/mobileads-unityads/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log All notable changes to this project will be documented in this file. +## Version 4.7.1.1 + +#### Updated +* Updated minimum supported UnityAds SDK version to 5.8.0 + ## Version 4.7.1.0 #### Updated diff --git a/changelog/mobileads/CHANGELOG.md b/changelog/mobileads/CHANGELOG.md index 8f36abb..4ee5e37 100644 --- a/changelog/mobileads/CHANGELOG.md +++ b/changelog/mobileads/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +# Version 5.8.0 + +#### Added +* Added SKOverlay support +* Added improvements and fixes + # Version 5.7.0 #### Added