Skip to content

Commit 0519165

Browse files
Merge pull request #236 from teads/update-sample-app-5.1.1
Updated SampleApp to latest version (v5.1.1)
2 parents 3e28883 + efa51f9 commit 0519165

File tree

7 files changed

+106
-67
lines changed

7 files changed

+106
-67
lines changed

MediationAdapters/TeadsAdMobAdapter/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ If you want to display Teads ads in your iOS application through AdMob mediation
66

77
## Requirements
88

9-
- ![Platform: iOS 10+](https://img.shields.io/badge/Platform-iOS%2010%2B-blue.svg?style=flat)
10-
- ![Xcode: 12.5+](https://img.shields.io/badge/Xcode-12.5+-blue.svg?style=flat)
11-
- ![GoogleMobileAdsSDK: 8.0+](https://img.shields.io/badge/GoogleMobileAdsSDK-8.0+-blue.svg?style=flat)
12-
- ![Teads SDK: 5.0.3+](https://img.shields.io/badge/Teads%20SDK-5.0.3+-blue.svg?style=flat)
9+
- ![Platform: iOS 14+](https://img.shields.io/badge/Platform-iOS%2014%2B-blue.svg?style=flat)
10+
- ![Xcode: 14+](https://img.shields.io/badge/Xcode-14+-blue.svg?style=flat)
11+
- ![GoogleMobileAdsSDK: 11.2.0+](https://img.shields.io/badge/GoogleMobileAdsSDK-8.0+-blue.svg?style=flat)
12+
- ![Teads SDK: 5.1.1+](https://img.shields.io/badge/Teads%20SDK-5.1.1+-blue.svg?style=flat)
1313

1414
## Features
1515

MediationAdapters/TeadsAppLovinAdapter/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ If you want to display Teads ads in your iOS application through AppLovin MAX me
66

77
## Requirements
88

9-
- ![Platform: iOS 10+](https://img.shields.io/badge/Platform-iOS%2010%2B-blue.svg?style=flat)
10-
- ![Xcode: 12.5+](https://img.shields.io/badge/Xcode-12.5+-blue.svg?style=flat)
11-
- ![AppLovin SDK: 11.1.1+](https://img.shields.io/badge/AppLovin%20SDK-11.1.1+-blue.svg?style=flat)
12-
- ![Teads SDK: 5.0.12+](https://img.shields.io/badge/Teads%20SDK-5.0.12+-blue.svg?style=flat)
9+
- ![Platform: iOS 14+](https://img.shields.io/badge/Platform-iOS%2014%2B-blue.svg?style=flat)
10+
- ![Xcode: 14+](https://img.shields.io/badge/Xcode-14+-blue.svg?style=flat)
11+
- ![AppLovin SDK: 12.3.1+](https://img.shields.io/badge/AppLovin%20SDK-12.3.1+-blue.svg?style=flat)
12+
- ![Teads SDK: 5.1.1+](https://img.shields.io/badge/Teads%20SDK-5.1.1+-blue.svg?style=flat)
1313

1414
## Features
1515

MediationAdapters/TeadsSASAdapter/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ If you want to display Teads ads in your iOS application through Smart Ads Serve
66

77
## Requirements
88

9-
- ![Platform: iOS 10+](https://img.shields.io/badge/Platform-iOS%2010%2B-blue.svg?style=flat)
10-
- ![Xcode: 12.5+](https://img.shields.io/badge/Xcode-12.5+-blue.svg?style=flat)
9+
- ![Platform: iOS 14+](https://img.shields.io/badge/Platform-iOS%2014%2B-blue.svg?style=flat)
10+
- ![Xcode: 14+](https://img.shields.io/badge/Xcode-14+-blue.svg?style=flat)
1111
- ![SAS SDK: 7.62+](https://img.shields.io/badge/Smart%20AdServer%20SDK-7.62+-blue.svg?style=flat)
12-
- ![Teads SDK: 5.0.3+](https://img.shields.io/badge/Teads%20SDK-5.0.3+-blue.svg?style=flat)
12+
- ![Teads SDK: 5.1.1+](https://img.shields.io/badge/Teads%20SDK-5.1.1+-blue.svg?style=flat)
1313

1414
## Features
1515

Podfile.lock

Lines changed: 52 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,73 +3,81 @@ PODS:
33
- Google-Mobile-Ads-SDK (10.8.0):
44
- GoogleAppMeasurement (< 11.0, >= 7.0)
55
- GoogleUserMessagingPlatform (>= 1.1)
6-
- GoogleAppMeasurement (10.20.0):
7-
- GoogleAppMeasurement/AdIdSupport (= 10.20.0)
6+
- GoogleAppMeasurement (10.23.1):
7+
- GoogleAppMeasurement/AdIdSupport (= 10.23.1)
88
- GoogleUtilities/AppDelegateSwizzler (~> 7.11)
99
- GoogleUtilities/MethodSwizzler (~> 7.11)
1010
- GoogleUtilities/Network (~> 7.11)
1111
- "GoogleUtilities/NSData+zlib (~> 7.11)"
12-
- nanopb (< 2.30910.0, >= 2.30908.0)
13-
- GoogleAppMeasurement/AdIdSupport (10.20.0):
14-
- GoogleAppMeasurement/WithoutAdIdSupport (= 10.20.0)
12+
- nanopb (< 2.30911.0, >= 2.30908.0)
13+
- GoogleAppMeasurement/AdIdSupport (10.23.1):
14+
- GoogleAppMeasurement/WithoutAdIdSupport (= 10.23.1)
1515
- GoogleUtilities/AppDelegateSwizzler (~> 7.11)
1616
- GoogleUtilities/MethodSwizzler (~> 7.11)
1717
- GoogleUtilities/Network (~> 7.11)
1818
- "GoogleUtilities/NSData+zlib (~> 7.11)"
19-
- nanopb (< 2.30910.0, >= 2.30908.0)
20-
- GoogleAppMeasurement/WithoutAdIdSupport (10.20.0):
19+
- nanopb (< 2.30911.0, >= 2.30908.0)
20+
- GoogleAppMeasurement/WithoutAdIdSupport (10.23.1):
2121
- GoogleUtilities/AppDelegateSwizzler (~> 7.11)
2222
- GoogleUtilities/MethodSwizzler (~> 7.11)
2323
- GoogleUtilities/Network (~> 7.11)
2424
- "GoogleUtilities/NSData+zlib (~> 7.11)"
25-
- nanopb (< 2.30910.0, >= 2.30908.0)
25+
- nanopb (< 2.30911.0, >= 2.30908.0)
2626
- GoogleUserMessagingPlatform (2.0.1)
27-
- GoogleUtilities/AppDelegateSwizzler (7.12.0):
27+
- GoogleUtilities/AppDelegateSwizzler (7.13.0):
2828
- GoogleUtilities/Environment
2929
- GoogleUtilities/Logger
3030
- GoogleUtilities/Network
31-
- GoogleUtilities/Environment (7.12.0):
31+
- GoogleUtilities/Privacy
32+
- GoogleUtilities/Environment (7.13.0):
33+
- GoogleUtilities/Privacy
3234
- PromisesObjC (< 3.0, >= 1.2)
33-
- GoogleUtilities/Logger (7.12.0):
35+
- GoogleUtilities/Logger (7.13.0):
3436
- GoogleUtilities/Environment
35-
- GoogleUtilities/MethodSwizzler (7.12.0):
37+
- GoogleUtilities/Privacy
38+
- GoogleUtilities/MethodSwizzler (7.13.0):
3639
- GoogleUtilities/Logger
37-
- GoogleUtilities/Network (7.12.0):
40+
- GoogleUtilities/Privacy
41+
- GoogleUtilities/Network (7.13.0):
3842
- GoogleUtilities/Logger
3943
- "GoogleUtilities/NSData+zlib"
44+
- GoogleUtilities/Privacy
4045
- GoogleUtilities/Reachability
41-
- "GoogleUtilities/NSData+zlib (7.12.0)"
42-
- GoogleUtilities/Reachability (7.12.0):
46+
- "GoogleUtilities/NSData+zlib (7.13.0)":
47+
- GoogleUtilities/Privacy
48+
- GoogleUtilities/Privacy (7.13.0)
49+
- GoogleUtilities/Reachability (7.13.0):
4350
- GoogleUtilities/Logger
44-
- nanopb (2.30909.1):
45-
- nanopb/decode (= 2.30909.1)
46-
- nanopb/encode (= 2.30909.1)
47-
- nanopb/decode (2.30909.1)
48-
- nanopb/encode (2.30909.1)
49-
- PromisesObjC (2.3.1)
51+
- GoogleUtilities/Privacy
52+
- nanopb (2.30910.0):
53+
- nanopb/decode (= 2.30910.0)
54+
- nanopb/encode (= 2.30910.0)
55+
- nanopb/decode (2.30910.0)
56+
- nanopb/encode (2.30910.0)
57+
- PromisesObjC (2.4.0)
5058
- Smart-Core-SDK (7.18.1)
5159
- Smart-Display-SDK (7.18.0):
5260
- Smart-Core-SDK (~> 7.18)
5361
- SwiftFormat/CLI (0.50.1)
54-
- TeadsAdMobAdapter (5.1.0):
62+
- TeadsAdMobAdapter (5.1.1):
5563
- Google-Mobile-Ads-SDK (>= 9.0.0)
56-
- TeadsSDK (= 5.1.0)
57-
- TeadsAppLovinAdapter (5.1.0):
64+
- TeadsSDK (= 5.1.1)
65+
- TeadsAppLovinAdapter (5.1.1):
5866
- AppLovinSDK (>= 11.5.1)
59-
- TeadsSDK (= 5.1.0)
60-
- TeadsSASAdapter (5.1.0):
67+
- TeadsSDK (= 5.1.1)
68+
- TeadsSASAdapter (5.1.1):
6169
- Smart-Display-SDK (>= 7.6.2)
62-
- TeadsSDK (= 5.1.0)
63-
- TeadsSDK (5.1.0):
64-
- TeadsSDK/Core (= 5.1.0)
65-
- TeadsSDK/Core (5.1.0)
70+
- TeadsSDK (= 5.1.1)
71+
- TeadsSDK (5.1.1):
72+
- TeadsSDK/Core (= 5.1.1)
73+
- TeadsSDK/Core (5.1.1)
6674

6775
DEPENDENCIES:
6876
- SwiftFormat/CLI
69-
- TeadsAdMobAdapter (~> 5.1.0)
70-
- TeadsAppLovinAdapter (~> 5.1.0)
71-
- TeadsSASAdapter (~> 5.1.0)
72-
- TeadsSDK (~> 5.1.0)
77+
- TeadsAdMobAdapter (~> 5.1)
78+
- TeadsAppLovinAdapter (~> 5.1)
79+
- TeadsSASAdapter (~> 5.1)
80+
- TeadsSDK (~> 5.1)
7381

7482
SPEC REPOS:
7583
trunk:
@@ -91,19 +99,19 @@ SPEC REPOS:
9199
SPEC CHECKSUMS:
92100
AppLovinSDK: 5c667a790725d9529c01c3f3acf12ab195865fbb
93101
Google-Mobile-Ads-SDK: 69daa7fb42061b425340706e382e87fab3e666a3
94-
GoogleAppMeasurement: bb3c564c3efb933136af0e94899e0a46167466a8
102+
GoogleAppMeasurement: 794d1d2f71fdf77a077a3986258a5c2dac0f9d48
95103
GoogleUserMessagingPlatform: 5f8b30daf181805317b6b985bb51c1ff3beca054
96-
GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34
97-
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
98-
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
104+
GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152
105+
nanopb: 438bc412db1928dac798aa6fd75726007be04262
106+
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
99107
Smart-Core-SDK: 7f2b321a2f8a4233481db716a30a2715d2fafbd1
100108
Smart-Display-SDK: 83450dd0befaa55f08779a8c67c30bd6d8e80ee9
101109
SwiftFormat: e73212c71908404e333da34e303772b9e516ac9b
102-
TeadsAdMobAdapter: 7c881daa05dd1a6e98364b12df944913ae93429d
103-
TeadsAppLovinAdapter: 301d368d2a2efb0812c4ebc6d8b2c60162a12a05
104-
TeadsSASAdapter: ceb799cd5c2e3c05c7e6ac73781b516adc83b2c7
105-
TeadsSDK: 4a870fd5ed5964f494b0ff1e83cc8648338f5ea4
110+
TeadsAdMobAdapter: 97c740bade7f433ec73372d0fe1c2e7bedaeeab4
111+
TeadsAppLovinAdapter: f44f998464a570cb7ae37b2e4cdf9134f797f8d2
112+
TeadsSASAdapter: 851149447b24293cbcb8c0f2ca93c8739ca6d969
113+
TeadsSDK: 70452f9e291c33fc148ef9eca8425c72b903fa16
106114

107-
PODFILE CHECKSUM: 805d006f6abff82a13b485a949333164694f493c
115+
PODFILE CHECKSUM: 393b53fe773fe70c29dfb94ca995faa7d222f72d
108116

109-
COCOAPODS: 1.14.3
117+
COCOAPODS: 1.15.2

TeadsSampleApp/Controllers/InRead/Admob/ScrollView/InReadAdmobScrollViewController.swift

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,48 @@
55
// Copyright © 2018 Teads. All rights reserved.
66
//
77

8+
import AdSupport
9+
import AppTrackingTransparency
810
import GoogleMobileAds
911
import TeadsAdMobAdapter
1012
import TeadsSDK
1113
import UIKit
1214

15+
func requestPermission() {
16+
if #available(iOS 14, *) {
17+
ATTrackingManager.requestTrackingAuthorization { status in
18+
switch status {
19+
case .authorized:
20+
// Tracking authorization dialog was shown
21+
// and we are authorized
22+
print("Authorized")
23+
24+
// Now that we are authorized we can get the IDFA
25+
print(ASIdentifierManager.shared().advertisingIdentifier)
26+
case .denied:
27+
// Tracking authorization dialog was
28+
// shown and permission is denied
29+
print("Denied")
30+
case .notDetermined:
31+
// Tracking authorization dialog has not been shown
32+
print("Not Determined")
33+
case .restricted:
34+
print("Restricted")
35+
@unknown default:
36+
print("Unknown")
37+
}
38+
}
39+
}
40+
}
41+
1342
class InReadAdmobScrollViewController: TeadsViewController {
1443
var bannerView: GAMBannerView!
1544
@IBOutlet var slotView: UIView!
1645
@IBOutlet var slotViewHeightConstraint: NSLayoutConstraint!
1746

1847
override func viewDidLoad() {
1948
super.viewDidLoad()
20-
49+
requestPermission()
2150
// 1. Create AdMob view and add it to hierarchy
2251
bannerView = GAMBannerView(adSize: GADAdSizeFluid)
2352
slotView.addSubview(bannerView)

TeadsSampleApp/Info.plist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
<key>NSAllowsArbitraryLoads</key>
3030
<true/>
3131
</dict>
32+
<key>NSUserTrackingUsageDescription</key>
33+
<string>App would like to access IDFA for tracking purpose</string>
3234
<key>UILaunchStoryboardName</key>
3335
<string>LaunchScreen</string>
3436
<key>UIMainStoryboardFile</key>
@@ -51,6 +53,6 @@
5153
<string>UIInterfaceOrientationLandscapeRight</string>
5254
</array>
5355
<key>AppLovinSdkKey</key>
54-
<string>gVnGNZO0g67qWhpnz0fIyM6JtXc4Fi0NRLNGyV64ec4eh1-zJ-JqLOsfRfN03Lmld-owcwHxnX70afmuvcwagH</string>
56+
<string>CtFFIaXEO53aF-hpTnlPDqBiNLXG8e3mPMDLktuvKwHluzobrLE83BvsVhNrTeSeKPJx2Kg98mOuX_N6b5J_8b</string>
5557
</dict>
5658
</plist>

TeadsSampleApp/Models/Format.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,16 @@ enum PID {
152152
static let sasCarousel = "96470"
153153
static let sasNativeDisplay = 102_803
154154

155-
static let appLovinLandscapeMREC = "33d03d37d70196e3"
156-
static let appLovinVerticalMREC = "66ff5813c2c2698c"
157-
static let appLovinSquareMREC = "5512c029c9a2ebd9"
158-
static let appLovinCarouselMREC = "d60fbc370461602d"
159-
160-
static let appLovinLandscape = "ebe5409dd16b929d"
161-
static let appLovinVertical = "808eaa38d08ade2d"
162-
static let appLovinSquare = "f83b5fc30c17954e"
163-
static let appLovinCarousel = "21c6dc998b472d8d"
164-
static let appLovinNativeDisplay = "b87480e23dd55a79"
155+
static let appLovinLandscapeMREC = "ddfc48cc6bd71d73"
156+
static let appLovinVerticalMREC = "a4f5eb2342e7febb"
157+
static let appLovinSquareMREC = "512f790c9cf57ccd"
158+
static let appLovinCarouselMREC = "9b2445c1ac3d55d6"
159+
160+
static let appLovinLandscape = "eff7e1e4d3096392"
161+
static let appLovinVertical = "42b9f89963b23101"
162+
static let appLovinSquare = "4df06edb6937371e"
163+
static let appLovinCarousel = "373d7d2b25d2d8cc"
164+
static let appLovinNativeDisplay = "5738024757e4ef72"
165165
}
166166

167167
enum FormatName: String {

0 commit comments

Comments
 (0)