Package com.ooyala.pulse
Class RequestSettings
- java.lang.Object
-
- com.ooyala.pulse.RequestSettings
-
public class RequestSettings extends java.lang.Object
Information about the environment in which the requested ad(s) will play.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RequestSettings.AdBreakType
Ad break positions which can be read fromPulseAdBreak
.static class
RequestSettings.InsertionPointType
Potential content form values used to determine the ad insertion policy.static class
RequestSettings.Live
Live parameters used to disable certain tracking, secondary lookup requests, real-time bidding requests, and/or cookie syncing for a live event.static class
RequestSettings.SeekMode
Modes which determine how the session behaves when a viewer seeks past one or more midroll ad breaks.
-
Constructor Summary
Constructors Constructor Description RequestSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
disableAssetFiltering(boolean assetFilteringDisabled)
Indicates whether all the media files/assets for an ad should be returned.void
enableGdpr(boolean gdprEnabled)
Set to true if the ad request is subject to GDPR regulations.java.lang.String
getAdvertisingID()
SeesetAdvertisingID(String)
for information.java.lang.String
getApplicationBundle()
SeesetApplicationBundle(String)
for information.java.lang.String
getApplicationID()
SeesetApplicationID(String)
for information.java.lang.String
getApplicationName()
SeesetApplicationName(String)
for information.java.lang.String
getApplicationVersion()
SeesetApplicationVersion(String)
for information.int
getBreakNumber()
SeesetBreakNumber(int)
for information.java.lang.String
getGdprConsentString()
SeesetGdprConsentString(String)
for information.int
getHeight()
SeesetHeight(int)
for information.java.util.List<RequestSettings.InsertionPointType>
getInsertionPointFilter()
SeesetInsertionPointFilter(List)
for information.java.util.List<java.lang.Float>
getLinearPlaybackPositions()
SeesetLinearPlaybackPositions(List)
for information.int
getLinearSlotSize()
SeesetLinearSlotSize(int)
for information.java.util.List<RequestSettings.Live>
getLiveParameters()
SeesetLiveParameters(List)
for information.int
getMaxBitRate()
SeesetMaxBitRate(int)
for information.int
getMaxLinearBreakDuration()
SeesetMaxLinearBreakDuration(int)
for information.int
getMidrollBreakNumber()
SeesetMidrollBreakNumber(int)
for information.int
getMinLinearBreakDuration()
SeesetMinLinearBreakDuration(int)
for information.java.util.List<java.lang.Float>
getNonlinearPlaybackPositions()
SeesetNonlinearPlaybackPositions(List)
for information.java.util.List<java.lang.String>
getPrefetchedAssets()
SeesetPrefetchedAssets(List)
for information.java.net.URL
getReferrerURL()
SeesetReferrerURL(URL)
for information.java.lang.String
getRtbDcid()
SeesetRtbDcid(String)
for information.java.lang.String
getRtbPid()
SeesetRtbPid(String)
for information.RequestSettings.SeekMode
getSeekMode()
SeesetSeekMode(SeekMode)
for information.double
getStartAdTimeout()
SeesetStartAdTimeout(double)
for information.java.lang.String
getStoreUrl()
SeesetStoreUrl(String)
for information.double
getThirdPartyTimeout()
SeesetThirdPartyTimeout(double)
for information.double
getTotalPassbackTimeout()
SeesetTotalPassbackTimeout(double)
for information.int
getWidth()
SeesetWidth(int)
for information.boolean
isAssetFilteringDisabled()
SeedisableAssetFiltering(boolean)
for information.boolean
isCacheBustingEnforced()
SeesetEnforceCachebusting(boolean)
for information.boolean
isGdprEnabled()
SeeenableGdpr(boolean)
for information.java.lang.Boolean
isGdprPersonalDataIncluded()
SeesetGdprPersonalDataIncluded(boolean)
for information.boolean
isPulseIntegrationLevel()
void
setAdvertisingID(java.lang.String advertisingID)
Set the Google Advertising ID (AAID) for this device.void
setApplicationBundle(java.lang.String applicationBundle)
Set the application bundle name, in the format "com.ooyala.pulseplayer".void
setApplicationID(java.lang.String applicationID)
Set the application ID, in the format "com.ooyala.pulseplayer".void
setApplicationName(java.lang.String applicationName)
Set the application name.void
setApplicationVersion(java.lang.String applicationVersion)
Set the application version.void
setBreakNumber(int breakNumber)
Deprecated.This is deprecated.void
setEnforceCachebusting(boolean enforceCacheBusting)
If set to false, randomized cachebusting parameters will not be added to VAST 2.0 tracking URLs which do not include the "[CACHEBUSTING]" macro.void
setGdprConsentString(java.lang.String gdprConsentString)
Pass in the user's URL safe and base64 encoded consent string related to GDPR regulations, which may be obtained through the Mobile In-App Consent Management Provider (CMP) API.void
setGdprPersonalDataIncluded(boolean gdprPersonaDataIncluded)
Set to true if you are passing in personal information when creating the ad request to Pulse.void
setHeight(int height)
Set the height in pixels of the video area where ads will be shown.void
setInsertionPointFilter(java.util.List<RequestSettings.InsertionPointType> insertionPointFilter)
A list of insertion point types which are expected in the response.void
setLinearPlaybackPositions(java.util.List<java.lang.Float> linearPlaybackPositions)
A list of numbers which defines points in time when linear ads should be shown.void
setLinearSlotSize(int linearSlotSize)
Set the linearSlotSize in ad response (positive integer).void
setLiveParameters(java.util.List<RequestSettings.Live> liveParameters)
A list of live parameters indicating which behaviours should be disabled for a live event.void
setMaxBitRate(int maxBitRate)
Set the maximum bitrate of the media files in the ad response.void
setMaxLinearBreakDuration(int seconds)
The maximum duration in seconds of linear ad breaks.void
setMidrollBreakNumber(int midrollBreakNumber)
Set the midrollBreakNumber in ad response (positive integer).void
setMinLinearBreakDuration(int seconds)
The minimum duration in seconds of linear ad breaks.void
setNonlinearPlaybackPositions(java.util.List<java.lang.Float> nonlinearPlaybackPositions)
A list of numbers which defines points in time when non-linear ads should be shown.void
setPrefetchedAssets(java.util.List<java.lang.String> prefetchedAssets)
Define which pre-fetched assets are available on the current device.void
setReferrerURL(java.net.URL referrerURL)
Overrides the HTTP header's referrer property.void
setRtbDcid(java.lang.String rtbDcid)
RTB Device Container ID overrides the RTB device type detected in INVIDI Pulse, in order to request ads for a specific RTB device type.void
setRtbPid(java.lang.String rtbPid)
Real-time bidding (RTB) persistent ID (PID) anonymizes the standard PID and, if set, will be sent in bid requests to Demand Side Platforms instead of the standard PID, to ensure the privacy of your end users' information when using Pulse Programmatic (SSP).void
setSeekMode(RequestSettings.SeekMode seekMode)
Determines the Pulse SDK's behaviour when the viewer seeks past one or more ad breaks.void
setStartAdTimeout(double startAdTimeout)
Set the start ad timeout in ad response (in seconds).void
setStoreUrl(java.lang.String storeUrl)
Set the Google Play URL where you can download the application that is using this SDK.void
setThirdPartyTimeout(double thirdPartyTimeout)
Set the third party timeout in ad response (in seconds).void
setTotalPassbackTimeout(double totalPassbackTimeout)
Set the passback timeout in ad response (in seconds).void
setWidth(int width)
Set the width in pixels of the video area where ads will be shown.
-
-
-
Method Detail
-
setHeight
public void setHeight(int height)
Set the height in pixels of the video area where ads will be shown.- Parameters:
height
- The height in pixels.
-
getHeight
public int getHeight()
SeesetHeight(int)
for information.- Returns:
- The height.
-
setWidth
public void setWidth(int width)
Set the width in pixels of the video area where ads will be shown.- Parameters:
width
- The width in pixels.
-
getWidth
public int getWidth()
SeesetWidth(int)
for information.- Returns:
- The width.
-
setMaxBitRate
public void setMaxBitRate(int maxBitRate)
Set the maximum bitrate of the media files in the ad response.- Parameters:
maxBitRate
- The maximum bitrate.
-
getMaxBitRate
public int getMaxBitRate()
SeesetMaxBitRate(int)
for information.- Returns:
- The maximum bitrate.
-
setAdvertisingID
public void setAdvertisingID(java.lang.String advertisingID)
Set the Google Advertising ID (AAID) for this device. If RTB ads are configured in Pulse, this information will be forwarded to the DSP.- Parameters:
advertisingID
- The Advertising ID.
-
getAdvertisingID
public java.lang.String getAdvertisingID()
SeesetAdvertisingID(String)
for information.- Returns:
- The advertising ID.
-
setApplicationID
public void setApplicationID(java.lang.String applicationID)
Set the application ID, in the format "com.ooyala.pulseplayer". If RTB ads are configured in Pulse, this information will be forwarded to the DSP.- Parameters:
applicationID
- The application ID.
-
getApplicationID
public java.lang.String getApplicationID()
SeesetApplicationID(String)
for information.- Returns:
- The application ID.
-
setApplicationName
public void setApplicationName(java.lang.String applicationName)
Set the application name. An example would be: "pulseplayer". If RTB ads are configured in Pulse, this information will be forwarded to the DSP.- Parameters:
applicationName
- The application name.
-
getApplicationName
public java.lang.String getApplicationName()
SeesetApplicationName(String)
for information.- Returns:
- The application name.
-
setApplicationBundle
public void setApplicationBundle(java.lang.String applicationBundle)
Set the application bundle name, in the format "com.ooyala.pulseplayer". The application bundle name and application ID have similar formats. If RTB ads are configured in Pulse, this information will be forwarded to the DSP.- Parameters:
applicationBundle
- The application bundle.
-
getApplicationBundle
public java.lang.String getApplicationBundle()
SeesetApplicationBundle(String)
for information.- Returns:
- The application bundle.
-
setApplicationVersion
public void setApplicationVersion(java.lang.String applicationVersion)
Set the application version. An example would be "1.0.0". If RTB ads are configured in Pulse, this information will be forwarded to the DSP.- Parameters:
applicationVersion
- The application version.
-
isAssetFilteringDisabled
public boolean isAssetFilteringDisabled()
SeedisableAssetFiltering(boolean)
for information.- Returns:
- True if asset filtering is disabled.
-
disableAssetFiltering
public void disableAssetFiltering(boolean assetFilteringDisabled)
Indicates whether all the media files/assets for an ad should be returned. If true, the assets will not be filtered out based on the user agent.- Parameters:
assetFilteringDisabled
- The boolean to disable/enable the asset filtering
-
isCacheBustingEnforced
public boolean isCacheBustingEnforced()
SeesetEnforceCachebusting(boolean)
for information.- Returns:
- True if cache busting is disabled.
-
setEnforceCachebusting
public void setEnforceCachebusting(boolean enforceCacheBusting)
If set to false, randomized cachebusting parameters will not be added to VAST 2.0 tracking URLs which do not include the "[CACHEBUSTING]" macro.- Parameters:
enforceCacheBusting
- The boolean indicating enforcing of cache busting.
-
getApplicationVersion
public java.lang.String getApplicationVersion()
SeesetApplicationVersion(String)
for information.- Returns:
- The application version.
-
setStoreUrl
public void setStoreUrl(java.lang.String storeUrl)
Set the Google Play URL where you can download the application that is using this SDK. An example would be: "https://play.google.com/store/apps/details?id=com.ooyala.pulseplayer" If RTB ads are configured in Pulse, this information will be forwarded to the DSP.- Parameters:
storeUrl
- The Google Play URL where the application can be downloaded from.
-
getStoreUrl
public java.lang.String getStoreUrl()
SeesetStoreUrl(String)
for information.- Returns:
- The Google Play URL where the application can be downloaded from.
-
setLinearPlaybackPositions
public void setLinearPlaybackPositions(@Nullable java.util.List<java.lang.Float> linearPlaybackPositions)
A list of numbers which defines points in time when linear ads should be shown.- Parameters:
linearPlaybackPositions
- The playback positions to request.
-
getLinearPlaybackPositions
public java.util.List<java.lang.Float> getLinearPlaybackPositions()
SeesetLinearPlaybackPositions(List)
for information.- Returns:
- The linear playback positions assigned.
-
setNonlinearPlaybackPositions
public void setNonlinearPlaybackPositions(@Nullable java.util.List<java.lang.Float> nonlinearPlaybackPositions)
A list of numbers which defines points in time when non-linear ads should be shown.- Parameters:
nonlinearPlaybackPositions
- The playback positions to request for non-linear (overlay) ads.
-
getNonlinearPlaybackPositions
public java.util.List<java.lang.Float> getNonlinearPlaybackPositions()
SeesetNonlinearPlaybackPositions(List)
for information.- Returns:
- The non-linear playback positions assigned.
-
setInsertionPointFilter
public void setInsertionPointFilter(@Nullable java.util.List<RequestSettings.InsertionPointType> insertionPointFilter)
A list of insertion point types which are expected in the response. If not set, all types will be requested.- Parameters:
insertionPointFilter
- A list containing the desired insertion point types; omitted types will not be present in the response.
-
getInsertionPointFilter
public java.util.List<RequestSettings.InsertionPointType> getInsertionPointFilter()
SeesetInsertionPointFilter(List)
for information.- Returns:
- The insertion point filter list.
-
setSeekMode
public void setSeekMode(RequestSettings.SeekMode seekMode)
Determines the Pulse SDK's behaviour when the viewer seeks past one or more ad breaks. If not set, the behaviour defaults to theRequestSettings.SeekMode.IGNORE
.- Parameters:
seekMode
- The desired SeekMode.
-
getSeekMode
public RequestSettings.SeekMode getSeekMode()
SeesetSeekMode(SeekMode)
for information.- Returns:
- The selected SeekMode.
-
getLiveParameters
public java.util.List<RequestSettings.Live> getLiveParameters()
SeesetLiveParameters(List)
for information.- Returns:
- The live parameter list.
-
setLiveParameters
public void setLiveParameters(@Nullable java.util.List<RequestSettings.Live> liveParameters)
A list of live parameters indicating which behaviours should be disabled for a live event. If an empty list is set, the behaviour defaults to theRequestSettings.Live.DISABLE_ALL
. Notice that if all parameters are sent at once, then no action would be taken, i.e DISABLE_ALL would disable everything and other parameters would re-enable them.- Parameters:
liveParameters
- A list containing the desired live parameters; indicating what behaviour be disabled for live event.
-
setRtbPid
public void setRtbPid(java.lang.String rtbPid)
Real-time bidding (RTB) persistent ID (PID) anonymizes the standard PID and, if set, will be sent in bid requests to Demand Side Platforms instead of the standard PID, to ensure the privacy of your end users' information when using Pulse Programmatic (SSP).- Parameters:
rtbPid
- The ID to use instead of the standard PID.
-
getRtbPid
public java.lang.String getRtbPid()
SeesetRtbPid(String)
for information.- Returns:
- The Persistent ID to use instead of the standard PID.
-
setRtbDcid
public void setRtbDcid(java.lang.String rtbDcid)
RTB Device Container ID overrides the RTB device type detected in INVIDI Pulse, in order to request ads for a specific RTB device type. You must provide a valid value for one of the available device types as specified in the OpenRTB API Specification. For more information, see [INVIDI Pulse SDK parameter reference](https://docs.invidi.com/r/INVIDI-Pulse-Documentation/Pulse-SDKs-parameter-reference)- Parameters:
rtbDcid
- The RTB Device Container ID overrides the RTB device type detected in INVIDI Pulse.
-
getRtbDcid
public java.lang.String getRtbDcid()
SeesetRtbDcid(String)
for information.- Returns:
- The RTB Device Container ID overrides the RTB device type detected in INVIDI Pulse, in order to request ads for a specific RTB device type.
-
setReferrerURL
public void setReferrerURL(@Nullable java.net.URL referrerURL)
Overrides the HTTP header's referrer property.- Parameters:
referrerURL
- The referrer URL to use.
-
getReferrerURL
public java.net.URL getReferrerURL()
SeesetReferrerURL(URL)
for information.- Returns:
- The referrer URL, or null if none is set.
-
setMaxLinearBreakDuration
public void setMaxLinearBreakDuration(int seconds)
The maximum duration in seconds of linear ad breaks.- Parameters:
seconds
- The maximum duration of linear ad breaks to request.
-
getMaxLinearBreakDuration
public int getMaxLinearBreakDuration()
SeesetMaxLinearBreakDuration(int)
for information.- Returns:
- The maximum duration of linear ad breaks.
-
setMinLinearBreakDuration
public void setMinLinearBreakDuration(int seconds)
The minimum duration in seconds of linear ad breaks.- Parameters:
seconds
- The minimum duration of linear ad breaks to request.
-
getMinLinearBreakDuration
public int getMinLinearBreakDuration()
SeesetMinLinearBreakDuration(int)
for information.- Returns:
- The minimum duration of linear ad breaks.
-
setGdprConsentString
public void setGdprConsentString(java.lang.String gdprConsentString)
Pass in the user's URL safe and base64 encoded consent string related to GDPR regulations, which may be obtained through the Mobile In-App Consent Management Provider (CMP) API. This string is built up according to the data structure developed by the GDPR Consent Working Group under the auspices of IAB Europe. The data structure specification can be found at Consent string and vendor list formats. For more information on the API, refer to Mobile In-App Consent APIs.- Parameters:
gdprConsentString
- The user's URL safe and base64 encoded consent string related to GDPR regulations.
-
getGdprConsentString
public java.lang.String getGdprConsentString()
SeesetGdprConsentString(String)
for information.- Returns:
- Returns the GDPR, URL safe and base64 encoded consent string, if set in the integration.
-
enableGdpr
public void enableGdpr(boolean gdprEnabled)
Set to true if the ad request is subject to GDPR regulations. See Implementation Guidelines for implementation guidelines.- Parameters:
gdprEnabled
- The boolean indicating whether or not the ad request is subject to GDPR regulations.
-
isGdprEnabled
public boolean isGdprEnabled()
SeeenableGdpr(boolean)
for information.- Returns:
- Returns whether or not GDPR regulations are applicable to the ad request. Note that this must be set first in the integration.
-
setGdprPersonalDataIncluded
public void setGdprPersonalDataIncluded(boolean gdprPersonaDataIncluded)
Set to true if you are passing in personal information when creating the ad request to Pulse. One of the locations where it is possible to pass in personal information is in the ContentMetadata'sContentMetadata.setCustomParameters(Map)
.- Parameters:
gdprPersonaDataIncluded
- The boolean indicating whether or not the ad request contains personal data.
-
isGdprPersonalDataIncluded
public java.lang.Boolean isGdprPersonalDataIncluded()
SeesetGdprPersonalDataIncluded(boolean)
for information.- Returns:
- Returns whether or not the ad request contains personal data. Note that this must be set first in the integration.
-
setStartAdTimeout
public void setStartAdTimeout(double startAdTimeout)
Set the start ad timeout in ad response (in seconds).- Parameters:
startAdTimeout
- Overrides the maximum amount of time the player or integration should wait for the ad to start playback before reporting inventory.
-
getStartAdTimeout
public double getStartAdTimeout()
SeesetStartAdTimeout(double)
for information.- Returns:
- The startAdTimeout value.
-
setThirdPartyTimeout
public void setThirdPartyTimeout(double thirdPartyTimeout)
Set the third party timeout in ad response (in seconds).- Parameters:
thirdPartyTimeout
- Overrides the maximum amount of time the player or integration should wait to unwrap and load a third party ad before reporting inventory.
-
getThirdPartyTimeout
public double getThirdPartyTimeout()
SeesetThirdPartyTimeout(double)
for information.- Returns:
- The thirdPartyTimeout value.
-
setTotalPassbackTimeout
public void setTotalPassbackTimeout(double totalPassbackTimeout)
Set the passback timeout in ad response (in seconds).- Parameters:
totalPassbackTimeout
- Overrides the maximum amount of time the passback player should wait to find a working ad in the passback chain before moving to the last ad in the chain or reporting inventory.
-
getTotalPassbackTimeout
public double getTotalPassbackTimeout()
SeesetTotalPassbackTimeout(double)
for information.- Returns:
- The totalPassbackTimeout value.
-
setBreakNumber
public void setBreakNumber(int breakNumber)
Deprecated.This is deprecated. Use midrollBreakNumber to request ads for specific midroll ad break.Set the breakNumber in ad response (positive integer).- Parameters:
breakNumber
- overrides the number of the ad break targeted by the ad request.
-
getBreakNumber
public int getBreakNumber()
SeesetBreakNumber(int)
for information.- Returns:
- The breakNumber.
-
setMidrollBreakNumber
public void setMidrollBreakNumber(int midrollBreakNumber)
Set the midrollBreakNumber in ad response (positive integer).- Parameters:
midrollBreakNumber
- overrides the number of the midroll ad break targeted by the ad request.
-
getMidrollBreakNumber
public int getMidrollBreakNumber()
SeesetMidrollBreakNumber(int)
for information.- Returns:
- The midrollBreakNumber.
-
setLinearSlotSize
public void setLinearSlotSize(int linearSlotSize)
Set the linearSlotSize in ad response (positive integer).- Parameters:
linearSlotSize
- overrides the number of linear ads per slot.
-
getLinearSlotSize
public int getLinearSlotSize()
SeesetLinearSlotSize(int)
for information.- Returns:
- The linearSlotSize.
-
setPrefetchedAssets
public void setPrefetchedAssets(@Nullable java.util.List<java.lang.String> prefetchedAssets)
Define which pre-fetched assets are available on the current device. These asset ID's will be included in the ad request as 'pref_assets'.- Parameters:
prefetchedAssets
- A list containing asset ID's for pre-fetched assets.
-
getPrefetchedAssets
public java.util.List<java.lang.String> getPrefetchedAssets()
SeesetPrefetchedAssets(List)
for information.- Returns:
- The prefetchedAssets.
-
isPulseIntegrationLevel
public boolean isPulseIntegrationLevel()
-
-