Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d9e458

Browse files
ValentinPostindustriaOlenaPostindustriaYuriyVelichkoPI
authored
Mobile SDK multiformat feature (prebid#4476)
* Update iOS documentation. * iOS documentation corrections. * Update Android documentation. * Android corrections. * iOS corrections. * Android ad unit formats renaming. * iOS AdFormat case renaming * doc: corrections for iOS * doc: corrections for Android --------- Co-authored-by: Olena Stepaniuk <[email protected]> Co-authored-by: Yuriy Velichko <[email protected]>
1 parent 0d50084 commit 7d9e458

11 files changed

+472
-145
lines changed

prebid-mobile/modules/rendering/android-sdk-customization-controls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ The code sample:
166166
adUnit = MediationInterstitialAdUnit(
167167
activity,
168168
configId,
169-
EnumSet.of(AdUnitFormat.DISPLAY),
169+
EnumSet.of(AdUnitFormat.BANNER),
170170
mediationUtils
171171
)
172172

prebid-mobile/modules/rendering/android-sdk-integration-admob.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ val mediationUtils = AdMobInterstitialMediationUtils(extras)
138138
adUnit = MediationInterstitialAdUnit(
139139
activity,
140140
configId,
141-
AdUnitFormat.DISPLAY,
141+
AdUnitFormat.BANNER,
142142
mediationUtils
143143
)
144144

@@ -183,7 +183,7 @@ The **default** ad format for interstitial is **DISPLAY**. In order to make a `m
183183
adUnit = MediationInterstitialAdUnit(
184184
activity,
185185
configId,
186-
EnumSet.of(AdUnitFormat.DISPLAY, AdUnitFormat.VIDEO),
186+
EnumSet.of(AdUnitFormat.BANNER, AdUnitFormat.VIDEO),
187187
mediationUtils
188188
)
189189
```

prebid-mobile/modules/rendering/android-sdk-integration-gam.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ The **default** ad format for an interstitial ad is **DISPLAY**. In order to mak
159159
interstitialAdUnit = InterstitialAdUnit(
160160
requireContext(),
161161
configId,
162-
EnumSet.of(AdUnitFormat.DISPLAY, AdUnitFormat.VIDEO),
162+
EnumSet.of(AdUnitFormat.BANNER, AdUnitFormat.VIDEO),
163163
eventHandler)
164164
```
165165

prebid-mobile/modules/rendering/android-sdk-integration-max.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ val mediationUtils = MaxMediationInterstitialUtils(maxInterstitialAd)
121121
adUnit = MediationInterstitialAdUnit(
122122
activity,
123123
configId,
124-
EnumSet.of(AdUnitFormat.DISPLAY),
124+
EnumSet.of(AdUnitFormat.BANNER),
125125
mediationUtils
126126
)
127127

@@ -140,7 +140,7 @@ The **default** ad format for interstitial is **DISPLAY**. In order to make a `m
140140
adUnit = MediationInterstitialAdUnit(
141141
activity,
142142
configId,
143-
EnumSet.of(AdUnitFormat.DISPLAY, AdUnitFormat.VIDEO),
143+
EnumSet.of(AdUnitFormat.BANNER, AdUnitFormat.VIDEO),
144144
mediationUtils
145145
)
146146
```

prebid-mobile/modules/rendering/android-sdk-integration-pb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ The **default** ad format for interstitial is **DISPLAY**. In order to make a `m
138138
interstitialAdUnit = InterstitialAdUnit(
139139
requireContext(),
140140
configId,
141-
EnumSet.of(AdUnitFormat.DISPLAY, AdUnitFormat.VIDEO))
141+
EnumSet.of(AdUnitFormat.BANNER, AdUnitFormat.VIDEO))
142142
```
143143

144144
#### Step 1: Create an Ad Unit

prebid-mobile/modules/rendering/ios-sdk-integration-admob.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,17 @@ GADInterstitialAd.load(withAdUnitID: adUnitID, request: self?.gadRequest) { [wea
137137
})
138138
```
139139

140-
The **default** ad format for interstitial is **.display**. In order to make a `multiformat bid request`, set the respective values into the `adFormats` property.
140+
The **default** ad format for interstitial is **.banner**. In order to make a `multiformat bid request`, set the respective values into the `adFormats` property.
141141

142142
``` swift
143143
// Make bid request for video ad
144144
adUnit?.adFormats = [.video]
145145

146-
// Make bid request for both video amd disply ads
147-
adUnit?.adFormats = [.video, .display]
146+
// Make bid request for both video amd banner ads
147+
adUnit?.adFormats = [.video, .banner]
148148

149-
// Make bid request for disply ad (default behaviour)
150-
adUnit?.adFormats = [.display]
149+
// Make bid request for banner ad (default behaviour)
150+
adUnit?.adFormats = [.banner]
151151

152152
```
153153

prebid-mobile/modules/rendering/ios-sdk-integration-gam.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,17 @@ if interstitial.isReady {
152152

153153
```
154154

155-
The **default** ad format for interstitial is **.display**. In order to make a `multiformat bid request`, set the respective values in the `adFormats` property.
155+
The **default** ad format for interstitial is **.banner**. In order to make a `multiformat bid request`, set the respective values in the `adFormats` property.
156156

157157
``` swift
158158
// Make bid request for video ad
159159
adUnit?.adFormats = [.video]
160160

161161
// Make bid request for both video amd disply ads
162-
adUnit?.adFormats = [.video, .display]
162+
adUnit?.adFormats = [.video, .banner]
163163

164-
// Make bid request for disply ad (default behaviour)
165-
adUnit?.adFormats = [.display]
164+
// Make bid request for banner ad (default behaviour)
165+
adUnit?.adFormats = [.banner]
166166

167167
```
168168

prebid-mobile/modules/rendering/ios-sdk-integration-max.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,17 @@ adUnit?.fetchDemand { [weak self] result in
117117
})
118118
```
119119

120-
The **default** ad format for interstitial is **.display**. In order to make a `multiformat bid request` set the respective values in the `adFormats` property.
120+
The **default** ad format for interstitial is **.banner**. In order to make a `multiformat bid request` set the respective values in the `adFormats` property.
121121

122122
``` swift
123123
// Make bid request for video ad
124124
adUnit?.adFormats = [.video]
125125

126-
// Make bid request for both video amd disply ads
127-
adUnit?.adFormats = [.video, .display]
126+
// Make bid request for both video amd banner ads
127+
adUnit?.adFormats = [.video, .banner]
128128

129-
// Make bid request for disply ad (default behaviour)
130-
adUnit?.adFormats = [.display]
129+
// Make bid request for banner ad (default behaviour)
130+
adUnit?.adFormats = [.banner]
131131

132132
```
133133

prebid-mobile/modules/rendering/ios-sdk-integration-pb.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,17 @@ if interstitial.isReady {
139139

140140
```
141141

142-
The **default** ad format for interstitial is **.display**. In order to make a `multiformat bid request`, set the respective values into the `adFormats` property.
142+
The **default** ad format for interstitial is **.banner**. In order to make a `multiformat bid request`, set the respective values into the `adFormats` property.
143143

144144
``` swift
145145
// Make bid request for video ad
146146
adUnit?.adFormats = [.video]
147147

148-
// Make bid request for both video amd disply ads
149-
adUnit?.adFormats = [.video, .display]
148+
// Make bid request for both video and banner ads
149+
adUnit?.adFormats = [.video, .banner]
150150

151-
// Make bid request for disply ad (default behaviour)
152-
adUnit?.adFormats = [.display]
151+
// Make bid request for banner ad (default behaviour)
152+
adUnit?.adFormats = [.banner]
153153

154154
```
155155

@@ -161,7 +161,7 @@ Initialize the Interstitial Ad Unit with properties:
161161
- `configID` - an ID of Stored Impression on the Prebid Server
162162
- `minSizePercentage` - specifies the minimum width and height percent an ad may occupy of a device’s real estate.
163163

164-
> **NOTE:** minSizePercentage - plays an important role in a bidding process for display ads. If provided space is not enough demand partners won't respond with the bids.
164+
> **NOTE:** minSizePercentage - plays an important role in a bidding process for banner ads. If provided space is not enough demand partners won't respond with the bids.
165165
166166
#### Step 2: Load the Ad
167167
{:.no_toc}
@@ -225,4 +225,4 @@ Wait until the ad will be loaded and present it to the user in any suitable time
225225
func rewardedAdDidReceiveAd(_ rewardedAd: RewardedAdUnit) {
226226
// Now the ad is ready for display
227227
}
228-
```
228+
```

0 commit comments

Comments
 (0)