class Google::Apis::DfareportingV3_5::Rule

A rule associates an asset with a targeting template for asset-level targeting. Applicable to INSTREAM_VIDEO creatives.

Attributes

asset_id[RW]

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` @return [Fixnum]

name[RW]

A user-friendly name for this rule. This is a required field. Corresponds to the JSON property `name` @return [String]

targeting_template_id[RW]

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` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dfareporting_v3_5/classes.rb, line 11016
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 11021
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