Class: Google::Apis::DfareportingV5::PlacementAssignment
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV5::PlacementAssignment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v5/classes.rb,
lib/google/apis/dfareporting_v5/representations.rb,
lib/google/apis/dfareporting_v5/representations.rb
Overview
Placement Assignment.
Instance Attribute Summary collapse
-
#active ⇒ Boolean
(also: #active?)
Whether this placement assignment is active.
-
#placement_id ⇒ Fixnum
ID of the placement to be assigned.
-
#placement_id_dimension_value ⇒ Google::Apis::DfareportingV5::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.
Constructor Details
#initialize(**args) ⇒ PlacementAssignment
Returns a new instance of PlacementAssignment.
9691 9692 9693 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 9691 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
9671 9672 9673 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 9671 def active @active end |
#placement_id ⇒ Fixnum
ID of the placement to be assigned. This is a required field.
Corresponds to the JSON property placementId
9677 9678 9679 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 9677 def placement_id @placement_id end |
#placement_id_dimension_value ⇒ Google::Apis::DfareportingV5::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property placementIdDimensionValue
9682 9683 9684 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 9682 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
9688 9689 9690 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 9688 def ssl_required @ssl_required end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9696 9697 9698 9699 9700 9701 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 9696 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 |