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
more...

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.

[View source]

1871
1872
1873
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1871

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)

1844
1845
1846
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1844

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)

1849
1850
1851
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1849

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)

1854
1855
1856
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1854

def bid_requests7_days
  @bid_requests7_days
end

#bids7_daysFixnum

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

Returns:

  • (Fixnum)

1859
1860
1861
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1859

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)

1864
1865
1866
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1864

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)

1869
1870
1871
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1869

def must_bid_rate_current_month
  @must_bid_rate_current_month
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

1876
1877
1878
1879
1880
1881
1882
1883
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1876

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