call_view.proto 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.v11.resources;
  16. import "google/ads/googleads/v11/enums/call_tracking_display_location.proto";
  17. import "google/ads/googleads/v11/enums/call_type.proto";
  18. import "google/ads/googleads/v11/enums/google_voice_call_status.proto";
  19. import "google/api/field_behavior.proto";
  20. import "google/api/resource.proto";
  21. option csharp_namespace = "Google.Ads.GoogleAds.V11.Resources";
  22. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v11/resources;resources";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "CallViewProto";
  25. option java_package = "com.google.ads.googleads.v11.resources";
  26. option objc_class_prefix = "GAA";
  27. option php_namespace = "Google\\Ads\\GoogleAds\\V11\\Resources";
  28. option ruby_package = "Google::Ads::GoogleAds::V11::Resources";
  29. // Proto file describing the call view resource.
  30. // A call view that includes data for call tracking of call-only ads or call
  31. // extensions.
  32. message CallView {
  33. option (google.api.resource) = {
  34. type: "googleads.googleapis.com/CallView"
  35. pattern: "customers/{customer_id}/callViews/{call_detail_id}"
  36. };
  37. // Output only. The resource name of the call view.
  38. // Call view resource names have the form:
  39. //
  40. // `customers/{customer_id}/callViews/{call_detail_id}`
  41. string resource_name = 1 [
  42. (google.api.field_behavior) = OUTPUT_ONLY,
  43. (google.api.resource_reference) = {
  44. type: "googleads.googleapis.com/CallView"
  45. }
  46. ];
  47. // Output only. Country code of the caller.
  48. string caller_country_code = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  49. // Output only. Area code of the caller. Null if the call duration is shorter than 15
  50. // seconds.
  51. string caller_area_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  52. // Output only. The advertiser-provided call duration in seconds.
  53. int64 call_duration_seconds = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  54. // Output only. The advertiser-provided call start date time.
  55. string start_call_date_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  56. // Output only. The advertiser-provided call end date time.
  57. string end_call_date_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  58. // Output only. The call tracking display location.
  59. google.ads.googleads.v11.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  60. // Output only. The type of the call.
  61. google.ads.googleads.v11.enums.CallTypeEnum.CallType type = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  62. // Output only. The status of the call.
  63. google.ads.googleads.v11.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  64. }