Class: Google::Apis::ContentV2_1::PriceInsights

Inherits:
Object
  • Object
show all
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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PriceInsights

Returns a new instance of PriceInsights.



8600
8601
8602
# File 'lib/google/apis/content_v2_1/classes.rb', line 8600

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#effectivenessString

The predicted effectiveness of applying the price suggestion, bucketed. Corresponds to the JSON property effectiveness

Returns:

  • (String)


8543
8544
8545
# File 'lib/google/apis/content_v2_1/classes.rb', line 8543

def effectiveness
  @effectiveness
end

#predicted_clicks_change_fractionFloat

The predicted change in clicks as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in clicks. Corresponds to the JSON property predictedClicksChangeFraction

Returns:

  • (Float)


8550
8551
8552
# File 'lib/google/apis/content_v2_1/classes.rb', line 8550

def predicted_clicks_change_fraction
  @predicted_clicks_change_fraction
end

#predicted_conversions_change_fractionFloat

The predicted change in conversions as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in conversions). Corresponds to the JSON property predictedConversionsChangeFraction

Returns:

  • (Float)


8557
8558
8559
# File 'lib/google/apis/content_v2_1/classes.rb', line 8557

def predicted_conversions_change_fraction
  @predicted_conversions_change_fraction
end

#predicted_gross_profit_change_fractionFloat

Deprecated: This field is no longer supported and will start returning 0. The predicted change in gross profit as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in gross profit. Corresponds to the JSON property predictedGrossProfitChangeFraction

Returns:

  • (Float)


8565
8566
8567
# File 'lib/google/apis/content_v2_1/classes.rb', line 8565

def predicted_gross_profit_change_fraction
  @predicted_gross_profit_change_fraction
end

#predicted_impressions_change_fractionFloat

The predicted change in impressions as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in impressions. Corresponds to the JSON property predictedImpressionsChangeFraction

Returns:

  • (Float)


8572
8573
8574
# File 'lib/google/apis/content_v2_1/classes.rb', line 8572

def predicted_impressions_change_fraction
  @predicted_impressions_change_fraction
end

#predicted_monthly_gross_profit_change_currency_codeString

Deprecated: This field is no longer supported and will start returning USD for all requests. The predicted monthly gross profit change currency (ISO 4217 code). Corresponds to the JSON property predictedMonthlyGrossProfitChangeCurrencyCode

Returns:

  • (String)


8579
8580
8581
# File 'lib/google/apis/content_v2_1/classes.rb', line 8579

def predicted_monthly_gross_profit_change_currency_code
  @predicted_monthly_gross_profit_change_currency_code
end

#predicted_monthly_gross_profit_change_microsFixnum

Deprecated: This field is no longer supported and will start returning 0. The predicted change in gross profit in micros (1 millionth of a standard unit, 1 USD = 1000000 micros) after introducing the suggested price for a month compared to current active price. Corresponds to the JSON property predictedMonthlyGrossProfitChangeMicros

Returns:

  • (Fixnum)


8587
8588
8589
# File 'lib/google/apis/content_v2_1/classes.rb', line 8587

def predicted_monthly_gross_profit_change_micros
  @predicted_monthly_gross_profit_change_micros
end

#suggested_price_currency_codeString

The suggested price currency (ISO 4217 code). Corresponds to the JSON property suggestedPriceCurrencyCode

Returns:

  • (String)


8592
8593
8594
# File 'lib/google/apis/content_v2_1/classes.rb', line 8592

def suggested_price_currency_code
  @suggested_price_currency_code
end

#suggested_price_microsFixnum

The latest suggested price in micros (1 millionth of a standard unit, 1 USD = 1000000 micros) for the product. Corresponds to the JSON property suggestedPriceMicros

Returns:

  • (Fixnum)


8598
8599
8600
# File 'lib/google/apis/content_v2_1/classes.rb', line 8598

def suggested_price_micros
  @suggested_price_micros
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
# File 'lib/google/apis/content_v2_1/classes.rb', line 8605

def update!(**args)
  @effectiveness = args[:effectiveness] if args.key?(:effectiveness)
  @predicted_clicks_change_fraction = args[:predicted_clicks_change_fraction] if args.key?(:predicted_clicks_change_fraction)
  @predicted_conversions_change_fraction = args[:predicted_conversions_change_fraction] if args.key?(:predicted_conversions_change_fraction)
  @predicted_gross_profit_change_fraction = args[:predicted_gross_profit_change_fraction] if args.key?(:predicted_gross_profit_change_fraction)
  @predicted_impressions_change_fraction = args[:predicted_impressions_change_fraction] if args.key?(:predicted_impressions_change_fraction)
  @predicted_monthly_gross_profit_change_currency_code = args[:predicted_monthly_gross_profit_change_currency_code] if args.key?(:predicted_monthly_gross_profit_change_currency_code)
  @predicted_monthly_gross_profit_change_micros = args[:predicted_monthly_gross_profit_change_micros] if args.key?(:predicted_monthly_gross_profit_change_micros)
  @suggested_price_currency_code = args[:suggested_price_currency_code] if args.key?(:suggested_price_currency_code)
  @suggested_price_micros = args[:suggested_price_micros] if args.key?(:suggested_price_micros)
end