Teads allows you to integrate a single SDK into your app, and serve premium branded "outstream" video ads from Teads SSP ad server. This sample app includes Teads iOS framework and is showing integration examples.
📋 Table of Contents
- Integration Documentation
- Migrating from v4 to v5
- Run the sample app
- Mediation Adapters
📚 Integration Documentation
- Integration instructions are available on Teads SDK Documentation.
- Framework API documentation is available here
🕊 Migrating from v4 to v5
TeadsSDK v5 introduces some changes regarding v4, see Migration Documentation
🚲 Run the sample app
Clone this repository, open it with Xcode, and run project.
📦 Install the Teads SDK iOS framework
To install the TeadsSDK just put this on your podfile, if you've never used cocoapods before please check the offical documentation.
pod 'TeadsSDK', '~> 5.0'
On your terminal, go to the directory containing your project's
.xcodeproj file and your Podfile and run
pod install command. This will install Teads SDK along with our needed dependencies.
pod install --repo-update
Before installing Teads adapter, you need to implement Google Mobile Ads in your application.
Swift Package Manager
SPM is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.
Installing from Xcode
- Add a package by selecting
Add Packages…in Xcode’s menu bar.
- Search for the Teads iOS SDK using the repo's URL:
- Next, set the Dependency Rule to be
Up to Next Major Versionand keep
5.0.0 < 6.0.0.
- Choose the Teads product that you want to be installed in your app:
Alternatively, add Teads to your Package.swift manifest
- Add it to the
dependencies: [ .package(url: "https://github.com/teads/TeadsSDK-iOS", .upToNextMajor(from: "5.0.0")) ]
- in any target that depends on a Teads product, add it to the
dependenciesarray of that target:
.target( name: "MyTargetName", dependencies: [ // The product(s) you want (e.g. TeadsSDK). .product(name: "TeadsSDK", package: "Teads"), ] ),
🤝 Mediation Adapters
Teads SDK supports the IAB Open Measurement SDK, also known as OM SDK. The OM SDK brings transparency to the advertising world, giving a way to standardize the viewability and verification measurement for the ads served through mobile apps. Teads is part of the IAB's compliant companies.
See changelog here.
Integration instructions are available on Teads SDK Documentation.