class Google::Apis::DfareportingV3_5::TargetingTemplate
Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.
Attributes
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 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]
Represents a DimensionValue
resource. Corresponds to the JSON property `advertiserIdDimensionValue` @return [Google::Apis::DfareportingV3_5::DimensionValue]
Day Part Targeting. Corresponds to the JSON property `dayPartTargeting` @return [Google::Apis::DfareportingV3_5::DayPartTargeting]
Geographical Targeting. Corresponds to the JSON property `geoTargeting` @return [Google::Apis::DfareportingV3_5::GeoTargeting]
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. Corresponds to the JSON property `keyValueTargetingExpression` @return [Google::Apis::DfareportingV3_5::KeyValueTargetingExpression]
Identifies what kind of resource this is. Value: the fixed string “ dfareporting#targetingTemplate”. Corresponds to the JSON property `kind` @return [String]
Language
Targeting. Corresponds to the JSON property `languageTargeting` @return [Google::Apis::DfareportingV3_5::LanguageTargeting]
Remarketing List Targeting Expression. Corresponds to the JSON property `listTargetingExpression` @return [Google::Apis::DfareportingV3_5::ListTargetingExpression]
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 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. Corresponds to the JSON property `technologyTargeting` @return [Google::Apis::DfareportingV3_5::TechnologyTargeting]
Public Class Methods
# File lib/google/apis/dfareporting_v3_5/classes.rb, line 12018 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dfareporting_v3_5/classes.rb, line 12023 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