Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesUnusableAdGroup

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

An AdGroup/Campaign pair that could not be used as a suggestion for keywords. AdGroups may not be usable if the AdGroup * belongs to a Campaign that is not ENABLED or PAUSED * is itself not ENABLED

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesUnusableAdGroup

Returns a new instance of GoogleAdsSearchads360V23ServicesUnusableAdGroup.



55903
55904
55905
# File 'lib/google/apis/searchads360_v23/classes.rb', line 55903

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

Instance Attribute Details

#ad_groupString

The AdGroup resource name. Resource name format: customers/customer_id/ adGroups/ad_group_id` Corresponds to the JSON propertyadGroup`

Returns:

  • (String)


55895
55896
55897
# File 'lib/google/apis/searchads360_v23/classes.rb', line 55895

def ad_group
  @ad_group
end

#campaignString

The Campaign resource name. Resource name format: customers/customer_id/ campaigns/campaign_id` Corresponds to the JSON propertycampaign`

Returns:

  • (String)


55901
55902
55903
# File 'lib/google/apis/searchads360_v23/classes.rb', line 55901

def campaign
  @campaign
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



55908
55909
55910
55911
# File 'lib/google/apis/searchads360_v23/classes.rb', line 55908

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