PMPrefetchRequest

Document created by david.simerly on Nov 21, 2017Last modified by david.simerly on Apr 4, 2018
Version 2Show Document
  • View in full screen mode

PubMatic SDKs

AdRequest

NativeAdSize

PMAdRendered

PMAdRequest

PMAdRequest.AD_TYPE

PMAdRequest.AWT_OPTION

PMAdRequest.ETHNICITY

PMAdRequest.GENDER

PMAdRequest.HASHING_TECHNIQUE

PMAdRequest.OPERID

PMAdRequest.RS

PMAdSize

PMAdSize

PMBannerAdRequest

PMBannerAdView

PMBannerAdView.BannerAdViewDelegate

PMBannerAdView.BannerAdViewDelegate.
     ActivityListener

PMBannerAdView.BannerAdViewDelegate.
     FeatureSupportHandler

PMBannerAdView.BannerAdViewDelegate.
     InternalBrowserListener

PMBannerAdView.BannerAdViewDelegate.
     RequestListener

PMBannerAdView.BannerAdViewDelegate.
     RichMediaListener

PMBannerImpression

PMBid

PMError

PMImpression

PMInterstitialAd

PMInterstitialAd.InterstitialAdListener

PMInterstitialAd.InterstitialAdListener.
     ActivityListener

PMInterstitialAd.InterstitialAdListener.
     FeatureSupportHandler

PMInterstitialAd.InterstitialAdListener.
     InternalBrowserListener

PMInterstitialAd.InterstitialAdListener.
     RequestListener

PMInterstitialAd.InterstitialAdListener.
     RichMediaListener

PMInterstitialAdRequest

PMLogger

PMLogger.LogListener

PMLogger.PMLogLevel

PMNativeAd

PMNativeAd.Image

PMNativeAd.NativeRequestListener

PMNativeAdRequest

PMNativeAssetRequest

PMNativeAssetResponse

PMNativeDataAssetRequest

PMNativeDataAssetResponse

PMNativeDataAssetTypes

PMNativeImageAssetRequest

PMNativeImageAssetResponse

PMNativeImageAssetTypes

PMNativeTitleAssetRequest

PMNativeTitleAssetResponse

PMPrefetchManager

PMPrefetchManager.PMPrefetchListener

➤ PMPrefetchRequest

PubMaticSDK


PubMatic Android SDK Guide

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
voidaddAdSlotIdsForHeaderBidding(java.lang.string adSlotId) Add a new adSlotId to compete for header bidding via PubMatic.
voidclearAdSlotIdsForHeaderBidding() Unregister all adSlotIds participating in Header bidding.
java.lang.stringgetAdServerURL() 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 PMPrefetchRequestinitHBRequestForImpression(java.lang.string pubId, java.util.List<PMBannerImpression> impressions) 
static PMPrefetchRequestinitHBRequestForImpression(java.lang.string pubId, PMBannerImpression impression) 
protected voidsetupPostData() 
protected voidsetUpUrlParams() 

 

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

 

Attachments

    Outcomes