Class: Google::Apis::AdexchangesellerV2_0::AdClient

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

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) ⇒ AdClient

Returns a new instance of AdClient.



126
127
128
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 126

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

Instance Attribute Details

#arc_opt_inBoolean Also known as: arc_opt_in?

Whether this ad client is opted in to ARC. Corresponds to the JSON property arcOptIn

Returns:

  • (Boolean)


101
102
103
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 101

def arc_opt_in
  @arc_opt_in
end

#idString

Unique identifier of this ad client. Corresponds to the JSON property id

Returns:

  • (String)


107
108
109
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 107

def id
  @id
end

#kindString

Kind of resource this is, in this case adexchangeseller#adClient. Corresponds to the JSON property kind

Returns:

  • (String)


112
113
114
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 112

def kind
  @kind
end

#product_codeString

This ad client's product code, which corresponds to the PRODUCT_CODE report dimension. Corresponds to the JSON property productCode

Returns:

  • (String)


118
119
120
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 118

def product_code
  @product_code
end

#supports_reportingBoolean Also known as: supports_reporting?

Whether this ad client supports being reported on. Corresponds to the JSON property supportsReporting

Returns:

  • (Boolean)


123
124
125
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 123

def supports_reporting
  @supports_reporting
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



131
132
133
134
135
136
137
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 131

def update!(**args)
  @arc_opt_in = args[:arc_opt_in] if args.key?(:arc_opt_in)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @product_code = args[:product_code] if args.key?(:product_code)
  @supports_reporting = args[:supports_reporting] if args.key?(:supports_reporting)
end