Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesCampaignLabel

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/representations.rb

Overview

Represents a relationship between a campaign and a label.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesCampaignLabel

Returns a new instance of GoogleAdsSearchads360V0ResourcesCampaignLabel.



5615
5616
5617
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5615

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

Instance Attribute Details

#campaignString

Immutable. The campaign to which the label is attached. Corresponds to the JSON property campaign

Returns:

  • (String)


5602
5603
5604
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5602

def campaign
  @campaign
end

#labelString

Immutable. The label assigned to the campaign. Corresponds to the JSON property label

Returns:

  • (String)


5607
5608
5609
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5607

def label
  @label
end

#resource_nameString

Immutable. Name of the resource. Campaign label resource names have the form: customers/customer_id/campaignLabels/campaign_id~label_id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


5613
5614
5615
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5613

def resource_name
  @resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5620
5621
5622
5623
5624
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5620

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