Prebid Mobile SDK
Adagio can be integrated into mobile apps using the Prebid Mobile SDK. Explore the supported formats and follow the implementation steps to begin monetizing your app inventory.
Supported Formats
Section titled “Supported Formats”Here is the list of the different formats that Adagio supports for the Prebid Mobile SDK.
| Platform | Format | Supported |
|---|---|---|
| App | Banner | ✅ |
| App | Native | ✅ |
| App | Video (Instream & Outstream) | ✅ |
Implementation steps
Section titled “Implementation steps”To set up Prebid Mobile SDK with Adagio start with the following steps:
Implement Prebid Mobile SDK
Access Prebid’s documentation:
https://docs.prebid.org/prebid-mobile/prebid-mobile-getting-started.html
Configure your Global Settings
| Name | Value |
|---|---|
| Account ID | Publisher ID provided by Adagio (eg: 1002) |
| Server Host | https://mp.4dex.io/pbs/openrtb2/auction |
| Status Endpoint | https://mp.4dex.io/healthcheck |
Examples
Section titled “Examples”// The Publisher ID provided by Adagio (eg: 1002)PrebidMobile.setPrebidServerAccountId("1002");// Adagio Server HostPrebidMobile.setPrebidServerHost(Host.createCustomHost("https://mp.4dex.io/pbs/openrtb2/auction"));// Adagio Status EndpointPrebidMobile.setCustomStatusEndpoint("https://mp.4dex.io/healthcheck");// The Publisher ID provided by Adagio (eg: 1002)PrebidMobile.setPrebidServerAccountId("1002")// Adagio Server HostPrebidMobile.setPrebidServerHost(Host.createCustomHost("https://mp.4dex.io/pbs/openrtb2/auction"))// Adagio Status EndpointPrebidMobile.setCustomStatusEndpoint("https://mp.4dex.io/healthcheck")Configure your AdUnits
Each AdUnit must be configured with a character string, called Config ID, along with its dimensions (width and height).
Examples
Section titled “Examples”adUnit = new BannerAdUnit("CONFIG ID", WIDTH, HEIGHT);adUnit = BannerAdUnit("CONFIG ID", WIDTH, HEIGHT)Test your implementation
Send requests to Adagio to test your implementation by including the following line. You’ll receive a test ad that won’t be counted.
PrebidMobile.setPbsDebug(true);PrebidMobile.setPbsDebug(true)