Package 

Class NativeAdResponse


  • 
    public final class NativeAdResponse
    
                        

    The native object is the top level JSON object which identifies a native response.

    • Constructor Detail

      • NativeAdResponse

        NativeAdResponse()
    • 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.

      • 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.