Prebid Mobile SDK in Apps: Difference between revisions

From Documentation
Jump to navigation Jump to search
(Created page with "==Introduction== The Prebid Mobile SDK serves to integrate different header bidding providers in one app, and these providers can then make initial bids for the available ad p...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
::iOS: https://github.com/prebid/prebid-mobile-ios
::iOS: https://github.com/prebid/prebid-mobile-ios
::Android: https://github.com/prebid/prebid-mobile-android
::Android: https://github.com/prebid/prebid-mobile-android
#Create the banner ad unit with all sizes and additional sizes that are to be included in the prebid request (the
#Create the banner ad unit with all sizes and additional sizes that are to be included in the prebid request (the PREBID_SERVER_CONFIGURATION_ID is taken from a separate table and assigned to the corresponding position (Note for Ad Technology iq digital: The PREBID_SERVER_CONFIGURATION_ID of a placement is the "Targeting ID" in Prebid Server Premioum by Xandr)).
PREBID_SERVER_CONFIGURATION_ID is taken from a separate table and assigned to the corresponding position).
#The Prebid Mobile SDK sends a request to the prebid server.
#The Prebid Mobile SDK sends a request to the prebid server.
#The prebid server sends back an offer (if present).
#The prebid server sends back an offer (if present).
Line 23: Line 22:




==Wichtige Konfigurationen==
==Important configurations==
Das Prebid Mobile SDK arbeitet in unserem Fall mit Prebid Server Premium zusammen und benötigt daher ein paar Anpassungen:
In our case, the Prebid Mobile SDK works together with Prebid Server Premium and therefore needs a few adjustments:


===Host===
===Set Host===
Prebid Server Premium muss als Custom Host konfigurtiert sein. Dies erfolgt in Android so:
Prebid Server Premium must be configured as a custom host. This is done in Android like this:
<pre>
<pre>
Host custom = Host.CUSTOM;
Host custom = Host.CUSTOM;
Line 36: Line 35:
[https://docs.prebid.org/prebid-mobile/pbm-api/ios/prebidmobile-object-ios.html Anleitung iOS Custom Host]
[https://docs.prebid.org/prebid-mobile/pbm-api/ios/prebidmobile-object-ios.html Anleitung iOS Custom Host]


===Account ID Setzen===
===Set Account ID===
Es muss zusätzlich unsere Account ID gesetzt werden.
Our account ID must also be set.
<pre>PrebidMobile.setPrebidServerAccountId("6975");</pre>
<pre>PrebidMobile.setPrebidServerAccountId("6975");</pre>



Latest revision as of 08:49, 28 July 2023

Introduction

The Prebid Mobile SDK serves to integrate different header bidding providers in one app, and these providers can then make initial bids for the available ad positions on a page when the page is called. The winning bid is then forwarded via the Google Mobile Ads SDK to the ad server, which compares the bid with other bookings that are present there and serves the most suitable booking.

Integration and mode of operation

Prebid SDK.png

  1. Integrate the Prebid Mobile SDK
iOS: https://github.com/prebid/prebid-mobile-ios
Android: https://github.com/prebid/prebid-mobile-android
  1. Create the banner ad unit with all sizes and additional sizes that are to be included in the prebid request (the PREBID_SERVER_CONFIGURATION_ID is taken from a separate table and assigned to the corresponding position (Note for Ad Technology iq digital: The PREBID_SERVER_CONFIGURATION_ID of a placement is the "Targeting ID" in Prebid Server Premioum by Xandr)).
  2. The Prebid Mobile SDK sends a request to the prebid server.
  3. The prebid server sends back an offer (if present).
  4. The ad request to Google Ad Manager is supplemented by the prebid parameters.
  5. Google Ad Manager reviews the request and serves the ad.
  6. The app displays the ad.


Android example

The example on the page shows that man wohl einen DFP PublisherAdView (??) and then generates the prebid banner ad unit. This is then given the prebid server request ID assigned to the banner ad unit and defines a size. Additional sizes are transmitted to the object using the add additional size method. Here, all the sizes should be transmitted that are also normally part of the ad request for the position.

The bids are then connected using fetchDemand. The result codes are defined here: http://prebid.org/prebid-mobile/pbm- api/android/pbm-api-result-codes-android.html In general, however, an ad request should always occur, regardless of whether bids are contained or not.


Important configurations

In our case, the Prebid Mobile SDK works together with Prebid Server Premium and therefore needs a few adjustments:

Set Host

Prebid Server Premium must be configured as a custom host. This is done in Android like this:

Host custom = Host.CUSTOM;
custom.setHostUrl("https://ib.adnxs.com/openrtb2/prebid");
PrebidMobile.setPrebidServerHost(custom);

Anleitung Android Custom Host
Anleitung iOS Custom Host

Set Account ID

Our account ID must also be set.

PrebidMobile.setPrebidServerAccountId("6975");

Important Links

iOS

Android