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.



3149
3150
3151
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3149

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

Instance Attribute Details

#custom_affinityString

The CustomInterest resource name. Corresponds to the JSON property customAffinity

Returns:

  • (String)


3147
3148
3149
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3147

def custom_affinity
  @custom_affinity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3154
3155
3156
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3154

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