keyword_theme_constant_service.proto 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.ads.googleads.v10.services;
  16. import "google/ads/googleads/v10/resources/keyword_theme_constant.proto";
  17. import "google/api/annotations.proto";
  18. import "google/api/client.proto";
  19. option csharp_namespace = "Google.Ads.GoogleAds.V10.Services";
  20. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v10/services;services";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "KeywordThemeConstantServiceProto";
  23. option java_package = "com.google.ads.googleads.v10.services";
  24. option objc_class_prefix = "GAA";
  25. option php_namespace = "Google\\Ads\\GoogleAds\\V10\\Services";
  26. option ruby_package = "Google::Ads::GoogleAds::V10::Services";
  27. // Proto file describing the Smart Campaign keyword theme constant service.
  28. // Service to fetch Smart Campaign keyword themes.
  29. service KeywordThemeConstantService {
  30. option (google.api.default_host) = "googleads.googleapis.com";
  31. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords";
  32. // Returns KeywordThemeConstant suggestions by keyword themes.
  33. //
  34. // List of thrown errors:
  35. // [AuthenticationError]()
  36. // [AuthorizationError]()
  37. // [HeaderError]()
  38. // [InternalError]()
  39. // [QuotaError]()
  40. // [RequestError]()
  41. rpc SuggestKeywordThemeConstants(SuggestKeywordThemeConstantsRequest) returns (SuggestKeywordThemeConstantsResponse) {
  42. option (google.api.http) = {
  43. post: "/v10/keywordThemeConstants:suggest"
  44. body: "*"
  45. };
  46. }
  47. }
  48. // Request message for
  49. // [KeywordThemeConstantService.SuggestKeywordThemeConstants][google.ads.googleads.v10.services.KeywordThemeConstantService.SuggestKeywordThemeConstants].
  50. message SuggestKeywordThemeConstantsRequest {
  51. // The query text of a keyword theme that will be used to map to similar
  52. // keyword themes. E.g. "plumber" or "roofer".
  53. string query_text = 1;
  54. // Upper-case, two-letter country code as defined by ISO-3166. This for
  55. // refining the scope of the query, default to 'US' if not set.
  56. string country_code = 2;
  57. // The two letter language code for get corresponding keyword theme for
  58. // refining the scope of the query, default to 'en' if not set.
  59. string language_code = 3;
  60. }
  61. // Response message for
  62. // [KeywordThemeConstantService.SuggestKeywordThemeConstants][google.ads.googleads.v10.services.KeywordThemeConstantService.SuggestKeywordThemeConstants].
  63. message SuggestKeywordThemeConstantsResponse {
  64. // Smart Campaign keyword theme suggestions.
  65. repeated google.ads.googleads.v10.resources.KeywordThemeConstant keyword_theme_constants = 1;
  66. }