--- v17/services/ad_group_ad_service.proto 2024-08-06 12:42:08.000000000 +0000
+++ v17-1/services/ad_group_ad_service.proto 2024-08-06 12:42:17.000000000 +0000
@@ -96,6 +98,27 @@
};
option (google.api.method_signature) = "customer_id,operations";
}
+
+ // Remove automatically created assets from an ad.
+ //
+ // List of thrown errors:
+ // [AdError]()
+ // [AuthenticationError]()
+ // [AuthorizationError]()
+ // [AutomaticallyCreatedAssetRemovalError]()
+ // [HeaderError]()
+ // [InternalError]()
+ // [MutateError]()
+ // [QuotaError]()
+ // [RequestError]()
+ rpc RemoveAutomaticallyCreatedAssets(RemoveAutomaticallyCreatedAssetsRequest)
+ returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ post: "/v17/{ad_group_ad=customers/*/adGroupAds/*}:removeAutomaticallyCreatedAssets"
+ body: "*"
+ };
+ option (google.api.method_signature) = "ad_group_ad,assets_with_field_type";
+ }
}
// Request message for
@@ -175,3 +198,33 @@
// "MUTABLE_RESOURCE".
google.ads.googleads.v17.resources.AdGroupAd ad_group_ad = 2;
}
+
+// Request message for
+// [AdGroupAdService.RemoveAutomaticallyCreatedAssetsRequest][].
+message RemoveAutomaticallyCreatedAssetsRequest {
+ // Required. The resource name of the AdGroupAd from which to remove
+ // automatically created assets.
+ string ad_group_ad = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "googleads.googleapis.com/AdGroupAd"
+ }
+ ];
+
+ // Required. List of assets with field type to be removed from the AdGroupAd.
+ repeated AssetsWithFieldType assets_with_field_type = 2
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// The combination of system asset and field type to remove.
+message AssetsWithFieldType {
+ // Required. The resource name of the asset to be removed.
+ string asset = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "googleads.googleapis.com/Asset" }
+ ];
+
+ // Required. The asset field type.
+ google.ads.googleads.v17.enums.AssetFieldTypeEnum.AssetFieldType
+ asset_field_type = 2 [(google.api.field_behavior) = REQUIRED];
+}
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-22。
[null,null,["最后更新时间 (UTC):2024-08-22。"],[[["A new `RemoveAutomaticallyCreatedAssets` RPC has been added to the `AdGroupAdService` allowing removal of automatically created assets from ads."],["This RPC requires the `ad_group_ad` resource name and a list of `assets_with_field_type` to specify which assets to remove."],["`AssetsWithFieldType` message defines the asset to remove and its associated field type using `asset` (resource name) and `asset_field_type`."],["Error types for the `RemoveAutomaticallyCreatedAssets` RPC include `AdError`, `AuthenticationError`, `AuthorizationError`, `AutomaticallyCreatedAssetRemovalError`, `HeaderError`, `InternalError`, `MutateError`, `QuotaError` and `RequestError`."]]],[]]