Class: Google::Apis::DfareportingV2_7::PlacementAssignment

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

Overview

Placement Assignment.

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

Returns a new instance of PlacementAssignment



8203
8204
8205
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 8203

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

Instance Attribute Details

#activeBoolean Also known as: active?

Whether this placement assignment is active. When true, the placement will be included in the ad's rotation. Corresponds to the JSON property active

Returns:

  • (Boolean)


8183
8184
8185
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 8183

def active
  @active
end

#placement_idFixnum

ID of the placement to be assigned. This is a required field. Corresponds to the JSON property placementId

Returns:

  • (Fixnum)


8189
8190
8191
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 8189

def placement_id
  @placement_id
end

#placement_id_dimension_valueGoogle::Apis::DfareportingV2_7::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property placementIdDimensionValue



8194
8195
8196
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 8194

def placement_id_dimension_value
  @placement_id_dimension_value
end

#ssl_requiredBoolean Also known as: ssl_required?

Whether the placement to be assigned requires SSL. This is a read-only field that is auto-generated when the ad is inserted or updated. Corresponds to the JSON property sslRequired

Returns:

  • (Boolean)


8200
8201
8202
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 8200

def ssl_required
  @ssl_required
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8208
8209
8210
8211
8212
8213
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 8208

def update!(**args)
  @active = args[:active] if args.key?(:active)
  @placement_id = args[:placement_id] if args.key?(:placement_id)
  @placement_id_dimension_value = args[:placement_id_dimension_value] if args.key?(:placement_id_dimension_value)
  @ssl_required = args[:ssl_required] if args.key?(:ssl_required)
end