Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesCampaignAsset
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesCampaignAsset
- 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
A link between a Campaign and an Asset.
Instance Attribute Summary collapse
-
#asset ⇒ String
Immutable.
-
#campaign ⇒ String
Immutable.
-
#resource_name ⇒ String
Immutable.
-
#status ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesCampaignAsset
constructor
A new instance of GoogleAdsSearchads360V0ResourcesCampaignAsset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesCampaignAsset
Returns a new instance of GoogleAdsSearchads360V0ResourcesCampaignAsset.
5672 5673 5674 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5672 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset ⇒ String
Immutable. The asset which is linked to the campaign.
Corresponds to the JSON property asset
5653 5654 5655 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5653 def asset @asset end |
#campaign ⇒ String
Immutable. The campaign to which the asset is linked.
Corresponds to the JSON property campaign
5658 5659 5660 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5658 def campaign @campaign end |
#resource_name ⇒ String
Immutable. The resource name of the campaign asset. CampaignAsset resource
names have the form: customers/customer_id/campaignAssets/campaign_id~
asset_id~field_type`
Corresponds to the JSON propertyresourceName`
5665 5666 5667 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5665 def resource_name @resource_name end |
#status ⇒ String
Output only. Status of the campaign asset.
Corresponds to the JSON property status
5670 5671 5672 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5670 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5677 5678 5679 5680 5681 5682 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5677 def update!(**args) @asset = args[:asset] if args.key?(:asset) @campaign = args[:campaign] if args.key?(:campaign) @resource_name = args[:resource_name] if args.key?(:resource_name) @status = args[:status] if args.key?(:status) end |