Class: Google::Apis::AuthorizedbuyersmarketplaceV1::RtbMetrics

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/representations.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/representations.rb

Overview

Real-time bidding metrics. For what each metric means refer to Report metrics

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RtbMetrics

Returns a new instance of RtbMetrics.



1973
1974
1975
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1973

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

Instance Attribute Details

#ad_impressions7_daysFixnum

Ad impressions in last 7 days. Corresponds to the JSON property adImpressions7Days

Returns:

  • (Fixnum)


1946
1947
1948
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1946

def ad_impressions7_days
  @ad_impressions7_days
end

#bid_rate7_daysFloat

Bid rate in last 7 days, calculated by (bids / bid requests). Corresponds to the JSON property bidRate7Days

Returns:

  • (Float)


1951
1952
1953
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1951

def bid_rate7_days
  @bid_rate7_days
end

#bid_requests7_daysFixnum

Bid requests in last 7 days. Corresponds to the JSON property bidRequests7Days

Returns:

  • (Fixnum)


1956
1957
1958
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1956

def bid_requests7_days
  @bid_requests7_days
end

#bids7_daysFixnum

Bids in last 7 days. Corresponds to the JSON property bids7Days

Returns:

  • (Fixnum)


1961
1962
1963
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1961

def bids7_days
  @bids7_days
end

#filtered_bid_rate7_daysFloat

Filtered bid rate in last 7 days, calculated by (filtered bids / bids). Corresponds to the JSON property filteredBidRate7Days

Returns:

  • (Float)


1966
1967
1968
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1966

def filtered_bid_rate7_days
  @filtered_bid_rate7_days
end

#must_bid_rate_current_monthFloat

Must bid rate for current month. Corresponds to the JSON property mustBidRateCurrentMonth

Returns:

  • (Float)


1971
1972
1973
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1971

def must_bid_rate_current_month
  @must_bid_rate_current_month
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1978
1979
1980
1981
1982
1983
1984
1985
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1978

def update!(**args)
  @ad_impressions7_days = args[:ad_impressions7_days] if args.key?(:ad_impressions7_days)
  @bid_rate7_days = args[:bid_rate7_days] if args.key?(:bid_rate7_days)
  @bid_requests7_days = args[:bid_requests7_days] if args.key?(:bid_requests7_days)
  @bids7_days = args[:bids7_days] if args.key?(:bids7_days)
  @filtered_bid_rate7_days = args[:filtered_bid_rate7_days] if args.key?(:filtered_bid_rate7_days)
  @must_bid_rate_current_month = args[:must_bid_rate_current_month] if args.key?(:must_bid_rate_current_month)
end