Package org.prebid.mobile.eventhandlers
Class GamBannerEventHandler
java.lang.Object
org.prebid.mobile.eventhandlers.GamBannerEventHandler
Banner 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
ConstructorsConstructorDescriptionGamBannerEventHandler
(android.content.Context context, String gamAdUnitId, AdSize... adSizes) -
Method Summary
Modifier and TypeMethodDescriptionstatic AdSize[]
convertGamAdSize
(com.google.android.gms.ads.AdSize... sizes) void
destroy()
AdSize[]
void
void
requestAdWithBid
(Bid bid) void
setBannerEventListener
(BannerEventListener bannerViewListener) void
-
Constructor Details
-
Method Details
-
convertGamAdSize
-
onEvent
-
getAdSizeArray
-
setBannerEventListener
public void setBannerEventListener(BannerEventListener bannerViewListener) -
requestAdWithBid
public void requestAdWithBid(Bid bid) -
trackImpression
public void trackImpression() -
destroy
public void destroy()
-