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
@@ -15,6 +15,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  value :POLICY_ERROR, 5
16
16
  value :INVALID_BID_AMOUNT, 6
17
17
  value :ADGROUP_KEYWORD_LIMIT, 7
18
+ value :RECOMMENDATION_ALREADY_APPLIED, 8
18
19
  end
19
20
  end
20
21
 
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/errors/shared_criterion_error.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.ads.googleads.v0.errors.SharedCriterionErrorEnum" do
8
+ end
9
+ add_enum "google.ads.googleads.v0.errors.SharedCriterionErrorEnum.SharedCriterionError" do
10
+ value :UNSPECIFIED, 0
11
+ value :UNKNOWN, 1
12
+ value :CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE, 2
13
+ end
14
+ end
15
+
16
+ module Google
17
+ module Ads
18
+ module Googleads
19
+ module V0
20
+ module Errors
21
+ SharedCriterionErrorEnum = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.errors.SharedCriterionErrorEnum").msgclass
22
+ SharedCriterionErrorEnum::SharedCriterionError = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.errors.SharedCriterionErrorEnum.SharedCriterionError").enummodule
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,30 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/errors/shared_set_error.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.ads.googleads.v0.errors.SharedSetErrorEnum" do
8
+ end
9
+ add_enum "google.ads.googleads.v0.errors.SharedSetErrorEnum.SharedSetError" do
10
+ value :UNSPECIFIED, 0
11
+ value :UNKNOWN, 1
12
+ value :CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE, 2
13
+ value :DUPLICATE_NAME, 3
14
+ value :SHARED_SET_REMOVED, 4
15
+ value :SHARED_SET_IN_USE, 5
16
+ end
17
+ end
18
+
19
+ module Google
20
+ module Ads
21
+ module Googleads
22
+ module V0
23
+ module Errors
24
+ SharedSetErrorEnum = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.errors.SharedSetErrorEnum").msgclass
25
+ SharedSetErrorEnum::SharedSetError = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.errors.SharedSetErrorEnum.SharedSetError").enummodule
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -3,15 +3,15 @@
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/ad_group_ad_status_pb'
7
+ require 'google/ads/googleads/v0/resources/ad_pb'
8
8
  require 'google/protobuf/wrappers_pb'
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_message "google.ads.googleads.v0.resources.AdGroupAd" do
11
11
  optional :resource_name, :string, 1
12
12
  optional :status, :enum, 3, "google.ads.googleads.v0.enums.AdGroupAdStatusEnum.AdGroupAdStatus"
13
13
  optional :ad_group, :message, 4, "google.protobuf.StringValue"
14
- optional :ad, :message, 5, "google.ads.googleads.v0.common.Ad"
14
+ optional :ad, :message, 5, "google.ads.googleads.v0.resources.Ad"
15
15
  end
16
16
  end
17
17
 
@@ -4,6 +4,7 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'google/ads/googleads/v0/common/criteria_pb'
7
+ require 'google/ads/googleads/v0/enums/bid_modifier_source_pb'
7
8
  require 'google/protobuf/wrappers_pb'
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_message "google.ads.googleads.v0.resources.AdGroupBidModifier" do
@@ -11,11 +12,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  optional :ad_group, :message, 2, "google.protobuf.StringValue"
12
13
  optional :criterion_id, :message, 3, "google.protobuf.Int64Value"
13
14
  optional :bid_modifier, :message, 4, "google.protobuf.DoubleValue"
15
+ optional :base_ad_group, :message, 9, "google.protobuf.StringValue"
16
+ optional :bid_modifier_source, :enum, 10, "google.ads.googleads.v0.enums.BidModifierSourceEnum.BidModifierSource"
14
17
  oneof :criterion do
15
18
  optional :hotel_date_selection_type, :message, 5, "google.ads.googleads.v0.common.HotelDateSelectionTypeInfo"
16
19
  optional :hotel_advance_booking_window, :message, 6, "google.ads.googleads.v0.common.HotelAdvanceBookingWindowInfo"
17
20
  optional :hotel_length_of_stay, :message, 7, "google.ads.googleads.v0.common.HotelLengthOfStayInfo"
18
21
  optional :hotel_check_in_day, :message, 8, "google.ads.googleads.v0.common.HotelCheckInDayInfo"
22
+ optional :device, :message, 11, "google.ads.googleads.v0.common.DeviceInfo"
19
23
  end
20
24
  end
21
25
  end
@@ -0,0 +1,42 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/resources/ad.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/ads/googleads/v0/common/ad_type_infos_pb'
7
+ require 'google/ads/googleads/v0/common/custom_parameter_pb'
8
+ require 'google/ads/googleads/v0/enums/ad_type_pb'
9
+ require 'google/protobuf/wrappers_pb'
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_message "google.ads.googleads.v0.resources.Ad" do
12
+ optional :id, :message, 1, "google.protobuf.Int64Value"
13
+ repeated :final_urls, :message, 2, "google.protobuf.StringValue"
14
+ repeated :final_mobile_urls, :message, 16, "google.protobuf.StringValue"
15
+ optional :tracking_url_template, :message, 12, "google.protobuf.StringValue"
16
+ repeated :url_custom_parameters, :message, 10, "google.ads.googleads.v0.common.CustomParameter"
17
+ optional :display_url, :message, 4, "google.protobuf.StringValue"
18
+ optional :type, :enum, 5, "google.ads.googleads.v0.enums.AdTypeEnum.AdType"
19
+ oneof :ad_data do
20
+ optional :text_ad, :message, 6, "google.ads.googleads.v0.common.TextAdInfo"
21
+ optional :expanded_text_ad, :message, 7, "google.ads.googleads.v0.common.ExpandedTextAdInfo"
22
+ optional :dynamic_search_ad, :message, 8, "google.ads.googleads.v0.common.DynamicSearchAdInfo"
23
+ optional :responsive_display_ad, :message, 9, "google.ads.googleads.v0.common.ResponsiveDisplayAdInfo"
24
+ optional :call_only_ad, :message, 13, "google.ads.googleads.v0.common.CallOnlyAdInfo"
25
+ optional :expanded_dynamic_search_ad, :message, 14, "google.ads.googleads.v0.common.ExpandedDynamicSearchAdInfo"
26
+ optional :hotel_ad, :message, 15, "google.ads.googleads.v0.common.HotelAdInfo"
27
+ optional :shopping_smart_ad, :message, 17, "google.ads.googleads.v0.common.ShoppingSmartAdInfo"
28
+ end
29
+ end
30
+ end
31
+
32
+ module Google
33
+ module Ads
34
+ module Googleads
35
+ module V0
36
+ module Resources
37
+ Ad = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Ad").msgclass
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,30 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/resources/campaign_bid_modifier.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/ads/googleads/v0/common/criteria_pb'
7
+ require 'google/protobuf/wrappers_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_message "google.ads.googleads.v0.resources.CampaignBidModifier" do
10
+ optional :resource_name, :string, 1
11
+ optional :campaign, :message, 2, "google.protobuf.StringValue"
12
+ optional :criterion_id, :message, 3, "google.protobuf.Int64Value"
13
+ optional :bid_modifier, :message, 4, "google.protobuf.DoubleValue"
14
+ oneof :criterion do
15
+ optional :interaction_type, :message, 5, "google.ads.googleads.v0.common.InteractionTypeInfo"
16
+ end
17
+ end
18
+ end
19
+
20
+ module Google
21
+ module Ads
22
+ module Googleads
23
+ module V0
24
+ module Resources
25
+ CampaignBidModifier = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.CampaignBidModifier").msgclass
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -17,7 +17,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
17
17
  oneof :criterion do
18
18
  optional :keyword, :message, 8, "google.ads.googleads.v0.common.KeywordInfo"
19
19
  optional :location, :message, 12, "google.ads.googleads.v0.common.LocationInfo"
20
- optional :platform, :message, 13, "google.ads.googleads.v0.common.PlatformInfo"
20
+ optional :device, :message, 13, "google.ads.googleads.v0.common.DeviceInfo"
21
+ optional :ad_schedule, :message, 15, "google.ads.googleads.v0.common.AdScheduleInfo"
21
22
  end
22
23
  end
23
24
  end
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/resources/campaign_group.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/ads/googleads/v0/enums/campaign_group_status_pb'
7
+ require 'google/protobuf/wrappers_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_message "google.ads.googleads.v0.resources.CampaignGroup" do
10
+ optional :resource_name, :string, 1
11
+ optional :id, :message, 3, "google.protobuf.Int64Value"
12
+ optional :name, :message, 4, "google.protobuf.StringValue"
13
+ optional :status, :enum, 5, "google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus"
14
+ end
15
+ end
16
+
17
+ module Google
18
+ module Ads
19
+ module Googleads
20
+ module V0
21
+ module Resources
22
+ CampaignGroup = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.CampaignGroup").msgclass
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -27,9 +27,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
27
27
  optional :network_settings, :message, 14, "google.ads.googleads.v0.resources.Campaign.NetworkSettings"
28
28
  optional :hotel_setting, :message, 32, "google.ads.googleads.v0.resources.Campaign.HotelSettingInfo"
29
29
  optional :dynamic_search_ads_setting, :message, 33, "google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting"
30
+ optional :shopping_setting, :message, 36, "google.ads.googleads.v0.resources.Campaign.ShoppingSetting"
30
31
  optional :campaign_budget, :message, 6, "google.protobuf.StringValue"
31
32
  optional :bidding_strategy_type, :enum, 22, "google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType"
32
33
  optional :start_date, :message, 19, "google.protobuf.StringValue"
34
+ optional :campaign_group, :message, 35, "google.protobuf.StringValue"
33
35
  optional :end_date, :message, 20, "google.protobuf.StringValue"
34
36
  oneof :campaign_bidding_strategy do
35
37
  optional :bidding_strategy, :message, 23, "google.protobuf.StringValue"
@@ -58,6 +60,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
58
60
  optional :use_supplied_urls_only, :message, 3, "google.protobuf.BoolValue"
59
61
  repeated :feed_ids, :message, 4, "google.protobuf.Int64Value"
60
62
  end
63
+ add_message "google.ads.googleads.v0.resources.Campaign.ShoppingSetting" do
64
+ optional :merchant_id, :message, 1, "google.protobuf.Int64Value"
65
+ optional :sales_country, :message, 2, "google.protobuf.StringValue"
66
+ optional :campaign_priority, :message, 3, "google.protobuf.Int32Value"
67
+ optional :enable_local, :message, 4, "google.protobuf.BoolValue"
68
+ end
61
69
  end
62
70
 
63
71
  module Google
@@ -69,6 +77,7 @@ module Google
69
77
  Campaign::NetworkSettings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Campaign.NetworkSettings").msgclass
70
78
  Campaign::HotelSettingInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Campaign.HotelSettingInfo").msgclass
71
79
  Campaign::DynamicSearchAdsSetting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting").msgclass
80
+ Campaign::ShoppingSetting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Campaign.ShoppingSetting").msgclass
72
81
  end
73
82
  end
74
83
  end
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/resources/campaign_shared_set.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/ads/googleads/v0/enums/campaign_shared_set_status_pb'
7
+ require 'google/protobuf/wrappers_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_message "google.ads.googleads.v0.resources.CampaignSharedSet" do
10
+ optional :resource_name, :string, 1
11
+ optional :campaign, :message, 3, "google.protobuf.StringValue"
12
+ optional :shared_set, :message, 4, "google.protobuf.StringValue"
13
+ optional :status, :enum, 2, "google.ads.googleads.v0.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatus"
14
+ end
15
+ end
16
+
17
+ module Google
18
+ module Ads
19
+ module Googleads
20
+ module V0
21
+ module Resources
22
+ CampaignSharedSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.CampaignSharedSet").msgclass
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -3,10 +3,10 @@
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/common/criteria_pb'
8
7
  require 'google/ads/googleads/v0/enums/recommendation_type_pb'
9
8
  require 'google/ads/googleads/v0/enums/target_cpa_opt_in_recommendation_goal_pb'
9
+ require 'google/ads/googleads/v0/resources/ad_pb'
10
10
  require 'google/protobuf/wrappers_pb'
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_message "google.ads.googleads.v0.resources.Recommendation" do
@@ -16,11 +16,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  optional :campaign_budget, :message, 5, "google.protobuf.StringValue"
17
17
  optional :campaign, :message, 6, "google.protobuf.StringValue"
18
18
  optional :ad_group, :message, 7, "google.protobuf.StringValue"
19
+ optional :dismissed, :message, 13, "google.protobuf.BoolValue"
19
20
  oneof :recommendation do
20
21
  optional :campaign_budget_recommendation, :message, 4, "google.ads.googleads.v0.resources.Recommendation.CampaignBudgetRecommendation"
21
22
  optional :keyword_recommendation, :message, 8, "google.ads.googleads.v0.resources.Recommendation.KeywordRecommendation"
22
23
  optional :text_ad_recommendation, :message, 9, "google.ads.googleads.v0.resources.Recommendation.TextAdRecommendation"
23
24
  optional :target_cpa_opt_in_recommendation, :message, 10, "google.ads.googleads.v0.resources.Recommendation.TargetCpaOptInRecommendation"
25
+ optional :maximize_conversions_opt_in_recommendation, :message, 11, "google.ads.googleads.v0.resources.Recommendation.MaximizeConversionsOptInRecommendation"
26
+ optional :enhanced_cpc_opt_in_recommendation, :message, 12, "google.ads.googleads.v0.resources.Recommendation.EnhancedCpcOptInRecommendation"
27
+ optional :search_partners_opt_in_recommendation, :message, 14, "google.ads.googleads.v0.resources.Recommendation.SearchPartnersOptInRecommendation"
28
+ optional :maximize_clicks_opt_in_recommendation, :message, 15, "google.ads.googleads.v0.resources.Recommendation.MaximizeClicksOptInRecommendation"
29
+ optional :optimize_ad_rotation_recommendation, :message, 16, "google.ads.googleads.v0.resources.Recommendation.OptimizeAdRotationRecommendation"
24
30
  end
25
31
  end
26
32
  add_message "google.ads.googleads.v0.resources.Recommendation.RecommendationImpact" do
@@ -48,7 +54,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
48
54
  optional :recommended_cpc_bid_micros, :message, 2, "google.protobuf.Int64Value"
49
55
  end
50
56
  add_message "google.ads.googleads.v0.resources.Recommendation.TextAdRecommendation" do
51
- optional :ad, :message, 1, "google.ads.googleads.v0.common.Ad"
57
+ optional :ad, :message, 1, "google.ads.googleads.v0.resources.Ad"
52
58
  optional :creation_date, :message, 2, "google.protobuf.StringValue"
53
59
  optional :auto_apply_date, :message, 3, "google.protobuf.StringValue"
54
60
  end
@@ -62,6 +68,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
62
68
  optional :required_campaign_budget_amount_micros, :message, 3, "google.protobuf.Int64Value"
63
69
  optional :impact, :message, 4, "google.ads.googleads.v0.resources.Recommendation.RecommendationImpact"
64
70
  end
71
+ add_message "google.ads.googleads.v0.resources.Recommendation.MaximizeConversionsOptInRecommendation" do
72
+ optional :recommended_budget_amount_micros, :message, 1, "google.protobuf.Int64Value"
73
+ end
74
+ add_message "google.ads.googleads.v0.resources.Recommendation.EnhancedCpcOptInRecommendation" do
75
+ end
76
+ add_message "google.ads.googleads.v0.resources.Recommendation.SearchPartnersOptInRecommendation" do
77
+ end
78
+ add_message "google.ads.googleads.v0.resources.Recommendation.MaximizeClicksOptInRecommendation" do
79
+ optional :recommended_budget_amount_micros, :message, 1, "google.protobuf.Int64Value"
80
+ end
81
+ add_message "google.ads.googleads.v0.resources.Recommendation.OptimizeAdRotationRecommendation" do
82
+ end
65
83
  end
66
84
 
67
85
  module Google
@@ -78,6 +96,11 @@ module Google
78
96
  Recommendation::TextAdRecommendation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.TextAdRecommendation").msgclass
79
97
  Recommendation::TargetCpaOptInRecommendation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.TargetCpaOptInRecommendation").msgclass
80
98
  Recommendation::TargetCpaOptInRecommendation::TargetCpaOptInRecommendationOption = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption").msgclass
99
+ Recommendation::MaximizeConversionsOptInRecommendation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.MaximizeConversionsOptInRecommendation").msgclass
100
+ Recommendation::EnhancedCpcOptInRecommendation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.EnhancedCpcOptInRecommendation").msgclass
101
+ Recommendation::SearchPartnersOptInRecommendation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.SearchPartnersOptInRecommendation").msgclass
102
+ Recommendation::MaximizeClicksOptInRecommendation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.MaximizeClicksOptInRecommendation").msgclass
103
+ Recommendation::OptimizeAdRotationRecommendation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.Recommendation.OptimizeAdRotationRecommendation").msgclass
81
104
  end
82
105
  end
83
106
  end
@@ -0,0 +1,31 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/resources/shared_criterion.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/ads/googleads/v0/common/criteria_pb'
7
+ require 'google/ads/googleads/v0/enums/criterion_type_pb'
8
+ require 'google/protobuf/wrappers_pb'
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_message "google.ads.googleads.v0.resources.SharedCriterion" do
11
+ optional :resource_name, :string, 1
12
+ optional :shared_set, :message, 2, "google.protobuf.StringValue"
13
+ optional :criterion_id, :message, 26, "google.protobuf.Int64Value"
14
+ optional :type, :enum, 4, "google.ads.googleads.v0.enums.CriterionTypeEnum.CriterionType"
15
+ oneof :criterion do
16
+ optional :keyword, :message, 3, "google.ads.googleads.v0.common.KeywordInfo"
17
+ end
18
+ end
19
+ end
20
+
21
+ module Google
22
+ module Ads
23
+ module Googleads
24
+ module V0
25
+ module Resources
26
+ SharedCriterion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.SharedCriterion").msgclass
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,31 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/resources/shared_set.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/ads/googleads/v0/enums/shared_set_status_pb'
7
+ require 'google/ads/googleads/v0/enums/shared_set_type_pb'
8
+ require 'google/protobuf/wrappers_pb'
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_message "google.ads.googleads.v0.resources.SharedSet" do
11
+ optional :resource_name, :string, 1
12
+ optional :id, :message, 2, "google.protobuf.Int64Value"
13
+ optional :type, :enum, 3, "google.ads.googleads.v0.enums.SharedSetTypeEnum.SharedSetType"
14
+ optional :name, :message, 4, "google.protobuf.StringValue"
15
+ optional :status, :enum, 5, "google.ads.googleads.v0.enums.SharedSetStatusEnum.SharedSetStatus"
16
+ optional :member_count, :message, 6, "google.protobuf.Int64Value"
17
+ optional :reference_count, :message, 7, "google.protobuf.Int64Value"
18
+ end
19
+ end
20
+
21
+ module Google
22
+ module Ads
23
+ module Googleads
24
+ module V0
25
+ module Resources
26
+ SharedSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.resources.SharedSet").msgclass
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,1163 @@
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
+ require "google/ads/googleads/v0/services/ad_group_ad_service_client"
16
+ require "google/ads/googleads/v0/services/ad_group_bid_modifier_service_client"
17
+ require "google/ads/googleads/v0/services/ad_group_criterion_service_client"
18
+ require "google/ads/googleads/v0/services/ad_group_service_client"
19
+ require "google/ads/googleads/v0/services/bidding_strategy_service_client"
20
+ require "google/ads/googleads/v0/services/campaign_bid_modifier_service_client"
21
+ require "google/ads/googleads/v0/services/campaign_budget_service_client"
22
+ require "google/ads/googleads/v0/services/campaign_criterion_service_client"
23
+ require "google/ads/googleads/v0/services/campaign_group_service_client"
24
+ require "google/ads/googleads/v0/services/campaign_service_client"
25
+ require "google/ads/googleads/v0/services/campaign_shared_set_service_client"
26
+ require "google/ads/googleads/v0/services/customer_service_client"
27
+ require "google/ads/googleads/v0/services/geo_target_constant_service_client"
28
+ require "google/ads/googleads/v0/services/google_ads_field_service_client"
29
+ require "google/ads/googleads/v0/services/google_ads_service_client"
30
+ require "google/ads/googleads/v0/services/keyword_view_service_client"
31
+ require "google/ads/googleads/v0/services/recommendation_service_client"
32
+ require "google/ads/googleads/v0/services/shared_criterion_service_client"
33
+ require "google/ads/googleads/v0/services/shared_set_service_client"
34
+ require "google/ads/googleads/v0/errors/errors_pb"
35
+
36
+ module Google
37
+ module Ads
38
+ module Googleads
39
+ # rubocop:disable LineLength
40
+
41
+ ##
42
+ # # Ruby Client for Google Ads API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
43
+ #
44
+ # [Google Ads API][Product Documentation]:
45
+ # Manage your AdWords accounts, campaigns, and reports with this REST-based
46
+ # API.
47
+ # - [Product Documentation][]
48
+ #
49
+ # ## Quick Start
50
+ # In order to use this library, you first need to go through the following
51
+ # steps:
52
+ #
53
+ # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
54
+ # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
55
+ # 3. [Enable the Google Ads API.](https://console.cloud.google.com/apis/library/googleads.googleapis.com)
56
+ # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
57
+ #
58
+ # ### Next Steps
59
+ # - Read the [Google Ads API Product documentation][Product Documentation]
60
+ # to learn more about the product and see How-to Guides.
61
+ # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
62
+ # to see the full list of Cloud APIs that we cover.
63
+ #
64
+ # [Product Documentation]: https://cloud.google.com/googleads
65
+ #
66
+ # ## Enabling Logging
67
+ #
68
+ # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
69
+ # 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,
70
+ # or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
71
+ # 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)
72
+ # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
73
+ #
74
+ # Configuring a Ruby stdlib logger:
75
+ #
76
+ # ```ruby
77
+ # require "logger"
78
+ #
79
+ # module MyLogger
80
+ # LOGGER = Logger.new $stderr, level: Logger::WARN
81
+ # def logger
82
+ # LOGGER
83
+ # end
84
+ # end
85
+ #
86
+ # # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
87
+ # module GRPC
88
+ # extend MyLogger
89
+ # end
90
+ # ```
91
+ #
92
+ module V0
93
+ module Services
94
+ # rubocop:enable LineLength
95
+
96
+ module AdGroupAd
97
+ ##
98
+ # Service to manage ads in an ad group.
99
+ #
100
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
101
+ # Provides the means for authenticating requests made by the client. This parameter can
102
+ # be many types.
103
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
104
+ # authenticating requests made by this client.
105
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
106
+ # credentials for this client.
107
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
108
+ # credentials for this client.
109
+ # A `GRPC::Core::Channel` will be used to make calls through.
110
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
111
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
112
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
113
+ # metadata for requests, generally, to give OAuth credentials.
114
+ # @param scopes [Array<String>]
115
+ # The OAuth scopes for this service. This parameter is ignored if
116
+ # an updater_proc is supplied.
117
+ # @param client_config [Hash]
118
+ # A Hash for call options for each method. See
119
+ # Google::Gax#construct_settings for the structure of
120
+ # this data. Falls back to the default config if not specified
121
+ # or the specified config is missing data points.
122
+ # @param timeout [Numeric]
123
+ # The default timeout, in seconds, for calls made through this client.
124
+ # @param metadata [Hash]
125
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
126
+ # @param exception_transformer [Proc]
127
+ # An optional proc that intercepts any exceptions raised during an API call to inject
128
+ # custom error handling.
129
+ def self.new \
130
+ credentials: nil,
131
+ scopes: nil,
132
+ client_config: nil,
133
+ timeout: nil,
134
+ metadata: nil,
135
+ exception_transformer: nil,
136
+ lib_name: nil,
137
+ lib_version: nil
138
+ kwargs = {
139
+ credentials: credentials,
140
+ scopes: scopes,
141
+ client_config: client_config,
142
+ timeout: timeout,
143
+ metadata: metadata,
144
+ exception_transformer: exception_transformer,
145
+ lib_name: lib_name,
146
+ lib_version: lib_version
147
+ }.select { |_, v| v != nil }
148
+ Google::Ads::Googleads::V0::Services::AdGroupAdServiceClient.new(**kwargs)
149
+ end
150
+ end
151
+
152
+ module AdGroupBidModifier
153
+ ##
154
+ # Service to manage ad group bid modifiers.
155
+ #
156
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
157
+ # Provides the means for authenticating requests made by the client. This parameter can
158
+ # be many types.
159
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
160
+ # authenticating requests made by this client.
161
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
162
+ # credentials for this client.
163
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
164
+ # credentials for this client.
165
+ # A `GRPC::Core::Channel` will be used to make calls through.
166
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
167
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
168
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
169
+ # metadata for requests, generally, to give OAuth credentials.
170
+ # @param scopes [Array<String>]
171
+ # The OAuth scopes for this service. This parameter is ignored if
172
+ # an updater_proc is supplied.
173
+ # @param client_config [Hash]
174
+ # A Hash for call options for each method. See
175
+ # Google::Gax#construct_settings for the structure of
176
+ # this data. Falls back to the default config if not specified
177
+ # or the specified config is missing data points.
178
+ # @param timeout [Numeric]
179
+ # The default timeout, in seconds, for calls made through this client.
180
+ # @param metadata [Hash]
181
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
182
+ # @param exception_transformer [Proc]
183
+ # An optional proc that intercepts any exceptions raised during an API call to inject
184
+ # custom error handling.
185
+ def self.new \
186
+ credentials: nil,
187
+ scopes: nil,
188
+ client_config: nil,
189
+ timeout: nil,
190
+ metadata: nil,
191
+ exception_transformer: nil,
192
+ lib_name: nil,
193
+ lib_version: nil
194
+ kwargs = {
195
+ credentials: credentials,
196
+ scopes: scopes,
197
+ client_config: client_config,
198
+ timeout: timeout,
199
+ metadata: metadata,
200
+ exception_transformer: exception_transformer,
201
+ lib_name: lib_name,
202
+ lib_version: lib_version
203
+ }.select { |_, v| v != nil }
204
+ Google::Ads::Googleads::V0::Services::AdGroupBidModifierServiceClient.new(**kwargs)
205
+ end
206
+ end
207
+
208
+ module AdGroupCriterion
209
+ ##
210
+ # Service to manage ad group criteria.
211
+ #
212
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
213
+ # Provides the means for authenticating requests made by the client. This parameter can
214
+ # be many types.
215
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
216
+ # authenticating requests made by this client.
217
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
218
+ # credentials for this client.
219
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
220
+ # credentials for this client.
221
+ # A `GRPC::Core::Channel` will be used to make calls through.
222
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
223
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
224
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
225
+ # metadata for requests, generally, to give OAuth credentials.
226
+ # @param scopes [Array<String>]
227
+ # The OAuth scopes for this service. This parameter is ignored if
228
+ # an updater_proc is supplied.
229
+ # @param client_config [Hash]
230
+ # A Hash for call options for each method. See
231
+ # Google::Gax#construct_settings for the structure of
232
+ # this data. Falls back to the default config if not specified
233
+ # or the specified config is missing data points.
234
+ # @param timeout [Numeric]
235
+ # The default timeout, in seconds, for calls made through this client.
236
+ # @param metadata [Hash]
237
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
238
+ # @param exception_transformer [Proc]
239
+ # An optional proc that intercepts any exceptions raised during an API call to inject
240
+ # custom error handling.
241
+ def self.new \
242
+ credentials: nil,
243
+ scopes: nil,
244
+ client_config: nil,
245
+ timeout: nil,
246
+ metadata: nil,
247
+ exception_transformer: nil,
248
+ lib_name: nil,
249
+ lib_version: nil
250
+ kwargs = {
251
+ credentials: credentials,
252
+ scopes: scopes,
253
+ client_config: client_config,
254
+ timeout: timeout,
255
+ metadata: metadata,
256
+ exception_transformer: exception_transformer,
257
+ lib_name: lib_name,
258
+ lib_version: lib_version
259
+ }.select { |_, v| v != nil }
260
+ Google::Ads::Googleads::V0::Services::AdGroupCriterionServiceClient.new(**kwargs)
261
+ end
262
+ end
263
+
264
+ module AdGroup
265
+ ##
266
+ # Service to manage ad groups.
267
+ #
268
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
269
+ # Provides the means for authenticating requests made by the client. This parameter can
270
+ # be many types.
271
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
272
+ # authenticating requests made by this client.
273
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
274
+ # credentials for this client.
275
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
276
+ # credentials for this client.
277
+ # A `GRPC::Core::Channel` will be used to make calls through.
278
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
279
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
280
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
281
+ # metadata for requests, generally, to give OAuth credentials.
282
+ # @param scopes [Array<String>]
283
+ # The OAuth scopes for this service. This parameter is ignored if
284
+ # an updater_proc is supplied.
285
+ # @param client_config [Hash]
286
+ # A Hash for call options for each method. See
287
+ # Google::Gax#construct_settings for the structure of
288
+ # this data. Falls back to the default config if not specified
289
+ # or the specified config is missing data points.
290
+ # @param timeout [Numeric]
291
+ # The default timeout, in seconds, for calls made through this client.
292
+ # @param metadata [Hash]
293
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
294
+ # @param exception_transformer [Proc]
295
+ # An optional proc that intercepts any exceptions raised during an API call to inject
296
+ # custom error handling.
297
+ def self.new \
298
+ credentials: nil,
299
+ scopes: nil,
300
+ client_config: nil,
301
+ timeout: nil,
302
+ metadata: nil,
303
+ exception_transformer: nil,
304
+ lib_name: nil,
305
+ lib_version: nil
306
+ kwargs = {
307
+ credentials: credentials,
308
+ scopes: scopes,
309
+ client_config: client_config,
310
+ timeout: timeout,
311
+ metadata: metadata,
312
+ exception_transformer: exception_transformer,
313
+ lib_name: lib_name,
314
+ lib_version: lib_version
315
+ }.select { |_, v| v != nil }
316
+ Google::Ads::Googleads::V0::Services::AdGroupServiceClient.new(**kwargs)
317
+ end
318
+ end
319
+
320
+ module BiddingStrategy
321
+ ##
322
+ # Service to manage bidding strategies.
323
+ #
324
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
325
+ # Provides the means for authenticating requests made by the client. This parameter can
326
+ # be many types.
327
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
328
+ # authenticating requests made by this client.
329
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
330
+ # credentials for this client.
331
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
332
+ # credentials for this client.
333
+ # A `GRPC::Core::Channel` will be used to make calls through.
334
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
335
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
336
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
337
+ # metadata for requests, generally, to give OAuth credentials.
338
+ # @param scopes [Array<String>]
339
+ # The OAuth scopes for this service. This parameter is ignored if
340
+ # an updater_proc is supplied.
341
+ # @param client_config [Hash]
342
+ # A Hash for call options for each method. See
343
+ # Google::Gax#construct_settings for the structure of
344
+ # this data. Falls back to the default config if not specified
345
+ # or the specified config is missing data points.
346
+ # @param timeout [Numeric]
347
+ # The default timeout, in seconds, for calls made through this client.
348
+ # @param metadata [Hash]
349
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
350
+ # @param exception_transformer [Proc]
351
+ # An optional proc that intercepts any exceptions raised during an API call to inject
352
+ # custom error handling.
353
+ def self.new \
354
+ credentials: nil,
355
+ scopes: nil,
356
+ client_config: nil,
357
+ timeout: nil,
358
+ metadata: nil,
359
+ exception_transformer: nil,
360
+ lib_name: nil,
361
+ lib_version: nil
362
+ kwargs = {
363
+ credentials: credentials,
364
+ scopes: scopes,
365
+ client_config: client_config,
366
+ timeout: timeout,
367
+ metadata: metadata,
368
+ exception_transformer: exception_transformer,
369
+ lib_name: lib_name,
370
+ lib_version: lib_version
371
+ }.select { |_, v| v != nil }
372
+ Google::Ads::Googleads::V0::Services::BiddingStrategyServiceClient.new(**kwargs)
373
+ end
374
+ end
375
+
376
+ module CampaignBidModifier
377
+ ##
378
+ # Service to manage campaign bid modifiers.
379
+ #
380
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
381
+ # Provides the means for authenticating requests made by the client. This parameter can
382
+ # be many types.
383
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
384
+ # authenticating requests made by this client.
385
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
386
+ # credentials for this client.
387
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
388
+ # credentials for this client.
389
+ # A `GRPC::Core::Channel` will be used to make calls through.
390
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
391
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
392
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
393
+ # metadata for requests, generally, to give OAuth credentials.
394
+ # @param scopes [Array<String>]
395
+ # The OAuth scopes for this service. This parameter is ignored if
396
+ # an updater_proc is supplied.
397
+ # @param client_config [Hash]
398
+ # A Hash for call options for each method. See
399
+ # Google::Gax#construct_settings for the structure of
400
+ # this data. Falls back to the default config if not specified
401
+ # or the specified config is missing data points.
402
+ # @param timeout [Numeric]
403
+ # The default timeout, in seconds, for calls made through this client.
404
+ # @param metadata [Hash]
405
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
406
+ # @param exception_transformer [Proc]
407
+ # An optional proc that intercepts any exceptions raised during an API call to inject
408
+ # custom error handling.
409
+ def self.new \
410
+ credentials: nil,
411
+ scopes: nil,
412
+ client_config: nil,
413
+ timeout: nil,
414
+ metadata: nil,
415
+ exception_transformer: nil,
416
+ lib_name: nil,
417
+ lib_version: nil
418
+ kwargs = {
419
+ credentials: credentials,
420
+ scopes: scopes,
421
+ client_config: client_config,
422
+ timeout: timeout,
423
+ metadata: metadata,
424
+ exception_transformer: exception_transformer,
425
+ lib_name: lib_name,
426
+ lib_version: lib_version
427
+ }.select { |_, v| v != nil }
428
+ Google::Ads::Googleads::V0::Services::CampaignBidModifierServiceClient.new(**kwargs)
429
+ end
430
+ end
431
+
432
+ module CampaignBudget
433
+ ##
434
+ # Service to manage campaign budgets.
435
+ #
436
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
437
+ # Provides the means for authenticating requests made by the client. This parameter can
438
+ # be many types.
439
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
440
+ # authenticating requests made by this client.
441
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
442
+ # credentials for this client.
443
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
444
+ # credentials for this client.
445
+ # A `GRPC::Core::Channel` will be used to make calls through.
446
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
447
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
448
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
449
+ # metadata for requests, generally, to give OAuth credentials.
450
+ # @param scopes [Array<String>]
451
+ # The OAuth scopes for this service. This parameter is ignored if
452
+ # an updater_proc is supplied.
453
+ # @param client_config [Hash]
454
+ # A Hash for call options for each method. See
455
+ # Google::Gax#construct_settings for the structure of
456
+ # this data. Falls back to the default config if not specified
457
+ # or the specified config is missing data points.
458
+ # @param timeout [Numeric]
459
+ # The default timeout, in seconds, for calls made through this client.
460
+ # @param metadata [Hash]
461
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
462
+ # @param exception_transformer [Proc]
463
+ # An optional proc that intercepts any exceptions raised during an API call to inject
464
+ # custom error handling.
465
+ def self.new \
466
+ credentials: nil,
467
+ scopes: nil,
468
+ client_config: nil,
469
+ timeout: nil,
470
+ metadata: nil,
471
+ exception_transformer: nil,
472
+ lib_name: nil,
473
+ lib_version: nil
474
+ kwargs = {
475
+ credentials: credentials,
476
+ scopes: scopes,
477
+ client_config: client_config,
478
+ timeout: timeout,
479
+ metadata: metadata,
480
+ exception_transformer: exception_transformer,
481
+ lib_name: lib_name,
482
+ lib_version: lib_version
483
+ }.select { |_, v| v != nil }
484
+ Google::Ads::Googleads::V0::Services::CampaignBudgetServiceClient.new(**kwargs)
485
+ end
486
+ end
487
+
488
+ module CampaignCriterion
489
+ ##
490
+ # Service to manage campaign criteria.
491
+ #
492
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
493
+ # Provides the means for authenticating requests made by the client. This parameter can
494
+ # be many types.
495
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
496
+ # authenticating requests made by this client.
497
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
498
+ # credentials for this client.
499
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
500
+ # credentials for this client.
501
+ # A `GRPC::Core::Channel` will be used to make calls through.
502
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
503
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
504
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
505
+ # metadata for requests, generally, to give OAuth credentials.
506
+ # @param scopes [Array<String>]
507
+ # The OAuth scopes for this service. This parameter is ignored if
508
+ # an updater_proc is supplied.
509
+ # @param client_config [Hash]
510
+ # A Hash for call options for each method. See
511
+ # Google::Gax#construct_settings for the structure of
512
+ # this data. Falls back to the default config if not specified
513
+ # or the specified config is missing data points.
514
+ # @param timeout [Numeric]
515
+ # The default timeout, in seconds, for calls made through this client.
516
+ # @param metadata [Hash]
517
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
518
+ # @param exception_transformer [Proc]
519
+ # An optional proc that intercepts any exceptions raised during an API call to inject
520
+ # custom error handling.
521
+ def self.new \
522
+ credentials: nil,
523
+ scopes: nil,
524
+ client_config: nil,
525
+ timeout: nil,
526
+ metadata: nil,
527
+ exception_transformer: nil,
528
+ lib_name: nil,
529
+ lib_version: nil
530
+ kwargs = {
531
+ credentials: credentials,
532
+ scopes: scopes,
533
+ client_config: client_config,
534
+ timeout: timeout,
535
+ metadata: metadata,
536
+ exception_transformer: exception_transformer,
537
+ lib_name: lib_name,
538
+ lib_version: lib_version
539
+ }.select { |_, v| v != nil }
540
+ Google::Ads::Googleads::V0::Services::CampaignCriterionServiceClient.new(**kwargs)
541
+ end
542
+ end
543
+
544
+ module CampaignGroup
545
+ ##
546
+ # Service to manage campaign groups.
547
+ #
548
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
549
+ # Provides the means for authenticating requests made by the client. This parameter can
550
+ # be many types.
551
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
552
+ # authenticating requests made by this client.
553
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
554
+ # credentials for this client.
555
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
556
+ # credentials for this client.
557
+ # A `GRPC::Core::Channel` will be used to make calls through.
558
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
559
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
560
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
561
+ # metadata for requests, generally, to give OAuth credentials.
562
+ # @param scopes [Array<String>]
563
+ # The OAuth scopes for this service. This parameter is ignored if
564
+ # an updater_proc is supplied.
565
+ # @param client_config [Hash]
566
+ # A Hash for call options for each method. See
567
+ # Google::Gax#construct_settings for the structure of
568
+ # this data. Falls back to the default config if not specified
569
+ # or the specified config is missing data points.
570
+ # @param timeout [Numeric]
571
+ # The default timeout, in seconds, for calls made through this client.
572
+ # @param metadata [Hash]
573
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
574
+ # @param exception_transformer [Proc]
575
+ # An optional proc that intercepts any exceptions raised during an API call to inject
576
+ # custom error handling.
577
+ def self.new \
578
+ credentials: nil,
579
+ scopes: nil,
580
+ client_config: nil,
581
+ timeout: nil,
582
+ metadata: nil,
583
+ exception_transformer: nil,
584
+ lib_name: nil,
585
+ lib_version: nil
586
+ kwargs = {
587
+ credentials: credentials,
588
+ scopes: scopes,
589
+ client_config: client_config,
590
+ timeout: timeout,
591
+ metadata: metadata,
592
+ exception_transformer: exception_transformer,
593
+ lib_name: lib_name,
594
+ lib_version: lib_version
595
+ }.select { |_, v| v != nil }
596
+ Google::Ads::Googleads::V0::Services::CampaignGroupServiceClient.new(**kwargs)
597
+ end
598
+ end
599
+
600
+ module Campaign
601
+ ##
602
+ # Service to manage campaigns.
603
+ #
604
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
605
+ # Provides the means for authenticating requests made by the client. This parameter can
606
+ # be many types.
607
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
608
+ # authenticating requests made by this client.
609
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
610
+ # credentials for this client.
611
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
612
+ # credentials for this client.
613
+ # A `GRPC::Core::Channel` will be used to make calls through.
614
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
615
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
616
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
617
+ # metadata for requests, generally, to give OAuth credentials.
618
+ # @param scopes [Array<String>]
619
+ # The OAuth scopes for this service. This parameter is ignored if
620
+ # an updater_proc is supplied.
621
+ # @param client_config [Hash]
622
+ # A Hash for call options for each method. See
623
+ # Google::Gax#construct_settings for the structure of
624
+ # this data. Falls back to the default config if not specified
625
+ # or the specified config is missing data points.
626
+ # @param timeout [Numeric]
627
+ # The default timeout, in seconds, for calls made through this client.
628
+ # @param metadata [Hash]
629
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
630
+ # @param exception_transformer [Proc]
631
+ # An optional proc that intercepts any exceptions raised during an API call to inject
632
+ # custom error handling.
633
+ def self.new \
634
+ credentials: nil,
635
+ scopes: nil,
636
+ client_config: nil,
637
+ timeout: nil,
638
+ metadata: nil,
639
+ exception_transformer: nil,
640
+ lib_name: nil,
641
+ lib_version: nil
642
+ kwargs = {
643
+ credentials: credentials,
644
+ scopes: scopes,
645
+ client_config: client_config,
646
+ timeout: timeout,
647
+ metadata: metadata,
648
+ exception_transformer: exception_transformer,
649
+ lib_name: lib_name,
650
+ lib_version: lib_version
651
+ }.select { |_, v| v != nil }
652
+ Google::Ads::Googleads::V0::Services::CampaignServiceClient.new(**kwargs)
653
+ end
654
+ end
655
+
656
+ module CampaignSharedSet
657
+ ##
658
+ # Service to manage campaign shared sets.
659
+ #
660
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
661
+ # Provides the means for authenticating requests made by the client. This parameter can
662
+ # be many types.
663
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
664
+ # authenticating requests made by this client.
665
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
666
+ # credentials for this client.
667
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
668
+ # credentials for this client.
669
+ # A `GRPC::Core::Channel` will be used to make calls through.
670
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
671
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
672
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
673
+ # metadata for requests, generally, to give OAuth credentials.
674
+ # @param scopes [Array<String>]
675
+ # The OAuth scopes for this service. This parameter is ignored if
676
+ # an updater_proc is supplied.
677
+ # @param client_config [Hash]
678
+ # A Hash for call options for each method. See
679
+ # Google::Gax#construct_settings for the structure of
680
+ # this data. Falls back to the default config if not specified
681
+ # or the specified config is missing data points.
682
+ # @param timeout [Numeric]
683
+ # The default timeout, in seconds, for calls made through this client.
684
+ # @param metadata [Hash]
685
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
686
+ # @param exception_transformer [Proc]
687
+ # An optional proc that intercepts any exceptions raised during an API call to inject
688
+ # custom error handling.
689
+ def self.new \
690
+ credentials: nil,
691
+ scopes: nil,
692
+ client_config: nil,
693
+ timeout: nil,
694
+ metadata: nil,
695
+ exception_transformer: nil,
696
+ lib_name: nil,
697
+ lib_version: nil
698
+ kwargs = {
699
+ credentials: credentials,
700
+ scopes: scopes,
701
+ client_config: client_config,
702
+ timeout: timeout,
703
+ metadata: metadata,
704
+ exception_transformer: exception_transformer,
705
+ lib_name: lib_name,
706
+ lib_version: lib_version
707
+ }.select { |_, v| v != nil }
708
+ Google::Ads::Googleads::V0::Services::CampaignSharedSetServiceClient.new(**kwargs)
709
+ end
710
+ end
711
+
712
+ module Customer
713
+ ##
714
+ # Service to manage customers.
715
+ #
716
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
717
+ # Provides the means for authenticating requests made by the client. This parameter can
718
+ # be many types.
719
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
720
+ # authenticating requests made by this client.
721
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
722
+ # credentials for this client.
723
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
724
+ # credentials for this client.
725
+ # A `GRPC::Core::Channel` will be used to make calls through.
726
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
727
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
728
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
729
+ # metadata for requests, generally, to give OAuth credentials.
730
+ # @param scopes [Array<String>]
731
+ # The OAuth scopes for this service. This parameter is ignored if
732
+ # an updater_proc is supplied.
733
+ # @param client_config [Hash]
734
+ # A Hash for call options for each method. See
735
+ # Google::Gax#construct_settings for the structure of
736
+ # this data. Falls back to the default config if not specified
737
+ # or the specified config is missing data points.
738
+ # @param timeout [Numeric]
739
+ # The default timeout, in seconds, for calls made through this client.
740
+ # @param metadata [Hash]
741
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
742
+ # @param exception_transformer [Proc]
743
+ # An optional proc that intercepts any exceptions raised during an API call to inject
744
+ # custom error handling.
745
+ def self.new \
746
+ credentials: nil,
747
+ scopes: nil,
748
+ client_config: nil,
749
+ timeout: nil,
750
+ metadata: nil,
751
+ exception_transformer: nil,
752
+ lib_name: nil,
753
+ lib_version: nil
754
+ kwargs = {
755
+ credentials: credentials,
756
+ scopes: scopes,
757
+ client_config: client_config,
758
+ timeout: timeout,
759
+ metadata: metadata,
760
+ exception_transformer: exception_transformer,
761
+ lib_name: lib_name,
762
+ lib_version: lib_version
763
+ }.select { |_, v| v != nil }
764
+ Google::Ads::Googleads::V0::Services::CustomerServiceClient.new(**kwargs)
765
+ end
766
+ end
767
+
768
+ module GeoTargetConstant
769
+ ##
770
+ # Service to fetch geo target constants.
771
+ #
772
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
773
+ # Provides the means for authenticating requests made by the client. This parameter can
774
+ # be many types.
775
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
776
+ # authenticating requests made by this client.
777
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
778
+ # credentials for this client.
779
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
780
+ # credentials for this client.
781
+ # A `GRPC::Core::Channel` will be used to make calls through.
782
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
783
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
784
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
785
+ # metadata for requests, generally, to give OAuth credentials.
786
+ # @param scopes [Array<String>]
787
+ # The OAuth scopes for this service. This parameter is ignored if
788
+ # an updater_proc is supplied.
789
+ # @param client_config [Hash]
790
+ # A Hash for call options for each method. See
791
+ # Google::Gax#construct_settings for the structure of
792
+ # this data. Falls back to the default config if not specified
793
+ # or the specified config is missing data points.
794
+ # @param timeout [Numeric]
795
+ # The default timeout, in seconds, for calls made through this client.
796
+ # @param metadata [Hash]
797
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
798
+ # @param exception_transformer [Proc]
799
+ # An optional proc that intercepts any exceptions raised during an API call to inject
800
+ # custom error handling.
801
+ def self.new \
802
+ credentials: nil,
803
+ scopes: nil,
804
+ client_config: nil,
805
+ timeout: nil,
806
+ metadata: nil,
807
+ exception_transformer: nil,
808
+ lib_name: nil,
809
+ lib_version: nil
810
+ kwargs = {
811
+ credentials: credentials,
812
+ scopes: scopes,
813
+ client_config: client_config,
814
+ timeout: timeout,
815
+ metadata: metadata,
816
+ exception_transformer: exception_transformer,
817
+ lib_name: lib_name,
818
+ lib_version: lib_version
819
+ }.select { |_, v| v != nil }
820
+ Google::Ads::Googleads::V0::Services::GeoTargetConstantServiceClient.new(**kwargs)
821
+ end
822
+ end
823
+
824
+ module GoogleAdsField
825
+ ##
826
+ # Service to fetch Google Ads API fields.
827
+ #
828
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
829
+ # Provides the means for authenticating requests made by the client. This parameter can
830
+ # be many types.
831
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
832
+ # authenticating requests made by this client.
833
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
834
+ # credentials for this client.
835
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
836
+ # credentials for this client.
837
+ # A `GRPC::Core::Channel` will be used to make calls through.
838
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
839
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
840
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
841
+ # metadata for requests, generally, to give OAuth credentials.
842
+ # @param scopes [Array<String>]
843
+ # The OAuth scopes for this service. This parameter is ignored if
844
+ # an updater_proc is supplied.
845
+ # @param client_config [Hash]
846
+ # A Hash for call options for each method. See
847
+ # Google::Gax#construct_settings for the structure of
848
+ # this data. Falls back to the default config if not specified
849
+ # or the specified config is missing data points.
850
+ # @param timeout [Numeric]
851
+ # The default timeout, in seconds, for calls made through this client.
852
+ # @param metadata [Hash]
853
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
854
+ # @param exception_transformer [Proc]
855
+ # An optional proc that intercepts any exceptions raised during an API call to inject
856
+ # custom error handling.
857
+ def self.new \
858
+ credentials: nil,
859
+ scopes: nil,
860
+ client_config: nil,
861
+ timeout: nil,
862
+ metadata: nil,
863
+ exception_transformer: nil,
864
+ lib_name: nil,
865
+ lib_version: nil
866
+ kwargs = {
867
+ credentials: credentials,
868
+ scopes: scopes,
869
+ client_config: client_config,
870
+ timeout: timeout,
871
+ metadata: metadata,
872
+ exception_transformer: exception_transformer,
873
+ lib_name: lib_name,
874
+ lib_version: lib_version
875
+ }.select { |_, v| v != nil }
876
+ Google::Ads::Googleads::V0::Services::GoogleAdsFieldServiceClient.new(**kwargs)
877
+ end
878
+ end
879
+
880
+ module GoogleAds
881
+ ##
882
+ # Service to fetch data and metrics across resources.
883
+ #
884
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
885
+ # Provides the means for authenticating requests made by the client. This parameter can
886
+ # be many types.
887
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
888
+ # authenticating requests made by this client.
889
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
890
+ # credentials for this client.
891
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
892
+ # credentials for this client.
893
+ # A `GRPC::Core::Channel` will be used to make calls through.
894
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
895
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
896
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
897
+ # metadata for requests, generally, to give OAuth credentials.
898
+ # @param scopes [Array<String>]
899
+ # The OAuth scopes for this service. This parameter is ignored if
900
+ # an updater_proc is supplied.
901
+ # @param client_config [Hash]
902
+ # A Hash for call options for each method. See
903
+ # Google::Gax#construct_settings for the structure of
904
+ # this data. Falls back to the default config if not specified
905
+ # or the specified config is missing data points.
906
+ # @param timeout [Numeric]
907
+ # The default timeout, in seconds, for calls made through this client.
908
+ # @param metadata [Hash]
909
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
910
+ # @param exception_transformer [Proc]
911
+ # An optional proc that intercepts any exceptions raised during an API call to inject
912
+ # custom error handling.
913
+ def self.new \
914
+ credentials: nil,
915
+ scopes: nil,
916
+ client_config: nil,
917
+ timeout: nil,
918
+ metadata: nil,
919
+ exception_transformer: nil,
920
+ lib_name: nil,
921
+ lib_version: nil
922
+ kwargs = {
923
+ credentials: credentials,
924
+ scopes: scopes,
925
+ client_config: client_config,
926
+ timeout: timeout,
927
+ metadata: metadata,
928
+ exception_transformer: exception_transformer,
929
+ lib_name: lib_name,
930
+ lib_version: lib_version
931
+ }.select { |_, v| v != nil }
932
+ Google::Ads::Googleads::V0::Services::GoogleAdsServiceClient.new(**kwargs)
933
+ end
934
+ end
935
+
936
+ module KeywordView
937
+ ##
938
+ # Service to manage keyword views.
939
+ #
940
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
941
+ # Provides the means for authenticating requests made by the client. This parameter can
942
+ # be many types.
943
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
944
+ # authenticating requests made by this client.
945
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
946
+ # credentials for this client.
947
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
948
+ # credentials for this client.
949
+ # A `GRPC::Core::Channel` will be used to make calls through.
950
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
951
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
952
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
953
+ # metadata for requests, generally, to give OAuth credentials.
954
+ # @param scopes [Array<String>]
955
+ # The OAuth scopes for this service. This parameter is ignored if
956
+ # an updater_proc is supplied.
957
+ # @param client_config [Hash]
958
+ # A Hash for call options for each method. See
959
+ # Google::Gax#construct_settings for the structure of
960
+ # this data. Falls back to the default config if not specified
961
+ # or the specified config is missing data points.
962
+ # @param timeout [Numeric]
963
+ # The default timeout, in seconds, for calls made through this client.
964
+ # @param metadata [Hash]
965
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
966
+ # @param exception_transformer [Proc]
967
+ # An optional proc that intercepts any exceptions raised during an API call to inject
968
+ # custom error handling.
969
+ def self.new \
970
+ credentials: nil,
971
+ scopes: nil,
972
+ client_config: nil,
973
+ timeout: nil,
974
+ metadata: nil,
975
+ exception_transformer: nil,
976
+ lib_name: nil,
977
+ lib_version: nil
978
+ kwargs = {
979
+ credentials: credentials,
980
+ scopes: scopes,
981
+ client_config: client_config,
982
+ timeout: timeout,
983
+ metadata: metadata,
984
+ exception_transformer: exception_transformer,
985
+ lib_name: lib_name,
986
+ lib_version: lib_version
987
+ }.select { |_, v| v != nil }
988
+ Google::Ads::Googleads::V0::Services::KeywordViewServiceClient.new(**kwargs)
989
+ end
990
+ end
991
+
992
+ module Recommendation
993
+ ##
994
+ # Service to manage recommendations.
995
+ #
996
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
997
+ # Provides the means for authenticating requests made by the client. This parameter can
998
+ # be many types.
999
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
1000
+ # authenticating requests made by this client.
1001
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
1002
+ # credentials for this client.
1003
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
1004
+ # credentials for this client.
1005
+ # A `GRPC::Core::Channel` will be used to make calls through.
1006
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
1007
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
1008
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
1009
+ # metadata for requests, generally, to give OAuth credentials.
1010
+ # @param scopes [Array<String>]
1011
+ # The OAuth scopes for this service. This parameter is ignored if
1012
+ # an updater_proc is supplied.
1013
+ # @param client_config [Hash]
1014
+ # A Hash for call options for each method. See
1015
+ # Google::Gax#construct_settings for the structure of
1016
+ # this data. Falls back to the default config if not specified
1017
+ # or the specified config is missing data points.
1018
+ # @param timeout [Numeric]
1019
+ # The default timeout, in seconds, for calls made through this client.
1020
+ # @param metadata [Hash]
1021
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
1022
+ # @param exception_transformer [Proc]
1023
+ # An optional proc that intercepts any exceptions raised during an API call to inject
1024
+ # custom error handling.
1025
+ def self.new \
1026
+ credentials: nil,
1027
+ scopes: nil,
1028
+ client_config: nil,
1029
+ timeout: nil,
1030
+ metadata: nil,
1031
+ exception_transformer: nil,
1032
+ lib_name: nil,
1033
+ lib_version: nil
1034
+ kwargs = {
1035
+ credentials: credentials,
1036
+ scopes: scopes,
1037
+ client_config: client_config,
1038
+ timeout: timeout,
1039
+ metadata: metadata,
1040
+ exception_transformer: exception_transformer,
1041
+ lib_name: lib_name,
1042
+ lib_version: lib_version
1043
+ }.select { |_, v| v != nil }
1044
+ Google::Ads::Googleads::V0::Services::RecommendationServiceClient.new(**kwargs)
1045
+ end
1046
+ end
1047
+
1048
+ module SharedCriterion
1049
+ ##
1050
+ # Service to manage shared criteria.
1051
+ #
1052
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
1053
+ # Provides the means for authenticating requests made by the client. This parameter can
1054
+ # be many types.
1055
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
1056
+ # authenticating requests made by this client.
1057
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
1058
+ # credentials for this client.
1059
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
1060
+ # credentials for this client.
1061
+ # A `GRPC::Core::Channel` will be used to make calls through.
1062
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
1063
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
1064
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
1065
+ # metadata for requests, generally, to give OAuth credentials.
1066
+ # @param scopes [Array<String>]
1067
+ # The OAuth scopes for this service. This parameter is ignored if
1068
+ # an updater_proc is supplied.
1069
+ # @param client_config [Hash]
1070
+ # A Hash for call options for each method. See
1071
+ # Google::Gax#construct_settings for the structure of
1072
+ # this data. Falls back to the default config if not specified
1073
+ # or the specified config is missing data points.
1074
+ # @param timeout [Numeric]
1075
+ # The default timeout, in seconds, for calls made through this client.
1076
+ # @param metadata [Hash]
1077
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
1078
+ # @param exception_transformer [Proc]
1079
+ # An optional proc that intercepts any exceptions raised during an API call to inject
1080
+ # custom error handling.
1081
+ def self.new \
1082
+ credentials: nil,
1083
+ scopes: nil,
1084
+ client_config: nil,
1085
+ timeout: nil,
1086
+ metadata: nil,
1087
+ exception_transformer: nil,
1088
+ lib_name: nil,
1089
+ lib_version: nil
1090
+ kwargs = {
1091
+ credentials: credentials,
1092
+ scopes: scopes,
1093
+ client_config: client_config,
1094
+ timeout: timeout,
1095
+ metadata: metadata,
1096
+ exception_transformer: exception_transformer,
1097
+ lib_name: lib_name,
1098
+ lib_version: lib_version
1099
+ }.select { |_, v| v != nil }
1100
+ Google::Ads::Googleads::V0::Services::SharedCriterionServiceClient.new(**kwargs)
1101
+ end
1102
+ end
1103
+
1104
+ module SharedSet
1105
+ ##
1106
+ # Service to manage shared sets.
1107
+ #
1108
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
1109
+ # Provides the means for authenticating requests made by the client. This parameter can
1110
+ # be many types.
1111
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
1112
+ # authenticating requests made by this client.
1113
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
1114
+ # credentials for this client.
1115
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
1116
+ # credentials for this client.
1117
+ # A `GRPC::Core::Channel` will be used to make calls through.
1118
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
1119
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
1120
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
1121
+ # metadata for requests, generally, to give OAuth credentials.
1122
+ # @param scopes [Array<String>]
1123
+ # The OAuth scopes for this service. This parameter is ignored if
1124
+ # an updater_proc is supplied.
1125
+ # @param client_config [Hash]
1126
+ # A Hash for call options for each method. See
1127
+ # Google::Gax#construct_settings for the structure of
1128
+ # this data. Falls back to the default config if not specified
1129
+ # or the specified config is missing data points.
1130
+ # @param timeout [Numeric]
1131
+ # The default timeout, in seconds, for calls made through this client.
1132
+ # @param metadata [Hash]
1133
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
1134
+ # @param exception_transformer [Proc]
1135
+ # An optional proc that intercepts any exceptions raised during an API call to inject
1136
+ # custom error handling.
1137
+ def self.new \
1138
+ credentials: nil,
1139
+ scopes: nil,
1140
+ client_config: nil,
1141
+ timeout: nil,
1142
+ metadata: nil,
1143
+ exception_transformer: nil,
1144
+ lib_name: nil,
1145
+ lib_version: nil
1146
+ kwargs = {
1147
+ credentials: credentials,
1148
+ scopes: scopes,
1149
+ client_config: client_config,
1150
+ timeout: timeout,
1151
+ metadata: metadata,
1152
+ exception_transformer: exception_transformer,
1153
+ lib_name: lib_name,
1154
+ lib_version: lib_version
1155
+ }.select { |_, v| v != nil }
1156
+ Google::Ads::Googleads::V0::Services::SharedSetServiceClient.new(**kwargs)
1157
+ end
1158
+ end
1159
+ end
1160
+ end
1161
+ end
1162
+ end
1163
+ end