Skip to content

Commit

Permalink
Merge pull request #236 from teads/update-sample-app-5.1.1
Browse files Browse the repository at this point in the history
Updated SampleApp to latest version (v5.1.1)
  • Loading branch information
github-richard-depierre authored Apr 3, 2024
2 parents 3e28883 + efa51f9 commit 0519165
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 67 deletions.
8 changes: 4 additions & 4 deletions MediationAdapters/TeadsAdMobAdapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ If you want to display Teads ads in your iOS application through AdMob mediation

## Requirements

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

## Features

Expand Down
8 changes: 4 additions & 4 deletions MediationAdapters/TeadsAppLovinAdapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ If you want to display Teads ads in your iOS application through AppLovin MAX me

## Requirements

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

## Features

Expand Down
6 changes: 3 additions & 3 deletions MediationAdapters/TeadsSASAdapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ If you want to display Teads ads in your iOS application through Smart Ads Serve

## Requirements

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

## Features

Expand Down
96 changes: 52 additions & 44 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,73 +3,81 @@ PODS:
- Google-Mobile-Ads-SDK (10.8.0):
- GoogleAppMeasurement (< 11.0, >= 7.0)
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleAppMeasurement (10.20.0):
- GoogleAppMeasurement/AdIdSupport (= 10.20.0)
- GoogleAppMeasurement (10.23.1):
- GoogleAppMeasurement/AdIdSupport (= 10.23.1)
- GoogleUtilities/AppDelegateSwizzler (~> 7.11)
- GoogleUtilities/MethodSwizzler (~> 7.11)
- GoogleUtilities/Network (~> 7.11)
- "GoogleUtilities/NSData+zlib (~> 7.11)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleAppMeasurement/AdIdSupport (10.20.0):
- GoogleAppMeasurement/WithoutAdIdSupport (= 10.20.0)
- nanopb (< 2.30911.0, >= 2.30908.0)
- GoogleAppMeasurement/AdIdSupport (10.23.1):
- GoogleAppMeasurement/WithoutAdIdSupport (= 10.23.1)
- GoogleUtilities/AppDelegateSwizzler (~> 7.11)
- GoogleUtilities/MethodSwizzler (~> 7.11)
- GoogleUtilities/Network (~> 7.11)
- "GoogleUtilities/NSData+zlib (~> 7.11)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleAppMeasurement/WithoutAdIdSupport (10.20.0):
- nanopb (< 2.30911.0, >= 2.30908.0)
- GoogleAppMeasurement/WithoutAdIdSupport (10.23.1):
- GoogleUtilities/AppDelegateSwizzler (~> 7.11)
- GoogleUtilities/MethodSwizzler (~> 7.11)
- GoogleUtilities/Network (~> 7.11)
- "GoogleUtilities/NSData+zlib (~> 7.11)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- nanopb (< 2.30911.0, >= 2.30908.0)
- GoogleUserMessagingPlatform (2.0.1)
- GoogleUtilities/AppDelegateSwizzler (7.12.0):
- GoogleUtilities/AppDelegateSwizzler (7.13.0):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (7.12.0):
- GoogleUtilities/Privacy
- GoogleUtilities/Environment (7.13.0):
- GoogleUtilities/Privacy
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.12.0):
- GoogleUtilities/Logger (7.13.0):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (7.12.0):
- GoogleUtilities/Privacy
- GoogleUtilities/MethodSwizzler (7.13.0):
- GoogleUtilities/Logger
- GoogleUtilities/Network (7.12.0):
- GoogleUtilities/Privacy
- GoogleUtilities/Network (7.13.0):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Privacy
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.12.0)"
- GoogleUtilities/Reachability (7.12.0):
- "GoogleUtilities/NSData+zlib (7.13.0)":
- GoogleUtilities/Privacy
- GoogleUtilities/Privacy (7.13.0)
- GoogleUtilities/Reachability (7.13.0):
- GoogleUtilities/Logger
- nanopb (2.30909.1):
- nanopb/decode (= 2.30909.1)
- nanopb/encode (= 2.30909.1)
- nanopb/decode (2.30909.1)
- nanopb/encode (2.30909.1)
- PromisesObjC (2.3.1)
- GoogleUtilities/Privacy
- nanopb (2.30910.0):
- nanopb/decode (= 2.30910.0)
- nanopb/encode (= 2.30910.0)
- nanopb/decode (2.30910.0)
- nanopb/encode (2.30910.0)
- PromisesObjC (2.4.0)
- Smart-Core-SDK (7.18.1)
- Smart-Display-SDK (7.18.0):
- Smart-Core-SDK (~> 7.18)
- SwiftFormat/CLI (0.50.1)
- TeadsAdMobAdapter (5.1.0):
- TeadsAdMobAdapter (5.1.1):
- Google-Mobile-Ads-SDK (>= 9.0.0)
- TeadsSDK (= 5.1.0)
- TeadsAppLovinAdapter (5.1.0):
- TeadsSDK (= 5.1.1)
- TeadsAppLovinAdapter (5.1.1):
- AppLovinSDK (>= 11.5.1)
- TeadsSDK (= 5.1.0)
- TeadsSASAdapter (5.1.0):
- TeadsSDK (= 5.1.1)
- TeadsSASAdapter (5.1.1):
- Smart-Display-SDK (>= 7.6.2)
- TeadsSDK (= 5.1.0)
- TeadsSDK (5.1.0):
- TeadsSDK/Core (= 5.1.0)
- TeadsSDK/Core (5.1.0)
- TeadsSDK (= 5.1.1)
- TeadsSDK (5.1.1):
- TeadsSDK/Core (= 5.1.1)
- TeadsSDK/Core (5.1.1)

DEPENDENCIES:
- SwiftFormat/CLI
- TeadsAdMobAdapter (~> 5.1.0)
- TeadsAppLovinAdapter (~> 5.1.0)
- TeadsSASAdapter (~> 5.1.0)
- TeadsSDK (~> 5.1.0)
- TeadsAdMobAdapter (~> 5.1)
- TeadsAppLovinAdapter (~> 5.1)
- TeadsSASAdapter (~> 5.1)
- TeadsSDK (~> 5.1)

SPEC REPOS:
trunk:
Expand All @@ -91,19 +99,19 @@ SPEC REPOS:
SPEC CHECKSUMS:
AppLovinSDK: 5c667a790725d9529c01c3f3acf12ab195865fbb
Google-Mobile-Ads-SDK: 69daa7fb42061b425340706e382e87fab3e666a3
GoogleAppMeasurement: bb3c564c3efb933136af0e94899e0a46167466a8
GoogleAppMeasurement: 794d1d2f71fdf77a077a3986258a5c2dac0f9d48
GoogleUserMessagingPlatform: 5f8b30daf181805317b6b985bb51c1ff3beca054
GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152
nanopb: 438bc412db1928dac798aa6fd75726007be04262
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
Smart-Core-SDK: 7f2b321a2f8a4233481db716a30a2715d2fafbd1
Smart-Display-SDK: 83450dd0befaa55f08779a8c67c30bd6d8e80ee9
SwiftFormat: e73212c71908404e333da34e303772b9e516ac9b
TeadsAdMobAdapter: 7c881daa05dd1a6e98364b12df944913ae93429d
TeadsAppLovinAdapter: 301d368d2a2efb0812c4ebc6d8b2c60162a12a05
TeadsSASAdapter: ceb799cd5c2e3c05c7e6ac73781b516adc83b2c7
TeadsSDK: 4a870fd5ed5964f494b0ff1e83cc8648338f5ea4
TeadsAdMobAdapter: 97c740bade7f433ec73372d0fe1c2e7bedaeeab4
TeadsAppLovinAdapter: f44f998464a570cb7ae37b2e4cdf9134f797f8d2
TeadsSASAdapter: 851149447b24293cbcb8c0f2ca93c8739ca6d969
TeadsSDK: 70452f9e291c33fc148ef9eca8425c72b903fa16

PODFILE CHECKSUM: 805d006f6abff82a13b485a949333164694f493c
PODFILE CHECKSUM: 393b53fe773fe70c29dfb94ca995faa7d222f72d

COCOAPODS: 1.14.3
COCOAPODS: 1.15.2
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,48 @@
// Copyright © 2018 Teads. All rights reserved.
//

import AdSupport
import AppTrackingTransparency
import GoogleMobileAds
import TeadsAdMobAdapter
import TeadsSDK
import UIKit

func requestPermission() {
if #available(iOS 14, *) {
ATTrackingManager.requestTrackingAuthorization { status in
switch status {
case .authorized:
// Tracking authorization dialog was shown
// and we are authorized
print("Authorized")

// Now that we are authorized we can get the IDFA
print(ASIdentifierManager.shared().advertisingIdentifier)
case .denied:
// Tracking authorization dialog was
// shown and permission is denied
print("Denied")
case .notDetermined:
// Tracking authorization dialog has not been shown
print("Not Determined")
case .restricted:
print("Restricted")
@unknown default:
print("Unknown")
}
}
}
}

class InReadAdmobScrollViewController: TeadsViewController {
var bannerView: GAMBannerView!
@IBOutlet var slotView: UIView!
@IBOutlet var slotViewHeightConstraint: NSLayoutConstraint!

override func viewDidLoad() {
super.viewDidLoad()

requestPermission()
// 1. Create AdMob view and add it to hierarchy
bannerView = GAMBannerView(adSize: GADAdSizeFluid)
slotView.addSubview(bannerView)
Expand Down
4 changes: 3 additions & 1 deletion TeadsSampleApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSUserTrackingUsageDescription</key>
<string>App would like to access IDFA for tracking purpose</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
Expand All @@ -51,6 +53,6 @@
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>AppLovinSdkKey</key>
<string>gVnGNZO0g67qWhpnz0fIyM6JtXc4Fi0NRLNGyV64ec4eh1-zJ-JqLOsfRfN03Lmld-owcwHxnX70afmuvcwagH</string>
<string>CtFFIaXEO53aF-hpTnlPDqBiNLXG8e3mPMDLktuvKwHluzobrLE83BvsVhNrTeSeKPJx2Kg98mOuX_N6b5J_8b</string>
</dict>
</plist>
20 changes: 10 additions & 10 deletions TeadsSampleApp/Models/Format.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,16 @@ enum PID {
static let sasCarousel = "96470"
static let sasNativeDisplay = 102_803

static let appLovinLandscapeMREC = "33d03d37d70196e3"
static let appLovinVerticalMREC = "66ff5813c2c2698c"
static let appLovinSquareMREC = "5512c029c9a2ebd9"
static let appLovinCarouselMREC = "d60fbc370461602d"

static let appLovinLandscape = "ebe5409dd16b929d"
static let appLovinVertical = "808eaa38d08ade2d"
static let appLovinSquare = "f83b5fc30c17954e"
static let appLovinCarousel = "21c6dc998b472d8d"
static let appLovinNativeDisplay = "b87480e23dd55a79"
static let appLovinLandscapeMREC = "ddfc48cc6bd71d73"
static let appLovinVerticalMREC = "a4f5eb2342e7febb"
static let appLovinSquareMREC = "512f790c9cf57ccd"
static let appLovinCarouselMREC = "9b2445c1ac3d55d6"

static let appLovinLandscape = "eff7e1e4d3096392"
static let appLovinVertical = "42b9f89963b23101"
static let appLovinSquare = "4df06edb6937371e"
static let appLovinCarousel = "373d7d2b25d2d8cc"
static let appLovinNativeDisplay = "5738024757e4ef72"
}

enum FormatName: String {
Expand Down

0 comments on commit 0519165

Please sign in to comment.