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.common; 18 19import "google/ads/googleads/v16/enums/tracking_code_page_format.proto"; 20import "google/ads/googleads/v16/enums/tracking_code_type.proto"; 21 22option csharp_namespace = "Google.Ads.GoogleAds.V16.Common"; 23option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v16/common;common"; 24option java_multiple_files = true; 25option java_outer_classname = "TagSnippetProto"; 26option java_package = "com.google.ads.googleads.v16.common"; 27option objc_class_prefix = "GAA"; 28option php_namespace = "Google\\Ads\\GoogleAds\\V16\\Common"; 29option ruby_package = "Google::Ads::GoogleAds::V16::Common"; 30 31// Proto file describing TagSnippet 32 33// The site tag and event snippet pair for a TrackingCodeType. 34message TagSnippet { 35 // The type of the generated tag snippets for tracking conversions. 36 google.ads.googleads.v16.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1; 37 38 // The format of the web page where the tracking tag and snippet will be 39 // installed, for example, HTML. 40 google.ads.googleads.v16.enums.TrackingCodePageFormatEnum 41 .TrackingCodePageFormat page_format = 2; 42 43 // The site tag that adds visitors to your basic remarketing lists and sets 44 // new cookies on your domain. 45 optional string global_site_tag = 5; 46 47 // The event snippet that works with the site tag to track actions that 48 // should be counted as conversions. 49 optional string event_snippet = 6; 50} 51