-
public final class NativeAdResponseThe native object is the top level JSON object which identifies a native response.
-
-
Constructor Summary
Constructors Constructor Description NativeAdResponse()
-
Method Summary
Modifier and Type Method Description final LinkgetLink()Destination Link. final StringgetVersion()Version of the Native Markup version in use. final UnitsetVersion(@SerializedName(value = ver) String version)Version of the Native Markup version in use. final Array<Asset.Response>getAssets()List of native ad’s assets. final StringgetAssetsUrl()URL of an alternate source for the assets object. final UnitsetAssetsUrl(@SerializedName(value = assetsurl) String assetsUrl)URL of an alternate source for the assets object. final StringgetDcoUrl()URL where a dynamic creative specification may be found for populating this ad, per the Dynamic Content Ads Specification. final UnitsetDcoUrl(@SerializedName(value = dcourl) String dcoUrl)URL where a dynamic creative specification may be found for populating this ad, per the Dynamic Content Ads Specification. final Array<EventTracker>getEventTrackers()Array of tracking objects to run with the ad, in response to the declared supported methods in the request. final UnitsetEventTrackers(@SerializedName(value = eventtrackers) Array<EventTracker> eventTrackers)Array of tracking objects to run with the ad, in response to the declared supported methods in the request. final IntegergetPrivacy()Set to 1 when the native ad supports buyer-specific privacy notice. final UnitsetPrivacy(@SerializedName(value = privacy) Integer privacy)Set to 1 when the native ad supports buyer-specific privacy notice. 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
-
getLink
final Link getLink()
Destination Link. This is default link object for the ad. Individual assets can also have a link object which applies if the asset is activated(clicked). If the asset doesn't have a link object, the parent link object applies
-
getVersion
final String getVersion()
Version of the Native Markup version in use.
-
setVersion
final Unit setVersion(@SerializedName(value = ver) String version)
Version of the Native Markup version in use.
-
getAssets
final Array<Asset.Response> getAssets()
-
getAssetsUrl
final String getAssetsUrl()
URL of an alternate source for the assets object. The expected response is a JSON object mirroring the assets object in the bid response, subject to certain requirements as specified in the individual objects. Where present, overrides the asset object in the response.
-
setAssetsUrl
final Unit setAssetsUrl(@SerializedName(value = assetsurl) String assetsUrl)
URL of an alternate source for the assets object. The expected response is a JSON object mirroring the assets object in the bid response, subject to certain requirements as specified in the individual objects. Where present, overrides the asset object in the response.
-
getDcoUrl
final String getDcoUrl()
URL where a dynamic creative specification may be found for populating this ad, per the Dynamic Content Ads Specification.
-
setDcoUrl
final Unit setDcoUrl(@SerializedName(value = dcourl) String dcoUrl)
URL where a dynamic creative specification may be found for populating this ad, per the Dynamic Content Ads Specification.
-
getEventTrackers
final Array<EventTracker> getEventTrackers()
Array of tracking objects to run with the ad, in response to the declared supported methods in the request.
-
setEventTrackers
final Unit setEventTrackers(@SerializedName(value = eventtrackers) Array<EventTracker> eventTrackers)
Array of tracking objects to run with the ad, in response to the declared supported methods in the request.
-
getPrivacy
final Integer getPrivacy()
Set to 1 when the native ad supports buyer-specific privacy notice. Set to 0 (or field absent) when the native ad doesn't support custom privacy links or if support is unknown.
-
setPrivacy
final Unit setPrivacy(@SerializedName(value = privacy) Integer privacy)
Set to 1 when the native ad supports buyer-specific privacy notice. Set to 0 (or field absent) when the native ad doesn't support custom privacy links or if support is unknown.
-
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.
-
-
-
-