Class: Google::Apis::ContentV2_1::ReportRow
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReportRow
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Result row returned from the search query.
Instance Attribute Summary collapse
-
#best_sellers ⇒ Google::Apis::ContentV2_1::BestSellers
Fields related to the Best sellers reports.
-
#brand ⇒ Google::Apis::ContentV2_1::Brand
Brand fields.
-
#competitive_visibility ⇒ Google::Apis::ContentV2_1::CompetitiveVisibility
Fields related to competitive visibility reports.
-
#metrics ⇒ Google::Apis::ContentV2_1::Metrics
Performance metrics.
-
#price_competitiveness ⇒ Google::Apis::ContentV2_1::PriceCompetitiveness
Price competitiveness fields requested by the merchant in the query.
-
#price_insights ⇒ Google::Apis::ContentV2_1::PriceInsights
Price insights fields requested by the merchant in the query.
-
#product_cluster ⇒ Google::Apis::ContentV2_1::ProductCluster
Product cluster fields.
-
#product_view ⇒ Google::Apis::ContentV2_1::ProductView
Product fields.
-
#segments ⇒ Google::Apis::ContentV2_1::Segments
Dimensions according to which metrics are segmented in the response.
-
#topic_trends ⇒ Google::Apis::ContentV2_1::TopicTrends
Topic trends fields requested by the merchant in the query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReportRow
constructor
A new instance of ReportRow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReportRow
Returns a new instance of ReportRow.
12182 12183 12184 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12182 def initialize(**args) update!(**args) end |
Instance Attribute Details
#best_sellers ⇒ Google::Apis::ContentV2_1::BestSellers
Fields related to the Best sellers reports.
Corresponds to the JSON property bestSellers
12111 12112 12113 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12111 def best_sellers @best_sellers end |
#brand ⇒ Google::Apis::ContentV2_1::Brand
Brand fields. Values are only set for fields requested explicitly in the
request's search query.
Corresponds to the JSON property brand
12117 12118 12119 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12117 def brand @brand end |
#competitive_visibility ⇒ Google::Apis::ContentV2_1::CompetitiveVisibility
Fields related to competitive visibility reports.
Corresponds to the JSON property competitiveVisibility
12123 12124 12125 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12123 def competitive_visibility @competitive_visibility end |
#metrics ⇒ Google::Apis::ContentV2_1::Metrics
Performance metrics. Values are only set for metrics requested explicitly in
the request's search query.
Corresponds to the JSON property metrics
12129 12130 12131 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12129 def metrics @metrics end |
#price_competitiveness ⇒ Google::Apis::ContentV2_1::PriceCompetitiveness
Price competitiveness fields requested by the merchant in the query. Field
values are only set if the merchant queries PriceCompetitivenessProductView
.
https://support.google.com/merchants/answer/9626903
Corresponds to the JSON property priceCompetitiveness
12136 12137 12138 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12136 def price_competitiveness @price_competitiveness end |
#price_insights ⇒ Google::Apis::ContentV2_1::PriceInsights
Price insights fields requested by the merchant in the query. Field values are
only set if the merchant queries PriceInsightsProductView
. https://support.
google.com/merchants/answer/11916926
Corresponds to the JSON property priceInsights
12143 12144 12145 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12143 def price_insights @price_insights end |
#product_cluster ⇒ Google::Apis::ContentV2_1::ProductCluster
Product cluster fields. A product cluster is a grouping for different offers
that represent the same product. Values are only set for fields requested
explicitly in the request's search query.
Corresponds to the JSON property productCluster
12150 12151 12152 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12150 def product_cluster @product_cluster end |
#product_view ⇒ Google::Apis::ContentV2_1::ProductView
Product fields. Values are only set for fields requested explicitly in the
request's search query.
Corresponds to the JSON property productView
12156 12157 12158 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12156 def product_view @product_view end |
#segments ⇒ Google::Apis::ContentV2_1::Segments
Dimensions according to which metrics are segmented in the response. Values of
product dimensions, such as offer_id
, reflect the state of a product at the
time of the corresponding event, for example, impression or order. Segment
fields cannot be selected in queries without also selecting at least one
metric field. Values are only set for dimensions requested explicitly in the
request's search query.
Corresponds to the JSON property segments
12166 12167 12168 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12166 def segments @segments end |
#topic_trends ⇒ Google::Apis::ContentV2_1::TopicTrends
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.
Corresponds to the JSON property topicTrends
12180 12181 12182 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12180 def topic_trends @topic_trends end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12187 def update!(**args) @best_sellers = args[:best_sellers] if args.key?(:best_sellers) @brand = args[:brand] if args.key?(:brand) @competitive_visibility = args[:competitive_visibility] if args.key?(:competitive_visibility) @metrics = args[:metrics] if args.key?(:metrics) @price_competitiveness = args[:price_competitiveness] if args.key?(:price_competitiveness) @price_insights = args[:price_insights] if args.key?(:price_insights) @product_cluster = args[:product_cluster] if args.key?(:product_cluster) @product_view = args[:product_view] if args.key?(:product_view) @segments = args[:segments] if args.key?(:segments) @topic_trends = args[:topic_trends] if args.key?(:topic_trends) end |