Class: Google::Apis::DatamanagerV1::ProductAccount
- Inherits:
-
Object
- Object
- Google::Apis::DatamanagerV1::ProductAccount
- 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
-
#account_id ⇒ String
Required.
-
#account_type ⇒ String
Optional.
-
#product ⇒ String
Deprecated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductAccount
constructor
A new instance of ProductAccount.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
Required. The ID of the account. For example, your Google Ads account ID.
Corresponds to the JSON property accountId
1693 1694 1695 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1693 def account_id @account_id end |
#account_type ⇒ String
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
1700 1701 1702 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1700 def account_type @account_type end |
#product ⇒ String
Deprecated. Use account_type instead.
Corresponds to the JSON property product
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 |