-
public final class NativeNative ad units are intended to blend seamlessly into the surrounding content (e.g., a sponsored Twitter or Facebook post). As such, the response must be well-structured to afford the publisher fine-grained control over rendering.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringversionprivate Array<ApiFramework>apisprivate Array<CreativeAttribute>attributesprivate Objectextensionprivate final Stringrequest
-
Method Summary
Modifier and Type Method Description final StringgetVersion()Version of the Dynamic Native Ads API to which request complies; highly recommended for efficient parsing. final UnitsetVersion(@SerializedName(value = ver) String version)Version of the Dynamic Native Ads API to which request complies; highly recommended for efficient parsing. final Array<ApiFramework>getApis()List of supported ApiFramework for this impression. final UnitsetApis(@SerializedName(value = api) Array<ApiFramework> apis)List of supported ApiFramework for this impression. final Array<CreativeAttribute>getAttributes()Blocked creative attributes. final UnitsetAttributes(@SerializedName(value = battr) Array<CreativeAttribute> attributes)Blocked creative attributes. final ObjectgetExtension()Placeholder for exchange-specific extensions to OpenRTB. final UnitsetExtension(@SerializedName(value = ext) Object extension)Placeholder for exchange-specific extensions to OpenRTB. final StringgetRequest()Request payload complying with the Native Ad Specification. -
-
Constructor Detail
-
Native
Native(String request)
-
-
Method Detail
-
getVersion
final String getVersion()
Version of the Dynamic Native Ads API to which request complies; highly recommended for efficient parsing.
-
setVersion
final Unit setVersion(@SerializedName(value = ver) String version)
Version of the Dynamic Native Ads API to which request complies; highly recommended for efficient parsing.
-
getApis
final Array<ApiFramework> getApis()
List of supported ApiFramework for this impression. If an API is not explicitly listed, it is assumed not to be supported.
-
setApis
final Unit setApis(@SerializedName(value = api) Array<ApiFramework> apis)
List of supported ApiFramework for this impression. If an API is not explicitly listed, it is assumed not to be supported.
-
getAttributes
final Array<CreativeAttribute> getAttributes()
Blocked creative attributes.
-
setAttributes
final Unit setAttributes(@SerializedName(value = battr) Array<CreativeAttribute> attributes)
Blocked creative attributes.
-
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.
-
getRequest
final String getRequest()
Request payload complying with the Native Ad Specification.
-
-
-
-