-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Prebid Mobile: 3.0 updates #5982
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
Merged
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
b01d668
docs: add page for updates in v3.0 in iOS
OlenaPostindustria 7a0bfd7
docs: small enhancement
OlenaPostindustria 22b20c7
docs: add formatting to table
OlenaPostindustria 0d75691
docs: minor changes
OlenaPostindustria 8b01a19
docs: android doc
ValentinPostindustria 1add664
docs: lint fix
ValentinPostindustria c6aa31f
docs: remove TOC
ValentinPostindustria da510e7
docs: add ext data
ValentinPostindustria 090a082
docs: fix subgroup
ValentinPostindustria f3689e2
docs: try to add style for table in ios doc
OlenaPostindustria c09ce23
docs: fix linting issue
OlenaPostindustria c57d495
docs: add style to table in android doc
OlenaPostindustria 5260c08
docs: change sidebar titles for 3.0 page
OlenaPostindustria 000636b
docs: add 3.0 key features page
OlenaPostindustria 1633cce
docs: fix linting error
OlenaPostindustria a8c0a68
docs: small change in key features article
OlenaPostindustria 1ea3647
docs: ios - add links to api doc
OlenaPostindustria 6239766
docs: small improvement
OlenaPostindustria 09fabbe
docs: add links to Javadoc
ValentinPostindustria a7760b5
docs: android changes.
mdanylov-sigma 4033617
docs: ios changes.
mdanylov-sigma bd72f6c
doc: mobile 3.0 - change the order of features
YuriyVelichkoPI fd23daa
doc: 3.0 doc update
YuriyVelichkoPI f360a5c
doc: improvements
YuriyVelichkoPI 8040ab4
doc: corrections for the Rewarded Ad Unit
YuriyVelichkoPI e2bdb31
doc: format docs for the 3.0 page
YuriyVelichkoPI 4c425ea
doc: add some info for the 3.0 changelog
YuriyVelichkoPI 1f6d755
docs: ios initialization with non-tracking endpoints.
mdanylov-sigma 10d666b
doc: add some more items to the list of introduced features
YuriyVelichkoPI 7ac6894
doc: various corrections
YuriyVelichkoPI 31a4cee
doc: greeting message on the main SDK page
YuriyVelichkoPI c65bdee
doc: format text on the intro page
YuriyVelichkoPI 8f3ecd1
docs: fix lint errors
YuriyVelichkoPI 360578c
docs: fix lint errors
YuriyVelichkoPI 37c3a46
docs: fix lint errors
YuriyVelichkoPI c38e91f
docs: fix lint errors
YuriyVelichkoPI fad2a05
docs: resolves PR comments
mdanylov-sigma 3d7a700
docs: fix lint
mdanylov-sigma ae81bba
docs: fix lint errors
mdanylov-sigma ae5b40d
docs: resolves PR issues with global ORTB config
mdanylov-sigma c96801a
docs: returns info and code snippets for 2.5.0
mdanylov-sigma ecc9eaa
docs: fix lint errors
mdanylov-sigma 97eee29
docs: modifies info about Host.Appnexus and Host.Rubicon constants.
mdanylov-sigma a7b1565
wordsmithing
bretg ce026d6
wordsmithing
bretg 89fc402
wordsmithing
bretg 0ae3c95
wordsmithing
bretg 08b51f5
wordsmithing
bretg cd89477
removed reference to rubicon
bretg f8fad00
docs: resolves some alternatives in the api changes list
mdanylov-sigma 6267f6f
fixed tyop
bretg e60aff6
docs: resolves PR issues with platforms inconsistency
mdanylov-sigma 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 hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -35,6 +35,9 @@ The `Prebid` class is a singleton that enables you to apply certain global setti | |
|
|
||
| ### Prebid Class Global Properties | ||
bretg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| {: .alert.alert-warning :} | ||
| The global properties exist only for PrebidMobile `2.5.0`. Starting from PrebidMobile `3.0.0` the global properties below are removed. | ||
|
|
||
| All of these properties of the Prebid class can be set on the `shared` object like this: | ||
|
|
||
| ```kotlin | ||
|
|
@@ -44,9 +47,9 @@ Prebid.shared.sendMraidSupportParams=true | |
| {: .table .table-bordered .table-striped } | ||
| | Parameter | Scope | Type | Purpose | Description | Example | | ||
| | --- | --- | --- | --- | --- | | ||
| | isCoppaEnabled | optional | boolean | ORTB | Set this to true if this app is aimed at children. It sets the ORTB `regs.coppa` flag. Default is false. | `true` | | ||
| | useExternalBrowser | optional | boolean | behavior | If true, clicking on the ad will open your default browser instead of showing within the app's webview. Defaults to `false`. | `true` | | ||
| | sendMraidSupportParams | optional | boolean | ORTB | If `true`, the SDK sends imp[].banner.api=[3,5], indicating support for MRAID. Defaults to `true`. | `false` | | ||
| | isCoppaEnabled | optional | boolean | ORTB | Starting from PrebidMobile `3.0.0` the property is removed. Can be replaces with `TargetingParams.setSubjectToCOPPA()`<wbr>Set this to true if this app is aimed at children. It sets the ORTB `regs.coppa` flag. Default is false. | `true` | | ||
| | useExternalBrowser | optional | boolean | behavior | Starting from PrebidMobile `3.0.0` the property is removed<wbr>If true, clicking on the ad will open your default browser instead of showing within the app's webview. Defaults to `false`. | `true` | | ||
| | sendMraidSupportParams | optional | boolean | ORTB | Starting from PrebidMobile `3.0.0` the property is removed<wbr>If `true`, the SDK sends imp[].banner.api=[3,5], indicating support for MRAID. Defaults to `true`. | `false` | | ||
|
|
||
| ### Prebid Class Global Methods | ||
|
|
||
|
|
@@ -58,6 +61,9 @@ Your Prebid Server team will tell you whether this is required or not and if so, | |
|
|
||
| This is where the Prebid SDK will send the auction information. | ||
|
|
||
| {: .alert.alert-warning :} | ||
| Starting from PrebidMobile `3.0.0` the `setPrebidServerHost` method is removed. Use the `initializeSdk` method instead. | ||
|
|
||
| Signature: | ||
|
|
||
| ```kotlin | ||
|
|
@@ -74,8 +80,6 @@ Parameters: | |
| Examples: | ||
|
|
||
| ```kotlin | ||
| PrebidMobile.setPrebidServerHost(Host.APPNEXUS) | ||
| PrebidMobile.setPrebidServerHost(Host.RUBICON) | ||
| PrebidMobile.setPrebidServerHost(Host.createCustomHost("https://prebidserver.example.com/openrtb2/auction")) | ||
| ``` | ||
|
|
||
|
|
@@ -470,36 +474,27 @@ Prebid SDK provides a number of properties in the [Targeting class](/prebid-mobi | |
| methods) for setting user-oriented First Party Data. | ||
| ```kotlin | ||
| void addUserData(String key, String value) | ||
| void updateUserData( String key, Set<String> value) | ||
| void addUserKeyword(String keyword) | ||
| void removeUserData(String key) | ||
| void addUserKeywords(Set<String> keywords) | ||
| void clearUserData() | ||
| void removeUserKeyword(String keyword) | ||
| Map<String, Set<String>> getUserDataDictionary() { | ||
| void clearUserKeywords() | ||
| void addUserKeywords(Set<String> keywords) { | ||
| String getUserKeywords() | ||
| void removeUserKeyword(String keyword) { | ||
| void clearUserKeywords() { | ||
| String getUserKeywords() { | ||
| Set<String> getUserKeywordsSet() { | ||
| Set<String> getUserKeywordsSet() | ||
| ``` | ||
| Example: | ||
| ```kotlin | ||
| TargetingParams.addUserData("globalUserDataKey1", "globalUserDataValue1") | ||
| TargetingParams.addUserKeyword("globalUserKeyword") | ||
| ``` | ||
| {: .alert.alert-info :} | ||
| Note: The 'UserData' functions end up putting data into the OpenRTB user.ext.data object while the 'UserKeywords' functions | ||
| put data into user.keywords. | ||
| Note: The 'UserKeywords' functions put data into user.keywords. | ||
| ### Inventory FPD | ||
|
|
@@ -513,16 +508,6 @@ void updateExtData(String key, Set<String> value) | |
| void removeExtData(String key) | ||
| Map<String, Set<String>> getExtDataDictionary() | ||
bretg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| void addExtKeyword(String keyword) | ||
| void addExtKeywords(Set<String> keywords) | ||
| void removeExtKeyword(String keyword) | ||
| void clearExtKeywords() | ||
| Set<String> getExtKeywordsSet() | ||
| ``` | ||
| Example: | ||
|
|
@@ -807,18 +792,6 @@ Pay attention that there are certain protected fields such as `regs`, `device`, | |
| - App and User first party data should use the [functions defined for those purposes](/prebid-mobile/pbm-api/ios/pbm-targeting-ios.html#first-party-data) | ||
| - See the [Prebid Server auction endpoint](/prebid-server/endpoints/openrtb2/pbs-endpoint-auction.html#prebid-server-ortb2-extension-summary) reference for more information about how it will process incoming fields. | ||
|
|
||
| ### Deprecated | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Android and iOS docs differ; is it expected? Check out pbm-targeting-ios.md |
||
| {:.no_toc} | ||
|
|
||
| The Prebid Mobile SDK v2.2.1 contains the deprecated method to set the impression level RTB config: | ||
|
|
||
| ``` swift | ||
| //ad unit / impression-level | ||
| adUnit.setOrtbConfig("{\"ext\":{\"gpid\":\"abc123"}}\") | ||
| ``` | ||
| This method has implementation issues and was deprecated in v2.4.0. If you use this method, we strongly recommend migrating to the new `setImpORTBConfig()` method since this one will be removed entirely in SDK version 3.0. | ||
| ## Further Reading | ||
|
|
||
| - [Prebid Mobile Overview](/prebid-mobile/prebid-mobile.html) | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.