Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Host within single initialization #777

Open
andriiginting opened this issue Jun 24, 2024 · 5 comments
Open

Multiple Host within single initialization #777

andriiginting opened this issue Jun 24, 2024 · 5 comments

Comments

@andriiginting
Copy link
Contributor

Currently, the documentation and code examples suggest that only one Host can be specified during initialization. I would like to understand if there's a supported way to configure Prebid to work with multiple Hosts like Rubicon and Custom or other combinations as well.

If this functionality is not currently supported, I would appreciate any insights into potential workarounds or alternative approaches to achieve similar results.

@YuriyVelichkoPI
Copy link
Contributor

Hi @andriiginting ! This functionality is not supported by SDK. Technically, you can set a custom host just before each fetchDemand. But there are no guarantees that this host won't be mistakenly used in some other request. The requests management will be responsibility of app's code.

Some time ago, we had a similar request, so it might be helpful to push this feature:
prebid/prebid-mobile-ios#386

@YuriyVelichkoPI
Copy link
Contributor

YuriyVelichkoPI commented Jun 25, 2024

In addition, please clarify—do you mean the ability to send bid requests for different ad units to different servers:

AdUnit1 --> Host 1

AdUnit2 --> Host 2

or to send the same bid requests to different hosts for the same ad unit in parallel?

AdUnit 1
|--> Host 1
|--> Host 2

In the second case and integration via Rendering API, SDK should be able to choose the winning bid among two servers. Or provide API to make this choice by the publisher.

@andriiginting
Copy link
Contributor Author

andriiginting commented Jun 26, 2024

I think we do not differentiate ad units per host. So, we want to achieve the second case with a single aAdUnit to a different host.

Would you mind to share how to achieve that?

@YuriyVelichkoPI
Copy link
Contributor

I think we do not differentiate ad units per host. So, we wan to achieve the second case with a single aAdUnit to a different host.

Would you mind to share how to achieve that?

Got it. We definitely need to modify the SDK to achieve it.

I need some more details to start working on the implementation proposal.

I. Which kind of integration are you interested in the first place?

  • Original API (GAM Line Items with PUC creative rendered in GMA SDK)
  • Rendering API with no Ad Server (SDK just renders the winning bid right after the HB auction)
  • Rendering API with GAM (GAM contains Prebid line items but no PUC, and rendering of the winning bid is performed by Prebid SDK)
  • Rendering API with AdMob or MoPub (Prebid SDK is performed like a mediated SDK with preloaded ad)

II. Do your hosts provide identical account IDs and stored config IDs?

The point here is that most probably, not only the host will be different, but also the bunch of configurations. It would be great if you could share the lists of different configuration properties for your hosts. I don't need the values but just a property names that you should use for each of your hosts.

It will help to design the generic implementation.

III. Which ad formats are you interested in the most?

The main point here is the necessity of multiformat requests and the combination of needed formats

  • banner
  • video
  • native

Also important is the integration kind - banner or interstitial.

=======

Thanks in advance for the clarification. Maybe I'll need more details while drafting the spec :)

For now I think that on the high level, we will have to utilize the concept introduced for multiformat ad units in Original API. We can handle several instances of PrebidRequest object and then merge the response. The complexity of merging will depend on answers to the above questions.

@andriiginting
Copy link
Contributor Author

Which kind of integration are you interested in the first place?
We use Original API (GAM Line Items with PUC creative rendered in GMA SDK)

Do your hosts provide identical account IDs and stored config IDs?
No. we will use different IDs for each host

Which ad formats are you interested in the most?
As of now, we support all those formats (banner, video, native)

Do let me know if you need anything else @YuriyVelichkoPI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

2 participants