Class: Google::Apis::AdexchangebuyerV1_4::TargetingValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangebuyer_v1_4/classes.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TargetingValue

Returns a new instance of TargetingValue



3459
3460
3461
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3459

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#creative_size_valueGoogle::Apis::AdexchangebuyerV1_4::TargetingValueCreativeSize

Next Id: 7 Corresponds to the JSON property creativeSizeValue



3431
3432
3433
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3431

def creative_size_value
  @creative_size_value
end

#day_part_targeting_valueGoogle::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargeting

The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. Corresponds to the JSON property dayPartTargetingValue



3437
3438
3439
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3437

def day_part_targeting_value
  @day_part_targeting_value
end

#demog_age_criteria_valueGoogle::Apis::AdexchangebuyerV1_4::TargetingValueDemogAgeCriteria

Corresponds to the JSON property demogAgeCriteriaValue



3442
3443
3444
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3442

def demog_age_criteria_value
  @demog_age_criteria_value
end

#demog_gender_criteria_valueGoogle::Apis::AdexchangebuyerV1_4::TargetingValueDemogGenderCriteria

Corresponds to the JSON property demogGenderCriteriaValue



3447
3448
3449
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3447

def demog_gender_criteria_value
  @demog_gender_criteria_value
end

#long_valueFixnum

The long value to exclude/include. Corresponds to the JSON property longValue

Returns:

  • (Fixnum)


3452
3453
3454
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3452

def long_value
  @long_value
end

#string_valueString

The string value to exclude/include. Corresponds to the JSON property stringValue

Returns:

  • (String)


3457
3458
3459
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3457

def string_value
  @string_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3464
3465
3466
3467
3468
3469
3470
3471
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3464

def update!(**args)
  @creative_size_value = args[:creative_size_value] if args.key?(:creative_size_value)
  @day_part_targeting_value = args[:day_part_targeting_value] if args.key?(:day_part_targeting_value)
  @demog_age_criteria_value = args[:demog_age_criteria_value] if args.key?(:demog_age_criteria_value)
  @demog_gender_criteria_value = args[:demog_gender_criteria_value] if args.key?(:demog_gender_criteria_value)
  @long_value = args[:long_value] if args.key?(:long_value)
  @string_value = args[:string_value] if args.key?(:string_value)
end