Page tree


com.pubmatic.sdk.nativead.pubmatic

Class PMNativeAdRequest

java.lang.Object
    com.pubmatic.sdk.common.AdRequest
        com.pubmatic.sdk.common.pubmatic.PMAdRequest
            com.pubmatic.sdk.nativead.pubmatic.PMNativeAdRequest

public class PMNativeAdRequest
extends PMAdRequest

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.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
BooleancheckMandatoryParams()
static PMNativeAdRequestcreatePMNativeAdRequest(java.lang.string pubId, java.lang.string siteId, java.lang.string adId, java.util.List<PMNativeAssetRequest> requestedAssets) This method will create and object of .
com.pubmatic.sdk.common.RRFormattergetFormatter()
protected voidinitializeDefaultParams() This method will initialize all the static parameters which SDK need to set.
BooleanisTest() Access for test mode state of the instance.
voidsetCustomParams(java.util.Map<java.lang.string,java.util.List<java.lang.string>> customParams)
voidsetTest(Boolean test) Sets the instance test mode.
protected voidsetUpPostParams()

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


addKeyword, getAdOrientation, getAdType, getAppCategory, getAWT, 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, getChannel, getCustomParams, getRequestUrl, getUserAgent, putPostData, setAdSize, 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


createPMNativeAdRequest

public static PMNativeAdRequest createPMNativeAdRequest(java.lang.string pubId, java.lang.string siteId, java.lang.string adId, java.util.List<PMNativeAssetRequest> requestedAssets)

This method will create and object of . It is used for the implementations of

Returns:
instance

initializeDefaultParams

protected void initializeDefaultParams()

This method will initialize all the static parameters which SDK need to set.

Specified by:
initializeDefaultParams in class AdRequest

checkMandatoryParams

public Boolean checkMandatoryParams()
Overrides:
checkMandatoryParams in class PMAdRequest
Returns:

setCustomParams

public void setCustomParams(java.util.Map<java.lang.string,java.util.List<java.lang.string>> customParams)

setTest

public void setTest(Boolean test)

Sets the instance test mode. If set to test mode the instance will request test ads for the configured zone.

Warning: This should never be enabled for application releases.

Parameters:
test - true to set test mode, false to disable test mode.

isTest

public Boolean isTest()

Access for test mode state of the instance.

Returns:
true if the instance is set to test mode, false if test mode is disabled.

setUpPostParams

protected void setUpPostParams()
Overrides:
setUpPostParams in class PMAdRequest

getFormatter

public com.pubmatic.sdk.common.RRFormatter getFormatter()
Specified by:
getFormatter in class AdRequest
Returns:


⇧ Top