-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prebid mobile release 2 0 #3732
Merged
Merged
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
da2859c
remove some mopub files
YuriyVelichkoOpenX 58821dd
remove some mopub files
YuriyVelichkoOpenX 6297cf5
setup max network
YuriyVelichkoOpenX 9ba7f90
multiformat
YuriyVelichkoOpenX b869861
rendering controls
YuriyVelichkoOpenX e153994
max integration for android
YuriyVelichkoOpenX 50758ed
android: Customization Controls
YuriyVelichkoOpenX 803210b
android: rendering controls
YuriyVelichkoOpenX 481020e
corrections for the new version
YuriyVelichkoOpenX 855e9fb
corrections according to the review
YuriyVelichkoOpenX 7bf6a5c
corrections for the 2.0 version
YuriyVelichkoOpenX 8e30e11
changes for 2.0
YuriyVelichkoOpenX 2849e79
corrections for 2.0
YuriyVelichkoOpenX a14043b
corrections for 2.0
YuriyVelichkoOpenX 86b160c
fix typo
YuriyVelichkoOpenX File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-93.6 KB
assets/images/ad-ops/mopub/rewarded/mopub-lineitem-rewarded copy.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-129 KB
...images/prebid-mobile/modules/rendering/Prebid-In-App-Bidding-Overview-MoPub.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+179 KB
assets/images/prebid-mobile/modules/rendering/max-cusom-network-setup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file removed
BIN
-196 KB
assets/images/prebid-mobile/modules/rendering/order-mopub-creative-native.png
Binary file not shown.
Binary file removed
BIN
-142 KB
assets/images/prebid-mobile/modules/rendering/order-mopub-li-ad-unit.png
Binary file not shown.
Binary file removed
BIN
-122 KB
assets/images/prebid-mobile/modules/rendering/order-mopub-li-audience.png
Binary file not shown.
Binary file removed
BIN
-113 KB
assets/images/prebid-mobile/modules/rendering/order-mopub-li-type.png
Binary file not shown.
Binary file removed
BIN
-179 KB
assets/images/prebid-mobile/modules/rendering/order-mopub-native-ad-creative.png
Binary file not shown.
Binary file removed
BIN
-309 KB
assets/images/prebid-mobile/modules/rendering/order-mopub-native-ad-li.png
Binary file not shown.
Binary file removed
BIN
-74.9 KB
assets/images/prebid-mobile/modules/rendering/order-mopub-order-native.png
Binary file not shown.
Binary file added
BIN
+118 KB
...s/images/prebid-mobile/modules/rendering/prebid-in-app-bidding-overview-max.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
68 changes: 68 additions & 0 deletions
68
prebid-mobile/modules/rendering/android-sdk-customization-controls.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
|
||
layout: page_v2 | ||
title: Prebid Mobile Rendering Modules | ||
description: Prebid Mobile Rendering Modules architecture | ||
sidebarType: 2 | ||
|
||
--- | ||
|
||
# Customization Controls | ||
|
||
Prebid SDK provides an API way to customize its behaviour. | ||
|
||
> NOTE: In the nearest future the Server Side Configuration will be supported as well. Follow this [feature request](https://github.com/prebid/prebid-server/issues/2186) for the details. | ||
|
||
|
||
## Rendering Controls | ||
|
||
The following properties allow to customize the rendering of Video Interstitial Ads. | ||
|
||
### Max Video Duration | ||
|
||
The `maxVideoDuration` indicates the maximum available playback time in seconds. | ||
If the value in the **Duration** tag is bigger than the given value SDK will fail to load ad, providing a respective error message. | ||
|
||
### Application Muted | ||
|
||
The `isMuted` property indicates whether the ad should run playback with sound or not. | ||
Default value - **false**. | ||
|
||
### Close Button Area | ||
|
||
The `closeButtonArea` property indicates the percent of device screen which the close button should occupy. The possible values are from **0** to **1**. | ||
|
||
### Close Button Possition | ||
|
||
The `closeButtonPosition` property indicates the position of the close button on the screen. The possible values are **Position.BOTTOM_LEFT** and **Position.TOP_RIGHT**. The default value is **Position.TOP_RIGHT**. | ||
|
||
### Skip Button Areaa | ||
|
||
The `skipButtonArea` property indicates the percent of device screen which the skip button should occupy. The possible values are from **0** to **1**. | ||
|
||
### Skip Button Possition | ||
|
||
The `skipButtonPossition` property indicates the position of the close button on the screen. The possible values are **Position.BOTTOM_LEFT** and **Position.TOP_RIGHT**. The default value is **Position.BOTTOM_LEFT**. | ||
|
||
### Skip Delay | ||
|
||
The `skipDelay` property indicates the number of seconds which should be passed from the start of playback until the skip or close button should be shown. The default value is **10**. | ||
|
||
The code sample: | ||
|
||
``` kotlin | ||
adUnit = MediationInterstitialAdUnit( | ||
activity, | ||
configId, | ||
EnumSet.of(AdUnitFormat.DISPLAY), | ||
mediationUtils | ||
) | ||
|
||
adUnit?.setMaxVideoDuration(30) | ||
adUnit?.setCloseButtonArea(0.1) | ||
adUnit?.setSkipDelay(5) | ||
adUnit?.setSkipButtonArea(0.1) | ||
adUnit?.setSkipButtonPosition(Position.TOP_RIGHT) | ||
adUnit?.setCloseButtonPosition(Position.BOTTOM_LEFT) | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can change DISPLAY to VIDEO here, DISPLAY with the rendering controls here is inapt.