Class POBBidsBuilder

  • All Implemented Interfaces:
    com.pubmatic.sdk.common.base.POBAdBuilding

    
    public class POBBidsBuilder
     implements POBAdBuilding<T>
                        

    POBBidsBuilder class builds the wrapper ad descriptor object for rendering wrapper ad from the provided ad response (Generic model for ad) object

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public String partnerId
    • Constructor Summary

      Constructors 
      Constructor Description
      POBBidsBuilder()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getPartnerId() Returns the OpenWrap partner Id of this bid
      void setPartnerId(@Nullable() String partnerId)
      void build(@NonNull() POBAdResponse<POBBid> response)
      void setListener(@Nullable() POBAdBuilding.POBAdBuilderListener<POBBid> listener)
      void setPartnerName(@Nullable() String partnerName) Used to set partner name to bid, it used when if no partner name is returned in build response
      void setWidth(int width) Set width to bid if no width is available in build response
      void setHeight(int height) Set height to bid if no width is available in build response
      void setCreativeType(@Nullable() String creativeType) Set creative type if not available in the bid response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • POBBidsBuilder

        POBBidsBuilder()
    • Method Detail

      • getPartnerId

        @Nullable() String getPartnerId()

        Returns the OpenWrap partner Id of this bid

        Returns:

        OpenWrap partner Id of this bid

      • setPartnerName

         void setPartnerName(@Nullable() String partnerName)

        Used to set partner name to bid, it used when if no partner name is returned in build response

        Parameters:
        partnerName - the name of bidding partner
      • setWidth

         void setWidth(int width)

        Set width to bid if no width is available in build response

        Parameters:
        width - the width of bidding partner
      • setHeight

         void setHeight(int height)

        Set height to bid if no width is available in build response

        Parameters:
        height - the height of bidding partner
      • setCreativeType

         void setCreativeType(@Nullable() String creativeType)

        Set creative type if not available in the bid response.

        Parameters:
        creativeType - type of creative going to be served