// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.ads.datamanager.v1;

import "google/api/field_behavior.proto";

option csharp_namespace = "Google.Ads.DataManager.V1";
option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
option java_multiple_files = true;
option java_outer_classname = "UserPropertiesProto";
option java_package = "com.google.ads.datamanager.v1";
option php_namespace = "Google\\Ads\\DataManager\\V1";
option ruby_package = "Google::Ads::DataManager::V1";

// Advertiser-assessed information about the user at the time that the event
// happened. See https://support.google.com/google-ads/answer/14007601 for more
// details.
message UserProperties {
  // Optional. Type of the customer associated with the event.
  CustomerType customer_type = 1 [(google.api.field_behavior) = OPTIONAL];

  // Optional. The advertiser-assessed value of the customer.
  CustomerValueBucket customer_value_bucket = 2
      [(google.api.field_behavior) = OPTIONAL];
}

// Type of the customer associated with the event.
enum CustomerType {
  // Unspecified CustomerType. Should never be used.
  CUSTOMER_TYPE_UNSPECIFIED = 0;

  // The customer is new to the advertiser.
  NEW = 1;

  // The customer is returning to the advertiser.
  RETURNING = 2;

  // The customer has re-engaged with the advertiser.
  REENGAGED = 3;
}

// The advertiser-assessed value of the customer.
enum CustomerValueBucket {
  // Unspecified CustomerValueBucket. Should never be used.
  CUSTOMER_VALUE_BUCKET_UNSPECIFIED = 0;

  // The customer is low value.
  LOW = 1;

  // The customer is medium value.
  MEDIUM = 2;

  // The customer is high value.
  HIGH = 3;
}
