Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonCustomAffinityInfo

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

Overview

A custom affinity criterion. A criterion of this type is only targetable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonCustomAffinityInfo

Returns a new instance of GoogleAdsSearchads360V23CommonCustomAffinityInfo.



3209
3210
3211
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3209

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

Instance Attribute Details

#custom_affinityString

The CustomInterest resource name. Corresponds to the JSON property customAffinity

Returns:

  • (String)


3207
3208
3209
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3207

def custom_affinity
  @custom_affinity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3214
3215
3216
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3214

def update!(**args)
  @custom_affinity = args[:custom_affinity] if args.key?(:custom_affinity)
end