@@ -34,7 +34,7 @@ option java_package = "com.google.ads.admanager.v1";
3434option php_namespace = "Google\\Ads\\AdManager\\V1" ;
3535option ruby_package = "Google::Ads::AdManager::V1" ;
3636
37- // Provides methods for handling AdReviewCenterAd objects.
37+ // Provides methods for handling ` AdReviewCenterAd` objects.
3838service 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.
89114message 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 {}
0 commit comments