Class: Google::Apis::DfareportingV4::PlacementAssignment

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

Overview

Placement Assignment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PlacementAssignment

Returns a new instance of PlacementAssignment.



10214
10215
10216
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10214

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)


10194
10195
10196
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10194

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)


10200
10201
10202
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10200

def placement_id
  @placement_id
end

#placement_id_dimension_valueGoogle::Apis::DfareportingV4::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property placementIdDimensionValue



10205
10206
10207
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10205

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)


10211
10212
10213
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10211

def ssl_required
  @ssl_required
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10219
10220
10221
10222
10223
10224
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10219

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