google-apis-displayvideo_v1 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88a67ce37a07c98119a90676e956989da2414b1e8d2e492446c4f50580b931f2
4
- data.tar.gz: 3a9d374618661e16ecaf53acccdab2d748b49b1ea8ebc6ed6ec0bbe3113c8beb
3
+ metadata.gz: a4dc11ce04907f4c314bc9a398b1b798b839ead286f2380947b17d43a3a28114
4
+ data.tar.gz: '08848f5e54a1336004be9d975229ed0192b30926b87585dde4740238845b38c2'
5
5
  SHA512:
6
- metadata.gz: ab47d2ec2a95b6bff916d52b45bb056adf25082ec16e94a0e9275cbdd8f03e72a3558b4ffe6bf2eda0b7bdfe7f4d1d3ac249486e2a5f768645367f8a3d6379dd
7
- data.tar.gz: aeb12222e9efa1929b7a9be05ab7b1cddd46ad838e2cac5e055e79eed4fc905fe740f0b158467f11005e4e3c2ec404cddaeac15fc75d4d2cc2ce9326f41ca3f5
6
+ metadata.gz: 0ec87434e69ae86c141083df96a1561743c91bb9a99ef9fbc5ce89947161a7510bb4ac76093df3d1cef4e64cafbf7d1780cb7c3484698a6e4e1bd2e3635cbac5
7
+ data.tar.gz: f23da662553e53a0555e4e2aeea8c5cadef88324559695484a884ef3a69b9c40a6b43404fd60cbb45a6d6ab377cea4ea447c8ff0c7a1b193452a99eb90943332
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-displayvideo_v1
2
2
 
3
+ ### v0.9.0 (2021-05-21)
4
+
5
+ * Regenerated from discovery document revision 20210520
6
+ * Unspecified changes
7
+
3
8
  ### v0.8.0 (2021-04-23)
4
9
 
5
10
  * Regenerated from discovery document revision 20210422
@@ -166,6 +166,16 @@ module Google
166
166
  # @return [Fixnum]
167
167
  attr_accessor :partner_id
168
168
 
169
+ # Whether integration with Mediaocean (Prisma) is enabled. By enabling this: On
170
+ # behalf of my company, I authorize Mediaocean (Prisma) to send budget segment
171
+ # plans to Google, and I authorize Google to send corresponding reporting and
172
+ # invoices from DV360 to Mediaocean for the purposes of budget planning, billing,
173
+ # and reconciliation for this advertiser.
174
+ # Corresponds to the JSON property `prismaEnabled`
175
+ # @return [Boolean]
176
+ attr_accessor :prisma_enabled
177
+ alias_method :prisma_enabled?, :prisma_enabled
178
+
169
179
  # Targeting settings related to ad serving of an advertiser.
170
180
  # Corresponds to the JSON property `servingConfig`
171
181
  # @return [Google::Apis::DisplayvideoV1::AdvertiserTargetingConfig]
@@ -193,6 +203,7 @@ module Google
193
203
  @integration_details = args[:integration_details] if args.key?(:integration_details)
194
204
  @name = args[:name] if args.key?(:name)
195
205
  @partner_id = args[:partner_id] if args.key?(:partner_id)
206
+ @prisma_enabled = args[:prisma_enabled] if args.key?(:prisma_enabled)
196
207
  @serving_config = args[:serving_config] if args.key?(:serving_config)
197
208
  @update_time = args[:update_time] if args.key?(:update_time)
198
209
  end
@@ -859,6 +870,15 @@ module Google
859
870
  # @return [String]
860
871
  attr_accessor :name
861
872
 
873
+ # Details for native content position assigned targeting option. This will be
874
+ # populated in the native_content_position_details field when targeting_type is `
875
+ # TARGETING_TYPE_NATIVE_CONTENT_POSITION`. Explicitly targeting all options is
876
+ # not supported. Remove all native content position targeting options to achieve
877
+ # this effect.
878
+ # Corresponds to the JSON property `nativeContentPositionDetails`
879
+ # @return [Google::Apis::DisplayvideoV1::NativeContentPositionAssignedTargetingOptionDetails]
880
+ attr_accessor :native_content_position_details
881
+
862
882
  # Targeting details for negative keyword list. This will be populated in the
863
883
  # details field of an AssignedTargetingOption when targeting_type is `
864
884
  # TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`.
@@ -990,6 +1010,7 @@ module Google
990
1010
  @keyword_details = args[:keyword_details] if args.key?(:keyword_details)
991
1011
  @language_details = args[:language_details] if args.key?(:language_details)
992
1012
  @name = args[:name] if args.key?(:name)
1013
+ @native_content_position_details = args[:native_content_position_details] if args.key?(:native_content_position_details)
993
1014
  @negative_keyword_list_details = args[:negative_keyword_list_details] if args.key?(:negative_keyword_list_details)
994
1015
  @on_screen_position_details = args[:on_screen_position_details] if args.key?(:on_screen_position_details)
995
1016
  @operating_system_details = args[:operating_system_details] if args.key?(:operating_system_details)
@@ -1354,6 +1375,56 @@ module Google
1354
1375
  end
1355
1376
  end
1356
1377
 
1378
+ # Represents a summarized budget information associated with this invoice.
1379
+ class BudgetSummary
1380
+ include Google::Apis::Core::Hashable
1381
+
1382
+ # Output only. External budget id.
1383
+ # Corresponds to the JSON property `externalBudgetId`
1384
+ # @return [String]
1385
+ attr_accessor :external_budget_id
1386
+
1387
+ # Output only. The pre-tax amount for this budget, in micros of the invoice's
1388
+ # currency. For example if currency_code is `USD`, then 1000000 micros is one US
1389
+ # dollar.
1390
+ # Corresponds to the JSON property `preTaxAmountMicros`
1391
+ # @return [Fixnum]
1392
+ attr_accessor :pre_tax_amount_micros
1393
+
1394
+ # Google Payments Center supports searching and filtering on the component
1395
+ # fields of this code.
1396
+ # Corresponds to the JSON property `prismaCpeCode`
1397
+ # @return [Google::Apis::DisplayvideoV1::PrismaCpeCode]
1398
+ attr_accessor :prisma_cpe_code
1399
+
1400
+ # Output only. The tax amount for this budget, in micros of the invoice's
1401
+ # currency. For example if currency_code is `USD`, then 1000000 micros is one US
1402
+ # dollar.
1403
+ # Corresponds to the JSON property `taxAmountMicros`
1404
+ # @return [Fixnum]
1405
+ attr_accessor :tax_amount_micros
1406
+
1407
+ # Output only. The total amount of charges for this budget, in micros of the
1408
+ # invoice's currency. For example if currency_code is `USD`, then 1000000 micros
1409
+ # is one US dollar.
1410
+ # Corresponds to the JSON property `totalAmountMicros`
1411
+ # @return [Fixnum]
1412
+ attr_accessor :total_amount_micros
1413
+
1414
+ def initialize(**args)
1415
+ update!(**args)
1416
+ end
1417
+
1418
+ # Update properties of this object
1419
+ def update!(**args)
1420
+ @external_budget_id = args[:external_budget_id] if args.key?(:external_budget_id)
1421
+ @pre_tax_amount_micros = args[:pre_tax_amount_micros] if args.key?(:pre_tax_amount_micros)
1422
+ @prisma_cpe_code = args[:prisma_cpe_code] if args.key?(:prisma_cpe_code)
1423
+ @tax_amount_micros = args[:tax_amount_micros] if args.key?(:tax_amount_micros)
1424
+ @total_amount_micros = args[:total_amount_micros] if args.key?(:total_amount_micros)
1425
+ end
1426
+ end
1427
+
1357
1428
  # Request message for BulkEditAdvertiserAssignedTargetingOptions.
1358
1429
  class BulkEditAdvertiserAssignedTargetingOptionsRequest
1359
1430
  include Google::Apis::Core::Hashable
@@ -1886,6 +1957,12 @@ module Google
1886
1957
  # @return [Fixnum]
1887
1958
  attr_accessor :advertiser_id
1888
1959
 
1960
+ # The list of budgets available to this campaign. Setting no budget gives an
1961
+ # unlimited campaign budget.
1962
+ # Corresponds to the JSON property `campaignBudgets`
1963
+ # @return [Array<Google::Apis::DisplayvideoV1::CampaignBudget>]
1964
+ attr_accessor :campaign_budgets
1965
+
1889
1966
  # Settings that track the planned spend and duration of a campaign.
1890
1967
  # Corresponds to the JSON property `campaignFlight`
1891
1968
  # @return [Google::Apis::DisplayvideoV1::CampaignFlight]
@@ -1939,6 +2016,7 @@ module Google
1939
2016
  # Update properties of this object
1940
2017
  def update!(**args)
1941
2018
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
2019
+ @campaign_budgets = args[:campaign_budgets] if args.key?(:campaign_budgets)
1942
2020
  @campaign_flight = args[:campaign_flight] if args.key?(:campaign_flight)
1943
2021
  @campaign_goal = args[:campaign_goal] if args.key?(:campaign_goal)
1944
2022
  @campaign_id = args[:campaign_id] if args.key?(:campaign_id)
@@ -1950,6 +2028,82 @@ module Google
1950
2028
  end
1951
2029
  end
1952
2030
 
2031
+ # Settings that control how the campaign budget is allocated.
2032
+ class CampaignBudget
2033
+ include Google::Apis::Core::Hashable
2034
+
2035
+ # Required. The budget amount the insertion order will spend for the given
2036
+ # date_range. The amount is in micros. Must be greater than 0. For example,
2037
+ # 500000000 represents 500 standard units of the currency.
2038
+ # Corresponds to the JSON property `budgetAmountMicros`
2039
+ # @return [Fixnum]
2040
+ attr_accessor :budget_amount_micros
2041
+
2042
+ # The unique ID of the campaign budget. If not included, budget is assumed to be
2043
+ # new.
2044
+ # Corresponds to the JSON property `budgetId`
2045
+ # @return [Fixnum]
2046
+ attr_accessor :budget_id
2047
+
2048
+ # Required. Immutable. The budget unit specifies whether the budget is currency
2049
+ # based or impression based.
2050
+ # Corresponds to the JSON property `budgetUnit`
2051
+ # @return [String]
2052
+ attr_accessor :budget_unit
2053
+
2054
+ # A date range.
2055
+ # Corresponds to the JSON property `dateRange`
2056
+ # @return [Google::Apis::DisplayvideoV1::DateRange]
2057
+ attr_accessor :date_range
2058
+
2059
+ # Required. The display name of the budget. Must be UTF-8 encoded with a maximum
2060
+ # size of 240 bytes.
2061
+ # Corresponds to the JSON property `displayName`
2062
+ # @return [String]
2063
+ attr_accessor :display_name
2064
+
2065
+ # Immutable. Must be unique under the campaign. If set, all impressions served
2066
+ # against this budget will include this ID on the invoice if the customer has
2067
+ # opted into budget-segment-level billing.
2068
+ # Corresponds to the JSON property `externalBudgetId`
2069
+ # @return [String]
2070
+ attr_accessor :external_budget_id
2071
+
2072
+ # Required. The external source of the budget segment.
2073
+ # Corresponds to the JSON property `externalBudgetSource`
2074
+ # @return [String]
2075
+ attr_accessor :external_budget_source
2076
+
2077
+ # Immutable. If set, all external_budget_id sharing the same invoice_grouping_id
2078
+ # will include this ID on the invoice if the customer has opted into budget-
2079
+ # segment-level billing.
2080
+ # Corresponds to the JSON property `invoiceGroupingId`
2081
+ # @return [String]
2082
+ attr_accessor :invoice_grouping_id
2083
+
2084
+ # Settings specific to the MediaOcean Prisma tool.
2085
+ # Corresponds to the JSON property `prismaConfig`
2086
+ # @return [Google::Apis::DisplayvideoV1::PrismaConfig]
2087
+ attr_accessor :prisma_config
2088
+
2089
+ def initialize(**args)
2090
+ update!(**args)
2091
+ end
2092
+
2093
+ # Update properties of this object
2094
+ def update!(**args)
2095
+ @budget_amount_micros = args[:budget_amount_micros] if args.key?(:budget_amount_micros)
2096
+ @budget_id = args[:budget_id] if args.key?(:budget_id)
2097
+ @budget_unit = args[:budget_unit] if args.key?(:budget_unit)
2098
+ @date_range = args[:date_range] if args.key?(:date_range)
2099
+ @display_name = args[:display_name] if args.key?(:display_name)
2100
+ @external_budget_id = args[:external_budget_id] if args.key?(:external_budget_id)
2101
+ @external_budget_source = args[:external_budget_source] if args.key?(:external_budget_source)
2102
+ @invoice_grouping_id = args[:invoice_grouping_id] if args.key?(:invoice_grouping_id)
2103
+ @prisma_config = args[:prisma_config] if args.key?(:prisma_config)
2104
+ end
2105
+ end
2106
+
1953
2107
  # Settings that track the planned spend and duration of a campaign.
1954
2108
  class CampaignFlight
1955
2109
  include Google::Apis::Core::Hashable
@@ -5342,6 +5496,175 @@ module Google
5342
5496
  end
5343
5497
  end
5344
5498
 
5499
+ # A single Invoice.
5500
+ class Invoice
5501
+ include Google::Apis::Core::Hashable
5502
+
5503
+ # Output only. Budget invoice grouping ID associated with the budget segment in
5504
+ # the insertion order.
5505
+ # Corresponds to the JSON property `budgetInvoiceGroupingId`
5506
+ # @return [String]
5507
+ attr_accessor :budget_invoice_grouping_id
5508
+
5509
+ # Output only. The list of summarized budget information associated with this
5510
+ # invoice.
5511
+ # Corresponds to the JSON property `budgetSummaries`
5512
+ # @return [Array<Google::Apis::DisplayvideoV1::BudgetSummary>]
5513
+ attr_accessor :budget_summaries
5514
+
5515
+ # Output only. The originally issued invoice that is being adjusted by this
5516
+ # invoice, if applicable. If there is a corrected invoice, the
5517
+ # replaced_invoice_ids field will be empty. May appear on invoice PDF as `
5518
+ # Reference invoice number`.
5519
+ # Corresponds to the JSON property `correctedInvoiceId`
5520
+ # @return [String]
5521
+ attr_accessor :corrected_invoice_id
5522
+
5523
+ # Output only. Invoice currency code in ISO 4217 format.
5524
+ # Corresponds to the JSON property `currencyCode`
5525
+ # @return [String]
5526
+ attr_accessor :currency_code
5527
+
5528
+ # Output only. Display name of the invoice.
5529
+ # Corresponds to the JSON property `displayName`
5530
+ # @return [String]
5531
+ attr_accessor :display_name
5532
+
5533
+ # Represents a whole or partial calendar date, such as a birthday. The time of
5534
+ # day and time zone are either specified elsewhere or are insignificant. The
5535
+ # date is relative to the Gregorian Calendar. This can represent one of the
5536
+ # following: * A full date, with non-zero year, month, and day values * A month
5537
+ # and day value, with a zero year, such as an anniversary * A year on its own,
5538
+ # with zero month and day values * A year and month value, with a zero day, such
5539
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
5540
+ # google.protobuf.Timestamp`.
5541
+ # Corresponds to the JSON property `dueDate`
5542
+ # @return [Google::Apis::DisplayvideoV1::Date]
5543
+ attr_accessor :due_date
5544
+
5545
+ # Output only. The unique ID of the invoice.
5546
+ # Corresponds to the JSON property `invoiceId`
5547
+ # @return [String]
5548
+ attr_accessor :invoice_id
5549
+
5550
+ # Output only. The type of invoice document.
5551
+ # Corresponds to the JSON property `invoiceType`
5552
+ # @return [String]
5553
+ attr_accessor :invoice_type
5554
+
5555
+ # Represents a whole or partial calendar date, such as a birthday. The time of
5556
+ # day and time zone are either specified elsewhere or are insignificant. The
5557
+ # date is relative to the Gregorian Calendar. This can represent one of the
5558
+ # following: * A full date, with non-zero year, month, and day values * A month
5559
+ # and day value, with a zero year, such as an anniversary * A year on its own,
5560
+ # with zero month and day values * A year and month value, with a zero day, such
5561
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
5562
+ # google.protobuf.Timestamp`.
5563
+ # Corresponds to the JSON property `issueDate`
5564
+ # @return [Google::Apis::DisplayvideoV1::Date]
5565
+ attr_accessor :issue_date
5566
+
5567
+ # Output only. The resource name of the invoice.
5568
+ # Corresponds to the JSON property `name`
5569
+ # @return [String]
5570
+ attr_accessor :name
5571
+
5572
+ # Output only. The total amount of costs or adjustments not tied to a particular
5573
+ # budget, in micros of the invoice's currency. For example if currency_code is `
5574
+ # USD`, then 1000000 micros is one US dollar.
5575
+ # Corresponds to the JSON property `nonBudgetMicros`
5576
+ # @return [Fixnum]
5577
+ attr_accessor :non_budget_micros
5578
+
5579
+ # Output only. The ID of the payments account the invoice belongs to. Appears on
5580
+ # the invoice PDF as `Billing Account Number`.
5581
+ # Corresponds to the JSON property `paymentsAccountId`
5582
+ # @return [String]
5583
+ attr_accessor :payments_account_id
5584
+
5585
+ # Output only. The ID of the payments profile the invoice belongs to. Appears on
5586
+ # the invoice PDF as `Billing ID`.
5587
+ # Corresponds to the JSON property `paymentsProfileId`
5588
+ # @return [String]
5589
+ attr_accessor :payments_profile_id
5590
+
5591
+ # Output only. The URL to download a PDF copy of the invoice. Note that this URL
5592
+ # is user specific and requires a valid OAuth 2.0 access token to access. The
5593
+ # access token must be provided in an `Authorization: Bearer` HTTP header and be
5594
+ # authorized for one of the following scopes: * `https://www.googleapis.com/auth/
5595
+ # display-video-mediaplanning` * `https://www.googleapis.com/auth/display-video`
5596
+ # The URL will only be usable for 7 days from when the api is called.
5597
+ # Corresponds to the JSON property `pdfUrl`
5598
+ # @return [String]
5599
+ attr_accessor :pdf_url
5600
+
5601
+ # Output only. Purchase order number associated with the invoice.
5602
+ # Corresponds to the JSON property `purchaseOrderNumber`
5603
+ # @return [String]
5604
+ attr_accessor :purchase_order_number
5605
+
5606
+ # Output only. The originally issued invoice(s) that is being cancelled by this
5607
+ # invoice, if applicable. If there are any replaced invoices, the
5608
+ # corrected_invoice_id field will be empty. May appear on invoice PDF as `
5609
+ # Replaced invoice numbers`. Note: There may be multiple replaced invoices due
5610
+ # to consolidation of multiple invoices into a single invoice.
5611
+ # Corresponds to the JSON property `replacedInvoiceIds`
5612
+ # @return [Array<String>]
5613
+ attr_accessor :replaced_invoice_ids
5614
+
5615
+ # A date range.
5616
+ # Corresponds to the JSON property `serviceDateRange`
5617
+ # @return [Google::Apis::DisplayvideoV1::DateRange]
5618
+ attr_accessor :service_date_range
5619
+
5620
+ # Output only. The pre-tax subtotal amount, in micros of the invoice's currency.
5621
+ # For example if currency_code is `USD`, then 1000000 micros is one US dollar.
5622
+ # Corresponds to the JSON property `subtotalAmountMicros`
5623
+ # @return [Fixnum]
5624
+ attr_accessor :subtotal_amount_micros
5625
+
5626
+ # Output only. The invoice total amount, in micros of the invoice's currency.
5627
+ # For example if currency_code is `USD`, then 1000000 micros is one US dollar.
5628
+ # Corresponds to the JSON property `totalAmountMicros`
5629
+ # @return [Fixnum]
5630
+ attr_accessor :total_amount_micros
5631
+
5632
+ # Output only. The sum of all taxes in invoice, in micros of the invoice's
5633
+ # currency. For example if currency_code is `USD`, then 1000000 micros is one US
5634
+ # dollar.
5635
+ # Corresponds to the JSON property `totalTaxAmountMicros`
5636
+ # @return [Fixnum]
5637
+ attr_accessor :total_tax_amount_micros
5638
+
5639
+ def initialize(**args)
5640
+ update!(**args)
5641
+ end
5642
+
5643
+ # Update properties of this object
5644
+ def update!(**args)
5645
+ @budget_invoice_grouping_id = args[:budget_invoice_grouping_id] if args.key?(:budget_invoice_grouping_id)
5646
+ @budget_summaries = args[:budget_summaries] if args.key?(:budget_summaries)
5647
+ @corrected_invoice_id = args[:corrected_invoice_id] if args.key?(:corrected_invoice_id)
5648
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
5649
+ @display_name = args[:display_name] if args.key?(:display_name)
5650
+ @due_date = args[:due_date] if args.key?(:due_date)
5651
+ @invoice_id = args[:invoice_id] if args.key?(:invoice_id)
5652
+ @invoice_type = args[:invoice_type] if args.key?(:invoice_type)
5653
+ @issue_date = args[:issue_date] if args.key?(:issue_date)
5654
+ @name = args[:name] if args.key?(:name)
5655
+ @non_budget_micros = args[:non_budget_micros] if args.key?(:non_budget_micros)
5656
+ @payments_account_id = args[:payments_account_id] if args.key?(:payments_account_id)
5657
+ @payments_profile_id = args[:payments_profile_id] if args.key?(:payments_profile_id)
5658
+ @pdf_url = args[:pdf_url] if args.key?(:pdf_url)
5659
+ @purchase_order_number = args[:purchase_order_number] if args.key?(:purchase_order_number)
5660
+ @replaced_invoice_ids = args[:replaced_invoice_ids] if args.key?(:replaced_invoice_ids)
5661
+ @service_date_range = args[:service_date_range] if args.key?(:service_date_range)
5662
+ @subtotal_amount_micros = args[:subtotal_amount_micros] if args.key?(:subtotal_amount_micros)
5663
+ @total_amount_micros = args[:total_amount_micros] if args.key?(:total_amount_micros)
5664
+ @total_tax_amount_micros = args[:total_tax_amount_micros] if args.key?(:total_tax_amount_micros)
5665
+ end
5666
+ end
5667
+
5345
5668
  # Details for assigned keyword targeting option. This will be populated in the
5346
5669
  # details field of an AssignedTargetingOption when targeting_type is `
5347
5670
  # TARGETING_TYPE_KEYWORD`.
@@ -6142,6 +6465,33 @@ module Google
6142
6465
  end
6143
6466
  end
6144
6467
 
6468
+ # Response message for InvoiceService.ListInvoices.
6469
+ class ListInvoicesResponse
6470
+ include Google::Apis::Core::Hashable
6471
+
6472
+ # The list of invoices. This list will be absent if empty.
6473
+ # Corresponds to the JSON property `invoices`
6474
+ # @return [Array<Google::Apis::DisplayvideoV1::Invoice>]
6475
+ attr_accessor :invoices
6476
+
6477
+ # A token to retrieve the next page of results. Pass this value in the [
6478
+ # ListInvoicesRequest.page_token] field in the subsequent call to `ListInvoices`
6479
+ # method to retrieve the next page of results.
6480
+ # Corresponds to the JSON property `nextPageToken`
6481
+ # @return [String]
6482
+ attr_accessor :next_page_token
6483
+
6484
+ def initialize(**args)
6485
+ update!(**args)
6486
+ end
6487
+
6488
+ # Update properties of this object
6489
+ def update!(**args)
6490
+ @invoices = args[:invoices] if args.key?(:invoices)
6491
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
6492
+ end
6493
+ end
6494
+
6145
6495
  # Response message for ListLineItemAssignedTargetingOptions.
6146
6496
  class ListLineItemAssignedTargetingOptionsResponse
6147
6497
  include Google::Apis::Core::Hashable
@@ -6516,6 +6866,25 @@ module Google
6516
6866
  end
6517
6867
  end
6518
6868
 
6869
+ # Response message for InvoiceService.LookupInvoiceCurrency.
6870
+ class LookupInvoiceCurrencyResponse
6871
+ include Google::Apis::Core::Hashable
6872
+
6873
+ # Output only. Invoice currency code in ISO 4217 format.
6874
+ # Corresponds to the JSON property `currencyCode`
6875
+ # @return [String]
6876
+ attr_accessor :currency_code
6877
+
6878
+ def initialize(**args)
6879
+ update!(**args)
6880
+ end
6881
+
6882
+ # Update properties of this object
6883
+ def update!(**args)
6884
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
6885
+ end
6886
+ end
6887
+
6519
6888
  # A single manual trigger in Display & Video 360.
6520
6889
  class ManualTrigger
6521
6890
  include Google::Apis::Core::Hashable
@@ -6718,6 +7087,57 @@ module Google
6718
7087
  end
6719
7088
  end
6720
7089
 
7090
+ # Details for native content position assigned targeting option. This will be
7091
+ # populated in the native_content_position_details field when targeting_type is `
7092
+ # TARGETING_TYPE_NATIVE_CONTENT_POSITION`. Explicitly targeting all options is
7093
+ # not supported. Remove all native content position targeting options to achieve
7094
+ # this effect.
7095
+ class NativeContentPositionAssignedTargetingOptionDetails
7096
+ include Google::Apis::Core::Hashable
7097
+
7098
+ # Output only. The content position.
7099
+ # Corresponds to the JSON property `contentPosition`
7100
+ # @return [String]
7101
+ attr_accessor :content_position
7102
+
7103
+ # Required. The targeting_option_id field when targeting_type is `
7104
+ # TARGETING_TYPE_NATIVE_CONTENT_POSITION`.
7105
+ # Corresponds to the JSON property `targetingOptionId`
7106
+ # @return [String]
7107
+ attr_accessor :targeting_option_id
7108
+
7109
+ def initialize(**args)
7110
+ update!(**args)
7111
+ end
7112
+
7113
+ # Update properties of this object
7114
+ def update!(**args)
7115
+ @content_position = args[:content_position] if args.key?(:content_position)
7116
+ @targeting_option_id = args[:targeting_option_id] if args.key?(:targeting_option_id)
7117
+ end
7118
+ end
7119
+
7120
+ # Represents a targetable native content position. This will be populated in the
7121
+ # native_content_position_details field when targeting_type is `
7122
+ # TARGETING_TYPE_NATIVE_CONTENT_POSITION`.
7123
+ class NativeContentPositionTargetingOptionDetails
7124
+ include Google::Apis::Core::Hashable
7125
+
7126
+ # Output only. The content position.
7127
+ # Corresponds to the JSON property `contentPosition`
7128
+ # @return [String]
7129
+ attr_accessor :content_position
7130
+
7131
+ def initialize(**args)
7132
+ update!(**args)
7133
+ end
7134
+
7135
+ # Update properties of this object
7136
+ def update!(**args)
7137
+ @content_position = args[:content_position] if args.key?(:content_position)
7138
+ end
7139
+ end
7140
+
6721
7141
  # A negatively targeted keyword that belongs to a negative keyword list.
6722
7142
  class NegativeKeyword
6723
7143
  include Google::Apis::Core::Hashable
@@ -7531,6 +7951,70 @@ module Google
7531
7951
  end
7532
7952
  end
7533
7953
 
7954
+ # Settings specific to the MediaOcean Prisma tool.
7955
+ class PrismaConfig
7956
+ include Google::Apis::Core::Hashable
7957
+
7958
+ # Google Payments Center supports searching and filtering on the component
7959
+ # fields of this code.
7960
+ # Corresponds to the JSON property `prismaCpeCode`
7961
+ # @return [Google::Apis::DisplayvideoV1::PrismaCpeCode]
7962
+ attr_accessor :prisma_cpe_code
7963
+
7964
+ # Required. The Prisma type.
7965
+ # Corresponds to the JSON property `prismaType`
7966
+ # @return [String]
7967
+ attr_accessor :prisma_type
7968
+
7969
+ # Required. The entity allocated this budget (DSP, site, etc.).
7970
+ # Corresponds to the JSON property `supplier`
7971
+ # @return [String]
7972
+ attr_accessor :supplier
7973
+
7974
+ def initialize(**args)
7975
+ update!(**args)
7976
+ end
7977
+
7978
+ # Update properties of this object
7979
+ def update!(**args)
7980
+ @prisma_cpe_code = args[:prisma_cpe_code] if args.key?(:prisma_cpe_code)
7981
+ @prisma_type = args[:prisma_type] if args.key?(:prisma_type)
7982
+ @supplier = args[:supplier] if args.key?(:supplier)
7983
+ end
7984
+ end
7985
+
7986
+ # Google Payments Center supports searching and filtering on the component
7987
+ # fields of this code.
7988
+ class PrismaCpeCode
7989
+ include Google::Apis::Core::Hashable
7990
+
7991
+ # The Prisma client code.
7992
+ # Corresponds to the JSON property `prismaClientCode`
7993
+ # @return [String]
7994
+ attr_accessor :prisma_client_code
7995
+
7996
+ # The Prisma estimate code.
7997
+ # Corresponds to the JSON property `prismaEstimateCode`
7998
+ # @return [String]
7999
+ attr_accessor :prisma_estimate_code
8000
+
8001
+ # The Prisma product code.
8002
+ # Corresponds to the JSON property `prismaProductCode`
8003
+ # @return [String]
8004
+ attr_accessor :prisma_product_code
8005
+
8006
+ def initialize(**args)
8007
+ update!(**args)
8008
+ end
8009
+
8010
+ # Update properties of this object
8011
+ def update!(**args)
8012
+ @prisma_client_code = args[:prisma_client_code] if args.key?(:prisma_client_code)
8013
+ @prisma_estimate_code = args[:prisma_estimate_code] if args.key?(:prisma_estimate_code)
8014
+ @prisma_product_code = args[:prisma_product_code] if args.key?(:prisma_product_code)
8015
+ end
8016
+ end
8017
+
7534
8018
  # Targeting details for proximity location list. This will be populated in the
7535
8019
  # details field of an AssignedTargetingOption when targeting_type is `
7536
8020
  # TARGETING_TYPE_PROXIMITY_LOCATION_LIST`.
@@ -8258,6 +8742,13 @@ module Google
8258
8742
  # @return [String]
8259
8743
  attr_accessor :name
8260
8744
 
8745
+ # Represents a targetable native content position. This will be populated in the
8746
+ # native_content_position_details field when targeting_type is `
8747
+ # TARGETING_TYPE_NATIVE_CONTENT_POSITION`.
8748
+ # Corresponds to the JSON property `nativeContentPositionDetails`
8749
+ # @return [Google::Apis::DisplayvideoV1::NativeContentPositionTargetingOptionDetails]
8750
+ attr_accessor :native_content_position_details
8751
+
8261
8752
  # Represents a targetable on screen position, which could be used by display and
8262
8753
  # video ads. This will be populated in the on_screen_position_details field when
8263
8754
  # targeting_type is `TARGETING_TYPE_ON_SCREEN_POSITION`.
@@ -8349,6 +8840,7 @@ module Google
8349
8840
  @household_income_details = args[:household_income_details] if args.key?(:household_income_details)
8350
8841
  @language_details = args[:language_details] if args.key?(:language_details)
8351
8842
  @name = args[:name] if args.key?(:name)
8843
+ @native_content_position_details = args[:native_content_position_details] if args.key?(:native_content_position_details)
8352
8844
  @on_screen_position_details = args[:on_screen_position_details] if args.key?(:on_screen_position_details)
8353
8845
  @operating_system_details = args[:operating_system_details] if args.key?(:operating_system_details)
8354
8846
  @parental_status_details = args[:parental_status_details] if args.key?(:parental_status_details)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DisplayvideoV1
18
18
  # Version of the google-apis-displayvideo_v1 gem
19
- GEM_VERSION = "0.8.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210422"
25
+ REVISION = "20210520"
26
26
  end
27
27
  end
28
28
  end
@@ -196,6 +196,12 @@ module Google
196
196
  include Google::Apis::Core::JsonObjectSupport
197
197
  end
198
198
 
199
+ class BudgetSummary
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
199
205
  class BulkEditAdvertiserAssignedTargetingOptionsRequest
200
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
207
 
@@ -322,6 +328,12 @@ module Google
322
328
  include Google::Apis::Core::JsonObjectSupport
323
329
  end
324
330
 
331
+ class CampaignBudget
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
325
337
  class CampaignFlight
326
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
339
 
@@ -850,6 +862,12 @@ module Google
850
862
  include Google::Apis::Core::JsonObjectSupport
851
863
  end
852
864
 
865
+ class Invoice
866
+ class Representation < Google::Apis::Core::JsonRepresentation; end
867
+
868
+ include Google::Apis::Core::JsonObjectSupport
869
+ end
870
+
853
871
  class KeywordAssignedTargetingOptionDetails
854
872
  class Representation < Google::Apis::Core::JsonRepresentation; end
855
873
 
@@ -988,6 +1006,12 @@ module Google
988
1006
  include Google::Apis::Core::JsonObjectSupport
989
1007
  end
990
1008
 
1009
+ class ListInvoicesResponse
1010
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1011
+
1012
+ include Google::Apis::Core::JsonObjectSupport
1013
+ end
1014
+
991
1015
  class ListLineItemAssignedTargetingOptionsResponse
992
1016
  class Representation < Google::Apis::Core::JsonRepresentation; end
993
1017
 
@@ -1066,6 +1090,12 @@ module Google
1066
1090
  include Google::Apis::Core::JsonObjectSupport
1067
1091
  end
1068
1092
 
1093
+ class LookupInvoiceCurrencyResponse
1094
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1095
+
1096
+ include Google::Apis::Core::JsonObjectSupport
1097
+ end
1098
+
1069
1099
  class ManualTrigger
1070
1100
  class Representation < Google::Apis::Core::JsonRepresentation; end
1071
1101
 
@@ -1096,6 +1126,18 @@ module Google
1096
1126
  include Google::Apis::Core::JsonObjectSupport
1097
1127
  end
1098
1128
 
1129
+ class NativeContentPositionAssignedTargetingOptionDetails
1130
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1131
+
1132
+ include Google::Apis::Core::JsonObjectSupport
1133
+ end
1134
+
1135
+ class NativeContentPositionTargetingOptionDetails
1136
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1137
+
1138
+ include Google::Apis::Core::JsonObjectSupport
1139
+ end
1140
+
1099
1141
  class NegativeKeyword
1100
1142
  class Representation < Google::Apis::Core::JsonRepresentation; end
1101
1143
 
@@ -1222,6 +1264,18 @@ module Google
1222
1264
  include Google::Apis::Core::JsonObjectSupport
1223
1265
  end
1224
1266
 
1267
+ class PrismaConfig
1268
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1269
+
1270
+ include Google::Apis::Core::JsonObjectSupport
1271
+ end
1272
+
1273
+ class PrismaCpeCode
1274
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1275
+
1276
+ include Google::Apis::Core::JsonObjectSupport
1277
+ end
1278
+
1225
1279
  class ProximityLocationListAssignedTargetingOptionDetails
1226
1280
  class Representation < Google::Apis::Core::JsonRepresentation; end
1227
1281
 
@@ -1492,6 +1546,7 @@ module Google
1492
1546
 
1493
1547
  property :name, as: 'name'
1494
1548
  property :partner_id, :numeric_string => true, as: 'partnerId'
1549
+ property :prisma_enabled, as: 'prismaEnabled'
1495
1550
  property :serving_config, as: 'servingConfig', class: Google::Apis::DisplayvideoV1::AdvertiserTargetingConfig, decorator: Google::Apis::DisplayvideoV1::AdvertiserTargetingConfig::Representation
1496
1551
 
1497
1552
  property :update_time, as: 'updateTime'
@@ -1681,6 +1736,8 @@ module Google
1681
1736
  property :language_details, as: 'languageDetails', class: Google::Apis::DisplayvideoV1::LanguageAssignedTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::LanguageAssignedTargetingOptionDetails::Representation
1682
1737
 
1683
1738
  property :name, as: 'name'
1739
+ property :native_content_position_details, as: 'nativeContentPositionDetails', class: Google::Apis::DisplayvideoV1::NativeContentPositionAssignedTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::NativeContentPositionAssignedTargetingOptionDetails::Representation
1740
+
1684
1741
  property :negative_keyword_list_details, as: 'negativeKeywordListDetails', class: Google::Apis::DisplayvideoV1::NegativeKeywordListAssignedTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::NegativeKeywordListAssignedTargetingOptionDetails::Representation
1685
1742
 
1686
1743
  property :on_screen_position_details, as: 'onScreenPositionDetails', class: Google::Apis::DisplayvideoV1::OnScreenPositionAssignedTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::OnScreenPositionAssignedTargetingOptionDetails::Representation
@@ -1804,6 +1861,18 @@ module Google
1804
1861
  end
1805
1862
  end
1806
1863
 
1864
+ class BudgetSummary
1865
+ # @private
1866
+ class Representation < Google::Apis::Core::JsonRepresentation
1867
+ property :external_budget_id, as: 'externalBudgetId'
1868
+ property :pre_tax_amount_micros, :numeric_string => true, as: 'preTaxAmountMicros'
1869
+ property :prisma_cpe_code, as: 'prismaCpeCode', class: Google::Apis::DisplayvideoV1::PrismaCpeCode, decorator: Google::Apis::DisplayvideoV1::PrismaCpeCode::Representation
1870
+
1871
+ property :tax_amount_micros, :numeric_string => true, as: 'taxAmountMicros'
1872
+ property :total_amount_micros, :numeric_string => true, as: 'totalAmountMicros'
1873
+ end
1874
+ end
1875
+
1807
1876
  class BulkEditAdvertiserAssignedTargetingOptionsRequest
1808
1877
  # @private
1809
1878
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1987,6 +2056,8 @@ module Google
1987
2056
  # @private
1988
2057
  class Representation < Google::Apis::Core::JsonRepresentation
1989
2058
  property :advertiser_id, :numeric_string => true, as: 'advertiserId'
2059
+ collection :campaign_budgets, as: 'campaignBudgets', class: Google::Apis::DisplayvideoV1::CampaignBudget, decorator: Google::Apis::DisplayvideoV1::CampaignBudget::Representation
2060
+
1990
2061
  property :campaign_flight, as: 'campaignFlight', class: Google::Apis::DisplayvideoV1::CampaignFlight, decorator: Google::Apis::DisplayvideoV1::CampaignFlight::Representation
1991
2062
 
1992
2063
  property :campaign_goal, as: 'campaignGoal', class: Google::Apis::DisplayvideoV1::CampaignGoal, decorator: Google::Apis::DisplayvideoV1::CampaignGoal::Representation
@@ -2001,6 +2072,23 @@ module Google
2001
2072
  end
2002
2073
  end
2003
2074
 
2075
+ class CampaignBudget
2076
+ # @private
2077
+ class Representation < Google::Apis::Core::JsonRepresentation
2078
+ property :budget_amount_micros, :numeric_string => true, as: 'budgetAmountMicros'
2079
+ property :budget_id, :numeric_string => true, as: 'budgetId'
2080
+ property :budget_unit, as: 'budgetUnit'
2081
+ property :date_range, as: 'dateRange', class: Google::Apis::DisplayvideoV1::DateRange, decorator: Google::Apis::DisplayvideoV1::DateRange::Representation
2082
+
2083
+ property :display_name, as: 'displayName'
2084
+ property :external_budget_id, as: 'externalBudgetId'
2085
+ property :external_budget_source, as: 'externalBudgetSource'
2086
+ property :invoice_grouping_id, as: 'invoiceGroupingId'
2087
+ property :prisma_config, as: 'prismaConfig', class: Google::Apis::DisplayvideoV1::PrismaConfig, decorator: Google::Apis::DisplayvideoV1::PrismaConfig::Representation
2088
+
2089
+ end
2090
+ end
2091
+
2004
2092
  class CampaignFlight
2005
2093
  # @private
2006
2094
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2885,6 +2973,36 @@ module Google
2885
2973
  end
2886
2974
  end
2887
2975
 
2976
+ class Invoice
2977
+ # @private
2978
+ class Representation < Google::Apis::Core::JsonRepresentation
2979
+ property :budget_invoice_grouping_id, as: 'budgetInvoiceGroupingId'
2980
+ collection :budget_summaries, as: 'budgetSummaries', class: Google::Apis::DisplayvideoV1::BudgetSummary, decorator: Google::Apis::DisplayvideoV1::BudgetSummary::Representation
2981
+
2982
+ property :corrected_invoice_id, as: 'correctedInvoiceId'
2983
+ property :currency_code, as: 'currencyCode'
2984
+ property :display_name, as: 'displayName'
2985
+ property :due_date, as: 'dueDate', class: Google::Apis::DisplayvideoV1::Date, decorator: Google::Apis::DisplayvideoV1::Date::Representation
2986
+
2987
+ property :invoice_id, as: 'invoiceId'
2988
+ property :invoice_type, as: 'invoiceType'
2989
+ property :issue_date, as: 'issueDate', class: Google::Apis::DisplayvideoV1::Date, decorator: Google::Apis::DisplayvideoV1::Date::Representation
2990
+
2991
+ property :name, as: 'name'
2992
+ property :non_budget_micros, :numeric_string => true, as: 'nonBudgetMicros'
2993
+ property :payments_account_id, as: 'paymentsAccountId'
2994
+ property :payments_profile_id, as: 'paymentsProfileId'
2995
+ property :pdf_url, as: 'pdfUrl'
2996
+ property :purchase_order_number, as: 'purchaseOrderNumber'
2997
+ collection :replaced_invoice_ids, as: 'replacedInvoiceIds'
2998
+ property :service_date_range, as: 'serviceDateRange', class: Google::Apis::DisplayvideoV1::DateRange, decorator: Google::Apis::DisplayvideoV1::DateRange::Representation
2999
+
3000
+ property :subtotal_amount_micros, :numeric_string => true, as: 'subtotalAmountMicros'
3001
+ property :total_amount_micros, :numeric_string => true, as: 'totalAmountMicros'
3002
+ property :total_tax_amount_micros, :numeric_string => true, as: 'totalTaxAmountMicros'
3003
+ end
3004
+ end
3005
+
2888
3006
  class KeywordAssignedTargetingOptionDetails
2889
3007
  # @private
2890
3008
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3121,6 +3239,15 @@ module Google
3121
3239
  end
3122
3240
  end
3123
3241
 
3242
+ class ListInvoicesResponse
3243
+ # @private
3244
+ class Representation < Google::Apis::Core::JsonRepresentation
3245
+ collection :invoices, as: 'invoices', class: Google::Apis::DisplayvideoV1::Invoice, decorator: Google::Apis::DisplayvideoV1::Invoice::Representation
3246
+
3247
+ property :next_page_token, as: 'nextPageToken'
3248
+ end
3249
+ end
3250
+
3124
3251
  class ListLineItemAssignedTargetingOptionsResponse
3125
3252
  # @private
3126
3253
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3239,6 +3366,13 @@ module Google
3239
3366
  end
3240
3367
  end
3241
3368
 
3369
+ class LookupInvoiceCurrencyResponse
3370
+ # @private
3371
+ class Representation < Google::Apis::Core::JsonRepresentation
3372
+ property :currency_code, as: 'currencyCode'
3373
+ end
3374
+ end
3375
+
3242
3376
  class ManualTrigger
3243
3377
  # @private
3244
3378
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3288,6 +3422,21 @@ module Google
3288
3422
  end
3289
3423
  end
3290
3424
 
3425
+ class NativeContentPositionAssignedTargetingOptionDetails
3426
+ # @private
3427
+ class Representation < Google::Apis::Core::JsonRepresentation
3428
+ property :content_position, as: 'contentPosition'
3429
+ property :targeting_option_id, as: 'targetingOptionId'
3430
+ end
3431
+ end
3432
+
3433
+ class NativeContentPositionTargetingOptionDetails
3434
+ # @private
3435
+ class Representation < Google::Apis::Core::JsonRepresentation
3436
+ property :content_position, as: 'contentPosition'
3437
+ end
3438
+ end
3439
+
3291
3440
  class NegativeKeyword
3292
3441
  # @private
3293
3442
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3489,6 +3638,25 @@ module Google
3489
3638
  end
3490
3639
  end
3491
3640
 
3641
+ class PrismaConfig
3642
+ # @private
3643
+ class Representation < Google::Apis::Core::JsonRepresentation
3644
+ property :prisma_cpe_code, as: 'prismaCpeCode', class: Google::Apis::DisplayvideoV1::PrismaCpeCode, decorator: Google::Apis::DisplayvideoV1::PrismaCpeCode::Representation
3645
+
3646
+ property :prisma_type, as: 'prismaType'
3647
+ property :supplier, as: 'supplier'
3648
+ end
3649
+ end
3650
+
3651
+ class PrismaCpeCode
3652
+ # @private
3653
+ class Representation < Google::Apis::Core::JsonRepresentation
3654
+ property :prisma_client_code, as: 'prismaClientCode'
3655
+ property :prisma_estimate_code, as: 'prismaEstimateCode'
3656
+ property :prisma_product_code, as: 'prismaProductCode'
3657
+ end
3658
+ end
3659
+
3492
3660
  class ProximityLocationListAssignedTargetingOptionDetails
3493
3661
  # @private
3494
3662
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3708,6 +3876,8 @@ module Google
3708
3876
  property :language_details, as: 'languageDetails', class: Google::Apis::DisplayvideoV1::LanguageTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::LanguageTargetingOptionDetails::Representation
3709
3877
 
3710
3878
  property :name, as: 'name'
3879
+ property :native_content_position_details, as: 'nativeContentPositionDetails', class: Google::Apis::DisplayvideoV1::NativeContentPositionTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::NativeContentPositionTargetingOptionDetails::Representation
3880
+
3711
3881
  property :on_screen_position_details, as: 'onScreenPositionDetails', class: Google::Apis::DisplayvideoV1::OnScreenPositionTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::OnScreenPositionTargetingOptionDetails::Representation
3712
3882
 
3713
3883
  property :operating_system_details, as: 'operatingSystemDetails', class: Google::Apis::DisplayvideoV1::OperatingSystemTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::OperatingSystemTargetingOptionDetails::Representation
@@ -1809,6 +1809,88 @@ module Google
1809
1809
  execute_or_queue_command(command, &block)
1810
1810
  end
1811
1811
 
1812
+ # List invoices for an advertiser.
1813
+ # @param [Fixnum] advertiser_id
1814
+ # Required. The ID of the advertiser to list invoices for.
1815
+ # @param [String] issue_month
1816
+ # Required. Month for which invoices are needed in the format YYYYMM.
1817
+ # @param [String] loi_sapin_invoice_type
1818
+ # Select type of invoice to query for Loi Sapin advertisers. Otherwise its
1819
+ # ignored.
1820
+ # @param [Fixnum] page_size
1821
+ # Requested page size. Must be between `1` and `100`. If unspecified will
1822
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
1823
+ # specified.
1824
+ # @param [String] page_token
1825
+ # A token identifying a page of results the server should return. Typically,
1826
+ # this is the value of [ListInvoicesResponse.next_page_token] returned from the
1827
+ # previous call to `ListInvoice` method. If not specified, the first page of
1828
+ # results will be returned.
1829
+ # @param [String] fields
1830
+ # Selector specifying which fields to include in a partial response.
1831
+ # @param [String] quota_user
1832
+ # Available to use for quota purposes for server-side applications. Can be any
1833
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1834
+ # @param [Google::Apis::RequestOptions] options
1835
+ # Request-specific options
1836
+ #
1837
+ # @yield [result, err] Result & error if block supplied
1838
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListInvoicesResponse] parsed result object
1839
+ # @yieldparam err [StandardError] error object if request failed
1840
+ #
1841
+ # @return [Google::Apis::DisplayvideoV1::ListInvoicesResponse]
1842
+ #
1843
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1844
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1845
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1846
+ def list_advertiser_invoices(advertiser_id, issue_month: nil, loi_sapin_invoice_type: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1847
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/invoices', options)
1848
+ command.response_representation = Google::Apis::DisplayvideoV1::ListInvoicesResponse::Representation
1849
+ command.response_class = Google::Apis::DisplayvideoV1::ListInvoicesResponse
1850
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
1851
+ command.query['issueMonth'] = issue_month unless issue_month.nil?
1852
+ command.query['loiSapinInvoiceType'] = loi_sapin_invoice_type unless loi_sapin_invoice_type.nil?
1853
+ command.query['pageSize'] = page_size unless page_size.nil?
1854
+ command.query['pageToken'] = page_token unless page_token.nil?
1855
+ command.query['fields'] = fields unless fields.nil?
1856
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1857
+ execute_or_queue_command(command, &block)
1858
+ end
1859
+
1860
+ # Lookup invoice currency for an advertiser.
1861
+ # @param [Fixnum] advertiser_id
1862
+ # Required. The ID of the advertiser to lookup currency for.
1863
+ # @param [String] invoice_month
1864
+ # Month for which currency is needed in the format YYYYMM. If not set Api would
1865
+ # return currency based on current settings.
1866
+ # @param [String] fields
1867
+ # Selector specifying which fields to include in a partial response.
1868
+ # @param [String] quota_user
1869
+ # Available to use for quota purposes for server-side applications. Can be any
1870
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1871
+ # @param [Google::Apis::RequestOptions] options
1872
+ # Request-specific options
1873
+ #
1874
+ # @yield [result, err] Result & error if block supplied
1875
+ # @yieldparam result [Google::Apis::DisplayvideoV1::LookupInvoiceCurrencyResponse] parsed result object
1876
+ # @yieldparam err [StandardError] error object if request failed
1877
+ #
1878
+ # @return [Google::Apis::DisplayvideoV1::LookupInvoiceCurrencyResponse]
1879
+ #
1880
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1881
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1882
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1883
+ def lookup_advertiser_invoice_invoice_currency(advertiser_id, invoice_month: nil, fields: nil, quota_user: nil, options: nil, &block)
1884
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/invoices:lookupInvoiceCurrency', options)
1885
+ command.response_representation = Google::Apis::DisplayvideoV1::LookupInvoiceCurrencyResponse::Representation
1886
+ command.response_class = Google::Apis::DisplayvideoV1::LookupInvoiceCurrencyResponse
1887
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
1888
+ command.query['invoiceMonth'] = invoice_month unless invoice_month.nil?
1889
+ command.query['fields'] = fields unless fields.nil?
1890
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1891
+ execute_or_queue_command(command, &block)
1892
+ end
1893
+
1812
1894
  # Bulk edits targeting options under a single line item. The operation will
1813
1895
  # delete the assigned targeting options provided in
1814
1896
  # BulkEditLineItemAssignedTargetingOptionsRequest.delete_requests and then
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-displayvideo_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-18 00:00:00.000000000 Z
11
+ date: 2021-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-displayvideo_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-displayvideo_v1/v0.8.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-displayvideo_v1/v0.9.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-displayvideo_v1
57
57
  post_install_message:
58
58
  rdoc_options: []