class Google::Apis::DfareportingV3_5::CreativeAssetSelection
Encapsulates the list of rules for asset selection and a default asset in case none of the rules match. Applicable to INSTREAM_VIDEO creatives.
Attributes
default_asset_id[RW]
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` @return [Fixnum]
rules[RW]
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` @return [Array<Google::Apis::DfareportingV3_5::Rule>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/dfareporting_v3_5/classes.rb, line 3881 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/dfareporting_v3_5/classes.rb, line 3886 def update!(**args) @default_asset_id = args[:default_asset_id] if args.key?(:default_asset_id) @rules = args[:rules] if args.key?(:rules) end