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

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

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






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












com.google.api.services.content.model

Class TopicTrends

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class TopicTrends
    extends com.google.api.client.json.GenericJson
    Topic trends fields requested by the merchant in the query. Field values are only set if the merchant queries `TopicTrendsView`. Forecast data can be queried up to 13 weeks by passing a future date in the `date` field. Historical data is measured daily, and forecasted data is projected weekly. All data points are normalized based on the highest data points returned in the response. If you make separate queries with different date ranges, you might see different values for the same date in each response. The recommended way to get a trend score of a topic is `last7_days_search_interest / last{$day}_days_search_interest - 1`. You can view trends for up to eight topics at a time.

    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.
    • Constructor Detail

      • TopicTrends

        public TopicTrends()
    • Method Detail

      • getCustomerCountryCode

        public String getCustomerCountryCode()
        Country trends are calculated for. Must be a two-letter country code (ISO 3166-1-alpha-2 code), for example, `“US”`.
        Returns:
        value or null for none
      • setCustomerCountryCode

        public TopicTrends setCustomerCountryCode(String customerCountryCode)
        Country trends are calculated for. Must be a two-letter country code (ISO 3166-1-alpha-2 code), for example, `“US”`.
        Parameters:
        customerCountryCode - customerCountryCode or null for none
      • getDate

        public Date getDate()
        Date the trend score was retrieved.
        Returns:
        value or null for none
      • setDate

        public TopicTrends setDate(Date date)
        Date the trend score was retrieved.
        Parameters:
        date - date or null for none
      • getLast120DaysSearchInterest

        public Double getLast120DaysSearchInterest()
        Search interest in the last 120 days, with the same normalization as search_interest. This field is only present for a past date.
        Returns:
        value or null for none
      • setLast120DaysSearchInterest

        public TopicTrends setLast120DaysSearchInterest(Double last120DaysSearchInterest)
        Search interest in the last 120 days, with the same normalization as search_interest. This field is only present for a past date.
        Parameters:
        last120DaysSearchInterest - last120DaysSearchInterest or null for none
      • getLast30DaysSearchInterest

        public Double getLast30DaysSearchInterest()
        Search interest in the last 30 days, with the same normalization as search_interest. This field is only present for a past date.
        Returns:
        value or null for none
      • setLast30DaysSearchInterest

        public TopicTrends setLast30DaysSearchInterest(Double last30DaysSearchInterest)
        Search interest in the last 30 days, with the same normalization as search_interest. This field is only present for a past date.
        Parameters:
        last30DaysSearchInterest - last30DaysSearchInterest or null for none
      • getLast7DaysSearchInterest

        public Double getLast7DaysSearchInterest()
        Search interest in the last 7 days, with the same normalization as search_interest. This field is only present for a past date.
        Returns:
        value or null for none
      • setLast7DaysSearchInterest

        public TopicTrends setLast7DaysSearchInterest(Double last7DaysSearchInterest)
        Search interest in the last 7 days, with the same normalization as search_interest. This field is only present for a past date.
        Parameters:
        last7DaysSearchInterest - last7DaysSearchInterest or null for none
      • getLast90DaysSearchInterest

        public Double getLast90DaysSearchInterest()
        Search interest in the last 90 days, with the same normalization as search_interest. This field is only present for a past date.
        Returns:
        value or null for none
      • setLast90DaysSearchInterest

        public TopicTrends setLast90DaysSearchInterest(Double last90DaysSearchInterest)
        Search interest in the last 90 days, with the same normalization as search_interest. This field is only present for a past date.
        Parameters:
        last90DaysSearchInterest - last90DaysSearchInterest or null for none
      • getNext7DaysSearchInterest

        public Double getNext7DaysSearchInterest()
        Estimated search interest in the next 7 days, with the same normalization as search_interest. This field is only present for a future date.
        Returns:
        value or null for none
      • setNext7DaysSearchInterest

        public TopicTrends setNext7DaysSearchInterest(Double next7DaysSearchInterest)
        Estimated search interest in the next 7 days, with the same normalization as search_interest. This field is only present for a future date.
        Parameters:
        next7DaysSearchInterest - next7DaysSearchInterest or null for none
      • getSearchInterest

        public Double getSearchInterest()
        Daily search interest, normalized to the time and country to make comparisons easier, with 100 representing peak popularity (from 0 to 100) for the requested time period and location.
        Returns:
        value or null for none
      • setSearchInterest

        public TopicTrends setSearchInterest(Double searchInterest)
        Daily search interest, normalized to the time and country to make comparisons easier, with 100 representing peak popularity (from 0 to 100) for the requested time period and location.
        Parameters:
        searchInterest - searchInterest or null for none
      • getTopic

        public String getTopic()
        Google-provided topic trends are calculated for. Only top eight topics are returned. Topic is what shoppers are searching for on Google, grouped by the same concept.
        Returns:
        value or null for none
      • setTopic

        public TopicTrends setTopic(String topic)
        Google-provided topic trends are calculated for. Only top eight topics are returned. Topic is what shoppers are searching for on Google, grouped by the same concept.
        Parameters:
        topic - topic or null for none
      • set

        public TopicTrends set(String fieldName,
                               Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public TopicTrends 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