# Prebid Mobile SDK

Adagio can be integrated into mobile apps using the [Prebid Mobile SDK](https://docs.prebid.org/prebid-mobile/prebid-mobile-getting-started.html). Explore the supported formats and follow the implementation steps to begin monetizing your app inventory.

## Supported Formats

Here is the list of the different formats that Adagio supports for the Prebid Mobile SDK.

<table><thead><tr><th width="116">Platform</th><th width="254">Format</th><th width="174">Supported</th></tr></thead><tbody><tr><td>App</td><td>Banner</td><td>✅</td></tr><tr><td>App</td><td>Native</td><td>✅</td></tr><tr><td>App</td><td>Video (Instream &#x26; Outstream)</td><td>✅</td></tr></tbody></table>

## Implementation steps

To set up Prebid Mobile SDK with Adagio start with the following steps:

{% stepper %}
{% step %}
### Implement Prebid Mobile SDK

Access Prebid's documentation:

[https://docs.prebid.org/prebid-mobile/prebid-mobile-getting-started.html](https://docs.prebid.org/prebid-mobile/prebid-mobile-getting-started.html)
{% endstep %}

{% step %}
### Configure your Global Settings

<table><thead><tr><th width="191">Name</th><th>Value</th></tr></thead><tbody><tr><td>Account ID</td><td>Publisher ID provided by Adagio (eg: 1002)</td></tr><tr><td>Server Host</td><td><a href="https://mp.4dex.io/pbs/openrtb2/auction">https://mp.4dex.io/pbs/openrtb2/auction</a></td></tr><tr><td>Status Endpoint</td><td><a href="https://mp.4dex.io/healthcheck">https://mp.4dex.io/healthcheck</a></td></tr></tbody></table>

#### Examples

{% tabs %}
{% tab title="Android Java" %}
{% code overflow="wrap" %}
```java
// The Publisher ID provided by Adagio (eg: 1002)
PrebidMobile.setPrebidServerAccountId("1002");
// Adagio Server Host
PrebidMobile.setPrebidServerHost(Host.createCustomHost("https://mp.4dex.io/pbs/openrtb2/auction"));
// Adagio Status Endpoint
PrebidMobile.setCustomStatusEndpoint("https://mp.4dex.io/healthcheck");
```
{% endcode %}
{% endtab %}

{% tab title="Android Kotlin" %}
{% code overflow="wrap" %}
```kotlin
// The Publisher ID provided by Adagio (eg: 1002)
PrebidMobile.setPrebidServerAccountId("1002")
// Adagio Server Host
PrebidMobile.setPrebidServerHost(Host.createCustomHost("https://mp.4dex.io/pbs/openrtb2/auction"))
// Adagio Status Endpoint
PrebidMobile.setCustomStatusEndpoint("https://mp.4dex.io/healthcheck")
```
{% endcode %}
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}
### Configure your AdUnits

Each AdUnit must be configured with a character string, called `Config ID`, along with its dimensions (width and height).

{% hint style="info" %}
We usually recommend creating **a unique Config ID for each adUnit** in your app. This enables to manage bidders and their inventory parameters independently.
{% endhint %}

#### Examples

{% tabs %}
{% tab title="Android Java" %}
<pre class="language-java" data-overflow="wrap"><code class="lang-java"><strong>adUnit = new BannerAdUnit("CONFIG ID", WIDTH, HEIGHT);
</strong></code></pre>
{% endtab %}

{% tab title="Android Kotlin" %}
{% code overflow="wrap" %}
```kotlin
adUnit = BannerAdUnit("CONFIG ID", WIDTH, HEIGHT)
```
{% endcode %}
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}
### 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.&#x20;

{% hint style="info" %}
Once the test is confirmed, **you can remove this line.**
{% endhint %}

{% tabs %}
{% tab title="Android Java" %}
```java
 PrebidMobile.setPbsDebug(true);
```
{% endtab %}

{% tab title="Android Kotlin" %}
```kotlin
PrebidMobile.setPbsDebug(true)
```
{% endtab %}
{% endtabs %}
{% endstep %}
{% endstepper %}

