Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesCustomerAsset

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 customer and an asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesCustomerAsset

Returns a new instance of GoogleAdsSearchads360V0ResourcesCustomerAsset.



4813
4814
4815
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4813

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

Instance Attribute Details

#assetString

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

Returns:

  • (String)


4799
4800
4801
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4799

def asset
  @asset
end

#resource_nameString

Immutable. The resource name of the customer asset. CustomerAsset resource names have the form: customers/customer_id/customerAssets/asset_id~ field_type` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


4806
4807
4808
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4806

def resource_name
  @resource_name
end

#statusString

Status of the customer asset. Corresponds to the JSON property status

Returns:

  • (String)


4811
4812
4813
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4811

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4818
4819
4820
4821
4822
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4818

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