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,83 @@
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 Rpc
17
+ # The +Status+ type defines a logical error model that is suitable for different
18
+ # programming environments, including REST APIs and RPC APIs. It is used by
19
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
20
+ #
21
+ # * Simple to use and understand for most users
22
+ # * Flexible enough to meet unexpected needs
23
+ #
24
+ # = Overview
25
+ #
26
+ # The +Status+ message contains three pieces of data: error code, error message,
27
+ # and error details. The error code should be an enum value of
28
+ # {Google::Rpc::Code}, but it may accept additional error codes if needed. The
29
+ # error message should be a developer-facing English message that helps
30
+ # developers *understand* and *resolve* the error. If a localized user-facing
31
+ # error message is needed, put the localized message in the error details or
32
+ # localize it in the client. The optional error details may contain arbitrary
33
+ # information about the error. There is a predefined set of error detail types
34
+ # in the package +google.rpc+ that can be used for common error conditions.
35
+ #
36
+ # = Language mapping
37
+ #
38
+ # The +Status+ message is the logical representation of the error model, but it
39
+ # is not necessarily the actual wire format. When the +Status+ message is
40
+ # exposed in different client libraries and different wire protocols, it can be
41
+ # mapped differently. For example, it will likely be mapped to some exceptions
42
+ # in Java, but more likely mapped to some error codes in C.
43
+ #
44
+ # = Other uses
45
+ #
46
+ # The error model and the +Status+ message can be used in a variety of
47
+ # environments, either with or without APIs, to provide a
48
+ # consistent developer experience across different environments.
49
+ #
50
+ # Example uses of this error model include:
51
+ #
52
+ # * Partial errors. If a service needs to return partial errors to the client,
53
+ # it may embed the +Status+ in the normal response to indicate the partial
54
+ # errors.
55
+ #
56
+ # * Workflow errors. A typical workflow has multiple steps. Each step may
57
+ # have a +Status+ message for error reporting.
58
+ #
59
+ # * Batch operations. If a client uses batch request and batch response, the
60
+ # +Status+ message should be used directly inside batch response, one for
61
+ # each error sub-response.
62
+ #
63
+ # * Asynchronous operations. If an API call embeds asynchronous operation
64
+ # results in its response, the status of those operations should be
65
+ # represented directly using the +Status+ message.
66
+ #
67
+ # * Logging. If some API errors are stored in logs, the message +Status+ could
68
+ # be used directly after any stripping needed for security/privacy reasons.
69
+ # @!attribute [rw] code
70
+ # @return [Integer]
71
+ # The status code, which should be an enum value of {Google::Rpc::Code}.
72
+ # @!attribute [rw] message
73
+ # @return [String]
74
+ # A developer-facing error message, which should be in English. Any
75
+ # user-facing error message should be localized and sent in the
76
+ # {Google::Rpc::Status#details} field, or localized by the client.
77
+ # @!attribute [rw] details
78
+ # @return [Array<Google::Protobuf::Any>]
79
+ # A list of messages that carry the error details. There is a common set of
80
+ # message types for APIs to use.
81
+ class Status; end
82
+ end
83
+ end
@@ -0,0 +1,82 @@
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
+ # rubocop:disable LineLength
18
+
19
+ ##
20
+ # # Ruby Client for Google Ads API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
21
+ #
22
+ # [Google Ads API][Product Documentation]:
23
+ # Manage your AdWords accounts, campaigns, and reports with this REST-based
24
+ # API.
25
+ # - [Product Documentation][]
26
+ #
27
+ # ## Quick Start
28
+ # In order to use this library, you first need to go through the following
29
+ # steps:
30
+ #
31
+ # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
32
+ # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
33
+ # 3. [Enable the Google Ads API.](https://console.cloud.google.com/apis/library/googleads.googleapis.com)
34
+ # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
35
+ #
36
+ # ### Installation
37
+ # ```
38
+ # $ gem install google-ads-googleads
39
+ # ```
40
+ #
41
+ # ### Next Steps
42
+ # - Read the [Google Ads API Product documentation][Product Documentation]
43
+ # to learn more about the product and see How-to Guides.
44
+ # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
45
+ # to see the full list of Cloud APIs that we cover.
46
+ #
47
+ # [Product Documentation]: https://cloud.google.com/googleads
48
+ #
49
+ # ## Enabling Logging
50
+ #
51
+ # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
52
+ # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
53
+ # or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
54
+ # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
55
+ # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
56
+ #
57
+ # Configuring a Ruby stdlib logger:
58
+ #
59
+ # ```ruby
60
+ # require "logger"
61
+ #
62
+ # module MyLogger
63
+ # LOGGER = Logger.new $stderr, level: Logger::WARN
64
+ # def logger
65
+ # LOGGER
66
+ # end
67
+ # end
68
+ #
69
+ # # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
70
+ # module GRPC
71
+ # extend MyLogger
72
+ # end
73
+ # ```
74
+ #
75
+ module Googleads
76
+ module V0
77
+ module Services
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end
@@ -195,9 +195,9 @@ module Google
195
195
  # @return [Google::Ads::Googleads::V0::Resources::GeoTargetConstant]
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
- # geo_target_constant_service_client = Google::Ads::Googleads::V0::Services::GeoTargetConstant.new
200
+ # geo_target_constant_service_client = Google::Ads::Googleads::GeoTargetConstant.new(version: :v0)
201
201
  # formatted_resource_name = Google::Ads::Googleads::V0::Services::GeoTargetConstantServiceClient.geo_target_constant_path("[GEO_TARGET_CONSTANT]")
202
202
  # response = geo_target_constant_service_client.get_geo_target_constant(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/geo_target_constant_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/geo_target_constant_service_pb'
@@ -25,8 +26,6 @@ module Google
25
26
  module V0
26
27
  module Services
27
28
  module GeoTargetConstantService
28
- # Proto file describing the Geo target constant service.
29
- #
30
29
  # Service to fetch geo target constants.
31
30
  class Service
32
31
 
@@ -210,9 +210,9 @@ module Google
210
210
  # @return [Google::Ads::Googleads::V0::Resources::GoogleAdsField]
211
211
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
212
212
  # @example
213
- # require "google/ads/googleads/v0/services"
213
+ # require "google/ads/googleads"
214
214
  #
215
- # google_ads_field_service_client = Google::Ads::Googleads::V0::Services::GoogleAdsField.new
215
+ # google_ads_field_service_client = Google::Ads::Googleads::GoogleAdsField.new(version: :v0)
216
216
  # formatted_resource_name = Google::Ads::Googleads::V0::Services::GoogleAdsFieldServiceClient.google_ads_field_path("[GOOGLE_ADS_FIELD]")
217
217
  # response = google_ads_field_service_client.get_google_ads_field(formatted_resource_name)
218
218
 
@@ -250,9 +250,9 @@ module Google
250
250
  # object.
251
251
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
252
252
  # @example
253
- # require "google/ads/googleads/v0/services"
253
+ # require "google/ads/googleads"
254
254
  #
255
- # google_ads_field_service_client = Google::Ads::Googleads::V0::Services::GoogleAdsField.new
255
+ # google_ads_field_service_client = Google::Ads::Googleads::GoogleAdsField.new(version: :v0)
256
256
  #
257
257
  # # TODO: Initialize +query+:
258
258
  # query = ''
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/ads/googleads/v0/services/google_ads_field_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/google_ads_field_service_pb'
@@ -25,8 +26,6 @@ module Google
25
26
  module V0
26
27
  module Services
27
28
  module GoogleAdsFieldService
28
- # Proto file describing the GoogleAdsFieldService
29
- #
30
29
  # Service to fetch Google Ads API fields.
31
30
  class Service
32
31
 
@@ -202,9 +202,9 @@ module Google
202
202
  # object.
203
203
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
204
204
  # @example
205
- # require "google/ads/googleads/v0/services"
205
+ # require "google/ads/googleads"
206
206
  #
207
- # google_ads_service_client = Google::Ads::Googleads::V0::Services::GoogleAds.new
207
+ # google_ads_service_client = Google::Ads::Googleads::GoogleAds.new(version: :v0)
208
208
  #
209
209
  # # TODO: Initialize +customer_id+:
210
210
  # customer_id = ''
@@ -7,6 +7,7 @@ require 'google/ads/googleads/v0/common/metrics_pb'
7
7
  require 'google/ads/googleads/v0/enums/ad_network_type_pb'
8
8
  require 'google/ads/googleads/v0/enums/day_of_week_pb'
9
9
  require 'google/ads/googleads/v0/enums/device_pb'
10
+ require 'google/ads/googleads/v0/enums/month_of_year_pb'
10
11
  require 'google/ads/googleads/v0/enums/slot_pb'
11
12
  require 'google/ads/googleads/v0/resources/ad_group_pb'
12
13
  require 'google/ads/googleads/v0/resources/ad_group_ad_pb'
@@ -14,12 +15,17 @@ require 'google/ads/googleads/v0/resources/ad_group_bid_modifier_pb'
14
15
  require 'google/ads/googleads/v0/resources/ad_group_criterion_pb'
15
16
  require 'google/ads/googleads/v0/resources/bidding_strategy_pb'
16
17
  require 'google/ads/googleads/v0/resources/campaign_pb'
18
+ require 'google/ads/googleads/v0/resources/campaign_bid_modifier_pb'
17
19
  require 'google/ads/googleads/v0/resources/campaign_budget_pb'
18
20
  require 'google/ads/googleads/v0/resources/campaign_criterion_pb'
21
+ require 'google/ads/googleads/v0/resources/campaign_group_pb'
22
+ require 'google/ads/googleads/v0/resources/campaign_shared_set_pb'
19
23
  require 'google/ads/googleads/v0/resources/customer_pb'
20
24
  require 'google/ads/googleads/v0/resources/geo_target_constant_pb'
21
25
  require 'google/ads/googleads/v0/resources/keyword_view_pb'
22
26
  require 'google/ads/googleads/v0/resources/recommendation_pb'
27
+ require 'google/ads/googleads/v0/resources/shared_criterion_pb'
28
+ require 'google/ads/googleads/v0/resources/shared_set_pb'
23
29
  require 'google/api/annotations_pb'
24
30
  require 'google/protobuf/field_mask_pb'
25
31
  require 'google/protobuf/wrappers_pb'
@@ -44,11 +50,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
44
50
  optional :bidding_strategy, :message, 18, "google.ads.googleads.v0.resources.BiddingStrategy"
45
51
  optional :campaign_budget, :message, 19, "google.ads.googleads.v0.resources.CampaignBudget"
46
52
  optional :campaign, :message, 2, "google.ads.googleads.v0.resources.Campaign"
53
+ optional :campaign_bid_modifier, :message, 26, "google.ads.googleads.v0.resources.CampaignBidModifier"
47
54
  optional :campaign_criterion, :message, 20, "google.ads.googleads.v0.resources.CampaignCriterion"
55
+ optional :campaign_group, :message, 25, "google.ads.googleads.v0.resources.CampaignGroup"
56
+ optional :campaign_shared_set, :message, 30, "google.ads.googleads.v0.resources.CampaignSharedSet"
48
57
  optional :customer, :message, 1, "google.ads.googleads.v0.resources.Customer"
49
58
  optional :geo_target_constant, :message, 23, "google.ads.googleads.v0.resources.GeoTargetConstant"
50
59
  optional :keyword_view, :message, 21, "google.ads.googleads.v0.resources.KeywordView"
51
60
  optional :recommendation, :message, 22, "google.ads.googleads.v0.resources.Recommendation"
61
+ optional :shared_criterion, :message, 29, "google.ads.googleads.v0.resources.SharedCriterion"
62
+ optional :shared_set, :message, 27, "google.ads.googleads.v0.resources.SharedSet"
52
63
  optional :metrics, :message, 4, "google.ads.googleads.v0.common.Metrics"
53
64
  optional :ad_network_type, :enum, 5, "google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType"
54
65
  optional :date, :message, 6, "google.protobuf.StringValue"
@@ -56,6 +67,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
56
67
  optional :device, :enum, 8, "google.ads.googleads.v0.enums.DeviceEnum.Device"
57
68
  optional :hour, :message, 9, "google.protobuf.Int32Value"
58
69
  optional :month, :message, 10, "google.protobuf.StringValue"
70
+ optional :month_of_year, :enum, 28, "google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear"
59
71
  optional :quarter, :message, 12, "google.protobuf.StringValue"
60
72
  optional :slot, :enum, 13, "google.ads.googleads.v0.enums.SlotEnum.Slot"
61
73
  optional :week, :message, 14, "google.protobuf.StringValue"
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/ads/googleads/v0/services/google_ads_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/google_ads_service_pb'
@@ -25,8 +26,6 @@ module Google
25
26
  module V0
26
27
  module Services
27
28
  module GoogleAdsService
28
- # Proto file describing the GoogleAdsService.
29
- #
30
29
  # Service to fetch data and metrics across resources.
31
30
  class Service
32
31
 
@@ -197,9 +197,9 @@ module Google
197
197
  # @return [Google::Ads::Googleads::V0::Resources::KeywordView]
198
198
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
199
199
  # @example
200
- # require "google/ads/googleads/v0/services"
200
+ # require "google/ads/googleads"
201
201
  #
202
- # keyword_view_service_client = Google::Ads::Googleads::V0::Services::KeywordView.new
202
+ # keyword_view_service_client = Google::Ads::Googleads::KeywordView.new(version: :v0)
203
203
  # formatted_resource_name = Google::Ads::Googleads::V0::Services::KeywordViewServiceClient.keyword_view_path("[CUSTOMER]", "[KEYWORD_VIEW]")
204
204
  # response = keyword_view_service_client.get_keyword_view(formatted_resource_name)
205
205
 
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/ads/googleads/v0/services/keyword_view_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/keyword_view_service_pb'
@@ -25,8 +26,6 @@ module Google
25
26
  module V0
26
27
  module Services
27
28
  module KeywordViewService
28
- # Proto file describing the Keyword View service.
29
- #
30
29
  # Service to manage keyword views.
31
30
  class Service
32
31
 
@@ -202,9 +202,9 @@ module Google
202
202
  # @return [Google::Ads::Googleads::V0::Resources::Recommendation]
203
203
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
204
204
  # @example
205
- # require "google/ads/googleads/v0/services"
205
+ # require "google/ads/googleads"
206
206
  #
207
- # recommendation_service_client = Google::Ads::Googleads::V0::Services::Recommendation.new
207
+ # recommendation_service_client = Google::Ads::Googleads::Recommendation.new(version: :v0)
208
208
  # formatted_resource_name = Google::Ads::Googleads::V0::Services::RecommendationServiceClient.recommendation_path("[CUSTOMER]", "[RECOMMENDATION]")
209
209
  # response = recommendation_service_client.get_recommendation(formatted_resource_name)
210
210
 
@@ -236,9 +236,9 @@ module Google
236
236
  # @return [Google::Ads::Googleads::V0::Services::ApplyRecommendationResponse]
237
237
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
238
238
  # @example
239
- # require "google/ads/googleads/v0/services"
239
+ # require "google/ads/googleads"
240
240
  #
241
- # recommendation_service_client = Google::Ads::Googleads::V0::Services::Recommendation.new
241
+ # recommendation_service_client = Google::Ads::Googleads::Recommendation.new(version: :v0)
242
242
  #
243
243
  # # TODO: Initialize +customer_id+:
244
244
  # customer_id = ''
@@ -3,8 +3,8 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/ads/googleads/v0/common/ad_pb'
7
6
  require 'google/ads/googleads/v0/enums/keyword_match_type_pb'
7
+ require 'google/ads/googleads/v0/resources/ad_pb'
8
8
  require 'google/ads/googleads/v0/resources/recommendation_pb'
9
9
  require 'google/api/annotations_pb'
10
10
  require 'google/protobuf/wrappers_pb'
@@ -30,7 +30,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
30
30
  optional :new_budget_amount_micros, :message, 1, "google.protobuf.Int64Value"
31
31
  end
32
32
  add_message "google.ads.googleads.v0.services.ApplyRecommendationOperation.TextAdParameters" do
33
- optional :ad, :message, 1, "google.ads.googleads.v0.common.Ad"
33
+ optional :ad, :message, 1, "google.ads.googleads.v0.resources.Ad"
34
34
  end
35
35
  add_message "google.ads.googleads.v0.services.ApplyRecommendationOperation.KeywordParameters" do
36
36
  optional :ad_group, :message, 1, "google.protobuf.StringValue"
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/ads/googleads/v0/services/recommendation_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/recommendation_service_pb'
@@ -25,8 +26,6 @@ module Google
25
26
  module V0
26
27
  module Services
27
28
  module RecommendationService
28
- # Proto file describing the Recommendation service.
29
- #
30
29
  # Service to manage recommendations.
31
30
  class Service
32
31