google-apis-displayvideo_v1 0.17.0 → 0.21.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: a126db3462c300c7828fa65a49908e4a278171ae215fcb8ec1038b9af137480f
4
- data.tar.gz: 568711e83a1569462ed938c955b610e8edb32d2abf87faaf3f3b831af7b9404c
3
+ metadata.gz: cc60a89f428748408617bd671bad072b260cfb9e368be3e0e326030d5539ef57
4
+ data.tar.gz: a5b7972f3533605ef3000b247ac48a9587df9f992b7575b0161c5ce07d47ccf6
5
5
  SHA512:
6
- metadata.gz: 8c4bc5227cf9a42854b3dcf9a8e15d5e1c12af276cc91bc6ae3045a3532478d1ca980ffd3133e6dd0467623e1aee94305c64c99e35be34d4f844459a9b7f89c8
7
- data.tar.gz: 884f4d07cb53def4a6fcafc6735b02e2137739cbe0c984447f924d08a2038b3915b850eb98974421519882d259629a1d8d67782b25d93a12f01f5973da062e87
6
+ metadata.gz: e75a7854429154fb9d917dd11235049049cd4f6f8a4567ee5f01e8a53a08a28603d9a4c338c2e1180a1b4d99163727f83e2a4ed12edd758a0d4f74a7d82173af
7
+ data.tar.gz: 1306f4fbcc68438d26787576e31f8e02cf8f09e88ffb63dbb2c2f6f9250474d7140550ecaebed602dd3b007f2dada98601bcf35a2dabf45711a4cd05bbe9ecda
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-displayvideo_v1
2
2
 
3
+ ### v0.21.0 (2021-12-14)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.20.0 (2021-12-07)
8
+
9
+ * Regenerated from discovery document revision 20211206
10
+
11
+ ### v0.19.0 (2021-10-22)
12
+
13
+ * Regenerated from discovery document revision 20211021
14
+ * Unspecified changes
15
+
16
+ ### v0.18.0 (2021-10-01)
17
+
18
+ * Regenerated from discovery document revision 20210930
19
+
3
20
  ### v0.17.0 (2021-09-21)
4
21
 
5
22
  * Regenerated from discovery document revision 20210920
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/displayvideo_v1"
51
51
  client = Google::Apis::DisplayvideoV1::DisplayVideoService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Displayvideo service in particular.)
67
67
 
@@ -721,6 +721,15 @@ module Google
721
721
  # @return [Google::Apis::DisplayvideoV1::AudienceGroupAssignedTargetingOptionDetails]
722
722
  attr_accessor :audience_group_details
723
723
 
724
+ # Details for audio content type assigned targeting option. This will be
725
+ # populated in the audio_content_type_details field when targeting_type is `
726
+ # TARGETING_TYPE_AUDIO_CONTENT_TYPE`. Explicitly targeting all options is not
727
+ # supported. Remove all audio content type targeting options to achieve this
728
+ # effect.
729
+ # Corresponds to the JSON property `audioContentTypeDetails`
730
+ # @return [Google::Apis::DisplayvideoV1::AudioContentTypeAssignedTargetingOptionDetails]
731
+ attr_accessor :audio_content_type_details
732
+
724
733
  # Represents an assigned authorized seller status. This will be populated in the
725
734
  # details field of an AssignedTargetingOption when targeting_type is `
726
735
  # TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`.
@@ -1009,6 +1018,7 @@ module Google
1009
1018
  @app_details = args[:app_details] if args.key?(:app_details)
1010
1019
  @assigned_targeting_option_id = args[:assigned_targeting_option_id] if args.key?(:assigned_targeting_option_id)
1011
1020
  @audience_group_details = args[:audience_group_details] if args.key?(:audience_group_details)
1021
+ @audio_content_type_details = args[:audio_content_type_details] if args.key?(:audio_content_type_details)
1012
1022
  @authorized_seller_status_details = args[:authorized_seller_status_details] if args.key?(:authorized_seller_status_details)
1013
1023
  @browser_details = args[:browser_details] if args.key?(:browser_details)
1014
1024
  @business_chain_details = args[:business_chain_details] if args.key?(:business_chain_details)
@@ -1154,6 +1164,57 @@ module Google
1154
1164
  end
1155
1165
  end
1156
1166
 
1167
+ # Details for audio content type assigned targeting option. This will be
1168
+ # populated in the audio_content_type_details field when targeting_type is `
1169
+ # TARGETING_TYPE_AUDIO_CONTENT_TYPE`. Explicitly targeting all options is not
1170
+ # supported. Remove all audio content type targeting options to achieve this
1171
+ # effect.
1172
+ class AudioContentTypeAssignedTargetingOptionDetails
1173
+ include Google::Apis::Core::Hashable
1174
+
1175
+ # Output only. The audio content type.
1176
+ # Corresponds to the JSON property `audioContentType`
1177
+ # @return [String]
1178
+ attr_accessor :audio_content_type
1179
+
1180
+ # Required. The targeting_option_id field when targeting_type is `
1181
+ # TARGETING_TYPE_AUDIO_CONTENT_TYPE`.
1182
+ # Corresponds to the JSON property `targetingOptionId`
1183
+ # @return [String]
1184
+ attr_accessor :targeting_option_id
1185
+
1186
+ def initialize(**args)
1187
+ update!(**args)
1188
+ end
1189
+
1190
+ # Update properties of this object
1191
+ def update!(**args)
1192
+ @audio_content_type = args[:audio_content_type] if args.key?(:audio_content_type)
1193
+ @targeting_option_id = args[:targeting_option_id] if args.key?(:targeting_option_id)
1194
+ end
1195
+ end
1196
+
1197
+ # Represents a targetable audio content type. This will be populated in the
1198
+ # audio_content_type_details field when targeting_type is `
1199
+ # TARGETING_TYPE_AUDIO_CONTENT_TYPE`.
1200
+ class AudioContentTypeTargetingOptionDetails
1201
+ include Google::Apis::Core::Hashable
1202
+
1203
+ # Output only. The audio content type.
1204
+ # Corresponds to the JSON property `audioContentType`
1205
+ # @return [String]
1206
+ attr_accessor :audio_content_type
1207
+
1208
+ def initialize(**args)
1209
+ update!(**args)
1210
+ end
1211
+
1212
+ # Update properties of this object
1213
+ def update!(**args)
1214
+ @audio_content_type = args[:audio_content_type] if args.key?(:audio_content_type)
1215
+ end
1216
+ end
1217
+
1157
1218
  # The length an audio or a video has been played.
1158
1219
  class AudioVideoOffset
1159
1220
  include Google::Apis::Core::Hashable
@@ -3489,6 +3550,92 @@ module Google
3489
3550
  end
3490
3551
  end
3491
3552
 
3553
+ # A single custom bidding script.
3554
+ class CustomBiddingScript
3555
+ include Google::Apis::Core::Hashable
3556
+
3557
+ # Output only. Whether the script is currently being used for scoring by the
3558
+ # parent algorithm.
3559
+ # Corresponds to the JSON property `active`
3560
+ # @return [Boolean]
3561
+ attr_accessor :active
3562
+ alias_method :active?, :active
3563
+
3564
+ # Output only. The time when the script was created.
3565
+ # Corresponds to the JSON property `createTime`
3566
+ # @return [String]
3567
+ attr_accessor :create_time
3568
+
3569
+ # Output only. The unique ID of the custom bidding algorithm the script belongs
3570
+ # to.
3571
+ # Corresponds to the JSON property `customBiddingAlgorithmId`
3572
+ # @return [Fixnum]
3573
+ attr_accessor :custom_bidding_algorithm_id
3574
+
3575
+ # Output only. The unique ID of the custom bidding script.
3576
+ # Corresponds to the JSON property `customBiddingScriptId`
3577
+ # @return [Fixnum]
3578
+ attr_accessor :custom_bidding_script_id
3579
+
3580
+ # Output only. Error details of a rejected custom bidding script. This field
3581
+ # will only be populated when Script.state is REJECTED.
3582
+ # Corresponds to the JSON property `errors`
3583
+ # @return [Array<Google::Apis::DisplayvideoV1::ScriptError>]
3584
+ attr_accessor :errors
3585
+
3586
+ # Output only. The resource name of the custom bidding script.
3587
+ # Corresponds to the JSON property `name`
3588
+ # @return [String]
3589
+ attr_accessor :name
3590
+
3591
+ # The reference to the uploaded custom bidding script file.
3592
+ # Corresponds to the JSON property `script`
3593
+ # @return [Google::Apis::DisplayvideoV1::CustomBiddingScriptRef]
3594
+ attr_accessor :script
3595
+
3596
+ # Output only. The state of the custom bidding script.
3597
+ # Corresponds to the JSON property `state`
3598
+ # @return [String]
3599
+ attr_accessor :state
3600
+
3601
+ def initialize(**args)
3602
+ update!(**args)
3603
+ end
3604
+
3605
+ # Update properties of this object
3606
+ def update!(**args)
3607
+ @active = args[:active] if args.key?(:active)
3608
+ @create_time = args[:create_time] if args.key?(:create_time)
3609
+ @custom_bidding_algorithm_id = args[:custom_bidding_algorithm_id] if args.key?(:custom_bidding_algorithm_id)
3610
+ @custom_bidding_script_id = args[:custom_bidding_script_id] if args.key?(:custom_bidding_script_id)
3611
+ @errors = args[:errors] if args.key?(:errors)
3612
+ @name = args[:name] if args.key?(:name)
3613
+ @script = args[:script] if args.key?(:script)
3614
+ @state = args[:state] if args.key?(:state)
3615
+ end
3616
+ end
3617
+
3618
+ # The reference to the uploaded custom bidding script file.
3619
+ class CustomBiddingScriptRef
3620
+ include Google::Apis::Core::Hashable
3621
+
3622
+ # A resource name to be used in media.download to Download the script files. Or
3623
+ # media.upload to Upload the script files. Resource names have the format `
3624
+ # customBiddingAlgorithms/`custom_bidding_algorithm_id`/scriptRef/`ref_id``.
3625
+ # Corresponds to the JSON property `resourceName`
3626
+ # @return [String]
3627
+ attr_accessor :resource_name
3628
+
3629
+ def initialize(**args)
3630
+ update!(**args)
3631
+ end
3632
+
3633
+ # Update properties of this object
3634
+ def update!(**args)
3635
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
3636
+ end
3637
+ end
3638
+
3492
3639
  # Describes a custom list entity, such as a custom affinity or custom intent
3493
3640
  # audience list.
3494
3641
  class CustomList
@@ -6427,6 +6574,34 @@ module Google
6427
6574
  end
6428
6575
  end
6429
6576
 
6577
+ #
6578
+ class ListCustomBiddingScriptsResponse
6579
+ include Google::Apis::Core::Hashable
6580
+
6581
+ # The list of custom bidding scripts. This list will be absent if empty.
6582
+ # Corresponds to the JSON property `customBiddingScripts`
6583
+ # @return [Array<Google::Apis::DisplayvideoV1::CustomBiddingScript>]
6584
+ attr_accessor :custom_bidding_scripts
6585
+
6586
+ # A token to retrieve the next page of results. Pass this value in the
6587
+ # page_token field in the subsequent call to `ListCustomBiddingScriptsRequest`
6588
+ # method to retrieve the next page of results. If this field is null, it means
6589
+ # this is the last page.
6590
+ # Corresponds to the JSON property `nextPageToken`
6591
+ # @return [String]
6592
+ attr_accessor :next_page_token
6593
+
6594
+ def initialize(**args)
6595
+ update!(**args)
6596
+ end
6597
+
6598
+ # Update properties of this object
6599
+ def update!(**args)
6600
+ @custom_bidding_scripts = args[:custom_bidding_scripts] if args.key?(:custom_bidding_scripts)
6601
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
6602
+ end
6603
+ end
6604
+
6430
6605
  #
6431
6606
  class ListCustomListsResponse
6432
6607
  include Google::Apis::Core::Hashable
@@ -8597,6 +8772,43 @@ module Google
8597
8772
  end
8598
8773
  end
8599
8774
 
8775
+ # An error message for a custom bidding script.
8776
+ class ScriptError
8777
+ include Google::Apis::Core::Hashable
8778
+
8779
+ # The column number in the script where the error was thrown.
8780
+ # Corresponds to the JSON property `column`
8781
+ # @return [Fixnum]
8782
+ attr_accessor :column
8783
+
8784
+ # The type of error.
8785
+ # Corresponds to the JSON property `errorCode`
8786
+ # @return [String]
8787
+ attr_accessor :error_code
8788
+
8789
+ # The detailed error message.
8790
+ # Corresponds to the JSON property `errorMessage`
8791
+ # @return [String]
8792
+ attr_accessor :error_message
8793
+
8794
+ # The line number in the script where the error was thrown.
8795
+ # Corresponds to the JSON property `line`
8796
+ # @return [Fixnum]
8797
+ attr_accessor :line
8798
+
8799
+ def initialize(**args)
8800
+ update!(**args)
8801
+ end
8802
+
8803
+ # Update properties of this object
8804
+ def update!(**args)
8805
+ @column = args[:column] if args.key?(:column)
8806
+ @error_code = args[:error_code] if args.key?(:error_code)
8807
+ @error_message = args[:error_message] if args.key?(:error_message)
8808
+ @line = args[:line] if args.key?(:line)
8809
+ end
8810
+ end
8811
+
8600
8812
  # Structured Data File (SDF) related settings.
8601
8813
  class SdfConfig
8602
8814
  include Google::Apis::Core::Hashable
@@ -8967,6 +9179,13 @@ module Google
8967
9179
  # @return [Google::Apis::DisplayvideoV1::AppCategoryTargetingOptionDetails]
8968
9180
  attr_accessor :app_category_details
8969
9181
 
9182
+ # Represents a targetable audio content type. This will be populated in the
9183
+ # audio_content_type_details field when targeting_type is `
9184
+ # TARGETING_TYPE_AUDIO_CONTENT_TYPE`.
9185
+ # Corresponds to the JSON property `audioContentTypeDetails`
9186
+ # @return [Google::Apis::DisplayvideoV1::AudioContentTypeTargetingOptionDetails]
9187
+ attr_accessor :audio_content_type_details
9188
+
8970
9189
  # Represents a targetable authorized seller status. This will be populated in
8971
9190
  # the authorized_seller_status_details field when targeting_type is `
8972
9191
  # TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`.
@@ -9177,6 +9396,7 @@ module Google
9177
9396
  def update!(**args)
9178
9397
  @age_range_details = args[:age_range_details] if args.key?(:age_range_details)
9179
9398
  @app_category_details = args[:app_category_details] if args.key?(:app_category_details)
9399
+ @audio_content_type_details = args[:audio_content_type_details] if args.key?(:audio_content_type_details)
9180
9400
  @authorized_seller_status_details = args[:authorized_seller_status_details] if args.key?(:authorized_seller_status_details)
9181
9401
  @browser_details = args[:browser_details] if args.key?(:browser_details)
9182
9402
  @business_chain_details = args[:business_chain_details] if args.key?(:business_chain_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.17.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210920"
25
+ REVISION = "20211206"
26
26
  end
27
27
  end
28
28
  end
@@ -154,6 +154,18 @@ module Google
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
+ class AudioContentTypeAssignedTargetingOptionDetails
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class AudioContentTypeTargetingOptionDetails
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
157
169
  class AudioVideoOffset
158
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
171
 
@@ -508,6 +520,18 @@ module Google
508
520
  include Google::Apis::Core::JsonObjectSupport
509
521
  end
510
522
 
523
+ class CustomBiddingScript
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
529
+ class CustomBiddingScriptRef
530
+ class Representation < Google::Apis::Core::JsonRepresentation; end
531
+
532
+ include Google::Apis::Core::JsonObjectSupport
533
+ end
534
+
511
535
  class CustomList
512
536
  class Representation < Google::Apis::Core::JsonRepresentation; end
513
537
 
@@ -982,6 +1006,12 @@ module Google
982
1006
  include Google::Apis::Core::JsonObjectSupport
983
1007
  end
984
1008
 
1009
+ class ListCustomBiddingScriptsResponse
1010
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1011
+
1012
+ include Google::Apis::Core::JsonObjectSupport
1013
+ end
1014
+
985
1015
  class ListCustomListsResponse
986
1016
  class Representation < Google::Apis::Core::JsonRepresentation; end
987
1017
 
@@ -1378,6 +1408,12 @@ module Google
1378
1408
  include Google::Apis::Core::JsonObjectSupport
1379
1409
  end
1380
1410
 
1411
+ class ScriptError
1412
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1413
+
1414
+ include Google::Apis::Core::JsonObjectSupport
1415
+ end
1416
+
1381
1417
  class SdfConfig
1382
1418
  class Representation < Google::Apis::Core::JsonRepresentation; end
1383
1419
 
@@ -1742,6 +1778,8 @@ module Google
1742
1778
  property :assigned_targeting_option_id, as: 'assignedTargetingOptionId'
1743
1779
  property :audience_group_details, as: 'audienceGroupDetails', class: Google::Apis::DisplayvideoV1::AudienceGroupAssignedTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::AudienceGroupAssignedTargetingOptionDetails::Representation
1744
1780
 
1781
+ property :audio_content_type_details, as: 'audioContentTypeDetails', class: Google::Apis::DisplayvideoV1::AudioContentTypeAssignedTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::AudioContentTypeAssignedTargetingOptionDetails::Representation
1782
+
1745
1783
  property :authorized_seller_status_details, as: 'authorizedSellerStatusDetails', class: Google::Apis::DisplayvideoV1::AuthorizedSellerStatusAssignedTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::AuthorizedSellerStatusAssignedTargetingOptionDetails::Representation
1746
1784
 
1747
1785
  property :browser_details, as: 'browserDetails', class: Google::Apis::DisplayvideoV1::BrowserAssignedTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::BrowserAssignedTargetingOptionDetails::Representation
@@ -1850,6 +1888,21 @@ module Google
1850
1888
  end
1851
1889
  end
1852
1890
 
1891
+ class AudioContentTypeAssignedTargetingOptionDetails
1892
+ # @private
1893
+ class Representation < Google::Apis::Core::JsonRepresentation
1894
+ property :audio_content_type, as: 'audioContentType'
1895
+ property :targeting_option_id, as: 'targetingOptionId'
1896
+ end
1897
+ end
1898
+
1899
+ class AudioContentTypeTargetingOptionDetails
1900
+ # @private
1901
+ class Representation < Google::Apis::Core::JsonRepresentation
1902
+ property :audio_content_type, as: 'audioContentType'
1903
+ end
1904
+ end
1905
+
1853
1906
  class AudioVideoOffset
1854
1907
  # @private
1855
1908
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2468,6 +2521,29 @@ module Google
2468
2521
  end
2469
2522
  end
2470
2523
 
2524
+ class CustomBiddingScript
2525
+ # @private
2526
+ class Representation < Google::Apis::Core::JsonRepresentation
2527
+ property :active, as: 'active'
2528
+ property :create_time, as: 'createTime'
2529
+ property :custom_bidding_algorithm_id, :numeric_string => true, as: 'customBiddingAlgorithmId'
2530
+ property :custom_bidding_script_id, :numeric_string => true, as: 'customBiddingScriptId'
2531
+ collection :errors, as: 'errors', class: Google::Apis::DisplayvideoV1::ScriptError, decorator: Google::Apis::DisplayvideoV1::ScriptError::Representation
2532
+
2533
+ property :name, as: 'name'
2534
+ property :script, as: 'script', class: Google::Apis::DisplayvideoV1::CustomBiddingScriptRef, decorator: Google::Apis::DisplayvideoV1::CustomBiddingScriptRef::Representation
2535
+
2536
+ property :state, as: 'state'
2537
+ end
2538
+ end
2539
+
2540
+ class CustomBiddingScriptRef
2541
+ # @private
2542
+ class Representation < Google::Apis::Core::JsonRepresentation
2543
+ property :resource_name, as: 'resourceName'
2544
+ end
2545
+ end
2546
+
2471
2547
  class CustomList
2472
2548
  # @private
2473
2549
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3259,6 +3335,15 @@ module Google
3259
3335
  end
3260
3336
  end
3261
3337
 
3338
+ class ListCustomBiddingScriptsResponse
3339
+ # @private
3340
+ class Representation < Google::Apis::Core::JsonRepresentation
3341
+ collection :custom_bidding_scripts, as: 'customBiddingScripts', class: Google::Apis::DisplayvideoV1::CustomBiddingScript, decorator: Google::Apis::DisplayvideoV1::CustomBiddingScript::Representation
3342
+
3343
+ property :next_page_token, as: 'nextPageToken'
3344
+ end
3345
+ end
3346
+
3262
3347
  class ListCustomListsResponse
3263
3348
  # @private
3264
3349
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3866,6 +3951,16 @@ module Google
3866
3951
  end
3867
3952
  end
3868
3953
 
3954
+ class ScriptError
3955
+ # @private
3956
+ class Representation < Google::Apis::Core::JsonRepresentation
3957
+ property :column, :numeric_string => true, as: 'column'
3958
+ property :error_code, as: 'errorCode'
3959
+ property :error_message, as: 'errorMessage'
3960
+ property :line, :numeric_string => true, as: 'line'
3961
+ end
3962
+ end
3963
+
3869
3964
  class SdfConfig
3870
3965
  # @private
3871
3966
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3975,6 +4070,8 @@ module Google
3975
4070
 
3976
4071
  property :app_category_details, as: 'appCategoryDetails', class: Google::Apis::DisplayvideoV1::AppCategoryTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::AppCategoryTargetingOptionDetails::Representation
3977
4072
 
4073
+ property :audio_content_type_details, as: 'audioContentTypeDetails', class: Google::Apis::DisplayvideoV1::AudioContentTypeTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::AudioContentTypeTargetingOptionDetails::Representation
4074
+
3978
4075
  property :authorized_seller_status_details, as: 'authorizedSellerStatusDetails', class: Google::Apis::DisplayvideoV1::AuthorizedSellerStatusTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::AuthorizedSellerStatusTargetingOptionDetails::Representation
3979
4076
 
3980
4077
  property :browser_details, as: 'browserDetails', class: Google::Apis::DisplayvideoV1::BrowserTargetingOptionDetails, decorator: Google::Apis::DisplayvideoV1::BrowserTargetingOptionDetails::Representation
@@ -22,8 +22,9 @@ module Google
22
22
  module DisplayvideoV1
23
23
  # Display & Video 360 API
24
24
  #
25
- # Display & Video 360 API allows users to manage and create campaigns and
26
- # reports.
25
+ # Display & Video 360 API allows users to automate complex Display & Video 360
26
+ # workflows, such as creating insertion orders and setting targeting options for
27
+ # individual line items.
27
28
  #
28
29
  # @example
29
30
  # require 'google/apis/displayvideo_v1'
@@ -1898,7 +1899,11 @@ module Google
1898
1899
  # delete the assigned targeting options provided in
1899
1900
  # BulkEditLineItemAssignedTargetingOptionsRequest.delete_requests and then
1900
1901
  # create the assigned targeting options provided in
1901
- # BulkEditLineItemAssignedTargetingOptionsRequest.create_requests .
1902
+ # BulkEditLineItemAssignedTargetingOptionsRequest.create_requests. Requests to
1903
+ # this endpoint cannot be made concurrently with the following requests updating
1904
+ # the same line item: * BulkEditLineItemAssignedTargetingOptions *
1905
+ # UpdateLineItem * CreateLineItemAssignedTargetingOption *
1906
+ # DeleteLineItemAssignedTargetingOption
1902
1907
  # @param [Fixnum] advertiser_id
1903
1908
  # Required. The ID of the advertiser the line item belongs to.
1904
1909
  # @param [Fixnum] line_item_id
@@ -2216,6 +2221,10 @@ module Google
2216
2221
  end
2217
2222
 
2218
2223
  # Updates an existing line item. Returns the updated line item if successful.
2224
+ # Requests to this endpoint cannot be made concurrently with the following
2225
+ # requests updating the same line item: *
2226
+ # BulkEditLineItemAssignedTargetingOptions * UpdateLineItem *
2227
+ # CreateLineItemAssignedTargetingOption * DeleteLineItemAssignedTargetingOption
2219
2228
  # @param [Fixnum] advertiser_id
2220
2229
  # Output only. The unique ID of the advertiser the line item belongs to.
2221
2230
  # @param [Fixnum] line_item_id
@@ -2255,7 +2264,10 @@ module Google
2255
2264
  end
2256
2265
 
2257
2266
  # Assigns a targeting option to a line item. Returns the assigned targeting
2258
- # option if successful.
2267
+ # option if successful. Requests to this endpoint cannot be made concurrently
2268
+ # with the following requests updating the same line item: *
2269
+ # BulkEditLineItemAssignedTargetingOptions * UpdateLineItem *
2270
+ # CreateLineItemAssignedTargetingOption * DeleteLineItemAssignedTargetingOption
2259
2271
  # @param [Fixnum] advertiser_id
2260
2272
  # Required. The ID of the advertiser the line item belongs to.
2261
2273
  # @param [Fixnum] line_item_id
@@ -2294,7 +2306,10 @@ module Google
2294
2306
  execute_or_queue_command(command, &block)
2295
2307
  end
2296
2308
 
2297
- # Deletes an assigned targeting option from a line item.
2309
+ # Deletes an assigned targeting option from a line item. Requests to this
2310
+ # endpoint cannot be made concurrently with the following requests updating the
2311
+ # same line item: * BulkEditLineItemAssignedTargetingOptions * UpdateLineItem *
2312
+ # CreateLineItemAssignedTargetingOption * DeleteLineItemAssignedTargetingOption
2298
2313
  # @param [Fixnum] advertiser_id
2299
2314
  # Required. The ID of the advertiser the line item belongs to.
2300
2315
  # @param [Fixnum] line_item_id
@@ -3694,6 +3709,37 @@ module Google
3694
3709
  execute_or_queue_command(command, &block)
3695
3710
  end
3696
3711
 
3712
+ # Creates a new custom bidding algorithm. Returns the newly created custom
3713
+ # bidding algorithm if successful.
3714
+ # @param [Google::Apis::DisplayvideoV1::CustomBiddingAlgorithm] custom_bidding_algorithm_object
3715
+ # @param [String] fields
3716
+ # Selector specifying which fields to include in a partial response.
3717
+ # @param [String] quota_user
3718
+ # Available to use for quota purposes for server-side applications. Can be any
3719
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3720
+ # @param [Google::Apis::RequestOptions] options
3721
+ # Request-specific options
3722
+ #
3723
+ # @yield [result, err] Result & error if block supplied
3724
+ # @yieldparam result [Google::Apis::DisplayvideoV1::CustomBiddingAlgorithm] parsed result object
3725
+ # @yieldparam err [StandardError] error object if request failed
3726
+ #
3727
+ # @return [Google::Apis::DisplayvideoV1::CustomBiddingAlgorithm]
3728
+ #
3729
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3730
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3731
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3732
+ def create_custom_bidding_algorithm(custom_bidding_algorithm_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3733
+ command = make_simple_command(:post, 'v1/customBiddingAlgorithms', options)
3734
+ command.request_representation = Google::Apis::DisplayvideoV1::CustomBiddingAlgorithm::Representation
3735
+ command.request_object = custom_bidding_algorithm_object
3736
+ command.response_representation = Google::Apis::DisplayvideoV1::CustomBiddingAlgorithm::Representation
3737
+ command.response_class = Google::Apis::DisplayvideoV1::CustomBiddingAlgorithm
3738
+ command.query['fields'] = fields unless fields.nil?
3739
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3740
+ execute_or_queue_command(command, &block)
3741
+ end
3742
+
3697
3743
  # Gets a custom bidding algorithm.
3698
3744
  # @param [Fixnum] custom_bidding_algorithm_id
3699
3745
  # Required. The ID of the custom bidding algorithm to fetch.
@@ -3803,6 +3849,219 @@ module Google
3803
3849
  execute_or_queue_command(command, &block)
3804
3850
  end
3805
3851
 
3852
+ # Updates an existing custom bidding algorithm. Returns the updated custom
3853
+ # bidding algorithm if successful.
3854
+ # @param [Fixnum] custom_bidding_algorithm_id
3855
+ # Output only. The unique ID of the custom bidding algorithm. Assigned by the
3856
+ # system.
3857
+ # @param [Google::Apis::DisplayvideoV1::CustomBiddingAlgorithm] custom_bidding_algorithm_object
3858
+ # @param [String] update_mask
3859
+ # Required. The mask to control which fields to update.
3860
+ # @param [String] fields
3861
+ # Selector specifying which fields to include in a partial response.
3862
+ # @param [String] quota_user
3863
+ # Available to use for quota purposes for server-side applications. Can be any
3864
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3865
+ # @param [Google::Apis::RequestOptions] options
3866
+ # Request-specific options
3867
+ #
3868
+ # @yield [result, err] Result & error if block supplied
3869
+ # @yieldparam result [Google::Apis::DisplayvideoV1::CustomBiddingAlgorithm] parsed result object
3870
+ # @yieldparam err [StandardError] error object if request failed
3871
+ #
3872
+ # @return [Google::Apis::DisplayvideoV1::CustomBiddingAlgorithm]
3873
+ #
3874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3877
+ def patch_custom_bidding_algorithm(custom_bidding_algorithm_id, custom_bidding_algorithm_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3878
+ command = make_simple_command(:patch, 'v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}', options)
3879
+ command.request_representation = Google::Apis::DisplayvideoV1::CustomBiddingAlgorithm::Representation
3880
+ command.request_object = custom_bidding_algorithm_object
3881
+ command.response_representation = Google::Apis::DisplayvideoV1::CustomBiddingAlgorithm::Representation
3882
+ command.response_class = Google::Apis::DisplayvideoV1::CustomBiddingAlgorithm
3883
+ command.params['customBiddingAlgorithmId'] = custom_bidding_algorithm_id unless custom_bidding_algorithm_id.nil?
3884
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3885
+ command.query['fields'] = fields unless fields.nil?
3886
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3887
+ execute_or_queue_command(command, &block)
3888
+ end
3889
+
3890
+ # Creates a custom bidding script reference object for a script file. The
3891
+ # resulting reference object provides a resource path to which the script file
3892
+ # should be uploaded. This reference object should be included in when creating
3893
+ # a new custom bidding script object.
3894
+ # @param [Fixnum] custom_bidding_algorithm_id
3895
+ # Required. The ID of the custom bidding algorithm owns the script.
3896
+ # @param [Fixnum] advertiser_id
3897
+ # The ID of the advertiser that owns the parent custom bidding algorithm.
3898
+ # @param [Fixnum] partner_id
3899
+ # The ID of the partner that owns the parent custom bidding algorithm. Only this
3900
+ # partner will have write access to this custom bidding script.
3901
+ # @param [String] fields
3902
+ # Selector specifying which fields to include in a partial response.
3903
+ # @param [String] quota_user
3904
+ # Available to use for quota purposes for server-side applications. Can be any
3905
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3906
+ # @param [Google::Apis::RequestOptions] options
3907
+ # Request-specific options
3908
+ #
3909
+ # @yield [result, err] Result & error if block supplied
3910
+ # @yieldparam result [Google::Apis::DisplayvideoV1::CustomBiddingScriptRef] parsed result object
3911
+ # @yieldparam err [StandardError] error object if request failed
3912
+ #
3913
+ # @return [Google::Apis::DisplayvideoV1::CustomBiddingScriptRef]
3914
+ #
3915
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3916
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3917
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3918
+ def upload_custom_bidding_algorithm_script(custom_bidding_algorithm_id, advertiser_id: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3919
+ command = make_simple_command(:get, 'v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}:uploadScript', options)
3920
+ command.response_representation = Google::Apis::DisplayvideoV1::CustomBiddingScriptRef::Representation
3921
+ command.response_class = Google::Apis::DisplayvideoV1::CustomBiddingScriptRef
3922
+ command.params['customBiddingAlgorithmId'] = custom_bidding_algorithm_id unless custom_bidding_algorithm_id.nil?
3923
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3924
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3925
+ command.query['fields'] = fields unless fields.nil?
3926
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3927
+ execute_or_queue_command(command, &block)
3928
+ end
3929
+
3930
+ # Creates a new custom bidding script. Returns the newly created script if
3931
+ # successful.
3932
+ # @param [Fixnum] custom_bidding_algorithm_id
3933
+ # Required. The ID of the custom bidding algorithm that owns the script.
3934
+ # @param [Google::Apis::DisplayvideoV1::CustomBiddingScript] custom_bidding_script_object
3935
+ # @param [Fixnum] advertiser_id
3936
+ # The ID of the advertiser that owns the parent custom bidding algorithm.
3937
+ # @param [Fixnum] partner_id
3938
+ # The ID of the partner that owns the parent custom bidding algorithm. Only this
3939
+ # partner will have write access to this custom bidding script.
3940
+ # @param [String] fields
3941
+ # Selector specifying which fields to include in a partial response.
3942
+ # @param [String] quota_user
3943
+ # Available to use for quota purposes for server-side applications. Can be any
3944
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3945
+ # @param [Google::Apis::RequestOptions] options
3946
+ # Request-specific options
3947
+ #
3948
+ # @yield [result, err] Result & error if block supplied
3949
+ # @yieldparam result [Google::Apis::DisplayvideoV1::CustomBiddingScript] parsed result object
3950
+ # @yieldparam err [StandardError] error object if request failed
3951
+ #
3952
+ # @return [Google::Apis::DisplayvideoV1::CustomBiddingScript]
3953
+ #
3954
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3955
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3956
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3957
+ def create_custom_bidding_algorithm_script(custom_bidding_algorithm_id, custom_bidding_script_object = nil, advertiser_id: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3958
+ command = make_simple_command(:post, 'v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts', options)
3959
+ command.request_representation = Google::Apis::DisplayvideoV1::CustomBiddingScript::Representation
3960
+ command.request_object = custom_bidding_script_object
3961
+ command.response_representation = Google::Apis::DisplayvideoV1::CustomBiddingScript::Representation
3962
+ command.response_class = Google::Apis::DisplayvideoV1::CustomBiddingScript
3963
+ command.params['customBiddingAlgorithmId'] = custom_bidding_algorithm_id unless custom_bidding_algorithm_id.nil?
3964
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
3965
+ command.query['partnerId'] = partner_id unless partner_id.nil?
3966
+ command.query['fields'] = fields unless fields.nil?
3967
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3968
+ execute_or_queue_command(command, &block)
3969
+ end
3970
+
3971
+ # Gets a custom bidding script.
3972
+ # @param [Fixnum] custom_bidding_algorithm_id
3973
+ # Required. The ID of the custom bidding algorithm owns the script.
3974
+ # @param [Fixnum] custom_bidding_script_id
3975
+ # Required. The ID of the custom bidding script to fetch.
3976
+ # @param [Fixnum] advertiser_id
3977
+ # The ID of the advertiser that owns the parent custom bidding algorithm.
3978
+ # @param [Fixnum] partner_id
3979
+ # The ID of the partner that owns the parent custom bidding algorithm. Only this
3980
+ # partner will have write access to this custom bidding script.
3981
+ # @param [String] fields
3982
+ # Selector specifying which fields to include in a partial response.
3983
+ # @param [String] quota_user
3984
+ # Available to use for quota purposes for server-side applications. Can be any
3985
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3986
+ # @param [Google::Apis::RequestOptions] options
3987
+ # Request-specific options
3988
+ #
3989
+ # @yield [result, err] Result & error if block supplied
3990
+ # @yieldparam result [Google::Apis::DisplayvideoV1::CustomBiddingScript] parsed result object
3991
+ # @yieldparam err [StandardError] error object if request failed
3992
+ #
3993
+ # @return [Google::Apis::DisplayvideoV1::CustomBiddingScript]
3994
+ #
3995
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3996
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3997
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3998
+ def get_custom_bidding_algorithm_script(custom_bidding_algorithm_id, custom_bidding_script_id, advertiser_id: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3999
+ command = make_simple_command(:get, 'v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts/{+customBiddingScriptId}', options)
4000
+ command.response_representation = Google::Apis::DisplayvideoV1::CustomBiddingScript::Representation
4001
+ command.response_class = Google::Apis::DisplayvideoV1::CustomBiddingScript
4002
+ command.params['customBiddingAlgorithmId'] = custom_bidding_algorithm_id unless custom_bidding_algorithm_id.nil?
4003
+ command.params['customBiddingScriptId'] = custom_bidding_script_id unless custom_bidding_script_id.nil?
4004
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
4005
+ command.query['partnerId'] = partner_id unless partner_id.nil?
4006
+ command.query['fields'] = fields unless fields.nil?
4007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4008
+ execute_or_queue_command(command, &block)
4009
+ end
4010
+
4011
+ # Lists custom bidding scripts that belong to the given algorithm. The order is
4012
+ # defined by the order_by parameter.
4013
+ # @param [Fixnum] custom_bidding_algorithm_id
4014
+ # Required. The ID of the custom bidding algorithm owns the script.
4015
+ # @param [Fixnum] advertiser_id
4016
+ # The ID of the advertiser that owns the parent custom bidding algorithm.
4017
+ # @param [String] order_by
4018
+ # Field by which to sort the list. Acceptable values are: * `createTime desc` (
4019
+ # default) The default sorting order is descending. To specify ascending order
4020
+ # for a field, the suffix "desc" should be removed. Example: `createTime`.
4021
+ # @param [Fixnum] page_size
4022
+ # Requested page size. Must be between `1` and `100`. If unspecified will
4023
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
4024
+ # specified.
4025
+ # @param [String] page_token
4026
+ # A token identifying a page of results the server should return. Typically,
4027
+ # this is the value of next_page_token returned from the previous call to `
4028
+ # ListCustomBiddingScripts` method. If not specified, the first page of results
4029
+ # will be returned.
4030
+ # @param [Fixnum] partner_id
4031
+ # The ID of the partner that owns the parent custom bidding algorithm. Only this
4032
+ # partner will have write access to this custom bidding script.
4033
+ # @param [String] fields
4034
+ # Selector specifying which fields to include in a partial response.
4035
+ # @param [String] quota_user
4036
+ # Available to use for quota purposes for server-side applications. Can be any
4037
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4038
+ # @param [Google::Apis::RequestOptions] options
4039
+ # Request-specific options
4040
+ #
4041
+ # @yield [result, err] Result & error if block supplied
4042
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListCustomBiddingScriptsResponse] parsed result object
4043
+ # @yieldparam err [StandardError] error object if request failed
4044
+ #
4045
+ # @return [Google::Apis::DisplayvideoV1::ListCustomBiddingScriptsResponse]
4046
+ #
4047
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4048
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4049
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4050
+ def list_custom_bidding_algorithm_scripts(custom_bidding_algorithm_id, advertiser_id: nil, order_by: nil, page_size: nil, page_token: nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4051
+ command = make_simple_command(:get, 'v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts', options)
4052
+ command.response_representation = Google::Apis::DisplayvideoV1::ListCustomBiddingScriptsResponse::Representation
4053
+ command.response_class = Google::Apis::DisplayvideoV1::ListCustomBiddingScriptsResponse
4054
+ command.params['customBiddingAlgorithmId'] = custom_bidding_algorithm_id unless custom_bidding_algorithm_id.nil?
4055
+ command.query['advertiserId'] = advertiser_id unless advertiser_id.nil?
4056
+ command.query['orderBy'] = order_by unless order_by.nil?
4057
+ command.query['pageSize'] = page_size unless page_size.nil?
4058
+ command.query['pageToken'] = page_token unless page_token.nil?
4059
+ command.query['partnerId'] = partner_id unless partner_id.nil?
4060
+ command.query['fields'] = fields unless fields.nil?
4061
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4062
+ execute_or_queue_command(command, &block)
4063
+ end
4064
+
3806
4065
  # Gets a custom list.
3807
4066
  # @param [Fixnum] custom_list_id
3808
4067
  # Required. The ID of the custom list to fetch.
@@ -4712,6 +4971,51 @@ module Google
4712
4971
  execute_or_queue_command(command, &block)
4713
4972
  end
4714
4973
 
4974
+ # Uploads media. Upload is supported on the URI `/upload/media/`resource_name=**`
4975
+ # ?upload_type=media.` **Note**: Upload requests will not be successful without
4976
+ # including `upload_type=media` query string.
4977
+ # @param [String] resource_name
4978
+ # Name of the media that is being downloaded. See ReadRequest.resource_name.
4979
+ # @param [Google::Apis::DisplayvideoV1::GoogleBytestreamMedia] google_bytestream_media_object
4980
+ # @param [String] fields
4981
+ # Selector specifying which fields to include in a partial response.
4982
+ # @param [String] quota_user
4983
+ # Available to use for quota purposes for server-side applications. Can be any
4984
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4985
+ # @param [IO, String] upload_source
4986
+ # IO stream or filename containing content to upload
4987
+ # @param [String] content_type
4988
+ # Content type of the uploaded content.
4989
+ # @param [Google::Apis::RequestOptions] options
4990
+ # Request-specific options
4991
+ #
4992
+ # @yield [result, err] Result & error if block supplied
4993
+ # @yieldparam result [Google::Apis::DisplayvideoV1::GoogleBytestreamMedia] parsed result object
4994
+ # @yieldparam err [StandardError] error object if request failed
4995
+ #
4996
+ # @return [Google::Apis::DisplayvideoV1::GoogleBytestreamMedia]
4997
+ #
4998
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4999
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5000
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5001
+ def upload_medium(resource_name, google_bytestream_media_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
5002
+ if upload_source.nil?
5003
+ command = make_simple_command(:post, 'media/{+resourceName}', options)
5004
+ else
5005
+ command = make_upload_command(:post, 'media/{+resourceName}', options)
5006
+ command.upload_source = upload_source
5007
+ command.upload_content_type = content_type
5008
+ end
5009
+ command.request_representation = Google::Apis::DisplayvideoV1::GoogleBytestreamMedia::Representation
5010
+ command.request_object = google_bytestream_media_object
5011
+ command.response_representation = Google::Apis::DisplayvideoV1::GoogleBytestreamMedia::Representation
5012
+ command.response_class = Google::Apis::DisplayvideoV1::GoogleBytestreamMedia
5013
+ command.params['resourceName'] = resource_name unless resource_name.nil?
5014
+ command.query['fields'] = fields unless fields.nil?
5015
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5016
+ execute_or_queue_command(command, &block)
5017
+ end
5018
+
4715
5019
  # Bulk edits targeting options under a single partner. The operation will delete
4716
5020
  # the assigned targeting options provided in
4717
5021
  # BulkEditPartnerAssignedTargetingOptionsRequest.deleteRequests and then create
@@ -21,8 +21,9 @@ module Google
21
21
  module Apis
22
22
  # Display & Video 360 API
23
23
  #
24
- # Display & Video 360 API allows users to manage and create campaigns and
25
- # reports.
24
+ # Display & Video 360 API allows users to automate complex Display & Video 360
25
+ # workflows, such as creating insertion orders and setting targeting options for
26
+ # individual line items.
26
27
  #
27
28
  # @see https://developers.google.com/display-video/
28
29
  module DisplayvideoV1
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.17.0
4
+ version: 0.21.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-09-22 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-displayvideo_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-displayvideo_v1/v0.17.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-displayvideo_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-displayvideo_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-displayvideo_v1/v0.21.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-displayvideo_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Display & Video 360 API V1