googleads / googleads-mobile-android-mediation

Sample Android project showcasing how to build a mediation adapter or custom event for the Google Mobile Ads SDK.
Apache License 2.0
242 stars 198 forks source link

add waterfall mode #440

Closed junjunsong closed 1 year ago

joshh-devrel commented 1 year ago

@junjunsong

=======================================

Looking at the waterfall code, it's basically the same as the bidding, except the below class(es) and method(s), but they are using the same listeners:

=======================================

Therefore, for each ad format, we can just have a base class:

And have the waterfall and bidding classes extend from it (in two different waterfall and rtb directories`:

See how we do it in another adapter: