Class: Google::Apis::DfareportingV4::CampaignSummary
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::CampaignSummary
- 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
Represents a summarized campaign information associated with this invoice.
Instance Attribute Summary collapse
-
#billing_invoice_code ⇒ String
Campaign billing invoice code.
-
#campaign_id ⇒ Fixnum
Campaign ID.
-
#pre_tax_amount_micros ⇒ Fixnum
The pre-tax amount for this campaign, in micros of the invoice's currency.
-
#tax_amount_micros ⇒ Fixnum
The tax amount for this campaign, in micros of the invoice's currency.
-
#total_amount_micros ⇒ Fixnum
The total amount of charges for this campaign, in micros of the invoice's currency.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CampaignSummary
constructor
A new instance of CampaignSummary.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CampaignSummary
Returns a new instance of CampaignSummary.
2042 2043 2044 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2042 def initialize(**args) update!(**args) end |
Instance Attribute Details
#billing_invoice_code ⇒ String
Campaign billing invoice code.
Corresponds to the JSON property billingInvoiceCode
2019 2020 2021 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2019 def billing_invoice_code @billing_invoice_code end |
#campaign_id ⇒ Fixnum
Campaign ID.
Corresponds to the JSON property campaignId
2024 2025 2026 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2024 def campaign_id @campaign_id end |
#pre_tax_amount_micros ⇒ Fixnum
The pre-tax amount for this campaign, in micros of the invoice's currency.
Corresponds to the JSON property preTaxAmountMicros
2029 2030 2031 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2029 def pre_tax_amount_micros @pre_tax_amount_micros end |
#tax_amount_micros ⇒ Fixnum
The tax amount for this campaign, in micros of the invoice's currency.
Corresponds to the JSON property taxAmountMicros
2034 2035 2036 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2034 def tax_amount_micros @tax_amount_micros end |
#total_amount_micros ⇒ Fixnum
The total amount of charges for this campaign, in micros of the invoice's
currency.
Corresponds to the JSON property totalAmountMicros
2040 2041 2042 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2040 def total_amount_micros @total_amount_micros end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2047 2048 2049 2050 2051 2052 2053 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2047 def update!(**args) @billing_invoice_code = args[:billing_invoice_code] if args.key?(:billing_invoice_code) @campaign_id = args[:campaign_id] if args.key?(:campaign_id) @pre_tax_amount_micros = args[:pre_tax_amount_micros] if args.key?(:pre_tax_amount_micros) @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 |