Skip to content

Commit 4953e88

Browse files
feat: Automated regeneration of displayvideo v2 client (#17100)
Auto-created at 2024-01-07 09:51:29 +0000 using the toys pull request generator.
1 parent 25778b0 commit 4953e88

6 files changed

Lines changed: 49 additions & 19 deletions

File tree

api_names_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190048,6 +190048,7 @@
190048190048
"/displayvideo:v2/User/assignedUserRoles/assigned_user_role": assigned_user_role
190049190049
"/displayvideo:v2/User/displayName": display_name
190050190050
"/displayvideo:v2/User/email": email
190051+
"/displayvideo:v2/User/lastLoginTime": last_login_time
190051190052
"/displayvideo:v2/User/name": name
190052190053
"/displayvideo:v2/User/userId": user_id
190053190054
"/displayvideo:v2/UserRewardedContentAssignedTargetingOptionDetails": user_rewarded_content_assigned_targeting_option_details

generated/google-apis-displayvideo_v2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-displayvideo_v2
22

3+
### v0.29.0 (2024-01-07)
4+
5+
* Regenerated from discovery document revision 20240104
6+
37
### v0.28.0 (2023-11-19)
48

59
* Regenerated from discovery document revision 20231113

generated/google-apis-displayvideo_v2/lib/google/apis/displayvideo_v2/classes.rb

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9907,13 +9907,16 @@ class PoiAssignedTargetingOptionDetails
99079907
attr_accessor :proximity_radius_unit
99089908

99099909
# Required. The targeting_option_id of a TargetingOption of type `
9910-
# TARGETING_TYPE_POI`. Accepted POI targeting option IDs can be retrieved using
9911-
# SearchTargetingOptions. If targeting a specific latitude/longitude coordinate
9912-
# removed from an address or POI name, you can generate the necessary targeting
9913-
# option ID by rounding the desired coordinate values to the 6th decimal place,
9914-
# removing the decimals, and concatenating the string values separated by a
9915-
# semicolon. For example, you can target the latitude/longitude pair of 40.
9916-
# 7414691, -74.003387 using the targeting option ID "40741469;-74003387".
9910+
# TARGETING_TYPE_POI`. Accepted POI targeting option IDs can be retrieved using `
9911+
# targetingTypes.targetingOptions.search`. If targeting a specific latitude/
9912+
# longitude coordinate removed from an address or POI name, you can generate the
9913+
# necessary targeting option ID by rounding the desired coordinate values to the
9914+
# 6th decimal place, removing the decimals, and concatenating the string values
9915+
# separated by a semicolon. For example, you can target the latitude/longitude
9916+
# pair of 40.7414691, -74.003387 using the targeting option ID "40741469;-
9917+
# 74003387". **Upon** **creation, this field value will be updated to append a
9918+
# semicolon and** **alphanumerical hash value if only latitude/longitude
9919+
# coordinates are** **provided.**
99179920
# Corresponds to the JSON property `targetingOptionId`
99189921
# @return [String]
99199922
attr_accessor :targeting_option_id
@@ -11454,6 +11457,11 @@ class User
1145411457
# @return [String]
1145511458
attr_accessor :email
1145611459

11460+
# Output only. The timestamp when the user last logged in DV360 UI.
11461+
# Corresponds to the JSON property `lastLoginTime`
11462+
# @return [String]
11463+
attr_accessor :last_login_time
11464+
1145711465
# Output only. The resource name of the user.
1145811466
# Corresponds to the JSON property `name`
1145911467
# @return [String]
@@ -11473,6 +11481,7 @@ def update!(**args)
1147311481
@assigned_user_roles = args[:assigned_user_roles] if args.key?(:assigned_user_roles)
1147411482
@display_name = args[:display_name] if args.key?(:display_name)
1147511483
@email = args[:email] if args.key?(:email)
11484+
@last_login_time = args[:last_login_time] if args.key?(:last_login_time)
1147611485
@name = args[:name] if args.key?(:name)
1147711486
@user_id = args[:user_id] if args.key?(:user_id)
1147811487
end

generated/google-apis-displayvideo_v2/lib/google/apis/displayvideo_v2/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DisplayvideoV2
1818
# Version of the google-apis-displayvideo_v2 gem
19-
GEM_VERSION = "0.28.0"
19+
GEM_VERSION = "0.29.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.12.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20231113"
25+
REVISION = "20240104"
2626
end
2727
end
2828
end

generated/google-apis-displayvideo_v2/lib/google/apis/displayvideo_v2/representations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5071,6 +5071,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
50715071

50725072
property :display_name, as: 'displayName'
50735073
property :email, as: 'email'
5074+
property :last_login_time, as: 'lastLoginTime'
50745075
property :name, as: 'name'
50755076
property :user_id, :numeric_string => true, as: 'userId'
50765077
end

generated/google-apis-displayvideo_v2/lib/google/apis/displayvideo_v2/service.rb

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,9 @@ def replace_advertiser_channel_site(advertiser_id, channel_id, replace_sites_req
12231223
execute_or_queue_command(command, &block)
12241224
end
12251225

1226-
# Creates a new creative. Returns the newly created creative if successful.
1226+
# Creates a new creative. Returns the newly created creative if successful. A ["
1227+
# Standard" user role](//support.google.com/displayvideo/answer/2723011) or
1228+
# greater for the parent advertiser or partner is required to make this request.
12271229
# @param [Fixnum] advertiser_id
12281230
# Output only. The unique ID of the advertiser the creative belongs to.
12291231
# @param [Google::Apis::DisplayvideoV2::Creative] creative_object
@@ -1258,7 +1260,9 @@ def create_advertiser_creative(advertiser_id, creative_object = nil, fields: nil
12581260

12591261
# Deletes a creative. Returns error code `NOT_FOUND` if the creative does not
12601262
# exist. The creative should be archived first, i.e. set entity_status to `
1261-
# ENTITY_STATUS_ARCHIVED`, before it can be deleted.
1263+
# ENTITY_STATUS_ARCHIVED`, before it can be deleted. A ["Standard" user role](//
1264+
# support.google.com/displayvideo/answer/2723011) or greater for the parent
1265+
# advertiser or partner is required to make this request.
12621266
# @param [Fixnum] advertiser_id
12631267
# The ID of the advertiser this creative belongs to.
12641268
# @param [Fixnum] creative_id
@@ -1408,7 +1412,9 @@ def list_advertiser_creatives(advertiser_id, filter: nil, order_by: nil, page_si
14081412
execute_or_queue_command(command, &block)
14091413
end
14101414

1411-
# Updates an existing creative. Returns the updated creative if successful.
1415+
# Updates an existing creative. Returns the updated creative if successful. A ["
1416+
# Standard" user role](//support.google.com/displayvideo/answer/2723011) or
1417+
# greater for the parent advertiser or partner is required to make this request.
14121418
# @param [Fixnum] advertiser_id
14131419
# Output only. The unique ID of the advertiser the creative belongs to.
14141420
# @param [Fixnum] creative_id
@@ -2088,7 +2094,8 @@ def lookup_advertiser_invoice_invoice_currency(advertiser_id, invoice_month: nil
20882094
# create_requests. Requests to this endpoint cannot be made concurrently with
20892095
# the following requests updating the same line item: * lineItems.bulkUpdate *
20902096
# lineItems.patch * assignedTargetingOptions.create * assignedTargetingOptions.
2091-
# delete
2097+
# delete YouTube & Partners line items cannot be created or updated using the
2098+
# API.
20922099
# @param [Fixnum] advertiser_id
20932100
# Required. The ID of the advertiser the line items belong to.
20942101
# @param [Google::Apis::DisplayvideoV2::BulkEditAssignedTargetingOptionsRequest] bulk_edit_assigned_targeting_options_request_object
@@ -2191,7 +2198,8 @@ def bulk_advertiser_line_item_list_assigned_targeting_options(advertiser_id, fil
21912198
# Updates multiple line items. Requests to this endpoint cannot be made
21922199
# concurrently with the following requests updating the same line item: *
21932200
# BulkEditAssignedTargetingOptions * UpdateLineItem * assignedTargetingOptions.
2194-
# create * assignedTargetingOptions.delete
2201+
# create * assignedTargetingOptions.delete YouTube & Partners line items cannot
2202+
# be created or updated using the API.
21952203
# @param [Fixnum] advertiser_id
21962204
# Required. The ID of the advertiser this line item belongs to.
21972205
# @param [Google::Apis::DisplayvideoV2::BulkUpdateLineItemsRequest] bulk_update_line_items_request_object
@@ -2225,6 +2233,7 @@ def bulk_update_line_items(advertiser_id, bulk_update_line_items_request_object
22252233
end
22262234

22272235
# Creates a new line item. Returns the newly created line item if successful.
2236+
# YouTube & Partners line items cannot be created or updated using the API.
22282237
# @param [Fixnum] advertiser_id
22292238
# Output only. The unique ID of the advertiser the line item belongs to.
22302239
# @param [Google::Apis::DisplayvideoV2::LineItem] line_item_object
@@ -2259,7 +2268,8 @@ def create_advertiser_line_item(advertiser_id, line_item_object = nil, fields: n
22592268

22602269
# Deletes a line item. Returns error code `NOT_FOUND` if the line item does not
22612270
# exist. The line item should be archived first, i.e. set entity_status to `
2262-
# ENTITY_STATUS_ARCHIVED`, to be able to delete it.
2271+
# ENTITY_STATUS_ARCHIVED`, to be able to delete it. YouTube & Partners line
2272+
# items cannot be created or updated using the API.
22632273
# @param [Fixnum] advertiser_id
22642274
# The ID of the advertiser this line item belongs to.
22652275
# @param [Fixnum] line_item_id
@@ -2293,6 +2303,7 @@ def delete_advertiser_line_item(advertiser_id, line_item_id, fields: nil, quota_
22932303
end
22942304

22952305
# Duplicates a line item. Returns the ID of the created line item if successful.
2306+
# YouTube & Partners line items cannot be created or updated using the API.
22962307
# @param [Fixnum] advertiser_id
22972308
# Required. The ID of the advertiser this line item belongs to.
22982309
# @param [Fixnum] line_item_id
@@ -2332,7 +2343,8 @@ def duplicate_line_item(advertiser_id, line_item_id, duplicate_line_item_request
23322343
# insertion order and an `ENTITY_STATUS_DRAFT` entity_status. Returns the newly
23332344
# created line item if successful. There are default values based on the three
23342345
# fields: * The insertion order's insertion_order_type * The insertion order's
2335-
# automation_type * The given line_item_type
2346+
# automation_type * The given line_item_type YouTube & Partners line items
2347+
# cannot be created or updated using the API.
23362348
# @param [Fixnum] advertiser_id
23372349
# Required. The ID of the advertiser this line item belongs to.
23382350
# @param [Google::Apis::DisplayvideoV2::GenerateDefaultLineItemRequest] generate_default_line_item_request_object
@@ -2472,7 +2484,8 @@ def list_advertiser_line_items(advertiser_id, filter: nil, order_by: nil, page_s
24722484
# Requests to this endpoint cannot be made concurrently with the following
24732485
# requests updating the same line item: * BulkEditAssignedTargetingOptions *
24742486
# BulkUpdateLineItems * assignedTargetingOptions.create *
2475-
# assignedTargetingOptions.delete
2487+
# assignedTargetingOptions.delete YouTube & Partners line items cannot be
2488+
# created or updated using the API.
24762489
# @param [Fixnum] advertiser_id
24772490
# Output only. The unique ID of the advertiser the line item belongs to.
24782491
# @param [Fixnum] line_item_id
@@ -2515,7 +2528,8 @@ def patch_advertiser_line_item(advertiser_id, line_item_id, line_item_object = n
25152528
# option if successful. Requests to this endpoint cannot be made concurrently
25162529
# with the following requests updating the same line item: * lineItems.
25172530
# bulkEditAssignedTargetingOptions * lineItems.bulkUpdate * lineItems.patch *
2518-
# DeleteLineItemAssignedTargetingOption
2531+
# DeleteLineItemAssignedTargetingOption YouTube & Partners line items cannot be
2532+
# created or updated using the API.
25192533
# @param [Fixnum] advertiser_id
25202534
# Required. The ID of the advertiser the line item belongs to.
25212535
# @param [Fixnum] line_item_id
@@ -2582,7 +2596,8 @@ def create_advertiser_line_item_targeting_type_assigned_targeting_option(adverti
25822596
# Deletes an assigned targeting option from a line item. Requests to this
25832597
# endpoint cannot be made concurrently with the following requests updating the
25842598
# same line item: * lineItems.bulkEditAssignedTargetingOptions * lineItems.
2585-
# bulkUpdate * lineItems.patch * CreateLineItemAssignedTargetingOption
2599+
# bulkUpdate * lineItems.patch * CreateLineItemAssignedTargetingOption YouTube &
2600+
# Partners line items cannot be created or updated using the API.
25862601
# @param [Fixnum] advertiser_id
25872602
# Required. The ID of the advertiser the line item belongs to.
25882603
# @param [Fixnum] line_item_id

0 commit comments

Comments
 (0)