call_view.proto 3.3 KB

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