Visitar URL original
feat: update API sources and regenerate (#9554) · googleapis/google-cloud-node@8b6837a · GitHub
Skip to content

Commit 8b6837a

Browse files
authored
feat: update API sources and regenerate (#9554)
1 parent bdffe98 commit 8b6837a

695 files changed

Lines changed: 232020 additions & 74837 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎librarian.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ version: v0.47.0
1616
repo: googleapis/google-cloud-node
1717
sources:
1818
googleapis:
19-
commit: 93d6085996d0b4ff7e7e86ca9945d5524bb380d1
20-
sha256: 2271ff64a808d6a9089d0f410d28fc9ce4dd35ffe6e1c2cf79dd9a8578ddc871
19+
commit: 6a8220ce2f0b8f51e60bb2cc0d74a14d380a823b
20+
sha256: eb737809a4b1aa6ab7be3c2078b6cbdde44337dcdf464d35813e6345896e3343
2121
tools:
2222
pnpm:
2323
- name: gapic-generator-typescript

‎packages/google-ads-admanager/protos/google/ads/admanager/v1/ad_review_center_ad_enums.proto‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,36 @@ message ManualAdReviewCenterAdStatusEnum {
6767
SERVING = 5;
6868
}
6969
}
70+
71+
// Wrapper message for
72+
// [ArcCreativeFormat][google.ads.admanager.v1.ArcCreativeFormatEnum.ArcCreativeFormat]
73+
//
74+
// Message representing the ad review center creative formats which is about how
75+
// the creative is rendered for the end user.
76+
message ArcCreativeFormatEnum {
77+
// Specifies the status of an ArcCreativeFormat.
78+
//
79+
// New values may be added in the future.
80+
enum ArcCreativeFormat {
81+
// Not specified value
82+
ARC_CREATIVE_FORMAT_UNSPECIFIED = 0;
83+
84+
// Text based creatives.
85+
TEXT = 1;
86+
87+
// Image creatives.
88+
IMAGE = 2;
89+
90+
// Video creatives.
91+
VIDEO = 3;
92+
93+
// Audio creatives.
94+
AUDIO = 4;
95+
96+
// Creatives leading to mobile app stores.
97+
APP_INSTALLS = 5;
98+
99+
// Creatives leading to rich media.
100+
RICH_MEDIA = 6;
101+
}
102+
}

‎packages/google-ads-admanager/protos/google/ads/admanager/v1/ad_review_center_ad_messages.proto‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,38 @@ message AdReviewCenterAd {
6767
// which will present the rendered contents of the ad. This URL expires 72
6868
// hours after being retrieved.
6969
optional string preview_url = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
70+
71+
// Output only. The preview URLs that can be embedded or accessed directly
72+
// which will present the rendered contents of the ad, each with a different
73+
// asset. These URLs expire 72 hours after being retrieved.
74+
repeated string asset_preview_urls = 13
75+
[(google.api.field_behavior) = OUTPUT_ONLY];
76+
77+
// Output only. The advertiser name of the Ad Review Center ad. Specifies the
78+
// detected advertiser for Google Display Network (GDN) ads, and individual
79+
// network name for real-time bidding (RTB) ads.
80+
string advertiser_display_name = 7
81+
[(google.api.field_behavior) = OUTPUT_ONLY];
82+
83+
// Output only. The language codes of the Ad Review Center ad. Languages
84+
// detected are represented by their BCP 47 code. For example, 'en', 'fr',
85+
// 'es-419', or 'zh-cn'.
86+
repeated string language_codes = 8
87+
[(google.api.field_behavior) = OUTPUT_ONLY];
88+
89+
// Output only. The region codes of the Ad Review Center ad.
90+
repeated string region_codes = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
91+
92+
// Output only. The ad types of the Ad Review Center ad.
93+
repeated ArcCreativeFormatEnum.ArcCreativeFormat ad_types = 10
94+
[(google.api.field_behavior) = OUTPUT_ONLY];
95+
96+
// Output only. The destination URLs of the Ad Review Center ad.
97+
repeated string destination_urls = 12
98+
[(google.api.field_behavior) = OUTPUT_ONLY];
99+
100+
// Output only. The
101+
// [labelIds][google.ads.admanager.v1.FetchAdReviewCenterCustomLabelsResponse.CustomLabel.label_id]
102+
// associated with this Ad Review Center ad.
103+
repeated string label_ids = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
70104
}

‎packages/google-ads-admanager/protos/google/ads/admanager/v1/ad_review_center_ad_service.proto‎

Lines changed: 171 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ option java_package = "com.google.ads.admanager.v1";
3434
option php_namespace = "Google\\Ads\\AdManager\\V1";
3535
option ruby_package = "Google::Ads::AdManager::V1";
3636

37-
// Provides methods for handling AdReviewCenterAd objects.
37+
// Provides methods for handling `AdReviewCenterAd` objects.
3838
service AdReviewCenterAdService {
3939
option (google.api.default_host) = "admanager.googleapis.com";
4040
option (google.api.oauth_scopes) =
@@ -83,20 +83,47 @@ service AdReviewCenterAdService {
8383
metadata_type: "BatchAdReviewCenterAdsOperationMetadata"
8484
};
8585
}
86+
87+
// Fetches all custom labels for a publisher. Custom labels can help you
88+
// filter and find creatives with the associated label. For more information,
89+
// see https://support.google.com/admanager/answer/13812863.
90+
rpc FetchAdReviewCenterCustomLabels(FetchAdReviewCenterCustomLabelsRequest)
91+
returns (FetchAdReviewCenterCustomLabelsResponse) {
92+
option (google.api.http) = {
93+
get: "/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:fetchCustomLabels"
94+
};
95+
option (google.api.method_signature) = "parent";
96+
}
97+
98+
// Performs batch apply on custom labels associated with Ad review center ads.
99+
// Custom labels can help you filter and find creatives with the associated
100+
// label. For more information, see
101+
// https://support.google.com/admanager/answer/13812863.
102+
rpc BatchApplyAdReviewCenterCustomLabels(
103+
BatchApplyAdReviewCenterCustomLabelsRequest)
104+
returns (BatchApplyAdReviewCenterCustomLabelsResponse) {
105+
option (google.api.http) = {
106+
post: "/v1/{parent=networks/*/webProperties/*}/adReviewCenterAds:batchApplyCustomLabels"
107+
body: "*"
108+
};
109+
option (google.api.method_signature) = "parent";
110+
}
86111
}
87112

88113
// Request object for `SearchAdReviewCenterAds` method.
89114
message SearchAdReviewCenterAdsRequest {
90115
// The status of the AdReviewCenterAds to return.
91116
oneof ad_review_status {
92117
// Optional. Only return ads with the given status.
118+
// Use this filter for web properties where [Manual Creative Review
119+
// (MCR)](https://support.google.com/admanager/answer/2913553) is not
120+
// enabled.
93121
AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4
94122
[(google.api.field_behavior) = OPTIONAL];
95123

96-
// Optional. Only return ads with the given manual review status. Only
97-
// available for networks with Manual Creative Review enabled. For more
98-
// information, see
99-
// https://support.google.com/admanager/answer/2586531#manual-creative-review.
124+
// Optional. Only return ads with the given manual review status.
125+
// Use this filter for web properties where [Manual Creative Review
126+
// (MCR)](https://support.google.com/admanager/answer/2913553) is enabled.
100127
ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus
101128
manual_review_status = 9 [(google.api.field_behavior) = OPTIONAL];
102129
}
@@ -138,9 +165,8 @@ message SearchAdReviewCenterAdsRequest {
138165
[(google.api.field_behavior) = OPTIONAL];
139166

140167
// Optional. If provided, only return ads that served within the given date
141-
// range (inclusive). The date range must be within the last 30 days. If not
142-
// provided, the date range will be the last 30 days. This filter does not
143-
// apply to the PENDING manual review status.
168+
// range (inclusive). The date range must be within the last 30 days. If not
169+
// provided, the date range will be the last 30 days.
144170
google.type.Interval date_time_range = 6
145171
[(google.api.field_behavior) = OPTIONAL];
146172

@@ -155,6 +181,47 @@ message SearchAdReviewCenterAdsRequest {
155181
// the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
156182
// buyer account IDs can be found using the `ProgrammaticBuyerService`.
157183
repeated int64 buyer_account_id = 8 [(google.api.field_behavior) = OPTIONAL];
184+
185+
// Optional. If provided, only return ads with the given ad response IDs.
186+
// This filter is exclusive and cannot be combined with any other filters.
187+
// Maximum of 10 IDs can be specified.
188+
repeated string ad_response_id = 10 [(google.api.field_behavior) = OPTIONAL];
189+
190+
// Optional. If provided, restrict the search to creatives with the given
191+
// advertiser names.
192+
repeated string advertiser_display_names = 11
193+
[(google.api.field_behavior) = OPTIONAL];
194+
195+
// Optional. If provided, restrict the search to creatives serving in the
196+
// given language codes.
197+
repeated string language_codes = 12 [(google.api.field_behavior) = OPTIONAL];
198+
199+
// Optional. If provided, restrict the search to creatives serving in the
200+
// given region codes.
201+
repeated string region_codes = 13 [(google.api.field_behavior) = OPTIONAL];
202+
203+
// Optional. If provided, restrict the search to creatives with the given ad
204+
// types.
205+
repeated ArcCreativeFormatEnum.ArcCreativeFormat ad_types = 14
206+
[(google.api.field_behavior) = OPTIONAL];
207+
208+
// Optional. If provided, restrict the search to creatives promoting the given
209+
// app.
210+
repeated string advertiser_apps = 15 [(google.api.field_behavior) = OPTIONAL];
211+
212+
// Optional. If provided, restrict the search to creatives belonging to the
213+
// given publisher domain.
214+
repeated string publisher_domains = 16
215+
[(google.api.field_behavior) = OPTIONAL];
216+
217+
// Optional. If provided, restrict the search to creatives which appeared for
218+
// the first time within the past X days. Must be within the last 30 days (1
219+
// to 30, inclusive).
220+
optional int32 new_in_last_days = 17 [(google.api.field_behavior) = OPTIONAL];
221+
222+
// Optional. If provided, restrict the search to creatives associated with the
223+
// given custom label IDs.
224+
repeated string label_ids = 18 [(google.api.field_behavior) = OPTIONAL];
158225
}
159226

160227
// Response object for `SearchAdReviewCenterAds` method.
@@ -248,3 +315,99 @@ message BatchAdReviewCenterAdsOperationMetadata {
248315
// request in the batch request.
249316
map<int32, google.rpc.Status> failed_requests = 1;
250317
}
318+
319+
// Request object for `FetchAdReviewCenterCustomLabels` method.
320+
message FetchAdReviewCenterCustomLabelsRequest {
321+
// Required. The parent, which owns this collection of AdReviewCenterAds
322+
// custom labels. Format:
323+
// networks/{network_code}/webProperties/{web_property_code}
324+
//
325+
// Since a network can only have a single web property of each
326+
// `ExchangeSyndicationProduct`, you can use the
327+
// `ExchangeSyndicationProduct` as an alias for the web property code:
328+
//
329+
// `networks/{network_code}/webProperties/display`
330+
//
331+
// `networks/{network_code}/webProperties/videoAndAudio`
332+
//
333+
// `networks/{network_code}/webProperties/mobileApp`
334+
//
335+
// `networks/{network_code}/webProperties/games`
336+
string parent = 1 [
337+
(google.api.field_behavior) = REQUIRED,
338+
(google.api.resource_reference) = {
339+
type: "admanager.googleapis.com/WebProperty"
340+
}
341+
];
342+
}
343+
344+
// Response object for `FetchAdReviewCenterCustomLabels` method.
345+
message FetchAdReviewCenterCustomLabelsResponse {
346+
// A custom label for an Ad Review Center ad. Custom labels can help you
347+
// filter and find creatives with the associated label. For more information,
348+
// see https://support.google.com/admanager/answer/13812863.
349+
message CustomLabel {
350+
// Output only. The unique identifier of the custom label.
351+
string label_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
352+
353+
// Output only. The user-defined display name of the custom label.
354+
string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
355+
}
356+
357+
// Output only. The list of custom labels.
358+
repeated CustomLabel custom_labels = 1
359+
[(google.api.field_behavior) = OUTPUT_ONLY];
360+
}
361+
362+
// Request object for `BatchApplyAdReviewCenterCustomLabels` method.
363+
message BatchApplyAdReviewCenterCustomLabelsRequest {
364+
// Actions to perform on custom labels for batch updates.
365+
message BatchLabelAction {
366+
// Required. The resource names of the `AdReviewCenterAd`s to update.
367+
// Format:
368+
// `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
369+
repeated string names = 1 [
370+
(google.api.field_behavior) = REQUIRED,
371+
(google.api.resource_reference) = {
372+
type: "admanager.googleapis.com/AdReviewCenterAd"
373+
}
374+
];
375+
376+
// Required. The
377+
// [labelId][google.ads.admanager.v1.FetchAdReviewCenterCustomLabelsResponse.CustomLabel.label_id]
378+
// to add or remove.
379+
repeated string label_ids = 2 [(google.api.field_behavior) = REQUIRED];
380+
}
381+
382+
// Required. The parent, which owns this collection of AdReviewCenterAds.
383+
// Format: networks/{network_code}/webProperties/{web_property_code}
384+
//
385+
// Since a network can only have a single web property of each
386+
// `ExchangeSyndicationProduct`, you can use the
387+
// `ExchangeSyndicationProduct` as an alias for the web property code:
388+
//
389+
// `networks/{network_code}/webProperties/display`
390+
//
391+
// `networks/{network_code}/webProperties/videoAndAudio`
392+
//
393+
// `networks/{network_code}/webProperties/mobileApp`
394+
//
395+
// `networks/{network_code}/webProperties/games`
396+
string parent = 1 [
397+
(google.api.field_behavior) = REQUIRED,
398+
(google.api.resource_reference) = {
399+
type: "admanager.googleapis.com/WebProperty"
400+
}
401+
];
402+
403+
// Optional. Labels to add to the specified ads.
404+
optional BatchLabelAction add_labels = 2
405+
[(google.api.field_behavior) = OPTIONAL];
406+
407+
// Optional. Labels to remove from the specified ads.
408+
optional BatchLabelAction remove_labels = 3
409+
[(google.api.field_behavior) = OPTIONAL];
410+
}
411+
412+
// Response object for `BatchApplyAdReviewCenterCustomLabels` method.
413+
message BatchApplyAdReviewCenterCustomLabelsResponse {}

‎packages/google-ads-admanager/protos/google/ads/admanager/v1/ad_rule_fill_order_direction_enum.proto‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ option ruby_package = "Google::Ads::AdManager::V1";
2828
// [AdRuleFillOrderDirection][google.ads.admanager.v1.AdRuleFillOrderDirectionEnum.AdRuleFillOrderDirection]
2929
message AdRuleFillOrderDirectionEnum {
3030
// Defines the fill order direction of ad breaks with
31-
// AdBreakOptimizationType.POSITION.
31+
// [AdBreakOptimizationTypeEnum.AdBreakOptimizationType.POSITION][google.ads.admanager.v1.AdBreakOptimizationTypeEnum.AdBreakOptimizationType.POSITION].
3232
enum AdRuleFillOrderDirection {
3333
// Default value. This value is unused.
3434
AD_RULE_FILL_ORDER_DIRECTION_UNSPECIFIED = 0;

‎packages/google-ads-admanager/protos/google/ads/admanager/v1/ad_rule_messages.proto‎

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ message AdRule {
6969

7070
// Optional. This end time of the AdRule. This attribute is required
7171
// unless
72-
// [end_time_unlimited][google.ads.admanager.v1.AdRule.end_time_unlimited] is
72+
// [endTimeUnlimited][google.ads.admanager.v1.AdRule.end_time_unlimited] is
7373
// set to true. If specified, it must be after the
74-
// [start_time][google.ads.admanager.v1.AdRule.start_time].
74+
// [startTime][google.ads.admanager.v1.AdRule.start_time].
7575
optional google.protobuf.Timestamp end_time = 14
7676
[(google.api.field_behavior) = OPTIONAL];
7777

@@ -81,12 +81,14 @@ message AdRule {
8181
[(google.api.field_behavior) = OPTIONAL];
8282

8383
// Output only. The AdRuleStatus of the AdRule. This attribute is read-only
84-
// and defaults to [AdRuleStatus.INACTIVE][].
84+
// and defaults to
85+
// [AdRuleStatusEnum.AdRuleStatus.INACTIVE][google.ads.admanager.v1.AdRuleStatusEnum.AdRuleStatus.INACTIVE].
8586
optional AdRuleStatusEnum.AdRuleStatus status = 4
8687
[(google.api.field_behavior) = OUTPUT_ONLY];
8788

8889
// Optional. The FrequencyCapBehavior of the AdRule. This attribute is
89-
// optional and defaults to [FrequencyCapBehavior.DEFER][].
90+
// optional and defaults to
91+
// [AdRuleFrequencyCapBehaviorEnum.AdRuleFrequencyCapBehavior.DEFER][google.ads.admanager.v1.AdRuleFrequencyCapBehaviorEnum.AdRuleFrequencyCapBehavior.DEFER].
9092
optional AdRuleFrequencyCapBehaviorEnum.AdRuleFrequencyCapBehavior
9193
frequency_cap_behavior = 5 [(google.api.field_behavior) = OPTIONAL];
9294

@@ -119,7 +121,8 @@ message AdRule {
119121
// information on how the ad server will generate playlists.
120122
message AdRuleSlot {
121123
// Optional. The AdRuleSlotBehavior for video ads for this slot. This
122-
// attribute is optional and defaults to [AdRuleSlotBehavior.DEFER][].
124+
// attribute is optional and defaults to
125+
// [AdRuleSlotBehaviorEnum.AdRuleSlotBehavior.DEFER][google.ads.admanager.v1.AdRuleSlotBehaviorEnum.AdRuleSlotBehavior.DEFER].
123126
// Indicates whether video ads are allowed for this slot, or if the decision
124127
// is deferred to alower-priority ad rule.
125128
optional AdRuleSlotBehaviorEnum.AdRuleSlotBehavior slot_behavior = 1
@@ -132,23 +135,25 @@ message AdRuleSlot {
132135

133136
// Optional. The frequency type for video ads in this ad rule slot. This
134137
// attribute is required for mid-rolls, but if this is not a mid-roll, the
135-
// value is set to [AdRuleSlotMidrollFrequencyType.NONE][].
138+
// value is set to
139+
// [AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE][google.ads.admanager.v1.AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE].
136140
optional AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType
137141
video_midroll_frequency_type = 5 [(google.api.field_behavior) = OPTIONAL];
138142

139143
// Optional. The mid-roll frequency of this ad rule slot for video ads. This
140144
// attribute is required for mid-rolls, but if MidrollFrequencyType is set to
141-
// [AdRuleSlotMidrollFrequencyType.NONE][], this value should be ignored. For
142-
// example, if this slot has a frequency type of
143-
// [AdRuleSlotMidrollFrequencyType.EVERY_N_SECONDS][] and
144-
// # videoMidrollFrequency = "60", this would mean "play a mid-roll every 60
145-
//
146-
// seconds."
145+
// [AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE][google.ads.admanager.v1.AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.NONE],
146+
// this value should be ignored. For example, if this slot has a frequency
147+
// type of
148+
// [AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.EVERY_N_SECONDS][google.ads.admanager.v1.AdRuleSlotMidrollFrequencyTypeEnum.AdRuleSlotMidrollFrequencyType.EVERY_N_SECONDS]
149+
// and #videoMidrollFrequency = "60", this would mean "play a mid-roll every
150+
// 60 seconds."
147151
optional string video_midroll_frequency = 6
148152
[(google.api.field_behavior) = OPTIONAL];
149153

150154
// Optional. The AdRuleSlotBumper for this slot. This attribute is optional
151-
// and defaults to [AdRuleSlotBumper.NONE][].
155+
// and defaults to
156+
// [AdRuleSlotBumperEnum.AdRuleSlotBumper.NONE][google.ads.admanager.v1.AdRuleSlotBumperEnum.AdRuleSlotBumper.NONE].
152157
optional AdRuleSlotBumperEnum.AdRuleSlotBumper bumper = 7
153158
[(google.api.field_behavior) = OPTIONAL];
154159

0 commit comments

Comments
 (0)