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.



1926
1927
1928
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1926

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)


1912
1913
1914
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1912

def 
  @account_id
end

#account_typeString

Optional. 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)


1919
1920
1921
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1919

def 
  @account_type
end

#productString

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

Returns:

  • (String)


1924
1925
1926
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1924

def product
  @product
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1931
1932
1933
1934
1935
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1931

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