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.



35354
35355
35356
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35354

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)


35346
35347
35348
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35346

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



35352
35353
35354
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35352

def keywords
  @keywords
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



35359
35360
35361
35362
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35359

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