• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.v15.resources;
18
19import "google/api/field_behavior.proto";
20import "google/api/resource.proto";
21
22option csharp_namespace = "Google.Ads.GoogleAds.V15.Resources";
23option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v15/resources;resources";
24option java_multiple_files = true;
25option java_outer_classname = "SmartCampaignSettingProto";
26option java_package = "com.google.ads.googleads.v15.resources";
27option objc_class_prefix = "GAA";
28option php_namespace = "Google\\Ads\\GoogleAds\\V15\\Resources";
29option ruby_package = "Google::Ads::GoogleAds::V15::Resources";
30
31// Proto file describing the Smart campaign setting resource.
32
33// Settings for configuring Smart campaigns.
34message SmartCampaignSetting {
35  option (google.api.resource) = {
36    type: "googleads.googleapis.com/SmartCampaignSetting"
37    pattern: "customers/{customer_id}/smartCampaignSettings/{campaign_id}"
38  };
39
40  // Phone number and country code in smart campaign settings.
41  message PhoneNumber {
42    // Phone number of the smart campaign.
43    optional string phone_number = 1;
44
45    // Upper-case, two-letter country code as defined by ISO-3166.
46    optional string country_code = 2;
47  }
48
49  // Settings for configuring a business profile optimized for ads as this
50  // campaign's landing page.
51  message AdOptimizedBusinessProfileSetting {
52    // Enabling a lead form on your business profile enables prospective
53    // customers to contact your business by filling out a simple form,
54    // and you'll receive their information through email.
55    optional bool include_lead_form = 1;
56  }
57
58  // Immutable. The resource name of the Smart campaign setting.
59  // Smart campaign setting resource names have the form:
60  //
61  // `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
62  string resource_name = 1 [
63    (google.api.field_behavior) = IMMUTABLE,
64    (google.api.resource_reference) = {
65      type: "googleads.googleapis.com/SmartCampaignSetting"
66    }
67  ];
68
69  // Output only. The campaign to which these settings apply.
70  string campaign = 2 [
71    (google.api.field_behavior) = OUTPUT_ONLY,
72    (google.api.resource_reference) = {
73      type: "googleads.googleapis.com/Campaign"
74    }
75  ];
76
77  // Phone number and country code.
78  PhoneNumber phone_number = 3;
79
80  // The language code to advertise in from the set of
81  // [supported language codes]
82  // (https://developers.google.com/google-ads/api/reference/data/codes-formats#languages).
83  string advertising_language_code = 7;
84
85  // The landing page of this campaign.
86  oneof landing_page {
87    // The user-provided landing page URL for this Campaign.
88    string final_url = 8;
89
90    // Settings for configuring a business profile optimized for ads as this
91    // campaign's landing page.  This campaign must be linked to a business
92    // profile to use this option.  For more information on this feature,
93    // consult https://support.google.com/google-ads/answer/9827068.
94    AdOptimizedBusinessProfileSetting ad_optimized_business_profile_setting = 9;
95  }
96
97  // The business setting of this campaign.
98  oneof business_setting {
99    // The name of the business.
100    string business_name = 5;
101
102    // The resource name of a Business Profile location.
103    // Business Profile location resource names can be fetched through the
104    // Business Profile API and adhere to the following format:
105    // `locations/{locationId}`.
106    //
107    // See the [Business Profile API]
108    // (https://developers.google.com/my-business/reference/businessinformation/rest/v1/accounts.locations)
109    // for additional details.
110    string business_profile_location = 10;
111  }
112}
113