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.
12191 12192 12193 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12191 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
12120 12121 12122 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12120 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
12126 12127 12128 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12126 def brand @brand end |
#competitive_visibility ⇒ Google::Apis::ContentV2_1::CompetitiveVisibility
Fields related to competitive visibility reports.
Corresponds to the JSON property competitiveVisibility
12132 12133 12134 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12132 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
12138 12139 12140 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12138 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
12145 12146 12147 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12145 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
12152 12153 12154 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12152 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
12159 12160 12161 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12159 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
12165 12166 12167 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12165 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
12175 12176 12177 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12175 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
12189 12190 12191 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12189 def topic_trends @topic_trends end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12196 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 |