target.apidocs.com.google.api.services.youtube.model.ActivityContentDetailsPromotedItem.html Maven / Gradle / Ivy
ActivityContentDetailsPromotedItem (YouTube Data API v3 v3-rev20240909-2.0.0)
com.google.api.services.youtube.model
Class ActivityContentDetailsPromotedItem
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.youtube.model.ActivityContentDetailsPromotedItem
-
public final class ActivityContentDetailsPromotedItem
extends com.google.api.client.json.GenericJson
Details about a resource which is being promoted.
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 YouTube Data API v3. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
ActivityContentDetailsPromotedItem()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ActivityContentDetailsPromotedItem
clone()
String
getAdTag()
The URL the client should fetch to request a promoted item.
String
getClickTrackingUrl()
The URL the client should ping to indicate that the user clicked through on this promoted item.
String
getCreativeViewUrl()
The URL the client should ping to indicate that the user was shown this promoted item.
String
getCtaType()
The type of call-to-action, a message to the user indicating action that can be taken.
String
getCustomCtaButtonText()
The custom call-to-action button text.
String
getDescriptionText()
The text description to accompany the promoted item.
String
getDestinationUrl()
The URL the client should direct the user to, if the user chooses to visit the advertiser's
website.
List<String>
getForecastingUrl()
The list of forecasting URLs.
List<String>
getImpressionUrl()
The list of impression URLs.
String
getVideoId()
The ID that YouTube uses to uniquely identify the promoted video.
ActivityContentDetailsPromotedItem
set(String fieldName,
Object value)
ActivityContentDetailsPromotedItem
setAdTag(String adTag)
The URL the client should fetch to request a promoted item.
ActivityContentDetailsPromotedItem
setClickTrackingUrl(String clickTrackingUrl)
The URL the client should ping to indicate that the user clicked through on this promoted item.
ActivityContentDetailsPromotedItem
setCreativeViewUrl(String creativeViewUrl)
The URL the client should ping to indicate that the user was shown this promoted item.
ActivityContentDetailsPromotedItem
setCtaType(String ctaType)
The type of call-to-action, a message to the user indicating action that can be taken.
ActivityContentDetailsPromotedItem
setCustomCtaButtonText(String customCtaButtonText)
The custom call-to-action button text.
ActivityContentDetailsPromotedItem
setDescriptionText(String descriptionText)
The text description to accompany the promoted item.
ActivityContentDetailsPromotedItem
setDestinationUrl(String destinationUrl)
The URL the client should direct the user to, if the user chooses to visit the advertiser's
website.
ActivityContentDetailsPromotedItem
setForecastingUrl(List<String> forecastingUrl)
The list of forecasting URLs.
ActivityContentDetailsPromotedItem
setImpressionUrl(List<String> impressionUrl)
The list of impression URLs.
ActivityContentDetailsPromotedItem
setVideoId(String videoId)
The ID that YouTube uses to uniquely identify the promoted video.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAdTag
public String getAdTag()
The URL the client should fetch to request a promoted item.
- Returns:
- value or
null
for none
-
setAdTag
public ActivityContentDetailsPromotedItem setAdTag(String adTag)
The URL the client should fetch to request a promoted item.
- Parameters:
adTag
- adTag or null
for none
-
getClickTrackingUrl
public String getClickTrackingUrl()
The URL the client should ping to indicate that the user clicked through on this promoted item.
- Returns:
- value or
null
for none
-
setClickTrackingUrl
public ActivityContentDetailsPromotedItem setClickTrackingUrl(String clickTrackingUrl)
The URL the client should ping to indicate that the user clicked through on this promoted item.
- Parameters:
clickTrackingUrl
- clickTrackingUrl or null
for none
-
getCreativeViewUrl
public String getCreativeViewUrl()
The URL the client should ping to indicate that the user was shown this promoted item.
- Returns:
- value or
null
for none
-
setCreativeViewUrl
public ActivityContentDetailsPromotedItem setCreativeViewUrl(String creativeViewUrl)
The URL the client should ping to indicate that the user was shown this promoted item.
- Parameters:
creativeViewUrl
- creativeViewUrl or null
for none
-
getCtaType
public String getCtaType()
The type of call-to-action, a message to the user indicating action that can be taken.
- Returns:
- value or
null
for none
-
setCtaType
public ActivityContentDetailsPromotedItem setCtaType(String ctaType)
The type of call-to-action, a message to the user indicating action that can be taken.
- Parameters:
ctaType
- ctaType or null
for none
-
getCustomCtaButtonText
public String getCustomCtaButtonText()
The custom call-to-action button text. If specified, it will override the default button text
for the cta_type.
- Returns:
- value or
null
for none
-
setCustomCtaButtonText
public ActivityContentDetailsPromotedItem setCustomCtaButtonText(String customCtaButtonText)
The custom call-to-action button text. If specified, it will override the default button text
for the cta_type.
- Parameters:
customCtaButtonText
- customCtaButtonText or null
for none
-
getDescriptionText
public String getDescriptionText()
The text description to accompany the promoted item.
- Returns:
- value or
null
for none
-
setDescriptionText
public ActivityContentDetailsPromotedItem setDescriptionText(String descriptionText)
The text description to accompany the promoted item.
- Parameters:
descriptionText
- descriptionText or null
for none
-
getDestinationUrl
public String getDestinationUrl()
The URL the client should direct the user to, if the user chooses to visit the advertiser's
website.
- Returns:
- value or
null
for none
-
setDestinationUrl
public ActivityContentDetailsPromotedItem setDestinationUrl(String destinationUrl)
The URL the client should direct the user to, if the user chooses to visit the advertiser's
website.
- Parameters:
destinationUrl
- destinationUrl or null
for none
-
getForecastingUrl
public List<String> getForecastingUrl()
The list of forecasting URLs. The client should ping all of these URLs when a promoted item is
not available, to indicate that a promoted item could have been shown.
- Returns:
- value or
null
for none
-
setForecastingUrl
public ActivityContentDetailsPromotedItem setForecastingUrl(List<String> forecastingUrl)
The list of forecasting URLs. The client should ping all of these URLs when a promoted item is
not available, to indicate that a promoted item could have been shown.
- Parameters:
forecastingUrl
- forecastingUrl or null
for none
-
getImpressionUrl
public List<String> getImpressionUrl()
The list of impression URLs. The client should ping all of these URLs to indicate that the user
was shown this promoted item.
- Returns:
- value or
null
for none
-
setImpressionUrl
public ActivityContentDetailsPromotedItem setImpressionUrl(List<String> impressionUrl)
The list of impression URLs. The client should ping all of these URLs to indicate that the user
was shown this promoted item.
- Parameters:
impressionUrl
- impressionUrl or null
for none
-
getVideoId
public String getVideoId()
The ID that YouTube uses to uniquely identify the promoted video.
- Returns:
- value or
null
for none
-
setVideoId
public ActivityContentDetailsPromotedItem setVideoId(String videoId)
The ID that YouTube uses to uniquely identify the promoted video.
- Parameters:
videoId
- videoId or null
for none
-
set
public ActivityContentDetailsPromotedItem set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ActivityContentDetailsPromotedItem clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy