Prebid Mobile SDK in Apps: Difference between revisions

No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
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>
<pre>
TargetingParams.setGlobalOrtbConfig( 
adUnit?.impOrtbConfig = """
    """
    {
        {
        "displaymanager": "Google",
            "displaymanager": "Google",
        "displaymanagerver": "${MobileAds.getVersion()}"
            "displaymanagerver": "${MobileAds.getVersion()}"
    }
            "ext": { 
""".trimIndent()
                "myext": { 
                    "test": 1 
                } 
            }
        } 
    """.trimIndent()
)
)
</pre>
====Example iOS:====
<pre>
adUnit.setImpORTBConfig("""
    {
        "displaymanager": "Google",
        "displaymanagerver": "\(string(for: MobileAds.shared.versionNumber))"
    }
""")
)
</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>