Class: Google::Apis::Adexchangebuyer2V2beta1::Reason

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

Overview

A specific filtering status and how many times it occurred.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Reason

Returns a new instance of Reason



2044
2045
2046
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2044

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

Instance Attribute Details

#countFixnum

The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange. Corresponds to the JSON property count

Returns:

  • (Fixnum)


2042
2043
2044
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2042

def count
  @count
end

#statusFixnum

The filtering status code. Please refer to the creative-status-codes.txt file for different statuses. Corresponds to the JSON property status

Returns:

  • (Fixnum)


2036
2037
2038
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2036

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2049
2050
2051
2052
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2049

def update!(**args)
  @status = args[:status] if args.key?(:status)
  @count = args[:count] if args.key?(:count)
end