Class RequestSettings

java.lang.Object
com.ooyala.pulse.RequestSettings

public class RequestSettings extends Object
Information about the environment in which the requested ad(s) will play.
  • 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()
      See setHeight(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()
      See setWidth(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()
      See setMaxBitRate(int) for information.
      Returns:
      The maximum bitrate.
    • setAdvertisingID

      public void setAdvertisingID(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 String getAdvertisingID()
      See setAdvertisingID(String) for information.
      Returns:
      The advertising ID.
    • setApplicationID

      public void setApplicationID(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 String getApplicationID()
      See setApplicationID(String) for information.
      Returns:
      The application ID.
    • setApplicationName

      public void setApplicationName(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 String getApplicationName()
      See setApplicationName(String) for information.
      Returns:
      The application name.
    • setApplicationBundle

      public void setApplicationBundle(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 String getApplicationBundle()
      See setApplicationBundle(String) for information.
      Returns:
      The application bundle.
    • setApplicationVersion

      public void setApplicationVersion(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()
      See disableAssetFiltering(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()
      See setEnforceCachebusting(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 String getApplicationVersion()
      See setApplicationVersion(String) for information.
      Returns:
      The application version.
    • setStoreUrl

      public void setStoreUrl(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 String getStoreUrl()
      See setStoreUrl(String) for information.
      Returns:
      The Google Play URL where the application can be downloaded from.
    • setLinearPlaybackPositions

      public void setLinearPlaybackPositions(@Nullable List<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 List<Float> getLinearPlaybackPositions()
      Returns:
      The linear playback positions assigned.
    • setNonlinearPlaybackPositions

      public void setNonlinearPlaybackPositions(@Nullable List<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 List<Float> getNonlinearPlaybackPositions()
      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

      public List<RequestSettings.InsertionPointType> getInsertionPointFilter()
      See setInsertionPointFilter(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 the RequestSettings.SeekMode.IGNORE.
      Parameters:
      seekMode - The desired SeekMode.
    • getSeekMode

      public RequestSettings.SeekMode getSeekMode()
      See setSeekMode(SeekMode) for information.
      Returns:
      The selected SeekMode.
    • getLiveParameters

      public List<RequestSettings.Live> getLiveParameters()
      See setLiveParameters(List) for information.
      Returns:
      The live parameter list.
    • setLiveParameters

      public void setLiveParameters(@Nullable 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 the RequestSettings.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(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 String getRtbPid()
      See setRtbPid(String) for information.
      Returns:
      The Persistent ID to use instead of the standard PID.
    • setRtbDcid

      public 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. 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 String getRtbDcid()
      See setRtbDcid(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 URL referrerURL)
      Overrides the HTTP header's referrer property.
      Parameters:
      referrerURL - The referrer URL to use.
    • getReferrerURL

      public URL getReferrerURL()
      See setReferrerURL(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()
      See setMaxLinearBreakDuration(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()
      See setMinLinearBreakDuration(int) for information.
      Returns:
      The minimum duration of linear ad breaks.
    • setGdprConsentString

      public 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. 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 String getGdprConsentString()
      See setGdprConsentString(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()
      See enableGdpr(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's ContentMetadata.setCustomParameters(Map).
      Parameters:
      gdprPersonaDataIncluded - The boolean indicating whether or not the ad request contains personal data.
    • isGdprPersonalDataIncluded

      public Boolean isGdprPersonalDataIncluded()
      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()
      See setStartAdTimeout(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()
      See setThirdPartyTimeout(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()
      See setTotalPassbackTimeout(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()
      See setBreakNumber(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()
      See setMidrollBreakNumber(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()
      See setLinearSlotSize(int) for information.
      Returns:
      The linearSlotSize.
    • setPrefetchedAssets

      public void setPrefetchedAssets(@Nullable List<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'.
    • getPrefetchedAssets

      public List<String> getPrefetchedAssets()
      Returns:
      The prefetchedAssets.
    • isPulseIntegrationLevel

      public boolean isPulseIntegrationLevel()