target.apidocs.com.google.api.services.content.model.DatafeedTarget.html Maven / Gradle / Ivy
DatafeedTarget (Content API for Shopping v2-rev20200902-1.30.10)
com.google.api.services.content.model
Class DatafeedTarget
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.DatafeedTarget
-
public final class DatafeedTarget
extends GenericJson
Model definition for DatafeedTarget.
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 Content API for Shopping. 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
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
DatafeedTarget()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
DatafeedTarget
clone()
String
getCountry()
The country where the items in the feed will be included in the search index, represented as a
CLDR territory code.
List<String>
getExcludedDestinations()
The list of destinations to exclude for this target (corresponds to unchecked check boxes in
Merchant Center).
List<String>
getIncludedDestinations()
The list of destinations to include for this target (corresponds to checked check boxes in
Merchant Center).
String
getLanguage()
The two-letter ISO 639-1 language of the items in the feed.
DatafeedTarget
set(String fieldName,
Object value)
DatafeedTarget
setCountry(String country)
The country where the items in the feed will be included in the search index, represented as a
CLDR territory code.
DatafeedTarget
setExcludedDestinations(List<String> excludedDestinations)
The list of destinations to exclude for this target (corresponds to unchecked check boxes in
Merchant Center).
DatafeedTarget
setIncludedDestinations(List<String> includedDestinations)
The list of destinations to include for this target (corresponds to checked check boxes in
Merchant Center).
DatafeedTarget
setLanguage(String language)
The two-letter ISO 639-1 language of the items in the feed.
-
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
-
getCountry
public String getCountry()
The country where the items in the feed will be included in the search index, represented as a
CLDR territory code.
- Returns:
- value or
null
for none
-
setCountry
public DatafeedTarget setCountry(String country)
The country where the items in the feed will be included in the search index, represented as a
CLDR territory code.
- Parameters:
country
- country or null
for none
-
getExcludedDestinations
public List<String> getExcludedDestinations()
The list of destinations to exclude for this target (corresponds to unchecked check boxes in
Merchant Center).
- Returns:
- value or
null
for none
-
setExcludedDestinations
public DatafeedTarget setExcludedDestinations(List<String> excludedDestinations)
The list of destinations to exclude for this target (corresponds to unchecked check boxes in
Merchant Center).
- Parameters:
excludedDestinations
- excludedDestinations or null
for none
-
getIncludedDestinations
public List<String> getIncludedDestinations()
The list of destinations to include for this target (corresponds to checked check boxes in
Merchant Center). Default destinations are always included unless provided in
`excludedDestinations`.
List of supported destinations (if available to the account): - DisplayAds - Shopping -
ShoppingActions - SurfacesAcrossGoogle
- Returns:
- value or
null
for none
-
setIncludedDestinations
public DatafeedTarget setIncludedDestinations(List<String> includedDestinations)
The list of destinations to include for this target (corresponds to checked check boxes in
Merchant Center). Default destinations are always included unless provided in
`excludedDestinations`.
List of supported destinations (if available to the account): - DisplayAds - Shopping -
ShoppingActions - SurfacesAcrossGoogle
- Parameters:
includedDestinations
- includedDestinations or null
for none
-
getLanguage
public String getLanguage()
The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for
`targets[].country`.
- Returns:
- value or
null
for none
-
setLanguage
public DatafeedTarget setLanguage(String language)
The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for
`targets[].country`.
- Parameters:
language
- language or null
for none
-
set
public DatafeedTarget set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public DatafeedTarget clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy