Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesAudienceCompositionSection

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 collection of related attributes of the same type in an audience composition insights report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesAudienceCompositionSection

Returns a new instance of GoogleAdsSearchads360V23ServicesAudienceCompositionSection.



37496
37497
37498
# File 'lib/google/apis/searchads360_v23/classes.rb', line 37496

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

Instance Attribute Details

#clustered_attributesArray<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesAudienceCompositionAttributeCluster>

Additional attributes for this audience, grouped into clusters. Only populated if dimension is YOUTUBE_CHANNEL. Corresponds to the JSON property clusteredAttributes



37483
37484
37485
# File 'lib/google/apis/searchads360_v23/classes.rb', line 37483

def clustered_attributes
  @clustered_attributes
end

#dimensionString

The type of the attributes in this section. Corresponds to the JSON property dimension

Returns:

  • (String)


37488
37489
37490
# File 'lib/google/apis/searchads360_v23/classes.rb', line 37488

def dimension
  @dimension
end

#top_attributesArray<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesAudienceCompositionAttribute>

The most relevant segments for this audience. If dimension is GENDER, AGE_RANGE or PARENTAL_STATUS, then this list of attributes is exhaustive. Corresponds to the JSON property topAttributes



37494
37495
37496
# File 'lib/google/apis/searchads360_v23/classes.rb', line 37494

def top_attributes
  @top_attributes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37501
37502
37503
37504
37505
# File 'lib/google/apis/searchads360_v23/classes.rb', line 37501

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