google-ads-googleads 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +5 -5
  2. data/ChangeLog +3 -0
  3. data/lib/google/ads/googleads/path_lookup_util.rb +29 -0
  4. data/lib/google/ads/googleads/proto_lookup_util.rb +91 -10
  5. data/lib/google/ads/googleads/v0/common/{ad_pb.rb → ad_type_infos_pb.rb} +4 -22
  6. data/lib/google/ads/googleads/v0/common/criteria_pb.rb +37 -3
  7. data/lib/google/ads/googleads/v0/common/metrics_pb.rb +8 -8
  8. data/lib/google/ads/googleads/v0/common/policy_pb.rb +57 -0
  9. data/lib/google/ads/googleads/v0/enums/ad_group_type_pb.rb +2 -0
  10. data/lib/google/ads/googleads/v0/enums/ad_network_type_pb.rb +1 -0
  11. data/lib/google/ads/googleads/v0/enums/ad_type_pb.rb +1 -0
  12. data/lib/google/ads/googleads/v0/enums/advertising_channel_sub_type_pb.rb +3 -0
  13. data/lib/google/ads/googleads/v0/enums/advertising_channel_type_pb.rb +2 -0
  14. data/lib/google/ads/googleads/v0/enums/bid_modifier_source_pb.rb +28 -0
  15. data/lib/google/ads/googleads/v0/enums/campaign_group_status_pb.rb +28 -0
  16. data/lib/google/ads/googleads/v0/enums/campaign_shared_set_status_pb.rb +28 -0
  17. data/lib/google/ads/googleads/v0/enums/criterion_type_pb.rb +2 -1
  18. data/lib/google/ads/googleads/v0/enums/device_pb.rb +1 -0
  19. data/lib/google/ads/googleads/v0/enums/hotel_date_selection_type_pb.rb +28 -0
  20. data/lib/google/ads/googleads/v0/enums/interaction_type_pb.rb +27 -0
  21. data/lib/google/ads/googleads/v0/enums/minute_of_hour_pb.rb +30 -0
  22. data/lib/google/ads/googleads/v0/enums/month_of_year_pb.rb +38 -0
  23. data/lib/google/ads/googleads/v0/enums/policy_topic_entry_type_pb.rb +31 -0
  24. data/lib/google/ads/googleads/v0/enums/policy_topic_evidence_destination_mismatch_url_type_pb.rb +31 -0
  25. data/lib/google/ads/googleads/v0/enums/product_condition_pb.rb +30 -0
  26. data/lib/google/ads/googleads/v0/enums/product_type_level_pb.rb +31 -0
  27. data/lib/google/ads/googleads/v0/enums/recommendation_type_pb.rb +5 -0
  28. data/lib/google/ads/googleads/v0/enums/shared_set_status_pb.rb +28 -0
  29. data/lib/google/ads/googleads/v0/enums/shared_set_type_pb.rb +28 -0
  30. data/lib/google/ads/googleads/v0/enums/slot_pb.rb +1 -0
  31. data/lib/google/ads/googleads/v0/errors/authentication_error_pb.rb +2 -0
  32. data/lib/google/ads/googleads/v0/errors/authorization_error_pb.rb +2 -0
  33. data/lib/google/ads/googleads/v0/errors/campaign_criterion_error_pb.rb +1 -0
  34. data/lib/google/ads/googleads/v0/errors/campaign_error_pb.rb +1 -2
  35. data/lib/google/ads/googleads/v0/errors/campaign_group_error_pb.rb +29 -0
  36. data/lib/google/ads/googleads/v0/errors/campaign_shared_set_error_pb.rb +27 -0
  37. data/lib/google/ads/googleads/v0/errors/context_error_pb.rb +1 -0
  38. data/lib/google/ads/googleads/v0/errors/database_error_pb.rb +27 -0
  39. data/lib/google/ads/googleads/v0/errors/enum_error_pb.rb +27 -0
  40. data/lib/google/ads/googleads/v0/errors/errors_pb.rb +21 -0
  41. data/lib/google/ads/googleads/v0/errors/header_error_pb.rb +27 -0
  42. data/lib/google/ads/googleads/v0/errors/mutate_error_pb.rb +1 -0
  43. data/lib/google/ads/googleads/v0/errors/policy_finding_error_pb.rb +27 -0
  44. data/lib/google/ads/googleads/v0/errors/query_error_pb.rb +1 -0
  45. data/lib/google/ads/googleads/v0/errors/quota_error_pb.rb +1 -0
  46. data/lib/google/ads/googleads/v0/errors/recommendation_error_pb.rb +1 -0
  47. data/lib/google/ads/googleads/v0/errors/shared_criterion_error_pb.rb +27 -0
  48. data/lib/google/ads/googleads/v0/errors/shared_set_error_pb.rb +30 -0
  49. data/lib/google/ads/googleads/v0/resources/ad_group_ad_pb.rb +2 -2
  50. data/lib/google/ads/googleads/v0/resources/ad_group_bid_modifier_pb.rb +4 -0
  51. data/lib/google/ads/googleads/v0/resources/ad_pb.rb +42 -0
  52. data/lib/google/ads/googleads/v0/resources/campaign_bid_modifier_pb.rb +30 -0
  53. data/lib/google/ads/googleads/v0/resources/campaign_criterion_pb.rb +2 -1
  54. data/lib/google/ads/googleads/v0/resources/campaign_group_pb.rb +27 -0
  55. data/lib/google/ads/googleads/v0/resources/campaign_pb.rb +9 -0
  56. data/lib/google/ads/googleads/v0/resources/campaign_shared_set_pb.rb +27 -0
  57. data/lib/google/ads/googleads/v0/resources/recommendation_pb.rb +25 -2
  58. data/lib/google/ads/googleads/v0/resources/shared_criterion_pb.rb +31 -0
  59. data/lib/google/ads/googleads/v0/resources/shared_set_pb.rb +31 -0
  60. data/lib/google/ads/googleads/v0/services.rb +1163 -0
  61. data/lib/google/ads/googleads/v0/services/ad_group_ad_service_client.rb +4 -4
  62. data/lib/google/ads/googleads/v0/services/ad_group_ad_service_services_pb.rb +2 -3
  63. data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_client.rb +4 -4
  64. data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_services_pb.rb +2 -3
  65. data/lib/google/ads/googleads/v0/services/ad_group_criterion_service_client.rb +4 -4
  66. data/lib/google/ads/googleads/v0/services/ad_group_criterion_service_services_pb.rb +2 -3
  67. data/lib/google/ads/googleads/v0/services/ad_group_service_client.rb +4 -4
  68. data/lib/google/ads/googleads/v0/services/ad_group_service_services_pb.rb +2 -3
  69. data/lib/google/ads/googleads/v0/services/bidding_strategy_service_client.rb +4 -4
  70. data/lib/google/ads/googleads/v0/services/bidding_strategy_service_services_pb.rb +2 -3
  71. data/lib/google/ads/googleads/v0/services/campaign_bid_modifier_service_client.rb +268 -0
  72. data/lib/google/ads/googleads/v0/services/campaign_bid_modifier_service_client_config.json +36 -0
  73. data/lib/google/ads/googleads/v0/services/campaign_bid_modifier_service_pb.rb +47 -0
  74. data/lib/google/ads/googleads/v0/services/campaign_bid_modifier_service_services_pb.rb +51 -0
  75. data/lib/google/ads/googleads/v0/services/campaign_budget_service_client.rb +4 -4
  76. data/lib/google/ads/googleads/v0/services/campaign_budget_service_services_pb.rb +2 -3
  77. data/lib/google/ads/googleads/v0/services/campaign_criterion_service_client.rb +4 -4
  78. data/lib/google/ads/googleads/v0/services/campaign_criterion_service_services_pb.rb +2 -3
  79. data/lib/google/ads/googleads/v0/services/campaign_group_service_client.rb +268 -0
  80. data/lib/google/ads/googleads/v0/services/campaign_group_service_client_config.json +36 -0
  81. data/lib/google/ads/googleads/v0/services/campaign_group_service_pb.rb +47 -0
  82. data/lib/google/ads/googleads/v0/services/campaign_group_service_services_pb.rb +51 -0
  83. data/lib/google/ads/googleads/v0/services/campaign_service_client.rb +4 -4
  84. data/lib/google/ads/googleads/v0/services/campaign_service_services_pb.rb +2 -3
  85. data/lib/google/ads/googleads/v0/services/campaign_shared_set_service_client.rb +267 -0
  86. data/lib/google/ads/googleads/v0/services/campaign_shared_set_service_client_config.json +36 -0
  87. data/lib/google/ads/googleads/v0/services/campaign_shared_set_service_pb.rb +44 -0
  88. data/lib/google/ads/googleads/v0/services/campaign_shared_set_service_services_pb.rb +50 -0
  89. data/lib/google/ads/googleads/v0/services/credentials.rb +10 -2
  90. data/lib/google/ads/googleads/v0/services/customer_service_client.rb +2 -2
  91. data/lib/google/ads/googleads/v0/services/customer_service_services_pb.rb +2 -3
  92. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/ad_type_infos.rb +120 -0
  93. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/bidding.rb +176 -0
  94. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/criteria.rb +225 -0
  95. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/custom_parameter.rb +33 -0
  96. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/common/metrics.rb +208 -0
  97. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad.rb +79 -0
  98. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group.rb +87 -0
  99. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group_ad.rb +43 -0
  100. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group_bid_modifier.rb +70 -0
  101. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/ad_group_criterion.rb +148 -0
  102. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/bidding_strategy.rb +73 -0
  103. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign.rb +223 -0
  104. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_bid_modifier.rb +46 -0
  105. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_budget.rb +88 -0
  106. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_criterion.rb +66 -0
  107. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_group.rb +49 -0
  108. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/campaign_shared_set.rb +47 -0
  109. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/customer.rb +57 -0
  110. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/geo_target_constant.rb +44 -0
  111. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/google_ads_field.rb +89 -0
  112. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/keyword_view.rb +32 -0
  113. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/recommendation.rb +223 -0
  114. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/shared_criterion.rb +46 -0
  115. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/resources/shared_set.rb +56 -0
  116. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_ad_service.rb +68 -0
  117. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_bid_modifier_service.rb +71 -0
  118. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_criterion_service.rb +69 -0
  119. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/ad_group_service.rb +68 -0
  120. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/bidding_strategy_service.rb +70 -0
  121. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_bid_modifier_service.rb +71 -0
  122. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_budget_service.rb +69 -0
  123. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_criterion_service.rb +69 -0
  124. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_group_service.rb +70 -0
  125. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_service.rb +69 -0
  126. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/campaign_shared_set_service.rb +64 -0
  127. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/customer_service.rb +29 -0
  128. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/geo_target_constant_service.rb +29 -0
  129. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/google_ads_field_service.rb +59 -0
  130. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/google_ads_service.rb +156 -0
  131. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/keyword_view_service.rb +29 -0
  132. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/recommendation_service.rb +112 -0
  133. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/shared_criterion_service.rb +64 -0
  134. data/lib/google/ads/googleads/v0/services/doc/google/ads/googleads/v0/services/shared_set_service.rb +69 -0
  135. data/lib/google/ads/googleads/v0/services/doc/google/protobuf/any.rb +124 -0
  136. data/lib/google/ads/googleads/v0/services/doc/google/protobuf/field_mask.rb +223 -0
  137. data/lib/google/ads/googleads/v0/services/doc/google/protobuf/wrappers.rb +89 -0
  138. data/lib/google/ads/googleads/v0/services/doc/google/rpc/status.rb +83 -0
  139. data/lib/google/ads/googleads/v0/services/doc/overview.rb +82 -0
  140. data/lib/google/ads/googleads/v0/services/geo_target_constant_service_client.rb +2 -2
  141. data/lib/google/ads/googleads/v0/services/geo_target_constant_service_services_pb.rb +2 -3
  142. data/lib/google/ads/googleads/v0/services/google_ads_field_service_client.rb +4 -4
  143. data/lib/google/ads/googleads/v0/services/google_ads_field_service_services_pb.rb +2 -3
  144. data/lib/google/ads/googleads/v0/services/google_ads_service_client.rb +2 -2
  145. data/lib/google/ads/googleads/v0/services/google_ads_service_pb.rb +12 -0
  146. data/lib/google/ads/googleads/v0/services/google_ads_service_services_pb.rb +2 -3
  147. data/lib/google/ads/googleads/v0/services/keyword_view_service_client.rb +2 -2
  148. data/lib/google/ads/googleads/v0/services/keyword_view_service_services_pb.rb +2 -3
  149. data/lib/google/ads/googleads/v0/services/recommendation_service_client.rb +4 -4
  150. data/lib/google/ads/googleads/v0/services/recommendation_service_pb.rb +2 -2
  151. data/lib/google/ads/googleads/v0/services/recommendation_service_services_pb.rb +2 -3
  152. data/lib/google/ads/googleads/v0/services/shared_criterion_service_client.rb +267 -0
  153. data/lib/google/ads/googleads/v0/services/shared_criterion_service_client_config.json +36 -0
  154. data/lib/google/ads/googleads/v0/services/shared_criterion_service_pb.rb +44 -0
  155. data/lib/google/ads/googleads/v0/services/shared_criterion_service_services_pb.rb +50 -0
  156. data/lib/google/ads/googleads/v0/services/shared_set_service_client.rb +267 -0
  157. data/lib/google/ads/googleads/v0/services/shared_set_service_client_config.json +36 -0
  158. data/lib/google/ads/googleads/v0/services/shared_set_service_pb.rb +47 -0
  159. data/lib/google/ads/googleads/v0/services/shared_set_service_services_pb.rb +50 -0
  160. data/lib/google/ads/googleads/version.rb +1 -1
  161. metadata +100 -4
@@ -0,0 +1,36 @@
1
+ {
2
+ "interfaces": {
3
+ "google.ads.googleads.v0.services.CampaignSharedSetService": {
4
+ "retry_codes": {
5
+ "idempotent": [
6
+ "DEADLINE_EXCEEDED",
7
+ "UNAVAILABLE"
8
+ ],
9
+ "non_idempotent": []
10
+ },
11
+ "retry_params": {
12
+ "default": {
13
+ "initial_retry_delay_millis": 100,
14
+ "retry_delay_multiplier": 1.3,
15
+ "max_retry_delay_millis": 60000,
16
+ "initial_rpc_timeout_millis": 20000,
17
+ "rpc_timeout_multiplier": 1.0,
18
+ "max_rpc_timeout_millis": 20000,
19
+ "total_timeout_millis": 600000
20
+ }
21
+ },
22
+ "methods": {
23
+ "GetCampaignSharedSet": {
24
+ "timeout_millis": 60000,
25
+ "retry_codes_name": "idempotent",
26
+ "retry_params_name": "default"
27
+ },
28
+ "MutateCampaignSharedSets": {
29
+ "timeout_millis": 60000,
30
+ "retry_codes_name": "non_idempotent",
31
+ "retry_params_name": "default"
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,44 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/services/campaign_shared_set_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/ads/googleads/v0/resources/campaign_shared_set_pb'
7
+ require 'google/api/annotations_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_message "google.ads.googleads.v0.services.GetCampaignSharedSetRequest" do
10
+ optional :resource_name, :string, 1
11
+ end
12
+ add_message "google.ads.googleads.v0.services.MutateCampaignSharedSetsRequest" do
13
+ optional :customer_id, :string, 1
14
+ repeated :operations, :message, 2, "google.ads.googleads.v0.services.CampaignSharedSetOperation"
15
+ end
16
+ add_message "google.ads.googleads.v0.services.CampaignSharedSetOperation" do
17
+ oneof :operation do
18
+ optional :create, :message, 1, "google.ads.googleads.v0.resources.CampaignSharedSet"
19
+ optional :remove, :string, 3
20
+ end
21
+ end
22
+ add_message "google.ads.googleads.v0.services.MutateCampaignSharedSetsResponse" do
23
+ repeated :results, :message, 2, "google.ads.googleads.v0.services.MutateCampaignSharedSetResult"
24
+ end
25
+ add_message "google.ads.googleads.v0.services.MutateCampaignSharedSetResult" do
26
+ optional :resource_name, :string, 1
27
+ end
28
+ end
29
+
30
+ module Google
31
+ module Ads
32
+ module Googleads
33
+ module V0
34
+ module Services
35
+ GetCampaignSharedSetRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.services.GetCampaignSharedSetRequest").msgclass
36
+ MutateCampaignSharedSetsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.services.MutateCampaignSharedSetsRequest").msgclass
37
+ CampaignSharedSetOperation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.services.CampaignSharedSetOperation").msgclass
38
+ MutateCampaignSharedSetsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.services.MutateCampaignSharedSetsResponse").msgclass
39
+ MutateCampaignSharedSetResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.services.MutateCampaignSharedSetResult").msgclass
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,50 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/ads/googleads/v0/services/campaign_shared_set_service.proto for package 'google.ads.googleads.v0.services'
3
+ # Original file comments:
4
+ # Copyright 2018 Google LLC.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+ #
19
+
20
+ require 'grpc'
21
+ require 'google/ads/googleads/v0/services/campaign_shared_set_service_pb'
22
+
23
+ module Google
24
+ module Ads
25
+ module Googleads
26
+ module V0
27
+ module Services
28
+ module CampaignSharedSetService
29
+ # Service to manage campaign shared sets.
30
+ class Service
31
+
32
+ include GRPC::GenericService
33
+
34
+ self.marshal_class_method = :encode
35
+ self.unmarshal_class_method = :decode
36
+ self.service_name = 'google.ads.googleads.v0.services.CampaignSharedSetService'
37
+
38
+ # Returns the requested campaign shared set in full detail.
39
+ rpc :GetCampaignSharedSet, GetCampaignSharedSetRequest, Google::Ads::Googleads::V0::Resources::CampaignSharedSet
40
+ # Creates or removes campaign shared sets. Operation statuses are returned.
41
+ rpc :MutateCampaignSharedSets, MutateCampaignSharedSetsRequest, MutateCampaignSharedSetsResponse
42
+ end
43
+
44
+ Stub = Service.rpc_stub_class
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -22,8 +22,16 @@ module Google
22
22
  class Credentials < Google::Auth::Credentials
23
23
  SCOPE = [
24
24
  ].freeze
25
- PATH_ENV_VARS = %w(GOOGLEADS_KEYFILE GOOGLE_CLOUD_KEYFILE GCLOUD_KEYFILE)
26
- JSON_ENV_VARS = %w(GOOGLEADS_KEYFILE_JSON GOOGLE_CLOUD_KEYFILE_JSON GCLOUD_KEYFILE_JSON)
25
+ PATH_ENV_VARS = %w(GOOGLEADS_CREDENTIALS
26
+ GOOGLEADS_KEYFILE
27
+ GOOGLE_CLOUD_CREDENTIALS
28
+ GOOGLE_CLOUD_KEYFILE
29
+ GCLOUD_KEYFILE)
30
+ JSON_ENV_VARS = %w(GOOGLEADS_CREDENTIALS_JSON
31
+ GOOGLEADS_KEYFILE_JSON
32
+ GOOGLE_CLOUD_CREDENTIALS_JSON
33
+ GOOGLE_CLOUD_KEYFILE_JSON
34
+ GCLOUD_KEYFILE_JSON)
27
35
  DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
28
36
  end
29
37
  end
@@ -195,9 +195,9 @@ module Google
195
195
  # @return [Google::Ads::Googleads::V0::Resources::Customer]
196
196
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
197
197
  # @example
198
- # require "google/ads/googleads/v0/services"
198
+ # require "google/ads/googleads"
199
199
  #
200
- # customer_service_client = Google::Ads::Googleads::V0::Services::Customer.new
200
+ # customer_service_client = Google::Ads::Googleads::Customer.new(version: :v0)
201
201
  # formatted_resource_name = Google::Ads::Googleads::V0::Services::CustomerServiceClient.customer_path("[CUSTOMER]")
202
202
  # response = customer_service_client.get_customer(formatted_resource_name)
203
203
 
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/ads/googleads/v0/services/customer_service.proto for package 'google.ads.googleads.v0.services'
3
3
  # Original file comments:
4
- # Copyright 2018 Google Inc.
4
+ # Copyright 2018 Google LLC.
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,6 +15,7 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
+ #
18
19
 
19
20
  require 'grpc'
20
21
  require 'google/ads/googleads/v0/services/customer_service_pb'
@@ -25,8 +26,6 @@ module Google
25
26
  module V0
26
27
  module Services
27
28
  module CustomerService
28
- # Proto file describing the Customer service.
29
- #
30
29
  # Service to manage customers.
31
30
  class Service
32
31
 
@@ -0,0 +1,120 @@
1
+ # Copyright 2018 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
+ # https://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
+
15
+ module Google
16
+ module Ads
17
+ module Googleads
18
+ module V0
19
+ module Common
20
+ # A text ad.
21
+ # @!attribute [rw] headline
22
+ # @return [Google::Protobuf::StringValue]
23
+ # The headline of the ad.
24
+ # @!attribute [rw] description1
25
+ # @return [Google::Protobuf::StringValue]
26
+ # The first line of the ad's description.
27
+ # @!attribute [rw] description2
28
+ # @return [Google::Protobuf::StringValue]
29
+ # The second line of the ad's description.
30
+ class TextAdInfo; end
31
+
32
+ # An expanded text ad.
33
+ # @!attribute [rw] headline_part1
34
+ # @return [Google::Protobuf::StringValue]
35
+ # The first part of the ad's headline.
36
+ # @!attribute [rw] headline_part2
37
+ # @return [Google::Protobuf::StringValue]
38
+ # The second part of the ad's headline.
39
+ # @!attribute [rw] description
40
+ # @return [Google::Protobuf::StringValue]
41
+ # The description of the ad.
42
+ # @!attribute [rw] path1
43
+ # @return [Google::Protobuf::StringValue]
44
+ # The text that can appear alongside the ad's displayed URL.
45
+ # @!attribute [rw] path2
46
+ # @return [Google::Protobuf::StringValue]
47
+ # Additional text that can appear alongside the ad's displayed URL.
48
+ class ExpandedTextAdInfo; end
49
+
50
+ # A dynamic search ad.
51
+ # @!attribute [rw] description1
52
+ # @return [Google::Protobuf::StringValue]
53
+ # The first line of the ad's description.
54
+ # @!attribute [rw] description2
55
+ # @return [Google::Protobuf::StringValue]
56
+ # The second line of the ad's description.
57
+ class DynamicSearchAdInfo; end
58
+
59
+ # A responsive display ad.
60
+ # @!attribute [rw] short_headline
61
+ # @return [Google::Protobuf::StringValue]
62
+ # The short version of the ad's headline.
63
+ # @!attribute [rw] long_headline
64
+ # @return [Google::Protobuf::StringValue]
65
+ # The long version of the ad's headline.
66
+ # @!attribute [rw] description
67
+ # @return [Google::Protobuf::StringValue]
68
+ # The description of the ad.
69
+ # @!attribute [rw] business_name
70
+ # @return [Google::Protobuf::StringValue]
71
+ # The business name in the ad.
72
+ class ResponsiveDisplayAdInfo; end
73
+
74
+ # A call-only ad.
75
+ # @!attribute [rw] country_code
76
+ # @return [Google::Protobuf::StringValue]
77
+ # The country code in the ad.
78
+ # @!attribute [rw] phone_number
79
+ # @return [Google::Protobuf::StringValue]
80
+ # The phone number in the ad.
81
+ # @!attribute [rw] business_name
82
+ # @return [Google::Protobuf::StringValue]
83
+ # The business name in the ad.
84
+ # @!attribute [rw] description1
85
+ # @return [Google::Protobuf::StringValue]
86
+ # The first line of the ad's description.
87
+ # @!attribute [rw] description2
88
+ # @return [Google::Protobuf::StringValue]
89
+ # The second line of the ad's description.
90
+ # @!attribute [rw] call_tracked
91
+ # @return [Google::Protobuf::BoolValue]
92
+ # Whether to enable call tracking for the creative. Enabling call
93
+ # tracking also enables call conversions.
94
+ # @!attribute [rw] disable_call_conversion
95
+ # @return [Google::Protobuf::BoolValue]
96
+ # Whether to disable call conversion for the creative.
97
+ # If set to +true+, disables call conversions even when +call_tracked+ is
98
+ # +true+.
99
+ # If +call_tracked+ is +false+, this field is ignored.
100
+ # @!attribute [rw] phone_number_verification_url
101
+ # @return [Google::Protobuf::StringValue]
102
+ # The URL to be used for phone number verification.
103
+ class CallOnlyAdInfo; end
104
+
105
+ # An expanded dynamic search ad.
106
+ # @!attribute [rw] description
107
+ # @return [Google::Protobuf::StringValue]
108
+ # The description of the ad.
109
+ class ExpandedDynamicSearchAdInfo; end
110
+
111
+ # A hotel ad.
112
+ class HotelAdInfo; end
113
+
114
+ # A Smart Shopping ad.
115
+ class ShoppingSmartAdInfo; end
116
+ end
117
+ end
118
+ end
119
+ end
120
+ end
@@ -0,0 +1,176 @@
1
+ # Copyright 2018 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
+ # https://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
+
15
+ module Google
16
+ module Ads
17
+ module Googleads
18
+ module V0
19
+ module Common
20
+ # An automated bidding strategy that raises bids for clicks
21
+ # that seem more likely to lead to a conversion and lowers
22
+ # them for clicks where they seem less likely.
23
+ class EnhancedCpc; end
24
+
25
+ # Manual click-based bidding where user pays per click.
26
+ # @!attribute [rw] enhanced_cpc_enabled
27
+ # @return [Google::Protobuf::BoolValue]
28
+ # Whether bids are to be enhanced based on conversion optimizer data.
29
+ class ManualCpc; end
30
+
31
+ # Manual impression-based bidding where user pays per thousand impressions.
32
+ class ManualCpm; end
33
+
34
+ # An automated bidding strategy that sets bids to help get the most conversions
35
+ # for your campaign while spending your budget.
36
+ class MaximizeConversions; end
37
+
38
+ # An automated bidding strategy which tries to maximize conversion value
39
+ # given a daily budget.
40
+ # @!attribute [rw] target_roas
41
+ # @return [Google::Protobuf::DoubleValue]
42
+ # The target return on ad spend (ROAS) option. If set, the bid strategy will
43
+ # maximize revenue while averaging the target return on ad spend. If the
44
+ # target ROAS is high, the bid strategy may not be able to spend the full
45
+ # budget. If the target ROAS is not set, the bid strategy will aim to
46
+ # achieve the highest possible ROAS for the budget.
47
+ class MaximizeConversionValue; end
48
+
49
+ # An automated bidding strategy which sets CPC bids to target impressions on
50
+ # page one, or page one promoted slots on google.com.
51
+ # @!attribute [rw] strategy_goal
52
+ # @return [Google::Ads::Googleads::V0::Enums::PageOnePromotedStrategyGoalEnum::PageOnePromotedStrategyGoal]
53
+ # The strategy goal of where impressions are desired to be shown on
54
+ # search result pages.
55
+ # @!attribute [rw] cpc_bid_ceiling_micros
56
+ # @return [Google::Protobuf::Int64Value]
57
+ # Maximum bid limit that can be set by the bid strategy.
58
+ # The limit applies to all keywords managed by the strategy.
59
+ # @!attribute [rw] bid_modifier
60
+ # @return [Google::Protobuf::DoubleValue]
61
+ # Bid multiplier to be applied to the relevant bid estimate (depending on
62
+ # the +strategy_goal+) in determining a keyword's new CPC bid.
63
+ # @!attribute [rw] only_raise_cpc_bids
64
+ # @return [Google::Protobuf::BoolValue]
65
+ # Whether the strategy should always follow bid estimate changes, or only
66
+ # increase.
67
+ # If false, always sets a keyword's new bid to the current bid estimate.
68
+ # If true, only updates a keyword's bid if the current bid estimate is
69
+ # greater than the current bid.
70
+ # @!attribute [rw] raise_cpc_bid_when_budget_constrained
71
+ # @return [Google::Protobuf::BoolValue]
72
+ # Whether the strategy is allowed to raise bids when the throttling
73
+ # rate of the budget it is serving out of rises above a threshold.
74
+ # @!attribute [rw] raise_cpc_bid_when_quality_score_is_low
75
+ # @return [Google::Protobuf::BoolValue]
76
+ # Whether the strategy is allowed to raise bids on keywords with
77
+ # lower-range quality scores.
78
+ class PageOnePromoted; end
79
+
80
+ # An automated bid strategy that sets bids to help get as many conversions as
81
+ # possible at the target cost-per-acquisition (CPA) you set.
82
+ # @!attribute [rw] target_cpa_micros
83
+ # @return [Google::Protobuf::Int64Value]
84
+ # Average CPA target.
85
+ # This target should be greater than or equal to minimum billable unit based
86
+ # on the currency for the account.
87
+ # @!attribute [rw] cpc_bid_ceiling_micros
88
+ # @return [Google::Protobuf::Int64Value]
89
+ # Maximum bid limit that can be set by the bid strategy.
90
+ # The limit applies to all keywords managed by the strategy.
91
+ # @!attribute [rw] cpc_bid_floor_micros
92
+ # @return [Google::Protobuf::Int64Value]
93
+ # Minimum bid limit that can be set by the bid strategy.
94
+ # The limit applies to all keywords managed by the strategy.
95
+ class TargetCpa; end
96
+
97
+ # An automated bidding strategy that sets bids based on the target fraction of
98
+ # auctions where the advertiser should outrank a specific competitor.
99
+ # @!attribute [rw] target_outrank_share_micros
100
+ # @return [Google::Protobuf::Int32Value]
101
+ # The target fraction of auctions where the advertiser should outrank the
102
+ # competitor.
103
+ # The advertiser outranks the competitor in an auction if either the
104
+ # advertiser appears above the competitor in the search results, or appears
105
+ # in the search results when the competitor does not.
106
+ # Value must be between 1 and 1000000, inclusive.
107
+ # @!attribute [rw] competitor_domain
108
+ # @return [Google::Protobuf::StringValue]
109
+ # Competitor's visible domain URL.
110
+ # @!attribute [rw] cpc_bid_ceiling_micros
111
+ # @return [Google::Protobuf::Int64Value]
112
+ # Maximum bid limit that can be set by the bid strategy.
113
+ # The limit applies to all keywords managed by the strategy.
114
+ # @!attribute [rw] only_raise_cpc_bids
115
+ # @return [Google::Protobuf::BoolValue]
116
+ # Whether the strategy should always follow bid estimate changes,
117
+ # or only increase.
118
+ # If false, always set a keyword's new bid to the current bid estimate.
119
+ # If true, only updates a keyword's bid if the current bid estimate is
120
+ # greater than the current bid.
121
+ # @!attribute [rw] raise_cpc_bid_when_quality_score_is_low
122
+ # @return [Google::Protobuf::BoolValue]
123
+ # Whether the strategy is allowed to raise bids on keywords with
124
+ # lower-range quality scores.
125
+ class TargetOutrankShare; end
126
+
127
+ # An automated bidding strategy that helps you maximize revenue while
128
+ # averaging a specific target return on ad spend (ROAS).
129
+ # @!attribute [rw] target_roas
130
+ # @return [Google::Protobuf::DoubleValue]
131
+ # Required. The desired revenue (based on conversion data) per unit of spend.
132
+ # Value must be between 0.01 and 1000.0, inclusive.
133
+ # @!attribute [rw] cpc_bid_ceiling_micros
134
+ # @return [Google::Protobuf::Int64Value]
135
+ # Maximum bid limit that can be set by the bid strategy.
136
+ # The limit applies to all keywords managed by the strategy.
137
+ # @!attribute [rw] cpc_bid_floor_micros
138
+ # @return [Google::Protobuf::Int64Value]
139
+ # Minimum bid limit that can be set by the bid strategy.
140
+ # The limit applies to all keywords managed by the strategy.
141
+ class TargetRoas; end
142
+
143
+ # An automated bid strategy that sets your bids to help get as many clicks
144
+ # as possible within your budget.
145
+ # @!attribute [rw] target_spend_micros
146
+ # @return [Google::Protobuf::Int64Value]
147
+ # The spend target under which to maximize clicks.
148
+ # A TargetSpend bidder will attempt to spend the smaller of this value
149
+ # or the natural throttling spend amount.
150
+ # If not specified, the budget is used as the spend target.
151
+ # @!attribute [rw] cpc_bid_ceiling_micros
152
+ # @return [Google::Protobuf::Int64Value]
153
+ # Maximum bid limit that can be set by the bid strategy.
154
+ # The limit applies to all keywords managed by the strategy.
155
+ class TargetSpend; end
156
+
157
+ # A bidding strategy where bids are a fraction of the advertised price for
158
+ # some good or service.
159
+ # @!attribute [rw] cpc_bid_ceiling_micros
160
+ # @return [Google::Protobuf::Int64Value]
161
+ # Maximum bid limit that can be set by the bid strategy. This is
162
+ # an optional field entered by the advertiser and specified in local micros.
163
+ # Note: A zero value is interpreted in the same way as having bid_ceiling
164
+ # undefined.
165
+ # @!attribute [rw] enhanced_cpc_enabled
166
+ # @return [Google::Protobuf::BoolValue]
167
+ # Adjusts the bid for each auction upward or downward, depending on the
168
+ # likelihood of a conversion. Individual bids may exceed
169
+ # cpc_bid_ceiling_micros, but the average bid amount for a campaign should
170
+ # not.
171
+ class PercentCpc; end
172
+ end
173
+ end
174
+ end
175
+ end
176
+ end