xref: /aosp_15_r20/external/googleapis/google/ads/searchads360/v0/enums/attribution_model.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
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.searchads360.v0.enums;
18
19option csharp_namespace = "Google.Ads.SearchAds360.V0.Enums";
20option go_package = "google.golang.org/genproto/googleapis/ads/searchads360/v0/enums;enums";
21option java_multiple_files = true;
22option java_outer_classname = "AttributionModelProto";
23option java_package = "com.google.ads.searchads360.v0.enums";
24option objc_class_prefix = "GASA360";
25option php_namespace = "Google\\Ads\\SearchAds360\\V0\\Enums";
26option ruby_package = "Google::Ads::SearchAds360::V0::Enums";
27
28// Container for enum representing the attribution model that describes how to
29// distribute credit for a particular conversion across potentially many prior
30// interactions.
31message AttributionModelEnum {
32  // The attribution model that describes how to distribute credit for a
33  // particular conversion across potentially many prior interactions.
34  enum AttributionModel {
35    // Not specified.
36    UNSPECIFIED = 0;
37
38    // Used for return value only. Represents value unknown in this version.
39    UNKNOWN = 1;
40
41    // Uses external attribution.
42    EXTERNAL = 100;
43
44    // Attributes all credit for a conversion to its last click.
45    GOOGLE_ADS_LAST_CLICK = 101;
46
47    // Attributes all credit for a conversion to its first click using Google
48    // Search attribution.
49    GOOGLE_SEARCH_ATTRIBUTION_FIRST_CLICK = 102;
50
51    // Attributes credit for a conversion equally across all of its clicks using
52    // Google Search attribution.
53    GOOGLE_SEARCH_ATTRIBUTION_LINEAR = 103;
54
55    // Attributes exponentially more credit for a conversion to its more recent
56    // clicks using Google Search attribution (half-life is 1 week).
57    GOOGLE_SEARCH_ATTRIBUTION_TIME_DECAY = 104;
58
59    // Attributes 40% of the credit for a conversion to its first and last
60    // clicks. Remaining 20% is evenly distributed across all other clicks. This
61    // uses Google Search attribution.
62    GOOGLE_SEARCH_ATTRIBUTION_POSITION_BASED = 105;
63
64    // Flexible model that uses machine learning to determine the appropriate
65    // distribution of credit among clicks using Google Search attribution.
66    GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN = 106;
67  }
68}
69