Package com.pubmatic.sdk.openwrap.core
Class POBBanner
-
- All Implemented Interfaces:
public class POBBannerThis class holds the information of banner impression. It is required to pass the impression level information in bid request for banner ad.
-
-
Method Summary
Modifier and Type Method Description voidsetAdSizes(@Nullable() Array<POBAdSize> adSizes)Set the required ad sizes. Set<Integer>getSupportedAPIs(boolean isCompanion)List of supported API frameworks for this banner. JSONObjectgetRTBJson(@NonNull() Set<Integer> supportedAPI, boolean isCompanion)(Internal for OpenWrap SDK) JSONArraygetSizeArray(@NonNull() Array<POBAdSize> adSizes)Provides Json Array for (Internal for OpenWrap SDK) voidsetAdPosition(@Nullable() POBRequest.AdPosition adPosition)To set the ad position -
-
Constructor Detail
-
POBBanner
POBBanner(Array<POBAdSize> adSizes)
Constructor- Parameters:
adSizes- list of ad sizes for requested ad
-
POBBanner
POBBanner()
Default constructor.
-
-
Method Detail
-
setAdSizes
void setAdSizes(@Nullable() Array<POBAdSize> adSizes)
Set the required ad sizes.
- Parameters:
adSizes- Ad sizes with comma separated in case of multiple values
-
getSupportedAPIs
@NonNull() Set<Integer> getSupportedAPIs(boolean isCompanion)
List of supported API frameworks for this banner. If an API is not explicitly listed, it is assumed not to be supported. Possible values - VPAID1, VPAID2, MRAID1, ORMMA, MRAID2 and MRAID3
-
getRTBJson
@NonNull() JSONObject getRTBJson(@NonNull() Set<Integer> supportedAPI, boolean isCompanion)
(Internal for OpenWrap SDK)
- Parameters:
supportedAPI- Set of supported APIsisCompanion- Whether the banner is companion ad- Returns:
JSONObject
-
getSizeArray
JSONArray getSizeArray(@NonNull() Array<POBAdSize> adSizes)
Provides Json Array for (Internal for OpenWrap SDK)
- Returns:
JSONArray
-
setAdPosition
void setAdPosition(@Nullable() POBRequest.AdPosition adPosition)
To set the ad position
- Parameters:
adPosition- the ad position
-
-
-
-