Page tree


com.pubmatic.sdk.headerbidding

Class PMPrefetchRequest

java.lang.Object
    com.pubmatic.sdk.common.AdRequest
        com.pubmatic.sdk.common.pubmatic.PMAdRequest
            com.pubmatic.sdk.banner.pubmatic.PMBannerAdRequest
                com.pubmatic.sdk.headerbidding.PMPrefetchRequest

public class PMPrefetchRequest
extends PMBannerAdRequest

Nested Class Summary


Nested classes/interfaces inherited from class com.pubmatic.sdk.common.pubmatic.PMAdRequest


PMAdRequest.AD_TYPE, PMAdRequest.AWT_OPTION, PMAdRequest.ETHNICITY, PMAdRequest.GENDER, PMAdRequest.HASHING_TECHNIQUE, PMAdRequest.OPERID, PMAdRequest.RS

Field Summary


Fields inherited from class com.pubmatic.sdk.banner.pubmatic.PMBannerAdRequest


mIsInterstitial, mMultiAdSizes

Fields inherited from class com.pubmatic.sdk.common.pubmatic.PMAdRequest


mAdId, mAdOrientation, mAdType, mAid, mAppCategory, mAppDomain, mAWT, mCity, mCoppa, mDMA, mEthnicity, mGender, mHashing, mIABCategory, mIncome, mKeywordsList, mOperId, mOrmmaComplianceLevel, mPaid, mPMZoneId, mPubId, mSiteId, mState, mStoreURL, mYearOfBirth, mZip

Fields inherited from class com.pubmatic.sdk.common.AdRequest


isAndroidAidEnabled, mChannel, mContext, mCustomParams, mLocation, mPMAdSize, mPostData, mRRFormatter, mUrlParams, mUserAgent

Method Summary

Modifier and TypeMethod and Description
void addAdSlotIdsForHeaderBidding(java.lang.string adSlotId) Add a new adSlotId to compete for header bidding via PubMatic.
void clearAdSlotIdsForHeaderBidding() Unregister all adSlotIds participating in Header bidding.
java.lang.string getAdServerURL() Returns the base/host name URL
java.util.Set<java.lang.string> getAdSlotIdsHB() Returns a new Set containing all the current adSlotIds participating in header bidding.
java.util.List<PMBannerImpression> getImpressions()
static PMPrefetchRequest initHBRequestForImpression(java.lang.string pubId, java.util.List<PMBannerImpression> impressions)
static PMPrefetchRequest initHBRequestForImpression(java.lang.string pubId, PMBannerImpression impression)
protected void setupPostData()
protected void setUpUrlParams()

Methods inherited from class com.pubmatic.sdk.banner.pubmatic.PMBannerAdRequest


createPMBannerAdRequest, getFormatter, initializeDefaultParams, setAdSize, setOptionalAdSizes, setUpPostParams

Methods inherited from class com.pubmatic.sdk.common.pubmatic.PMAdRequest


addKeyword, getAdOrientation, getAid, getAppDomain, getCity, getDeviceOrientation, getEthnicity, getIABCategory, getKeywordstring, getOperId, getPMZoneId, getSiteId, getStoreURL, getYearOfBirth, isApplicationPaid, setAdId, setAdOrientation, setAdType, setAid, setAppCategory, setAppDomain, setApplicationPaid, setAWT, setCity, setCoppa, setDMA, setEthnicity, setGender, setIABCategory, setIncome, setLocation, setOperId, setOrmmaComplianceLevel, setPMZoneId, setPubId, setSiteId, setState, setStoreURL, setUdidHash, setYearOfBirth, setZip

Methods inherited from class com.pubmatic.sdk.common.AdRequest


addUrlParam, getContext, getPostData, getUrlParams, isAndroidAidEnabled, putPostData, setAndroidAidEnabled, setContext, setCustomParams, setUrlParams, setUserAgent

Methods inherited from class java.lang.Object


clone, equals, finalize, getClass, hashCode, notify, notifyAll, tostring, wait, wait, wait

Method Detail


initHBRequestForImpression

public static PMPrefetchRequest initHBRequestForImpression(java.lang.string pubId,
PMBannerImpression impression)

initHBRequestForImpression

public static PMPrefetchRequest initHBRequestForImpression(java.lang.string pubId,
java.util.List<PMBannerImpression> impressions)

getImpressions

public java.util.List<PMBannerImpression> getImpressions()

getAdSlotIdsHB

public java.util.Set<java.lang.string> getAdSlotIdsHB()

Returns a new Set containing all the current adSlotIds participating in header bidding.

addAdSlotIdsForHeaderBidding

public void addAdSlotIdsForHeaderBidding(java.lang.string adSlotId)

Add a new adSlotId to compete for header bidding via PubMatic.

Parameters:
adSlotId -

clearAdSlotIdsForHeaderBidding

public void clearAdSlotIdsForHeaderBidding()

Unregister all adSlotIds participating in Header bidding.

getAdServerURL

public java.lang.string getAdServerURL()

Description copied from class: AdRequest

Returns the base/host name URL

Overrides:
getAdServerURL in class PMAdRequest
Returns:

setUpUrlParams

protected void setUpUrlParams()
Overrides:
setUpUrlParams in class PMAdRequest

setupPostData

protected void setupPostData()
Overrides:
setupPostData in class AdRequest


⇧ Top