Skip to content

Commit 083263e

Browse files
committed
expose only TeadsAdMobAdapter as Swift package
1 parent f184fa0 commit 083263e

File tree

3 files changed

+26
-99
lines changed

3 files changed

+26
-99
lines changed

MediationAdapters/TeadsAdMobAdapter/README.md

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

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

1313
## Features
@@ -19,23 +19,14 @@ If you want to display Teads ads in your iOS application through AdMob mediation
1919

2020
Before installing Teads adapter, you need to implement [Google Mobile Ads](https://developers.google.com/admob/ios/quick-start) in your application.
2121

22-
#### CocoaPods
22+
### Swift Package Manager
2323

24-
If your project is managing dependencies through [CocoaPods](https://cocoapods.org/), you just need to add this pod in your `Podfile`.
24+
[SPM](https://swift.org/package-manager/) 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. To integrate TeadsSDK into your Xcode project using SPM, specify package repository url :
2525

26-
It will install Teads adapter and Teads SDK.
27-
28-
1. Add pod named `TeadsAdMobAdapter` in your Podfile:
29-
30-
```ruby
31-
platform :ios, '10.0'
32-
pod 'TeadsAdMobAdapter', '~> 5.0'
33-
```
34-
35-
2. Run `pod install --repo-update` to install the adapter in your project.
36-
3. Follow the [Define Custom Event](https://support.teads.tv/support/solutions/articles/36000314767-inread-google-ad-manager-and-admob-mediation#defining_a_custom_event) step to finish the integration.
37-
4. You’re done.
26+
- Repository: `https://github.com/teads/TeadsSDK-iOS`
27+
- Dependency rule: `branch`
28+
- Branch: `admob-spm`
3829

3930
## Integration Documentation
4031

41-
Integration instructions are available on [Teads SDK Documentation](https://support.teads.tv/support/solutions/articles/36000314767-inread-google-ad-manager-and-admob-mediation).
32+
Integration instructions are available on [Teads SDK Documentation](https://support.teads.tv/support/solutions/articles/36000314767-inread-google-ad-manager-and-admob-mediation).

Package.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ let package = Package(
1717
.iOS(.v10)
1818
],
1919
products: [
20-
.library(
21-
name: teadsModuleName,
22-
targets: [teadsModuleName, omModuleName]
23-
),
2420
.library(
2521
name: teadsAdMobAdapterModuleName,
2622
targets: [teadsAdMobAdapterModuleName]

README.md

Lines changed: 19 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,35 @@
1+
# Teads - iOS AdMob Mediation Adapter
12

3+
This branch is dedicated to deliver TeadsAdMobAdapter through SPM
24

3-
<br/>
4-
<p align="center">
5-
<a href="https://teads.com/" target="_blank">
6-
<img width="75%" src="./ReadmeResources/teads_logo.png" alt="Teads logo">
7-
</a>
8-
</p>
9-
<br/>
5+
> Mediation adapter to be used in conjunction with AdMob to deliver Teads ads on iOS devices.
106
11-
----
7+
If you want to display Teads ads in your iOS application through AdMob mediation, you’re at the right place.
128

13-
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.
9+
## Requirements
1410

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

16-
> **⚠️ Important ⚠️**
17-
>
18-
> ***Xcode 13***
19-
>
20-
> In Xcode 13, Apple introduced an option to override the version number of every plist present inside your app (https://developer.apple.com/forums/thread/690647). Even those from third parties frameworks like TeadsSDK. We used to rely on the plist to retrieve the TeadsSDK version. To prevent this, we changed the way we checked the SDK version since version 5.0.6. So please update your integration to at least version 5.0.6.
21-
>
22-
> ***Xcode 13 + iOS 15 device***
23-
>
24-
> [#155](https://github.com/teads/TeadsSDK-iOS/issues/155) building your application with **Xcode 13** and running it on **iOS 15 device** will crash when running TeadsSDK, we strongly advise to upgrade to [4.8.8 version](https://github.com/teads/TeadsSDK-iOS/releases/tag/v4.8.8) which fixes this crash
25-
>
26-
> You can still build and publish your app using Xcode 12 with older versions than 4.8.8
16+
## Features
2717

28-
## 📃 Table of Contents
18+
- ✅ Displaying Teads banners
19+
- ✅ Displaying Teads native ads
2920

30-
- [Integration Documentation](#-integration-documentation)
31-
- [Migrating from v4 to v5](#-migrating-from-v4-to-v5)
32-
- [Run the sample app](#-run-the-sample-app)
33-
- [Installation](#-install-the-teads-sdk-ios-framework)
34-
- [Mediation Adapters](#-mediation-adapters)
35-
- [Certifications](#-certifications)
36-
- [Changelog](#%EF%B8%8F-changelog)
37-
38-
## 🚀 Integration Documentation
39-
40-
Integration instructions are available on [Teads SDK Documentation](https://support.teads.tv/support/solutions/articles/36000314785).
41-
42-
## 🕊 Migrating from v4 to v5
43-
44-
TeadsSDK v5 introduces some changes regarding v4, see [Migration Documentation](https://support.teads.tv/support/solutions/articles/36000314772-migrating-from-v4-to-v5)
45-
46-
## 🚲 Run the sample app
47-
48-
Clone this repository, open it with Xcode, and run project.
49-
50-
## 📦 Install the Teads SDK iOS framework
51-
52-
Teads SDK is currently distributed through CocoaPods. It includes everything you need to serve "outstream" video ads.
53-
54-
### Cocoapods
55-
56-
To install the TeadsSDK just put this on your podfile, if you've never used cocoapods before please check the [offical documentation](https://guides.cocoapods.org/using/using-cocoapods.html).
57-
58-
```ruby
59-
pod 'TeadsSDK', '~> 5.0'
60-
```
61-
62-
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.
63-
64-
```bash
65-
pod install --repo-update
66-
```
21+
## Installation
6722

23+
Before installing Teads adapter, you need to implement [Google Mobile Ads](https://developers.google.com/admob/ios/quick-start) in your application.
6824

6925
### Swift Package Manager
7026

7127
[SPM](https://swift.org/package-manager/) 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. To integrate TeadsSDK into your Xcode project using SPM, specify package repository url :
7228

73-
```
74-
https://github.com/teads/TeadsSDK-iOS
75-
```
76-
77-
Then select latest version available
78-
79-
## 🤝 Mediation Adapters
80-
- [Google AdMob](./MediationAdapters/TeadsAdMobAdapter/README.md)
81-
- [Mopub](./MediationAdapters/TeadsMoPubAdapter/README.md)
82-
- [AppLovin Max](./MediationAdapters/TeadsAppLovinAdapter/README.md)
83-
- [Smart AdServer](./MediationAdapters/TeadsSASAdapter/README.md)
84-
85-
## 🎓 Certifications
86-
87-
Teads SDK supports the [IAB](https://www.iabcertification.com/) [Open Measurement](https://iabtechlab.com/standards/open-measurement-sdk/) 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](https://iabtechlab.com/compliance-programs/compliant-companies/).
88-
89-
![iab certification badge](./ReadmeResources/OMCompliant.png)
90-
91-
92-
## ⌚️ Changelog
29+
- Repository: `https://github.com/teads/TeadsSDK-iOS`
30+
- Dependency rule: `branch`
31+
- Branch: `admob-spm`
9332

94-
See [changelog here](https://github.com/teads/TeadsSDK-iOS/releases).
33+
## Integration Documentation
9534

35+
Integration instructions are available on [Teads SDK Documentation](https://support.teads.tv/support/solutions/articles/36000314767-inread-google-ad-manager-and-admob-mediation).

0 commit comments

Comments
 (0)