Package com.ooyala.pulse
Class RequestSettings
java.lang.Object
com.ooyala.pulse.RequestSettings
Information about the environment in which the requested ad(s) will play.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Ad break positions which can be read fromPulseAdBreak
.static enum
Potential content form values used to determine the ad insertion policy.static enum
Live parameters used to disable certain tracking, secondary lookup requests, real-time bidding requests, and/or cookie syncing for a live event.static enum
Modes which determine how the session behaves when a viewer seeks past one or more midroll ad breaks. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.SeesetAdvertisingID(String)
for information.SeesetApplicationBundle(String)
for information.SeesetApplicationID(String)
for information.SeesetApplicationName(String)
for information.SeesetApplicationVersion(String)
for information.int
SeesetBreakNumber(int)
for information.SeesetGdprConsentString(String)
for information.int
SeesetHeight(int)
for information.SeesetInsertionPointFilter(List)
for information.SeesetLinearPlaybackPositions(List)
for information.int
SeesetLinearSlotSize(int)
for information.SeesetLiveParameters(List)
for information.int
SeesetMaxBitRate(int)
for information.int
SeesetMaxLinearBreakDuration(int)
for information.int
SeesetMidrollBreakNumber(int)
for information.int
SeesetMinLinearBreakDuration(int)
for information.SeesetNonlinearPlaybackPositions(List)
for information.SeesetReferrerURL(URL)
for information.SeesetRtbDcid(String)
for information.SeesetRtbPid(String)
for information.SeesetSeekMode(SeekMode)
for information.double
SeesetStartAdTimeout(double)
for information.SeesetStoreUrl(String)
for information.double
SeesetThirdPartyTimeout(double)
for information.double
SeesetTotalPassbackTimeout(double)
for information.int
getWidth()
SeesetWidth(int)
for information.boolean
SeedisableAssetFiltering(boolean)
for information.boolean
SeesetEnforceCachebusting(boolean)
for information.boolean
SeeenableGdpr(boolean)
for information.SeesetGdprPersonalDataIncluded(boolean)
for information.boolean
void
setAdvertisingID
(String advertisingID) Set the Google Advertising ID (AAID) for this device.void
setApplicationBundle
(String applicationBundle) Set the application bundle name, in the format "com.ooyala.pulseplayer".void
setApplicationID
(String applicationID) Set the application ID, in the format "com.ooyala.pulseplayer".void
setApplicationName
(String applicationName) Set the application name.void
setApplicationVersion
(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
(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
(List<RequestSettings.InsertionPointType> insertionPointFilter) A list of insertion point types which are expected in the response.void
setLinearPlaybackPositions
(List<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
(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
(List<Float> nonlinearPlaybackPositions) A list of numbers which defines points in time when non-linear ads should be shown.void
setPrefetchedAssets
(List<String> prefetchedAssets) Define which pre-fetched assets are available on the current device.void
setReferrerURL
(URL referrerURL) Overrides the HTTP header's referrer property.void
setRtbDcid
(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
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
(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.
-
Constructor Details
-
RequestSettings
public RequestSettings()
-
-
Method Details
-
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
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
SeesetAdvertisingID(String)
for information.- Returns:
- The advertising ID.
-
setApplicationID
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
SeesetApplicationID(String)
for information.- Returns:
- The application ID.
-
setApplicationName
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
SeesetApplicationName(String)
for information.- Returns:
- The application name.
-
setApplicationBundle
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
SeesetApplicationBundle(String)
for information.- Returns:
- The application bundle.
-
setApplicationVersion
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
SeesetApplicationVersion(String)
for information.- Returns:
- The application version.
-
setStoreUrl
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
SeesetStoreUrl(String)
for information.- Returns:
- The Google Play URL where the application can be downloaded from.
-
setLinearPlaybackPositions
A list of numbers which defines points in time when linear ads should be shown.- Parameters:
linearPlaybackPositions
- The playback positions to request.
-
getLinearPlaybackPositions
SeesetLinearPlaybackPositions(List)
for information.- Returns:
- The linear playback positions assigned.
-
setNonlinearPlaybackPositions
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
SeesetNonlinearPlaybackPositions(List)
for information.- Returns:
- The non-linear playback positions assigned.
-
setInsertionPointFilter
public void setInsertionPointFilter(@Nullable 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
SeesetInsertionPointFilter(List)
for information.- Returns:
- The insertion point filter list.
-
setSeekMode
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
SeesetSeekMode(SeekMode)
for information.- Returns:
- The selected SeekMode.
-
getLiveParameters
SeesetLiveParameters(List)
for information.- Returns:
- The live parameter list.
-
setLiveParameters
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
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
SeesetRtbPid(String)
for information.- Returns:
- The Persistent ID to use instead of the standard PID.
-
setRtbDcid
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
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
Overrides the HTTP header's referrer property.- Parameters:
referrerURL
- The referrer URL to use.
-
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
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
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
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
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'. -
getPrefetchedAssets
- Returns:
- The prefetchedAssets.
-
isPulseIntegrationLevel
public boolean isPulseIntegrationLevel()
-