offline_user_data_job.proto 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.ads.googleads.v12.resources;
  16. import "google/ads/googleads/v12/common/offline_user_data.proto";
  17. import "google/ads/googleads/v12/enums/offline_user_data_job_failure_reason.proto";
  18. import "google/ads/googleads/v12/enums/offline_user_data_job_match_rate_range.proto";
  19. import "google/ads/googleads/v12/enums/offline_user_data_job_status.proto";
  20. import "google/ads/googleads/v12/enums/offline_user_data_job_type.proto";
  21. import "google/api/field_behavior.proto";
  22. import "google/api/resource.proto";
  23. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  24. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  25. option java_multiple_files = true;
  26. option java_outer_classname = "OfflineUserDataJobProto";
  27. option java_package = "com.google.ads.googleads.v12.resources";
  28. option objc_class_prefix = "GAA";
  29. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  30. option ruby_package = "Google::Ads::GoogleAds::V12::Resources";
  31. // Proto file describing the offline user data job resource.
  32. // A job containing offline user data of store visitors, or user list members
  33. // that will be processed asynchronously. The uploaded data isn't readable and
  34. // the processing results of the job can only be read using
  35. // GoogleAdsService.Search/SearchStream.
  36. message OfflineUserDataJob {
  37. option (google.api.resource) = {
  38. type: "googleads.googleapis.com/OfflineUserDataJob"
  39. pattern: "customers/{customer_id}/offlineUserDataJobs/{offline_user_data_update_id}"
  40. };
  41. // Immutable. The resource name of the offline user data job.
  42. // Offline user data job resource names have the form:
  43. //
  44. // `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_job_id}`
  45. string resource_name = 1 [
  46. (google.api.field_behavior) = IMMUTABLE,
  47. (google.api.resource_reference) = {
  48. type: "googleads.googleapis.com/OfflineUserDataJob"
  49. }
  50. ];
  51. // Output only. ID of this offline user data job.
  52. optional int64 id = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  53. // Immutable. User specified job ID.
  54. optional int64 external_id = 10 [(google.api.field_behavior) = IMMUTABLE];
  55. // Immutable. Type of the job.
  56. google.ads.googleads.v12.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobType type = 4 [(google.api.field_behavior) = IMMUTABLE];
  57. // Output only. Status of the job.
  58. google.ads.googleads.v12.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  59. // Output only. Reason for the processing failure, if status is FAILED.
  60. google.ads.googleads.v12.enums.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReason failure_reason = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  61. // Output only. Metadata of offline user data job depicting match rate range.
  62. OfflineUserDataJobMetadata operation_metadata = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  63. // Metadata of the job.
  64. oneof metadata {
  65. // Immutable. Metadata for data updates to a CRM-based user list.
  66. google.ads.googleads.v12.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 7 [(google.api.field_behavior) = IMMUTABLE];
  67. // Immutable. Metadata for store sales data update.
  68. google.ads.googleads.v12.common.StoreSalesMetadata store_sales_metadata = 8 [(google.api.field_behavior) = IMMUTABLE];
  69. }
  70. }
  71. // Metadata of offline user data job.
  72. message OfflineUserDataJobMetadata {
  73. // Output only. Match rate of the Customer Match user list upload. Describes the estimated
  74. // match rate when the status of the job is "RUNNING" and final match rate
  75. // when the final match rate is available after the status of the job is
  76. // "SUCCESS/FAILED".
  77. google.ads.googleads.v12.enums.OfflineUserDataJobMatchRateRangeEnum.OfflineUserDataJobMatchRateRange match_rate_range = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  78. }