Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesCampaignAsset

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

A link between a Campaign and an Asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesCampaignAsset

Returns a new instance of GoogleAdsSearchads360V0ResourcesCampaignAsset.



5351
5352
5353
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5351

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

Instance Attribute Details

#assetString

Immutable. The asset which is linked to the campaign. Corresponds to the JSON property asset

Returns:

  • (String)


5332
5333
5334
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5332

def asset
  @asset
end

#campaignString

Immutable. The campaign to which the asset is linked. Corresponds to the JSON property campaign

Returns:

  • (String)


5337
5338
5339
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5337

def campaign
  @campaign
end

#resource_nameString

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`

Returns:

  • (String)


5344
5345
5346
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5344

def resource_name
  @resource_name
end

#statusString

Output only. Status of the campaign asset. Corresponds to the JSON property status

Returns:

  • (String)


5349
5350
5351
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5349

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5356
5357
5358
5359
5360
5361
# File 'lib/google/apis/searchads360_v0/classes.rb', line 5356

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