All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.content.model.DatafeedTarget.html Maven / Gradle / Ivy

There is a newer version: v2.1-rev20241217-2.0.0
Show newest version






DatafeedTarget (Content API for Shopping v2.1-rev20240609-2.0.0)












com.google.api.services.content.model

Class DatafeedTarget

    • Constructor Detail

      • DatafeedTarget

        public DatafeedTarget()
    • 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