> For the complete documentation index, see [llms.txt](https://adagio-io.gitbook.io/adagio-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adagio-io.gitbook.io/adagio-documentation/prebid-server-endpoint/prebid-mobile-sdk.md).

# 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>
{% 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://adagio-io.gitbook.io/adagio-documentation/prebid-server-endpoint/prebid-mobile-sdk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
