Class: Google::Apis::DfareportingV3_1::CreativeAssetSelection
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV3_1::CreativeAssetSelection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v3_1/classes.rb,
generated/google/apis/dfareporting_v3_1/representations.rb,
generated/google/apis/dfareporting_v3_1/representations.rb
Overview
Encapsulates the list of rules for asset selection and a default asset in case none of the rules match. Applicable to INSTREAM_VIDEO creatives.
Instance Attribute Summary collapse
-
#default_asset_id ⇒ Fixnum
A creativeAssets[].id.
-
#rules ⇒ Array<Google::Apis::DfareportingV3_1::Rule>
Rules determine which asset will be served to a viewer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreativeAssetSelection
constructor
A new instance of CreativeAssetSelection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreativeAssetSelection
Returns a new instance of CreativeAssetSelection
3808 3809 3810 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 3808 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_asset_id ⇒ Fixnum
A creativeAssets[].id. This should refer to one of the parent assets in this
creative, and will be served if none of the rules match. This is a required
field.
Corresponds to the JSON property defaultAssetId
3799 3800 3801 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 3799 def default_asset_id @default_asset_id end |
#rules ⇒ Array<Google::Apis::DfareportingV3_1::Rule>
Rules determine which asset will be served to a viewer. Rules will be
evaluated in the order in which they are stored in this list. This list must
contain at least one rule. Applicable to INSTREAM_VIDEO creatives.
Corresponds to the JSON property rules
3806 3807 3808 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 3806 def rules @rules end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3813 3814 3815 3816 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 3813 def update!(**args) @default_asset_id = args[:default_asset_id] if args.key?(:default_asset_id) @rules = args[:rules] if args.key?(:rules) end |