Class: Google::Apis::DfareportingV3_0::Rule
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV3_0::Rule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v3_0/classes.rb,
generated/google/apis/dfareporting_v3_0/representations.rb,
generated/google/apis/dfareporting_v3_0/representations.rb
Overview
A rule associates an asset with a targeting template for asset-level targeting. Applicable to INSTREAM_VIDEO creatives.
Instance Attribute Summary collapse
-
#asset_id ⇒ Fixnum
A creativeAssets[].id.
-
#name ⇒ String
A user-friendly name for this rule.
-
#targeting_template_id ⇒ Fixnum
A targeting template ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Rule
constructor
A new instance of Rule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Rule
Returns a new instance of Rule
10549 10550 10551 |
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10549 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset_id ⇒ Fixnum
A creativeAssets[].id. This should refer to one of the parent assets in this
creative. This is a required field.
Corresponds to the JSON property assetId
10535 10536 10537 |
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10535 def asset_id @asset_id end |
#name ⇒ String
A user-friendly name for this rule. This is a required field.
Corresponds to the JSON property name
10540 10541 10542 |
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10540 def name @name end |
#targeting_template_id ⇒ Fixnum
A targeting template ID. The targeting from the targeting template will be
used to determine whether this asset should be served. This is a required
field.
Corresponds to the JSON property targetingTemplateId
10547 10548 10549 |
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10547 def targeting_template_id @targeting_template_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10554 10555 10556 10557 10558 |
# File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 10554 def update!(**args) @asset_id = args[:asset_id] if args.key?(:asset_id) @name = args[:name] if args.key?(:name) @targeting_template_id = args[:targeting_template_id] if args.key?(:targeting_template_id) end |