Class: Google::Apis::DisplayvideoV1::BudgetSummary

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

Overview

Summarized information of an individual campaign budget.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BudgetSummary

Returns a new instance of BudgetSummary.



1531
1532
1533
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1531

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

Instance Attribute Details

#external_budget_idString

Corresponds to the external_budget_id of a campaign budget. If the value is not set in the campaign budget, this field will be empty. Corresponds to the JSON property externalBudgetId

Returns:

  • (String)


1502
1503
1504
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1502

def external_budget_id
  @external_budget_id
end

#pre_tax_amount_microsFixnum

The sum of charges made under this budget before taxes, in micros of the invoice's currency. For example, if currency_code is USD, then 1000000 represents one US dollar. Corresponds to the JSON property preTaxAmountMicros

Returns:

  • (Fixnum)


1509
1510
1511
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1509

def pre_tax_amount_micros
  @pre_tax_amount_micros
end

#prisma_cpe_codeGoogle::Apis::DisplayvideoV1::PrismaCpeCode

Google Payments Center supports searching and filtering on the component fields of this code. Corresponds to the JSON property prismaCpeCode



1515
1516
1517
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1515

def prisma_cpe_code
  @prisma_cpe_code
end

#tax_amount_microsFixnum

The amount of tax applied to charges under this budget, in micros of the invoice's currency. For example, if currency_code is USD, then 1000000 represents one US dollar. Corresponds to the JSON property taxAmountMicros

Returns:

  • (Fixnum)


1522
1523
1524
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1522

def tax_amount_micros
  @tax_amount_micros
end

#total_amount_microsFixnum

The total sum of charges made under this budget, including tax, in micros of the invoice's currency. For example, if currency_code is USD, then 1000000 represents one US dollar. Corresponds to the JSON property totalAmountMicros

Returns:

  • (Fixnum)


1529
1530
1531
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1529

def total_amount_micros
  @total_amount_micros
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1536
1537
1538
1539
1540
1541
1542
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 1536

def update!(**args)
  @external_budget_id = args[:external_budget_id] if args.key?(:external_budget_id)
  @pre_tax_amount_micros = args[:pre_tax_amount_micros] if args.key?(:pre_tax_amount_micros)
  @prisma_cpe_code = args[:prisma_cpe_code] if args.key?(:prisma_cpe_code)
  @tax_amount_micros = args[:tax_amount_micros] if args.key?(:tax_amount_micros)
  @total_amount_micros = args[:total_amount_micros] if args.key?(:total_amount_micros)
end