target.apidocs.com.google.api.services.content.model.DatafeedTarget.html Maven / Gradle / Ivy
DatafeedTarget (Content API for Shopping v2.1-rev20240609-2.0.0)
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 com.google.api.client.json.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
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
DatafeedTarget()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
DatafeedTarget
clone()
String
getCountry()
Deprecated.
List<String>
getExcludedDestinations()
The list of [destinations to exclude](//support.google.com/merchants/answer/6324486) for this
target (corresponds to cleared check boxes in Merchant Center).
String
getFeedLabel()
Feed label for the DatafeedTarget.
List<String>
getIncludedDestinations()
The list of [destinations to include](//support.google.com/merchants/answer/7501026) 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.
List<String>
getTargetCountries()
The countries where the items may be displayed.
DatafeedTarget
set(String fieldName,
Object value)
DatafeedTarget
setCountry(String country)
Deprecated.
DatafeedTarget
setExcludedDestinations(List<String> excludedDestinations)
The list of [destinations to exclude](//support.google.com/merchants/answer/6324486) for this
target (corresponds to cleared check boxes in Merchant Center).
DatafeedTarget
setFeedLabel(String feedLabel)
Feed label for the DatafeedTarget.
DatafeedTarget
setIncludedDestinations(List<String> includedDestinations)
The list of [destinations to include](//support.google.com/merchants/answer/7501026) 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.
DatafeedTarget
setTargetCountries(List<String> targetCountries)
The countries where the items may be displayed.
-
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()
Deprecated. Use `feedLabel` instead. 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)
Deprecated. Use `feedLabel` instead. 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](//support.google.com/merchants/answer/6324486) for this
target (corresponds to cleared check boxes in Merchant Center). Products that are excluded from
all destinations for more than 7 days are automatically deleted.
- Returns:
- value or
null
for none
-
setExcludedDestinations
public DatafeedTarget setExcludedDestinations(List<String> excludedDestinations)
The list of [destinations to exclude](//support.google.com/merchants/answer/6324486) for this
target (corresponds to cleared check boxes in Merchant Center). Products that are excluded from
all destinations for more than 7 days are automatically deleted.
- Parameters:
excludedDestinations
- excludedDestinations or null
for none
-
getFeedLabel
public String getFeedLabel()
Feed label for the DatafeedTarget. Either `country` or `feedLabel` is required. If both
`feedLabel` and `country` is specified, the values must match. Must be less than or equal to 20
uppercase letters (A-Z), numbers (0-9), and dashes (-).
- Returns:
- value or
null
for none
-
setFeedLabel
public DatafeedTarget setFeedLabel(String feedLabel)
Feed label for the DatafeedTarget. Either `country` or `feedLabel` is required. If both
`feedLabel` and `country` is specified, the values must match. Must be less than or equal to 20
uppercase letters (A-Z), numbers (0-9), and dashes (-).
- Parameters:
feedLabel
- feedLabel or null
for none
-
getIncludedDestinations
public List<String> getIncludedDestinations()
The list of [destinations to include](//support.google.com/merchants/answer/7501026) for this
target (corresponds to checked check boxes in Merchant Center). Default destinations are always
included unless provided in `excludedDestinations`.
- Returns:
- value or
null
for none
-
setIncludedDestinations
public DatafeedTarget setIncludedDestinations(List<String> includedDestinations)
The list of [destinations to include](//support.google.com/merchants/answer/7501026) for this
target (corresponds to checked check boxes in Merchant Center). Default destinations are always
included unless provided in `excludedDestinations`.
- 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
-
getTargetCountries
public List<String> getTargetCountries()
The countries where the items may be displayed. Represented as a CLDR territory code. Will be
ignored for "product inventory" feeds.
- Returns:
- value or
null
for none
-
setTargetCountries
public DatafeedTarget setTargetCountries(List<String> targetCountries)
The countries where the items may be displayed. Represented as a CLDR territory code. Will be
ignored for "product inventory" feeds.
- Parameters:
targetCountries
- targetCountries or null
for none
-
set
public DatafeedTarget set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public DatafeedTarget clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy