For the complete documentation index, see llms.txt. This page is also available as Markdown.

Prebid Mobile Extensions

Add reporting data, dynamic bidder parameters, and server-side controls to Prebid Mobile requests.

Extend Prebid Mobile requests with Relevant Yield server-side controls.

These extensions add no client-side dependencies beyond the Prebid Mobile SDK.

Start with Setting up Prebid Mobile in HB Manager.

Add custom dimensions

Add global first-party data to header-bid analytics with the relevant_ prefix.

Use TargetingParams.addContextData():

TargetingParams.addContextData("relevant_Article Type", "News");
TargetingParams.addContextData("relevant_Is Logged In", "Yes");

The relevant_ prefix is not included in reporting.

This creates the Article Type and Is Logged In dimensions.

Modify the Prebid Server request directly

The Prebid Mobile SDK cannot modify the Prebid Server request directly.

If your integration can modify it, set dimensions in ext.relevant.customParams:

{
    "ext": {
        "relevant": {
            "customParams": {
                "Article Type": "News",
                "Is Logged In": "Yes"
            }
        },
        ...
    },
    imp: [...],
    ...
}

Set dynamic bidder parameters

Some bidder parameters, including keywords, depend on the current user or request.

Set ext_merge_json with addContextData() on the Prebid Mobile ad unit.

Pass a stringified JSON object. Its bidder values merge with settings from HB Manager.

This example adds keywords for the appnexus bidder:

The server removes ext_merge_json immediately after parsing it. Other bid adapters cannot read it.

Configure Relevant extensions

Use the relevant key inside ext_merge_json for Relevant Yield controls:

Available settings

  • skip_imp_format (boolean) - Use dimensions specified in Yield instead of in the App. This means that the dimensions used will not be the dimension(s) specified when setting up a BannerAdUnit object. Instead the dimensions in the Placement Type in Yield will be used. This makes it possible to change the dimensions for placements without updating the App.

  • pre_creative_html (string) - Inject a piece of html into the creative before the normal creative html returned by the bidder.

  • adjust_bids_to_min_price (number) - Force a minimum price of bids. One use case is the Prebid Mobile iOS SDK that else is currently filtering out bids with zero CPM.

Android helper class

This helper class sets Xandr keywords and Relevant Yield extension values.

Last updated

Was this helpful?