Class: Google::Apis::DatamanagerV1::ProductAccount

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

Overview

Represents a specific account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductAccount

Returns a new instance of ProductAccount.



2692
2693
2694
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2692

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

Instance Attribute Details

#account_idString

Required. The ID of the account. For example, your Google Ads account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


2678
2679
2680
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2678

def 
  @account_id
end

#account_typeString

Required. The type of the account. For example, GOOGLE_ADS. Either account_type or the deprecated product is required. If both are set, the values must match. Corresponds to the JSON property accountType

Returns:

  • (String)


2685
2686
2687
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2685

def 
  @account_type
end

#productString

Deprecated. Use account_type instead. Corresponds to the JSON property product

Returns:

  • (String)


2690
2691
2692
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2690

def product
  @product
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2697
2698
2699
2700
2701
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2697

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @account_type = args[:account_type] if args.key?(:account_type)
  @product = args[:product] if args.key?(:product)
end