public final class NativeContent extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Ad Exchange Buyer API II. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
NativeContent() |
| Modifier and Type | Method and Description |
|---|---|
NativeContent |
clone() |
String |
getAdvertiserName()
The name of the advertiser or sponsor, to be displayed in the ad creative.
|
Image |
getAppIcon()
The app icon, for app download ads.
|
String |
getBody()
A long description of the ad.
|
String |
getCallToAction()
A label for the button that the user is supposed to click.
|
String |
getClickLinkUrl()
The URL that the browser/SDK will load when the user clicks the ad.
|
String |
getClickTrackingUrl()
The URL to use for click tracking.
|
String |
getHeadline()
A short title for the ad.
|
Image |
getImage()
A large image.
|
Image |
getLogo()
A smaller image, for the advertiser's logo.
|
String |
getPriceDisplayText()
The price of the promoted app including currency info.
|
Double |
getStarRating()
The app rating in the app store.
|
String |
getStoreUrl()
The URL to the app store to purchase/download the promoted app.
|
String |
getVideoUrl()
The URL to fetch a native video ad.
|
NativeContent |
set(String fieldName,
Object value) |
NativeContent |
setAdvertiserName(String advertiserName)
The name of the advertiser or sponsor, to be displayed in the ad creative.
|
NativeContent |
setAppIcon(Image appIcon)
The app icon, for app download ads.
|
NativeContent |
setBody(String body)
A long description of the ad.
|
NativeContent |
setCallToAction(String callToAction)
A label for the button that the user is supposed to click.
|
NativeContent |
setClickLinkUrl(String clickLinkUrl)
The URL that the browser/SDK will load when the user clicks the ad.
|
NativeContent |
setClickTrackingUrl(String clickTrackingUrl)
The URL to use for click tracking.
|
NativeContent |
setHeadline(String headline)
A short title for the ad.
|
NativeContent |
setImage(Image image)
A large image.
|
NativeContent |
setLogo(Image logo)
A smaller image, for the advertiser's logo.
|
NativeContent |
setPriceDisplayText(String priceDisplayText)
The price of the promoted app including currency info.
|
NativeContent |
setStarRating(Double starRating)
The app rating in the app store.
|
NativeContent |
setStoreUrl(String storeUrl)
The URL to the app store to purchase/download the promoted app.
|
NativeContent |
setVideoUrl(String videoUrl)
The URL to fetch a native video ad.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAdvertiserName()
null for nonepublic NativeContent setAdvertiserName(String advertiserName)
advertiserName - advertiserName or null for nonepublic Image getAppIcon()
null for nonepublic NativeContent setAppIcon(Image appIcon)
appIcon - appIcon or null for nonepublic String getBody()
null for nonepublic NativeContent setBody(String body)
body - body or null for nonepublic String getCallToAction()
null for nonepublic NativeContent setCallToAction(String callToAction)
callToAction - callToAction or null for nonepublic String getClickLinkUrl()
null for nonepublic NativeContent setClickLinkUrl(String clickLinkUrl)
clickLinkUrl - clickLinkUrl or null for nonepublic String getClickTrackingUrl()
null for nonepublic NativeContent setClickTrackingUrl(String clickTrackingUrl)
clickTrackingUrl - clickTrackingUrl or null for nonepublic String getHeadline()
null for nonepublic NativeContent setHeadline(String headline)
headline - headline or null for nonepublic Image getImage()
null for nonepublic NativeContent setImage(Image image)
image - image or null for nonepublic Image getLogo()
null for nonepublic NativeContent setLogo(Image logo)
logo - logo or null for nonepublic String getPriceDisplayText()
null for nonepublic NativeContent setPriceDisplayText(String priceDisplayText)
priceDisplayText - priceDisplayText or null for nonepublic Double getStarRating()
null for nonepublic NativeContent setStarRating(Double starRating)
starRating - starRating or null for nonepublic String getStoreUrl()
null for nonepublic NativeContent setStoreUrl(String storeUrl)
storeUrl - storeUrl or null for nonepublic String getVideoUrl()
null for nonepublic NativeContent setVideoUrl(String videoUrl)
videoUrl - videoUrl or null for nonepublic NativeContent set(String fieldName, Object value)
set in class GenericJsonpublic NativeContent clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.