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