Class: Google::Apis::DfareportingV4::BillingAssignment

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb

Overview

List account, subaccount, advertiser, and campaign associated with a given Billing Profile.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BillingAssignment

Returns a new instance of BillingAssignment.



1375
1376
1377
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1375

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

Instance Attribute Details

#account_idString

ID of the account associated with the billing assignment.This is a read-only, auto-generated field. Corresponds to the JSON property accountId

Returns:

  • (String)


1348
1349
1350
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1348

def 
  @account_id
end

#advertiser_idString

ID of the advertiser associated with the billing assignment.Wildcard (*) means this assignment is not limited to a single advertiser Corresponds to the JSON property advertiserId

Returns:

  • (String)


1354
1355
1356
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1354

def advertiser_id
  @advertiser_id
end

#campaign_idString

ID of the campaign associated with the billing assignment. Wildcard (*) means this assignment is not limited to a single campaign Corresponds to the JSON property campaignId

Returns:

  • (String)


1360
1361
1362
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1360

def campaign_id
  @campaign_id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#billingAssignment". Corresponds to the JSON property kind

Returns:

  • (String)


1366
1367
1368
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1366

def kind
  @kind
end

#subaccount_idString

ID of the subaccount associated with the billing assignment.Wildcard (*) means this assignment is not limited to a single subaccountThis is a read-only, auto- generated field. Corresponds to the JSON property subaccountId

Returns:

  • (String)


1373
1374
1375
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1373

def subaccount_id
  @subaccount_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1380
1381
1382
1383
1384
1385
1386
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1380

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @campaign_id = args[:campaign_id] if args.key?(:campaign_id)
  @kind = args[:kind] if args.key?(:kind)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
end