Class POBVastAd

  • All Implemented Interfaces:
    com.pubmatic.sdk.video.xmlserialiser.POBXMLNodeListener

    
    public class POBVastAd
     implements POBXMLNodeListener
                        

    Instance of this modal class saves the data of VAST Ad node.

    This object may be an inline ad or a wrapper.

    • Constructor Detail

      • POBVastAd

        POBVastAd()
    • Method Detail

      • setWrapper

         void setWrapper(@Nullable() POBVastAd wrapper)

        Setter to set wrpper ad on current VAST ad

        Parameters:
        wrapper - previous wrapper ad
      • build

         void build(@NonNull() POBNodeBuilder builder)

        POBXMLParser calls this method to build model class object with node builder

        Parameters:
        builder - Instance of POBNodeBuilder, to be used for building the model class object
      • getAdSystem

        @Nullable() String getAdSystem()

        A string that provides the name of the ad server that returned the ad

        Returns:

        ad server name

      • getAdServingId

        @Nullable() String getAdServingId()

        A unique or pseudo-unique (long enough to be unique when combined with timestamp data) numerical value.

        Returns:

        ad serving id

      • getPricing

        @Nullable() String getPricing()

        A numerical value that represents a price that can be used in real-time bidding systems

        Returns:

        price value

      • getExpires

         int getExpires()

        An integer value that defines the expiry period (in seconds).

        Returns:

        expiry period

      • getAdSequence

         int getAdSequence()

        Returns an integer value with sequence values those are part of a pod and are intended to be played in sequence. Returns -1, if not found in vast.

        Returns:

        Ad sequence in pod

      • getVASTAdTagURI

        @Nullable() String getVASTAdTagURI()

        A URI to a VAST response that may be another VAST Wrapper or a VAST InLine ad.

        Returns:

        VAST Ad Tag URL

      • getClosestClickThroughURL

        @Nullable() String getClosestClickThroughURL()

        Returns the closest clickThrough URL from the Linear ad of current Vast ad. Preference give to Inline VAST followed by parent's wrapper VAST

        Returns:

        string closestClickThrough URL

      • getClosestIcon

        @Nullable() POBIcon getClosestIcon()

        Returns the closest Icon from the Linear ad of current Vast ad. Preference give to Inline VAST followed by parent's wrapper VAST

        Returns:

        Instance of POBIcon

      • getErrorURLs

        @Nullable() List<String> getErrorURLs()

        List of URIs to tracking resource to be used when an error in ad playback occurs.

        Returns:

        error URL list

      • getViewableImpressions

        @Nullable() List<String> getViewableImpressions()

        A URI that directs the media player to a tracking resource file that the media player should request at the time that criteria is met for a viewable impression.

        Returns:

        list of viewable impressions URL's

      • getNotViewableImpressions

        @Nullable() List<String> getNotViewableImpressions()

        A URI that directs the media player to a tracking resource file that the media player should request if the ad is executed but never meets criteria for a viewable impression.

        Returns:

        list of not viewable impressions URL's

      • getViewUndeterminedImpressions

        @Nullable() List<String> getViewUndeterminedImpressions()

        A URI that directs the media player to a tracking resource file that the media player should request if the player cannot determine whether criteria is met for a viewable impression.

        Returns:

        list of view undetermined impressions URL's

      • getCombinedVerificationList

         List<POBVerificationScriptResource> getCombinedVerificationList()

        List of the specified Vast ad parameter

        Returns:

        POBXMLNodeListener list of POBVastAdParameter

      • getAdVerification

        @Nullable() List<POBAdVerification> getAdVerification()

        List of the AdVerification objects

        Each verification object element contains the executable and bootstrapping data required to run the measurement code for a single verification vendor.

        Returns:

        list of POBAdVerification