Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesGenerateRecommendationsRequestAdGroupInfo

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

Current AdGroup Information of the campaign.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesGenerateRecommendationsRequestAdGroupInfo

Returns a new instance of GoogleAdsSearchads360V23ServicesGenerateRecommendationsRequestAdGroupInfo.



35489
35490
35491
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35489

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

Instance Attribute Details

#ad_group_typeString

Optional. AdGroup Type of the AdGroup. This field is necessary for the following recommendation_types if ad_group_info is set: KEYWORD Corresponds to the JSON property adGroupType

Returns:

  • (String)


35481
35482
35483
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35481

def ad_group_type
  @ad_group_type
end

#keywordsArray<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonKeywordInfo>

Optional. Current keywords. This field is optional for the following recommendation_types if ad_group_info is set: KEYWORD Corresponds to the JSON property keywords



35487
35488
35489
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35487

def keywords
  @keywords
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



35494
35495
35496
35497
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35494

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