Prebid Mobile SDK in Apps: Difference between revisions

No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 20: Line 20:


*Prebid Server Account ID: '''<<<PREBID_SERVER_ACCOUNT_ID>>>''', the ID is different for each app, but is the same for all placements within the app. The ID can be found in the Excel sheet.
*Prebid Server Account ID: '''<<<PREBID_SERVER_ACCOUNT_ID>>>''', the ID is different for each app, but is the same for all placements within the app. The ID can be found in the Excel sheet.
*Prebid Server Url: '''https://client-pbs.relevant-digital.com/openrtb2/auction'''
*Prebid Server Url: '''https://iqdigital-pbs.relevant-digital.com/openrtb2/auction'''


===Example===
===Example===
Line 26: Line 26:
PrebidMobile.setPrebidServerAccountId("<<<PREBID_SERVER_ACCOUNT_ID>>>")  
PrebidMobile.setPrebidServerAccountId("<<<PREBID_SERVER_ACCOUNT_ID>>>")  


PrebidMobile.setCustomStatusEndpoint("https://client-pbs.relevant-digital.com/s   
PrebidMobile.setCustomStatusEndpoint("https://iqdigital-pbs.relevant-digital.com/s   
tatus")   
tatus")   


PrebidMobile.initializeSdk(   
PrebidMobile.initializeSdk(   
     applicationContext,   
     applicationContext,   
     "https://client-pbs.relevant-digital.com/openrtb2/auction") { status ->   
     "https://iqdigital-pbs.relevant-digital.com/openrtb2/auction") { status ->   
         if (status == InitializationStatus.SUCCEEDED) {   
         if (status == InitializationStatus.SUCCEEDED) {   
             Log.d(TAG, "SDK initialized successfully!")   
             Log.d(TAG, "SDK initialized successfully!")   
Line 84: Line 84:
The Headerbidding partners should be informed which DisplayManager and which version is being used.
The Headerbidding partners should be informed which DisplayManager and which version is being used.


====Example:====
===Example Android:====
<pre>
adUnit?.impOrtbConfig = """
    {
        "displaymanager": "Google",
        "displaymanagerver": "${MobileAds.getVersion()}"
    }
""".trimIndent()
)
</pre>
====Example iOS:====
<pre>
<pre>
TargetingParams.setGlobalOrtbConfig(
adUnit.setImpORTBConfig("""
    """
    {
        {
        "displaymanager": "Google",
            "displaymanager": "Google",
        "displaymanagerver": "\(string(for: MobileAds.shared.versionNumber))"
            "displaymanagerver": "${MobileAds.getVersion()}", 
    }
            "ext": { 
""")
                "myext": { 
                    "test": 1 
                }
            } 
        } 
    """.trimIndent()
)
)
</pre>
===Store-URL===
The app should include the corresponding App Store/Play Store URL. Bidders pay attention to this, and it typically increases bids, so it has an impact on revenue.
====Example Android:====
<pre>
TargetingParams.setStoreUrl("https://play.google.com/store/apps/details?id=com.example.app");
</pre>
====Example iOS:====
<pre>
Targeting.shared.storeURL = "https://apps.apple.com/app/id111111111"
</pre>
</pre>