Package org.prebid.mobile.eventhandlers
Class GamBannerEventHandler
-
- All Implemented Interfaces:
-
org.prebid.mobile.eventhandlers.GamAdEventListener,org.prebid.mobile.rendering.bidding.interfaces.BannerEventHandler
public class GamBannerEventHandler implements BannerEventHandler, GamAdEventListenerBanner event handler for communication between Prebid rendering API and the GAM SDK. It implements the Prebid Rendering SDK EventHandler interface. Prebid Rendering SDK notifies (using EventHandler interface) to make a request to GAM SDK and pass the targeting parameters. This class also creates the GAM's PublisherAdViews, initializes them and listens for the callback methods. And pass the GAM ad event to Prebid Rendering SDK via BannerEventListener.
-
-
Constructor Summary
Constructors Constructor Description GamBannerEventHandler(Context context, String gamAdUnitId, Array<AdSize> adSizes)
-
Method Summary
Modifier and Type Method Description static Array<AdSize>convertGamAdSize(Array<AdSize> sizes)voidonEvent(AdEvent adEvent)Array<AdSize>getAdSizeArray()voidrequestAdWithBid(Bid bid)voidtrackImpression()voiddestroy()voidsetBannerEventListener(BannerEventListener bannerViewListener)-
-
Method Detail
-
convertGamAdSize
static Array<AdSize> convertGamAdSize(Array<AdSize> sizes)
-
getAdSizeArray
Array<AdSize> getAdSizeArray()
-
requestAdWithBid
void requestAdWithBid(Bid bid)
-
trackImpression
void trackImpression()
-
destroy
void destroy()
-
setBannerEventListener
void setBannerEventListener(BannerEventListener bannerViewListener)
-
-
-
-