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.



1707
1708
1709
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1707

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)


1693
1694
1695
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1693

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)


1700
1701
1702
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1700

def 
  @account_type
end

#productString

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

Returns:

  • (String)


1705
1706
1707
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1705

def product
  @product
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1712
1713
1714
1715
1716
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1712

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