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

Loading bid for mixed banner/native adUnitId #231

Open
hispanico94 opened this issue Aug 6, 2021 · 2 comments
Open

Loading bid for mixed banner/native adUnitId #231

hispanico94 opened this issue Aug 6, 2021 · 2 comments

Comments

@hispanico94
Copy link

Hello,

My team is working on integrating Criteo on an iOS and an Android app, using Google Ad Manager as the ad server. We encountered an issue where we are not sure on how to proceed. I will be referring to the iOS SDK but this also applies to Android.

The advertising team provided us with several GAM adUnitIds and some of them supports both native and banner ads. Using Criteo we should load a bid using one of this "combined" (native & banner) adUnitIds with the expectation that, after enriching the GAMRequest with the returned bid from loadBid(for:responseHandler:) and using that for requesting an ad from Google, Google will return a single ad, that might be either banner or a native, depending on the winner of the bid.
The issue we encountered is that Criteo only exposes CRBannerAdUnit and CRNativeAdUnit, it seems that there is no object that combines both of them.

Ideally we should be able to bid both for a banner and a native at the same time, with only the highest bid to be returned (not two different bid returned).

Can you point us to the right way to solve this issue? We should load two different bids (using CRBannerAdUnit and CRNativeAdUnit) and then enriching the GAMRequest twice? Or we can use one those two class as the default and the result bid will be valid for both types of ads?

Thank you in advance!

@irwansetiawan
Copy link
Contributor

Hello @hispanico94

We would like to highlight that Criteo SDK currently doesn't support loading bids for multiple ad formats at the same time.

Usually, we would advise publishers to choose one format that works best for them. However, you could choose to implement custom logic that loads bids for CRBannerAdUnit and CRNativeAdUnit asynchronously, compare the bid's price on your side, and then enriching GAMRequest for just one of the bids (e.g. the highest CPM).

@hispanico94
Copy link
Author

Hello @irwansetiawan,

Thank you for the quick reply! We must be able to request bids for both formats at the same time, so we'll probably going to implement the custom logic you mentioned.

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

No branches or pull requests

2 participants