public class POBRequest
extends java.lang.Object
implements com.pubmatic.sdk.common.base.POBAdRequest
Modifier and Type | Class and Description |
---|---|
static class |
POBRequest.AdPosition
Fold placement of the ad to be served.
|
static class |
POBRequest.API
Supported API of the ad to be served.
|
Modifier and Type | Method and Description |
---|---|
static POBRequest |
createInstance(java.lang.String pubId,
int profileId,
POBAdFormat placementType,
POBImpression... impressions)
Returns the object of the POBRequest with provided parameters.
|
void |
enableDebugState(boolean state)
Enable/Disable debug information in the response.
|
void |
enableReturnAllBidStatus(boolean state)
Set to true if seatnonbids in response should be enabled.
|
void |
enableTestMode(boolean testMode)
Setter method to set Test mode of the request
By default set to false
When set to true, PubMatic may deliver only test ads which are not billable.
|
java.lang.String |
getAdServerUrl()
Returns value of Ad Server Url if it is set by method
|
java.lang.String |
getAdUnitId()
Returns the Ad unit ID from the 0th index of impression array.
|
POBImpression[] |
getImpressions()
Returns the array of impression object
|
int |
getNetworkTimeout()
Returns the network timeout (in seconds) for making an Ad request.
|
POBAdFormat |
getPlacementType()
Returns the OpenWrap ad format type
|
int |
getProfileId()
Returns the profile Id.
|
java.lang.String |
getPubId() |
java.lang.Boolean |
getTestMode()
Returns test Mode of the OpenWrap request
|
java.lang.Integer |
getVersionId()
Returns OpenWrap version Id
|
boolean |
isDebugStateEnabled()
Returns the debug state.
|
void |
setAdServerUrl(java.lang.String adServerUrl)
Setter method to set Ad Server Url
Custom server URL for debugging purpose.
|
void |
setNetworkTimeout(int networkTimeoutInSec)
Sets the network timeout (in seconds) for making an Ad request.
|
void |
setVersionId(java.lang.Integer versionId)
This is an optional OpenWrap version Id of the publisher.
|
@Nullable public static POBRequest createInstance(@NonNull java.lang.String pubId, int profileId, @NonNull POBAdFormat placementType, @NonNull POBImpression... impressions)
pubId
- Identifier of the publisherprofileId
- Profile ID of an ad tagimpressions
- Objects of POBImpression, separated by comma in case of multiple
values.public boolean isDebugStateEnabled()
@NonNull public POBAdFormat getPlacementType()
public void enableDebugState(boolean state)
state
- debug statepublic int getNetworkTimeout()
public void setNetworkTimeout(int networkTimeoutInSec)
networkTimeoutInSec
- value in seconds@NonNull public java.lang.String getAdUnitId()
@Nullable public POBImpression[] getImpressions()
@NonNull public java.lang.String getPubId()
public void enableReturnAllBidStatus(boolean state)
OpenWrapSDK.LogLevel.Debug
by following
Enable SDK Logs.
state
- true if seatnonbid in response is expectedpublic int getProfileId()
@Nullable public java.lang.Integer getVersionId()
public void setVersionId(@Nullable java.lang.Integer versionId)
versionId
- OpenWrap version Idpublic void enableTestMode(boolean testMode)
testMode
- boolean value, either true or false@Nullable public java.lang.Boolean getTestMode()
@Nullable public java.lang.String getAdServerUrl()
public void setAdServerUrl(@Nullable java.lang.String adServerUrl)
adServerUrl
- string Url