--- v18/services/data_link_service.proto 2025-08-05 14:36:13.000000000 +0000 +++ v19/services/data_link_service.proto 2025-08-05 14:36:21.000000000 +0000 @@ -55,11 +56,54 @@ // [RequestError]() rpc CreateDataLink(CreateDataLinkRequest) returns (CreateDataLinkResponse) { option (google.api.http) = { - post: "/v18/customers/{customer_id=*}/dataLinks:create" + post: "/v19/customers/{customer_id=*}/dataLinks:create" body: "*" }; option (google.api.method_signature) = "customer_id,data_link"; } + + // Remove a data link. + // + // List of thrown errors: + // [AuthenticationError]() + // [AuthorizationError]() + // [DatabaseError]() + // [DataLinkError]() + // [FieldError]() + // [HeaderError]() + // [InternalError]() + // [MutateError]() + // [QuotaError]() + // [RequestError]() + rpc RemoveDataLink(RemoveDataLinkRequest) returns (RemoveDataLinkResponse) { + option (google.api.http) = { + post: "/v19/customers/{customer_id=*}/dataLinks:remove" + body: "*" + }; + option (google.api.method_signature) = "customer_id,resource_name"; + } + + // Update a data link. + // + // List of thrown errors: + // [AuthenticationError]() + // [AuthorizationError]() + // [DatabaseError]() + // [DataLinkError]() + // [FieldError]() + // [HeaderError]() + // [InternalError]() + // [MutateError]() + // [QuotaError]() + // [RequestError]() + rpc UpdateDataLink(UpdateDataLinkRequest) returns (UpdateDataLinkResponse) { + option (google.api.http) = { + post: "/v19/customers/{customer_id=*}/dataLinks:update" + body: "*" + }; + option (google.api.method_signature) = + "customer_id,data_link_status,resource_name"; + } } // Request message for @@ -74,10 +118,62 @@ } // Response message for -// [DataLinkService.CreateDataLink][google.ads.googleads.v18.services.DataLinkService.CreateDataLink]. +// [DataLinkService.CreateDataLink][google.ads.googleads.v19.services.DataLinkService.CreateDataLink]. message CreateDataLinkResponse { // Returned for successful operations. Resource name of the data link. string resource_name = 1 [(google.api.resource_reference) = { type: "googleads.googleapis.com/DataLink" + }]; +} + +// Request message for +// [DataLinkService.RemoveDataLink][google.ads.googleads.v19.services.DataLinkService.RemoveDataLink]. +message RemoveDataLinkRequest { + // Required. The ID of the customer for which the data link is updated. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The data link is expected to have a valid resource name. + string resource_name = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/DataLink" + } + ]; +} + +// Response message for +// [DataLinkService.RemoveDataLink][google.ads.googleads.v19.services.DataLinkService.RemoveDataLink]. +message RemoveDataLinkResponse { + // Result for the remove request. + string resource_name = 1 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/DataLink" + }]; +} + +// Request message for +// [DataLinkService.UpdateDataLink][google.ads.googleads.v19.services.DataLinkService.UpdateDataLink]. +message UpdateDataLinkRequest { + // Required. The ID of the customer for which the data link is created. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The data link status to be updated to. + google.ads.googleads.v19.enums.DataLinkStatusEnum.DataLinkStatus + data_link_status = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The data link is expected to have a valid resource name. + string resource_name = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/DataLink" + } + ]; +} + +// Response message for +// [DataLinkService.UpdateDataLink][google.ads.googleads.v19.services.DataLinkService.UpdateDataLink]. +message UpdateDataLinkResponse { + // Returned for successful operations. Resource name of the data link. + string resource_name = 1 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/DataLink" }]; }
/services/data_link_service.proto
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[],[],null,[]]