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.



2492
2493
2494
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2492

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)


2478
2479
2480
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2478

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)


2485
2486
2487
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2485

def 
  @account_type
end

#productString

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

Returns:

  • (String)


2490
2491
2492
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2490

def product
  @product
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2497
2498
2499
2500
2501
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2497

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