Skip to content

Commit 3a093c4

Browse files
feat: Automated regeneration of displayvideo v2 client (googleapis#24060)
Auto-created at 2025-08-24 10:25:03 +0000 using the toys pull request generator.
1 parent b3b13a4 commit 3a093c4

File tree

5 files changed

+73
-8
lines changed

5 files changed

+73
-8
lines changed

api_names_out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216383,6 +216383,7 @@
216383216383
"/displayvideo:v2/Advertiser/adServerConfig": ad_server_config
216384216384
"/displayvideo:v2/Advertiser/advertiserId": advertiser_id
216385216385
"/displayvideo:v2/Advertiser/billingConfig": billing_config
216386+
"/displayvideo:v2/Advertiser/containsEuPoliticalAds": contains_eu_political_ads
216386216387
"/displayvideo:v2/Advertiser/creativeConfig": creative_config
216387216388
"/displayvideo:v2/Advertiser/dataAccessConfig": data_access_config
216388216389
"/displayvideo:v2/Advertiser/displayName": display_name
@@ -216996,6 +216997,7 @@
216996216997
"/displayvideo:v2/DoubleVerifyVideoViewability/videoIab": video_iab
216997216998
"/displayvideo:v2/DoubleVerifyVideoViewability/videoViewableRate": video_viewable_rate
216998216999
"/displayvideo:v2/DuplicateLineItemRequest": duplicate_line_item_request
217000+
"/displayvideo:v2/DuplicateLineItemRequest/containsEuPoliticalAds": contains_eu_political_ads
216999217001
"/displayvideo:v2/DuplicateLineItemRequest/targetDisplayName": target_display_name
217000217002
"/displayvideo:v2/DuplicateLineItemResponse": duplicate_line_item_response
217001217003
"/displayvideo:v2/DuplicateLineItemResponse/duplicateLineItemId": duplicate_line_item_id
@@ -217110,6 +217112,7 @@
217110217112
"/displayvideo:v2/GenderTargetingOptionDetails": gender_targeting_option_details
217111217113
"/displayvideo:v2/GenderTargetingOptionDetails/gender": gender
217112217114
"/displayvideo:v2/GenerateDefaultLineItemRequest": generate_default_line_item_request
217115+
"/displayvideo:v2/GenerateDefaultLineItemRequest/containsEuPoliticalAds": contains_eu_political_ads
217113217116
"/displayvideo:v2/GenerateDefaultLineItemRequest/displayName": display_name
217114217117
"/displayvideo:v2/GenerateDefaultLineItemRequest/insertionOrderId": insertion_order_id
217115217118
"/displayvideo:v2/GenerateDefaultLineItemRequest/lineItemType": line_item_type
@@ -217319,6 +217322,7 @@
217319217322
"/displayvideo:v2/LineItem/bidStrategy": bid_strategy
217320217323
"/displayvideo:v2/LineItem/budget": budget
217321217324
"/displayvideo:v2/LineItem/campaignId": campaign_id
217325+
"/displayvideo:v2/LineItem/containsEuPoliticalAds": contains_eu_political_ads
217322217326
"/displayvideo:v2/LineItem/conversionCounting": conversion_counting
217323217327
"/displayvideo:v2/LineItem/creativeIds": creative_ids
217324217328
"/displayvideo:v2/LineItem/creativeIds/creative_id": creative_id

generated/google-apis-displayvideo_v2/CHANGELOG.md

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

3-
### v0.51.0 (2025-08-17)
3+
### v0.51.0 (2025-08-24)
44

5-
* Regenerated from discovery document revision 20250812
5+
* Regenerated from discovery document revision 20250819
66

77
### v0.50.0 (2025-08-03)
88

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

Lines changed: 62 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,17 @@ class Advertiser
144144
# @return [Fixnum]
145145
attr_accessor :advertiser_id
146146

147+
# Optional. Whether this advertiser contains line items that serve European
148+
# Union political ads. If this field is set to `
149+
# DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING`, then the following will happen: *
150+
# Any new line items created under this advertiser will be assigned `
151+
# DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. * Any
152+
# existing line items under this advertiser that do not have a set value be
153+
# updated to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` within a day.
154+
# Corresponds to the JSON property `containsEuPoliticalAds`
155+
# @return [String]
156+
attr_accessor :contains_eu_political_ads
157+
147158
# Creatives related settings of an advertiser.
148159
# Corresponds to the JSON property `creativeConfig`
149160
# @return [Google::Apis::DisplayvideoV2::AdvertiserCreativeConfig]
@@ -220,6 +231,7 @@ def initialize(**args)
220231
def update!(**args)
221232
@ad_server_config = args[:ad_server_config] if args.key?(:ad_server_config)
222233
@advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
234+
@contains_eu_political_ads = args[:contains_eu_political_ads] if args.key?(:contains_eu_political_ads)
223235
@creative_config = args[:creative_config] if args.key?(:creative_config)
224236
@data_access_config = args[:data_access_config] if args.key?(:data_access_config)
225237
@display_name = args[:display_name] if args.key?(:display_name)
@@ -2265,8 +2277,7 @@ class BulkUpdateLineItemsRequest
22652277
attr_accessor :target_line_item
22662278

22672279
# Required. A field mask identifying which fields to update. Only the following
2268-
# fields are currently supported: * entityStatus *
2269-
# containsEuPoliticalAdvertising
2280+
# fields are currently supported: * entityStatus * containsEuPoliticalAds
22702281
# Corresponds to the JSON property `updateMask`
22712282
# @return [String]
22722283
attr_accessor :update_mask
@@ -4847,6 +4858,20 @@ def update!(**args)
48474858
class DuplicateLineItemRequest
48484859
include Google::Apis::Core::Hashable
48494860

4861+
# Whether this line item will serve European Union political ads. If
4862+
# contains_eu_political_ads has been set to `
4863+
# DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this
4864+
# field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not
4865+
# otherwise specified. This field can then be updated using the UI, API, or
4866+
# Structured Data Files. *Warning*: Starting **September 8, 2025**, this field
4867+
# must be set. If not, either the value `
4868+
# DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned to the line item
4869+
# if the parent advertiser has declared that it does not serve EU political ads,
4870+
# or **the request will fail**.
4871+
# Corresponds to the JSON property `containsEuPoliticalAds`
4872+
# @return [String]
4873+
attr_accessor :contains_eu_political_ads
4874+
48504875
# The display name of the new line item. Must be UTF-8 encoded with a maximum
48514876
# size of 240 bytes.
48524877
# Corresponds to the JSON property `targetDisplayName`
@@ -4859,6 +4884,7 @@ def initialize(**args)
48594884

48604885
# Update properties of this object
48614886
def update!(**args)
4887+
@contains_eu_political_ads = args[:contains_eu_political_ads] if args.key?(:contains_eu_political_ads)
48624888
@target_display_name = args[:target_display_name] if args.key?(:target_display_name)
48634889
end
48644890
end
@@ -5494,6 +5520,20 @@ def update!(**args)
54945520
class GenerateDefaultLineItemRequest
54955521
include Google::Apis::Core::Hashable
54965522

5523+
# Whether this line item will serve European Union political ads. If
5524+
# contains_eu_political_ads has been set to `
5525+
# DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this
5526+
# field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not
5527+
# otherwise specified. This field can then be updated using the UI, API, or
5528+
# Structured Data Files. *Warning*: Starting **September 8, 2025**, this field
5529+
# must be set. If not, either the value `
5530+
# DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned to the line item
5531+
# if the parent advertiser has declared that it does not serve EU political ads,
5532+
# or **the request will fail**.
5533+
# Corresponds to the JSON property `containsEuPoliticalAds`
5534+
# @return [String]
5535+
attr_accessor :contains_eu_political_ads
5536+
54975537
# Required. The display name of the line item. Must be UTF-8 encoded with a
54985538
# maximum size of 240 bytes.
54995539
# Corresponds to the JSON property `displayName`
@@ -5521,6 +5561,7 @@ def initialize(**args)
55215561

55225562
# Update properties of this object
55235563
def update!(**args)
5564+
@contains_eu_political_ads = args[:contains_eu_political_ads] if args.key?(:contains_eu_political_ads)
55245565
@display_name = args[:display_name] if args.key?(:display_name)
55255566
@insertion_order_id = args[:insertion_order_id] if args.key?(:insertion_order_id)
55265567
@line_item_type = args[:line_item_type] if args.key?(:line_item_type)
@@ -7033,6 +7074,20 @@ class LineItem
70337074
# @return [Fixnum]
70347075
attr_accessor :campaign_id
70357076

7077+
# Whether this line item will serve European Union political ads. If
7078+
# contains_eu_political_ads has been set to `
7079+
# DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this
7080+
# field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not
7081+
# otherwise specified. This field can then be updated using the UI, API, or
7082+
# Structured Data Files. *Warning*: Starting **September 8, 2025**, this field
7083+
# must be set when creating a new line item. If not, either the value `
7084+
# DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` will be assigned if the parent
7085+
# advertiser has declared that it does not serve EU political ads, or **the `
7086+
# advertisers.lineItems.create` request will fail**.
7087+
# Corresponds to the JSON property `containsEuPoliticalAds`
7088+
# @return [String]
7089+
attr_accessor :contains_eu_political_ads
7090+
70367091
# Settings that control how conversions are counted. All post-click conversions
70377092
# will be counted. A percentage value can be set for post-view conversions
70387093
# counting.
@@ -7167,6 +7222,7 @@ def update!(**args)
71677222
@bid_strategy = args[:bid_strategy] if args.key?(:bid_strategy)
71687223
@budget = args[:budget] if args.key?(:budget)
71697224
@campaign_id = args[:campaign_id] if args.key?(:campaign_id)
7225+
@contains_eu_political_ads = args[:contains_eu_political_ads] if args.key?(:contains_eu_political_ads)
71707226
@conversion_counting = args[:conversion_counting] if args.key?(:conversion_counting)
71717227
@creative_ids = args[:creative_ids] if args.key?(:creative_ids)
71727228
@display_name = args[:display_name] if args.key?(:display_name)
@@ -11767,9 +11823,10 @@ class YoutubeAndPartnersBiddingStrategy
1176711823
# The value used by the bidding strategy. When the bidding strategy is assigned
1176811824
# at the line item level, this field is only applicable for the following
1176911825
# strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `
11770-
# YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` When the bidding
11771-
# strategy is assigned at the ad group level, this field is only applicable for
11772-
# the following strategy types: * `
11826+
# YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` * `
11827+
# YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_SHARE_OF_VOICE` When the
11828+
# bidding strategy is assigned at the ad group level, this field is only
11829+
# applicable for the following strategy types: * `
1177311830
# YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `
1177411831
# YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `
1177511832
# YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module DisplayvideoV2
2222
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1956,6 +1956,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
19561956
property :ad_server_config, as: 'adServerConfig', class: Google::Apis::DisplayvideoV2::AdvertiserAdServerConfig, decorator: Google::Apis::DisplayvideoV2::AdvertiserAdServerConfig::Representation
19571957

19581958
property :advertiser_id, :numeric_string => true, as: 'advertiserId'
1959+
property :contains_eu_political_ads, as: 'containsEuPoliticalAds'
19591960
property :creative_config, as: 'creativeConfig', class: Google::Apis::DisplayvideoV2::AdvertiserCreativeConfig, decorator: Google::Apis::DisplayvideoV2::AdvertiserCreativeConfig::Representation
19601961

19611962
property :data_access_config, as: 'dataAccessConfig', class: Google::Apis::DisplayvideoV2::AdvertiserDataAccessConfig, decorator: Google::Apis::DisplayvideoV2::AdvertiserDataAccessConfig::Representation
@@ -3209,6 +3210,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
32093210
class DuplicateLineItemRequest
32103211
# @private
32113212
class Representation < Google::Apis::Core::JsonRepresentation
3213+
property :contains_eu_political_ads, as: 'containsEuPoliticalAds'
32123214
property :target_display_name, as: 'targetDisplayName'
32133215
end
32143216
end
@@ -3391,6 +3393,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
33913393
class GenerateDefaultLineItemRequest
33923394
# @private
33933395
class Representation < Google::Apis::Core::JsonRepresentation
3396+
property :contains_eu_political_ads, as: 'containsEuPoliticalAds'
33943397
property :display_name, as: 'displayName'
33953398
property :insertion_order_id, :numeric_string => true, as: 'insertionOrderId'
33963399
property :line_item_type, as: 'lineItemType'
@@ -3783,6 +3786,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
37833786
property :budget, as: 'budget', class: Google::Apis::DisplayvideoV2::LineItemBudget, decorator: Google::Apis::DisplayvideoV2::LineItemBudget::Representation
37843787

37853788
property :campaign_id, :numeric_string => true, as: 'campaignId'
3789+
property :contains_eu_political_ads, as: 'containsEuPoliticalAds'
37863790
property :conversion_counting, as: 'conversionCounting', class: Google::Apis::DisplayvideoV2::ConversionCountingConfig, decorator: Google::Apis::DisplayvideoV2::ConversionCountingConfig::Representation
37873791

37883792
collection :creative_ids, as: 'creativeIds'

0 commit comments

Comments
 (0)