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.



55049
55050
55051
# File 'lib/google/apis/searchads360_v23/classes.rb', line 55049

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)


55041
55042
55043
# File 'lib/google/apis/searchads360_v23/classes.rb', line 55041

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)


55047
55048
55049
# File 'lib/google/apis/searchads360_v23/classes.rb', line 55047

def campaign
  @campaign
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



55054
55055
55056
55057
# File 'lib/google/apis/searchads360_v23/classes.rb', line 55054

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