Class: Google::Apis::ContentV2_1::AccountIdentifier

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountIdentifier

Returns a new instance of AccountIdentifier.



322
323
324
# File 'generated/google/apis/content_v2_1/classes.rb', line 322

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

Instance Attribute Details

#aggregator_idFixnum

The aggregator ID, set for aggregators and subaccounts (in that case, it represents the aggregator of the subaccount). Corresponds to the JSON property aggregatorId

Returns:

  • (Fixnum)


315
316
317
# File 'generated/google/apis/content_v2_1/classes.rb', line 315

def aggregator_id
  @aggregator_id
end

#merchant_idFixnum

The merchant account ID, set for individual accounts and subaccounts. Corresponds to the JSON property merchantId

Returns:

  • (Fixnum)


320
321
322
# File 'generated/google/apis/content_v2_1/classes.rb', line 320

def merchant_id
  @merchant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



327
328
329
330
# File 'generated/google/apis/content_v2_1/classes.rb', line 327

def update!(**args)
  @aggregator_id = args[:aggregator_id] if args.key?(:aggregator_id)
  @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
end