-
public final class Asset.Response
-
-
Field Summary
Fields Modifier and Type Field Description private Integeridprivate Integerrequiredprivate AssetTitle.Responsetitleprivate AssetImage.Responseimageprivate AssetVideo.Responsevideoprivate AssetData.Responsedataprivate Linklinkprivate Objectextension
-
Constructor Summary
Constructors Constructor Description Asset.Response()
-
Method Summary
Modifier and Type Method Description final IntegergetId()Optional if assetsurl/dcourl is being used; required if embedded asset is being used. final UnitsetId(@SerializedName(value = id) Integer id)Optional if assetsurl/dcourl is being used; required if embedded asset is being used. final IntegergetRequired()Set to 1 if asset is required. final UnitsetRequired(@SerializedName(value = required) Integer required)Set to 1 if asset is required. final AssetTitle.ResponsegetTitle()Title object for title assets. final UnitsetTitle(@SerializedName(value = title) AssetTitle.Response title)Title object for title assets. final AssetImage.ResponsegetImage()Image object for image assets. final UnitsetImage(@SerializedName(value = img) AssetImage.Response image)Image object for image assets. final AssetVideo.ResponsegetVideo()Video object for video assets. final UnitsetVideo(@SerializedName(value = video) AssetVideo.Response video)Video object for video assets. final AssetData.ResponsegetData()Data object for brand name, description, ratings, prices etc. final UnitsetData(@SerializedName(value = data) AssetData.Response data)Data object for brand name, description, ratings, prices etc. final LinkgetLink()Link object for call to actions. final UnitsetLink(@SerializedName(value = link) Link link)Link object for call to actions. final ObjectgetExtension()Placeholder for exchange-specific extensions to OpenRTB. final UnitsetExtension(@SerializedName(value = ext) Object extension)Placeholder for exchange-specific extensions to OpenRTB. -
-
Method Detail
-
getId
final Integer getId()
Optional if assetsurl/dcourl is being used; required if embedded asset is being used.
-
setId
final Unit setId(@SerializedName(value = id) Integer id)
Optional if assetsurl/dcourl is being used; required if embedded asset is being used.
-
getRequired
final Integer getRequired()
Set to 1 if asset is required. (bidder requires it to be displayed).
-
setRequired
final Unit setRequired(@SerializedName(value = required) Integer required)
Set to 1 if asset is required. (bidder requires it to be displayed).
-
getTitle
final AssetTitle.Response getTitle()
Title object for title assets.
-
setTitle
final Unit setTitle(@SerializedName(value = title) AssetTitle.Response title)
Title object for title assets.
-
getImage
final AssetImage.Response getImage()
Image object for image assets.
-
setImage
final Unit setImage(@SerializedName(value = img) AssetImage.Response image)
Image object for image assets.
-
getVideo
final AssetVideo.Response getVideo()
Video object for video assets. Note that in-stream (ie pre-roll, etc) video ads are not part of Native. Native ads may contain a video as the ad creative itself.
-
setVideo
final Unit setVideo(@SerializedName(value = video) AssetVideo.Response video)
Video object for video assets. Note that in-stream (ie pre-roll, etc) video ads are not part of Native. Native ads may contain a video as the ad creative itself.
-
getData
final AssetData.Response getData()
Data object for brand name, description, ratings, prices etc.
-
setData
final Unit setData(@SerializedName(value = data) AssetData.Response data)
Data object for brand name, description, ratings, prices etc.
-
getLink
final Link getLink()
Link object for call to actions. The link object applies if the asset item is activated (clicked). If there is no link object on the asset, the parent link object on the bid response applies.
-
setLink
final Unit setLink(@SerializedName(value = link) Link link)
Link object for call to actions. The link object applies if the asset item is activated (clicked). If there is no link object on the asset, the parent link object on the bid response applies.
-
getExtension
final Object getExtension()
Placeholder for exchange-specific extensions to OpenRTB.
-
setExtension
final Unit setExtension(@SerializedName(value = ext) Object extension)
Placeholder for exchange-specific extensions to OpenRTB.
-
-
-
-