class Google::Apis::DfareportingV3_4::TargetingTemplate

Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.

Attributes

account_id[RW]

Account ID of this targeting template. This field, if left unset, will be auto- generated on insert and is read-only after insert. Corresponds to the JSON property `accountId` @return [Fixnum]

advertiser_id[RW]

Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert. Corresponds to the JSON property `advertiserId` @return [Fixnum]

advertiser_id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `advertiserIdDimensionValue` @return [Google::Apis::DfareportingV3_4::DimensionValue]

day_part_targeting[RW]

Day Part Targeting. Corresponds to the JSON property `dayPartTargeting` @return [Google::Apis::DfareportingV3_4::DayPartTargeting]

geo_targeting[RW]

Geographical Targeting. Corresponds to the JSON property `geoTargeting` @return [Google::Apis::DfareportingV3_4::GeoTargeting]

id[RW]

ID of this targeting template. This is a read-only, auto-generated field. Corresponds to the JSON property `id` @return [Fixnum]

key_value_targeting_expression[RW]

Key Value Targeting Expression. Corresponds to the JSON property `keyValueTargetingExpression` @return [Google::Apis::DfareportingV3_4::KeyValueTargetingExpression]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ dfareporting#targetingTemplate”. Corresponds to the JSON property `kind` @return [String]

language_targeting[RW]

Language Targeting. Corresponds to the JSON property `languageTargeting` @return [Google::Apis::DfareportingV3_4::LanguageTargeting]

list_targeting_expression[RW]

Remarketing List Targeting Expression. Corresponds to the JSON property `listTargetingExpression` @return [Google::Apis::DfareportingV3_4::ListTargetingExpression]

name[RW]

Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser. Corresponds to the JSON property `name` @return [String]

subaccount_id[RW]

Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. Corresponds to the JSON property `subaccountId` @return [Fixnum]

technology_targeting[RW]

Technology Targeting. Corresponds to the JSON property `technologyTargeting` @return [Google::Apis::DfareportingV3_4::TechnologyTargeting]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dfareporting_v3_4/classes.rb, line 12359
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_4/classes.rb, line 12364
def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value)
  @day_part_targeting = args[:day_part_targeting] if args.key?(:day_part_targeting)
  @geo_targeting = args[:geo_targeting] if args.key?(:geo_targeting)
  @id = args[:id] if args.key?(:id)
  @key_value_targeting_expression = args[:key_value_targeting_expression] if args.key?(:key_value_targeting_expression)
  @kind = args[:kind] if args.key?(:kind)
  @language_targeting = args[:language_targeting] if args.key?(:language_targeting)
  @list_targeting_expression = args[:list_targeting_expression] if args.key?(:list_targeting_expression)
  @name = args[:name] if args.key?(:name)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
  @technology_targeting = args[:technology_targeting] if args.key?(:technology_targeting)
end