Class: Google::Apis::AdexchangesellerV1::AdUnit

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangeseller_v1/classes.rb,
generated/google/apis/adexchangeseller_v1/representations.rb,
generated/google/apis/adexchangeseller_v1/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) ⇒ AdUnit

Returns a new instance of AdUnit



145
146
147
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 145

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

Instance Attribute Details

#codeString

Identity code of this ad unit, not necessarily unique across ad clients. Corresponds to the JSON property code

Returns:

  • (String)


116
117
118
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 116

def code
  @code
end

#idString

Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. Corresponds to the JSON property id

Returns:

  • (String)


122
123
124
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 122

def id
  @id
end

#kindString

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

Returns:

  • (String)


127
128
129
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 127

def kind
  @kind
end

#nameString

Name of this ad unit. Corresponds to the JSON property name

Returns:

  • (String)


132
133
134
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 132

def name
  @name
end

#statusString

Status of this ad unit. Possible values are: NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it. ACTIVE: Indicates that there has been activity on this ad unit in the last seven days. INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days. Corresponds to the JSON property status

Returns:

  • (String)


143
144
145
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 143

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



150
151
152
153
154
155
156
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 150

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @status = args[:status] if args.key?(:status)
end