Class: Google::Apis::DfareportingV2_1::PlacementAssignment
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_1::PlacementAssignment
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/dfareporting_v2_1/classes.rb,
generated/google/apis/dfareporting_v2_1/representations.rb,
generated/google/apis/dfareporting_v2_1/representations.rb
Overview
Placement Assignment.
Instance Attribute Summary collapse
-
#active ⇒ Boolean
(also: #active?)
Whether this placement assignment is active.
-
#placement_id ⇒ String
ID of the placement to be assigned.
-
#placement_id_dimension_value ⇒ Google::Apis::DfareportingV2_1::DimensionValue
Represents a DimensionValue resource.
-
#ssl_required ⇒ Boolean
(also: #ssl_required?)
Whether the placement to be assigned requires SSL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlacementAssignment
constructor
A new instance of PlacementAssignment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PlacementAssignment
Returns a new instance of PlacementAssignment.
7465 7466 7467 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 7465 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active ⇒ Boolean 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
7445 7446 7447 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 7445 def active @active end |
#placement_id ⇒ String
ID of the placement to be assigned. This is a required field.
Corresponds to the JSON property placementId
7451 7452 7453 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 7451 def placement_id @placement_id end |
#placement_id_dimension_value ⇒ Google::Apis::DfareportingV2_1::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property placementIdDimensionValue
7456 7457 7458 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 7456 def placement_id_dimension_value @placement_id_dimension_value end |
#ssl_required ⇒ Boolean 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
7462 7463 7464 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 7462 def ssl_required @ssl_required end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7470 7471 7472 7473 7474 7475 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 7470 def update!(**args) @active = args[:active] unless args[:active].nil? @placement_id = args[:placement_id] unless args[:placement_id].nil? @placement_id_dimension_value = args[:placement_id_dimension_value] unless args[:placement_id_dimension_value].nil? @ssl_required = args[:ssl_required] unless args[:ssl_required].nil? end |