google-ads-googleads 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +3 -0
  3. data/lib/google/ads/google_ads/google_ads_client.rb +1 -1
  4. data/lib/google/ads/google_ads/path_lookup_util.rb +101 -0
  5. data/lib/google/ads/google_ads/proto_lookup_util.rb +113 -20
  6. data/lib/google/ads/google_ads/v0/common/ad_type_infos_pb.rb +17 -0
  7. data/lib/google/ads/google_ads/v0/common/criteria_pb.rb +60 -0
  8. data/lib/google/ads/google_ads/v0/common/metrics_pb.rb +1 -0
  9. data/lib/google/ads/google_ads/v0/common/tag_snippet_pb.rb +28 -0
  10. data/lib/google/ads/google_ads/v0/enums/account_budget_status_pb.rb +29 -0
  11. data/lib/google/ads/google_ads/v0/enums/ad_group_ad_rotation_mode_pb.rb +28 -0
  12. data/lib/google/ads/google_ads/v0/enums/ad_group_type_pb.rb +4 -0
  13. data/lib/google/ads/google_ads/v0/enums/ad_type_pb.rb +1 -0
  14. data/lib/google/ads/google_ads/v0/enums/advertising_channel_sub_type_pb.rb +3 -0
  15. data/lib/google/ads/google_ads/v0/enums/age_range_type_pb.rb +33 -0
  16. data/lib/google/ads/google_ads/v0/enums/call_conversion_reporting_state_pb.rb +29 -0
  17. data/lib/google/ads/google_ads/v0/enums/change_status_resource_type_pb.rb +31 -0
  18. data/lib/google/ads/google_ads/v0/enums/criterion_type_pb.rb +9 -0
  19. data/lib/google/ads/google_ads/v0/enums/display_ad_format_setting_pb.rb +29 -0
  20. data/lib/google/ads/google_ads/v0/enums/gender_type_pb.rb +29 -0
  21. data/lib/google/ads/google_ads/v0/enums/geo_target_constant_status_pb.rb +28 -0
  22. data/lib/google/ads/google_ads/v0/enums/income_range_type_pb.rb +33 -0
  23. data/lib/google/ads/google_ads/v0/enums/manager_link_status_pb.rb +31 -0
  24. data/lib/google/ads/google_ads/v0/enums/media_type_pb.rb +32 -0
  25. data/lib/google/ads/google_ads/v0/enums/mime_type_pb.rb +38 -0
  26. data/lib/google/ads/google_ads/v0/enums/parental_status_type_pb.rb +29 -0
  27. data/lib/google/ads/google_ads/v0/enums/proximity_radius_units_pb.rb +28 -0
  28. data/lib/google/ads/google_ads/v0/errors/billing_setup_error_pb.rb +41 -0
  29. data/lib/google/ads/google_ads/v0/errors/change_status_error_pb.rb +0 -1
  30. data/lib/google/ads/google_ads/v0/errors/criterion_error_pb.rb +1 -1
  31. data/lib/google/ads/google_ads/v0/errors/customer_client_link_error_pb.rb +33 -0
  32. data/lib/google/ads/google_ads/v0/errors/customer_error_pb.rb +27 -0
  33. data/lib/google/ads/google_ads/v0/errors/customer_manager_link_error_pb.rb +34 -0
  34. data/lib/google/ads/google_ads/v0/errors/errors_pb.rb +12 -2
  35. data/lib/google/ads/google_ads/v0/errors/field_error_pb.rb +1 -0
  36. data/lib/google/ads/google_ads/v0/errors/geo_target_constant_suggestion_error_pb.rb +30 -0
  37. data/lib/google/ads/google_ads/v0/errors/header_error_pb.rb +1 -1
  38. data/lib/google/ads/google_ads/v0/errors/media_file_error_pb.rb +49 -0
  39. data/lib/google/ads/google_ads/v0/errors/request_error_pb.rb +1 -0
  40. data/lib/google/ads/google_ads/v0/errors/resource_count_limit_exceeded_error_pb.rb +1 -0
  41. data/lib/google/ads/google_ads/v0/errors/url_field_error_pb.rb +2 -0
  42. data/lib/google/ads/google_ads/v0/resources/account_budget_pb.rb +54 -0
  43. data/lib/google/ads/google_ads/v0/resources/account_budget_proposal_pb.rb +9 -0
  44. data/lib/google/ads/google_ads/v0/resources/ad_group_audience_view_pb.rb +22 -0
  45. data/lib/google/ads/google_ads/v0/resources/ad_group_criterion_pb.rb +9 -0
  46. data/lib/google/ads/google_ads/v0/resources/ad_group_pb.rb +2 -0
  47. data/lib/google/ads/google_ads/v0/resources/age_range_view_pb.rb +22 -0
  48. data/lib/google/ads/google_ads/v0/resources/billing_setup_pb.rb +15 -5
  49. data/lib/google/ads/google_ads/v0/resources/campaign_criterion_pb.rb +9 -0
  50. data/lib/google/ads/google_ads/v0/resources/campaign_pb.rb +1 -0
  51. data/lib/google/ads/google_ads/v0/resources/change_status_pb.rb +2 -2
  52. data/lib/google/ads/google_ads/v0/resources/conversion_action_pb.rb +2 -10
  53. data/lib/google/ads/google_ads/v0/resources/customer_client_link_pb.rb +28 -0
  54. data/lib/google/ads/google_ads/v0/resources/customer_manager_link_pb.rb +27 -0
  55. data/lib/google/ads/google_ads/v0/resources/customer_pb.rb +7 -0
  56. data/lib/google/ads/google_ads/v0/resources/display_keyword_view_pb.rb +22 -0
  57. data/lib/google/ads/google_ads/v0/resources/gender_view_pb.rb +22 -0
  58. data/lib/google/ads/google_ads/v0/resources/geo_target_constant_pb.rb +2 -0
  59. data/lib/google/ads/google_ads/v0/resources/hotel_group_view_pb.rb +22 -0
  60. data/lib/google/ads/google_ads/v0/resources/managed_placement_view_pb.rb +22 -0
  61. data/lib/google/ads/google_ads/v0/resources/media_file_pb.rb +43 -0
  62. data/lib/google/ads/google_ads/v0/resources/parental_status_view_pb.rb +22 -0
  63. data/lib/google/ads/google_ads/v0/resources/product_group_view_pb.rb +22 -0
  64. data/lib/google/ads/google_ads/v0/resources/shared_criterion_pb.rb +3 -0
  65. data/lib/google/ads/google_ads/v0/resources/topic_constant_pb.rb +26 -0
  66. data/lib/google/ads/google_ads/v0/resources/topic_view_pb.rb +22 -0
  67. data/lib/google/ads/google_ads/v0/services/account_budget_service_client.rb +223 -0
  68. data/lib/google/ads/google_ads/v0/services/account_budget_service_client_config.json +31 -0
  69. data/lib/google/ads/google_ads/v0/services/account_budget_service_pb.rb +24 -0
  70. data/lib/google/ads/google_ads/v0/services/account_budget_service_services_pb.rb +50 -0
  71. data/lib/google/ads/google_ads/v0/services/ad_group_audience_view_service_client.rb +221 -0
  72. data/lib/google/ads/google_ads/v0/services/ad_group_audience_view_service_client_config.json +31 -0
  73. data/lib/google/ads/google_ads/v0/services/ad_group_audience_view_service_pb.rb +24 -0
  74. data/lib/google/ads/google_ads/v0/services/ad_group_audience_view_service_services_pb.rb +48 -0
  75. data/lib/google/ads/google_ads/v0/services/age_range_view_service_client.rb +221 -0
  76. data/lib/google/ads/google_ads/v0/services/age_range_view_service_client_config.json +31 -0
  77. data/lib/google/ads/google_ads/v0/services/age_range_view_service_pb.rb +24 -0
  78. data/lib/google/ads/google_ads/v0/services/age_range_view_service_services_pb.rb +48 -0
  79. data/lib/google/ads/google_ads/v0/services/billing_setup_service_client.rb +2 -3
  80. data/lib/google/ads/google_ads/v0/services/billing_setup_service_pb.rb +1 -0
  81. data/lib/google/ads/google_ads/v0/services/billing_setup_service_services_pb.rb +2 -3
  82. data/lib/google/ads/google_ads/v0/services/customer_client_link_service_client.rb +221 -0
  83. data/lib/google/ads/google_ads/v0/services/customer_client_link_service_client_config.json +31 -0
  84. data/lib/google/ads/google_ads/v0/services/customer_client_link_service_pb.rb +24 -0
  85. data/lib/google/ads/google_ads/v0/services/customer_client_link_service_services_pb.rb +48 -0
  86. data/lib/google/ads/google_ads/v0/services/customer_manager_link_service_client.rb +221 -0
  87. data/lib/google/ads/google_ads/v0/services/customer_manager_link_service_client_config.json +31 -0
  88. data/lib/google/ads/google_ads/v0/services/customer_manager_link_service_pb.rb +24 -0
  89. data/lib/google/ads/google_ads/v0/services/customer_manager_link_service_services_pb.rb +48 -0
  90. data/lib/google/ads/google_ads/v0/services/customer_service_client.rb +27 -0
  91. data/lib/google/ads/google_ads/v0/services/customer_service_client_config.json +5 -0
  92. data/lib/google/ads/google_ads/v0/services/customer_service_pb.rb +8 -0
  93. data/lib/google/ads/google_ads/v0/services/customer_service_services_pb.rb +3 -0
  94. data/lib/google/ads/google_ads/v0/services/display_keyword_view_service_client.rb +221 -0
  95. data/lib/google/ads/google_ads/v0/services/display_keyword_view_service_client_config.json +31 -0
  96. data/lib/google/ads/google_ads/v0/services/display_keyword_view_service_pb.rb +24 -0
  97. data/lib/google/ads/google_ads/v0/services/display_keyword_view_service_services_pb.rb +48 -0
  98. data/lib/google/ads/google_ads/v0/services/gender_view_service_client.rb +221 -0
  99. data/lib/google/ads/google_ads/v0/services/gender_view_service_client_config.json +31 -0
  100. data/lib/google/ads/google_ads/v0/services/gender_view_service_pb.rb +24 -0
  101. data/lib/google/ads/google_ads/v0/services/gender_view_service_services_pb.rb +48 -0
  102. data/lib/google/ads/google_ads/v0/services/geo_target_constant_service_client.rb +53 -0
  103. data/lib/google/ads/google_ads/v0/services/geo_target_constant_service_client_config.json +5 -0
  104. data/lib/google/ads/google_ads/v0/services/geo_target_constant_service_pb.rb +29 -0
  105. data/lib/google/ads/google_ads/v0/services/geo_target_constant_service_services_pb.rb +2 -0
  106. data/lib/google/ads/google_ads/v0/services/google_ads_service_pb.rb +24 -0
  107. data/lib/google/ads/google_ads/v0/services/hotel_group_view_service_client.rb +221 -0
  108. data/lib/google/ads/google_ads/v0/services/hotel_group_view_service_client_config.json +31 -0
  109. data/lib/google/ads/google_ads/v0/services/hotel_group_view_service_pb.rb +24 -0
  110. data/lib/google/ads/google_ads/v0/services/hotel_group_view_service_services_pb.rb +48 -0
  111. data/lib/google/ads/google_ads/v0/services/managed_placement_view_service_client.rb +221 -0
  112. data/lib/google/ads/google_ads/v0/services/managed_placement_view_service_client_config.json +31 -0
  113. data/lib/google/ads/google_ads/v0/services/managed_placement_view_service_pb.rb +24 -0
  114. data/lib/google/ads/google_ads/v0/services/managed_placement_view_service_services_pb.rb +48 -0
  115. data/lib/google/ads/google_ads/v0/services/media_file_service_client.rb +267 -0
  116. data/lib/google/ads/google_ads/v0/services/media_file_service_client_config.json +36 -0
  117. data/lib/google/ads/google_ads/v0/services/media_file_service_pb.rb +43 -0
  118. data/lib/google/ads/google_ads/v0/services/media_file_service_services_pb.rb +50 -0
  119. data/lib/google/ads/google_ads/v0/services/parental_status_view_service_client.rb +221 -0
  120. data/lib/google/ads/google_ads/v0/services/parental_status_view_service_client_config.json +31 -0
  121. data/lib/google/ads/google_ads/v0/services/parental_status_view_service_pb.rb +24 -0
  122. data/lib/google/ads/google_ads/v0/services/parental_status_view_service_services_pb.rb +48 -0
  123. data/lib/google/ads/google_ads/v0/services/product_group_view_service_client.rb +221 -0
  124. data/lib/google/ads/google_ads/v0/services/product_group_view_service_client_config.json +31 -0
  125. data/lib/google/ads/google_ads/v0/services/product_group_view_service_pb.rb +24 -0
  126. data/lib/google/ads/google_ads/v0/services/product_group_view_service_services_pb.rb +48 -0
  127. data/lib/google/ads/google_ads/v0/services/topic_constant_service_client.rb +219 -0
  128. data/lib/google/ads/google_ads/v0/services/topic_constant_service_client_config.json +31 -0
  129. data/lib/google/ads/google_ads/v0/services/topic_constant_service_pb.rb +24 -0
  130. data/lib/google/ads/google_ads/v0/services/topic_constant_service_services_pb.rb +48 -0
  131. data/lib/google/ads/google_ads/v0/services/topic_view_service_client.rb +221 -0
  132. data/lib/google/ads/google_ads/v0/services/topic_view_service_client_config.json +31 -0
  133. data/lib/google/ads/google_ads/v0/services/topic_view_service_pb.rb +24 -0
  134. data/lib/google/ads/google_ads/v0/services/topic_view_service_services_pb.rb +48 -0
  135. data/lib/google/ads/google_ads/version.rb +1 -1
  136. metadata +92 -4
  137. data/lib/google/ads/google_ads/v0/enums/resource_type_pb.rb +0 -32
  138. data/lib/google/ads/google_ads/v0/errors/media_error_pb.rb +0 -50
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24fd078875d49e4884a2eb50f8856d33f2834b66fab6d233ea343d65b6c84cfc
4
- data.tar.gz: bdb86bd3a6de4edace0124603f821cf16a220505e52a3c9889c56d59c4b5154e
3
+ metadata.gz: de06597455e3e248f85ad099e1efbce93be06a56c6d628dccf74c81ab42fd2ac
4
+ data.tar.gz: 9116fbbe25c7c0a014a4a414c60cc83f668e66494447289c5995e1383c9bba44
5
5
  SHA512:
6
- metadata.gz: 7e1b630618e8b741897e5d0921bcbeae0558ad7e1fcb1647b08a6dc0b8e7a8b520cb8b8844da095075667f745b23f451ff8c8936fb8e91e6c78153ae0ffebdfb
7
- data.tar.gz: ec04da6d65b7b66ec7ef7d4c1cd0f4597b952fe0cb9661b5f4cc44997ba302dc6115006f9af5b4980bd0023c6f84e0bf78ccaefd37a63b93f618f44d3c0791e3
6
+ metadata.gz: 1d56aebba6c2e107505230db20a88dfb27791933f61f5a75c8fcce091a5eb47e2c48de7bccaf9cd69c92c200714ec04d73804d20714c8bdf0e68505ea4c1dbdb
7
+ data.tar.gz: 82f4e3fe59f9d2c282fd257f4a0300fdf62268889daa4a072e7e0dc4d44b0c4d8d03d9b9f1abd9099044dec6ae30fb41906f36267b896eb297832ccd696e1af3
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ 0.6.0:
2
+ - Adding support for Google Ads API v0_5.
3
+
1
4
  0.5.0:
2
5
  - Adding support for Google Ads API v0_4.
3
6
  - The namespace Googleads, with the path pattern "googleads", has changed to
@@ -144,7 +144,7 @@ module Google
144
144
  # If there is an underlying GoogleAdsFailure, throw that one.
145
145
  if detail.is_a?(
146
146
  Google::Ads::GoogleAds::V0::Errors::GoogleAdsFailure)
147
- raise Google::Ads::GooglAads::Errors::GoogleAdsError.new(
147
+ raise Google::Ads::GoogleAds::Errors::GoogleAdsError.new(
148
148
  detail)
149
149
  end
150
150
  if detail.is_a?(Google::Protobuf::Any)
@@ -30,11 +30,24 @@ module Google
30
30
  account_budget_proposal_id.to_s)
31
31
  end
32
32
 
33
+ def account_budget(customer_id, account_budget_id)
34
+ @proto_lookup_util.service(:AccountBudget).
35
+ account_budget_path(customer_id.to_s, account_budget_id.to_s)
36
+ end
37
+
33
38
  def ad_group_ad(customer_id, ad_group_id, ad_id)
34
39
  @proto_lookup_util.service(:AdGroupAd).ad_group_ad_path(
35
40
  customer_id.to_s, sprintf('%s_%s', ad_group_id.to_s, ad_id.to_s))
36
41
  end
37
42
 
43
+ def ad_group_audience_view(customer_id, ad_group_id, criterion_id)
44
+ @proto_lookup_util.service(:AdGroupAudienceView).
45
+ ad_group_audience_view_path(
46
+ customer_id.to_s,
47
+ sprintf('%s_%s', ad_group_id.to_s, criterion_id.to_s)
48
+ )
49
+ end
50
+
38
51
  def ad_group_bid_modifier(customer_id, ad_group_id, criterion_id)
39
52
  @proto_lookup_util.service(:AdGroupBidModifier).
40
53
  ad_group_bid_modifier_path(
@@ -55,6 +68,13 @@ module Google
55
68
  customer_id.to_s, ad_group_id.to_s)
56
69
  end
57
70
 
71
+ def age_range_view(customer_id, ad_group_id, criterion_id)
72
+ @proto_lookup_util.service(:AgeRangeView).age_range_view_path(
73
+ customer_id.to_s,
74
+ sprintf('%s_%s', ad_group_id.to_s, criterion_id.to_s)
75
+ )
76
+ end
77
+
58
78
  def bidding_strategy(customer_id, bidding_strategy_id)
59
79
  @proto_lookup_util.service(:BiddingStrategy).bidding_strategy_path(
60
80
  customer_id.to_s, bidding_strategy_id.to_s)
@@ -109,10 +129,43 @@ module Google
109
129
  customer_id.to_s, conversion_action_id.to_s)
110
130
  end
111
131
 
132
+ def customer_client_link(
133
+ customer_id, client_customer_id, manager_link_id)
134
+ @proto_lookup_util.service(:CustomerClientLink).
135
+ customer_client_link_path(
136
+ customer_id.to_s,
137
+ sprintf('%s_%s', client_customer_id.to_s, manager_link_id.to_s)
138
+ )
139
+ end
140
+
141
+ def customer_manager_link(
142
+ customer_id, manager_customer_id, manager_link_id)
143
+ @proto_lookup_util.service(:CustomerManagerLink).
144
+ customer_manager_link_path(
145
+ customer_id.to_s,
146
+ sprintf('%s_%s', manager_customer_id.to_s, manager_link_id.to_s)
147
+ )
148
+ end
149
+
112
150
  def customer(customer_id)
113
151
  @proto_lookup_util.service(:Customer).customer_path(customer_id.to_s)
114
152
  end
115
153
 
154
+ def display_keyword_view(customer_id, ad_group_id, criterion_id)
155
+ @proto_lookup_util.service(:DisplayKeywordView).
156
+ display_keyword_view_path(
157
+ customer_id.to_s,
158
+ sprintf('%s_%s', ad_group_id.to_s, criterion_id.to_s)
159
+ )
160
+ end
161
+
162
+ def gender_view(customer_id, ad_group_id, criterion_id)
163
+ @proto_lookup_util.service(:GenderView).gender_view_path(
164
+ customer_id.to_s,
165
+ sprintf('%s_%s', ad_group_id.to_s, criterion_id.to_s)
166
+ )
167
+ end
168
+
116
169
  def geo_target_constant(geo_target_constant_id)
117
170
  @proto_lookup_util.service(:GeoTargetConstant).
118
171
  geo_target_constant_path(geo_target_constant_id.to_s)
@@ -123,6 +176,13 @@ module Google
123
176
  google_ads_field.to_s)
124
177
  end
125
178
 
179
+ def hotel_group_view(customer_id, ad_group_id, criterion_id)
180
+ @proto_lookup_util.service(:HotelGroupView).hotel_group_view_path(
181
+ customer_id.to_s,
182
+ sprintf('%s_%s', ad_group_id.to_s, criterion_id.to_s)
183
+ )
184
+ end
185
+
126
186
  def keyword_view(customer_id, ad_group_id, criterion_id)
127
187
  @proto_lookup_util.service(:KeywordView).keyword_view_path(
128
188
  customer_id.to_s,
@@ -130,6 +190,35 @@ module Google
130
190
  )
131
191
  end
132
192
 
193
+ def managed_placement_view(customer_id, ad_group_id, criterion_id)
194
+ @proto_lookup_util.service(:ManagedPlacementView).
195
+ managed_placement_view_path(
196
+ customer_id.to_s,
197
+ sprintf('%s_%s', ad_group_id.to_s, criterion_id.to_s)
198
+ )
199
+ end
200
+
201
+ def media_file(customer_id, media_file_id)
202
+ @proto_lookup_util.service(:MediaFile).media_file_path(
203
+ customer_id.to_s, media_file_id.to_s)
204
+ end
205
+
206
+ def parental_status_view(customer_id, ad_group_id, criterion_id)
207
+ @proto_lookup_util.service(:ParentalStatusView).
208
+ parental_status_view_path(
209
+ customer_id.to_s,
210
+ sprintf('%s_%s', ad_group_id.to_s, criterion_id.to_s)
211
+ )
212
+ end
213
+
214
+ def product_group_view(customer_id, ad_group_id, criterion_id)
215
+ @proto_lookup_util.service(:ProductGroupView).
216
+ product_group_view_path(
217
+ customer_id.to_s,
218
+ sprintf('%s_%s', ad_group_id.to_s, criterion_id.to_s)
219
+ )
220
+ end
221
+
133
222
  def recommendation(customer_id, recommendation_id)
134
223
  @proto_lookup_util.service(:Recommendation).recommendation_path(
135
224
  customer_id.to_s, recommendation_id.to_s)
@@ -147,6 +236,18 @@ module Google
147
236
  customer_id.to_s, shared_set_id.to_s)
148
237
  end
149
238
 
239
+ def topic_constant(vertical_id)
240
+ @proto_lookup_util.service(:TopicConstant).topic_constant_path(
241
+ vertical_id.to_s)
242
+ end
243
+
244
+ def topic_view(customer_id, ad_group_id, criterion_id)
245
+ @proto_lookup_util.service(:TopicView).topic_view_path(
246
+ customer_id.to_s,
247
+ sprintf('%s_%s', ad_group_id.to_s, criterion_id.to_s)
248
+ )
249
+ end
250
+
150
251
  def video(customer_id, video_id)
151
252
  @proto_lookup_util.service(:Video).video_path(
152
253
  customer_id.to_s, video_id.to_s)
@@ -39,6 +39,11 @@ module Google
39
39
  'Google::Ads::GoogleAds::%s::Services::%s'.freeze
40
40
 
41
41
  RESOURCES = {
42
+ AccountBudget: ['resources', 'account_budget_pb', 'AccountBudget'],
43
+ PendingAccountBudgetProposal: ['resources', 'account_budget_pb',
44
+ 'AccountBudget::PendingAccountBudgetProposal'],
45
+ AccountBudgetProposal: ['resources', 'account_budget_proposal_pb',
46
+ 'AccountBudgetProposal'],
42
47
  AdGroupAd: ['resources', 'ad_group_ad_pb', 'AdGroupAd'],
43
48
  AdGroupAdPolicySummary: ['resources', 'ad_group_ad_pb',
44
49
  'AdGroupAdPolicySummary'],
@@ -48,12 +53,18 @@ module Google
48
53
  'AdGroupCriterion::QualityInfo'],
49
54
  PositionEstimates: ['resources', 'ad_group_criterion_pb',
50
55
  'AdGroupCriterion::PositionEstimates'],
56
+ AdGroupAudienceView: ['resources', 'ad_group_audience_view_pb',
57
+ 'AdGroupAudienceView'],
51
58
  AdGroup: ['resources', 'ad_group_pb', 'AdGroup'],
52
59
  AdGroupBidModifier: ['resources', 'ad_group_bid_modifier_pb',
53
60
  'AdGroupBidModifier'],
54
61
  Ad: ['resources', 'ad_pb', 'Ad'],
62
+ AgeRangeView: ['resources', 'age_range_view_pb', 'AgeRangeView'],
55
63
  BiddingStrategy: ['resources', 'bidding_strategy_pb',
56
64
  'BiddingStrategy'],
65
+ BillingSetup: ['resources', 'billing_setup_pb', 'BillingSetup'],
66
+ PaymentsAccountInfo: ['resources', 'billing_setup_pb',
67
+ 'BillingSetup::PaymentsAccountInfo'],
57
68
  CampaignBidModifier: ['resources', 'campaign_bid_modifier_pb',
58
69
  'CampaignBidModifier'],
59
70
  CampaignBudget: ['resources', 'campaign_budget_pb', 'CampaignBudget'],
@@ -71,12 +82,39 @@ module Google
71
82
  'Campaign::ShoppingSetting'],
72
83
  CampaignSharedSet: ['resources', 'campaign_shared_set_pb',
73
84
  'CampaignSharedSet'],
85
+ ChangeStatus: ['resources', 'change_status_pb', 'ChangeStatus'],
86
+ ConversionAction: ['resources', 'conversion_action_pb',
87
+ 'ConversionAction'],
88
+ AttributionModelSettings: ['resources', 'conversion_action_pb',
89
+ 'ConversionAction::AttributionModelSettings'],
90
+ ValueSettings: ['resources', 'conversion_action_pb',
91
+ 'ConversionAction::ValueSettings'],
92
+ CustomerClientLink: ['resources', 'customer_client_link_pb',
93
+ 'CustomerClientLink'],
94
+ CustomerManagerLink: ['resources', 'customer_manager_link_pb',
95
+ 'CustomerManagerLink'],
74
96
  Customer: ['resources', 'customer_pb', 'Customer'],
97
+ CallReportingSetting: ['resources', 'customer_pb',
98
+ 'CallReportingSetting'],
99
+ DisplayKeywordView: ['resources', 'display_keyword_view_pb',
100
+ 'DisplayKeywordView'],
101
+ GenderView: ['resources', 'gender_view_pb', 'GenderView'],
75
102
  GeoTargetConstant: ['resources', 'geo_target_constant_pb',
76
103
  'GeoTargetConstant'],
77
104
  GoogleAdsField: ['resources', 'google_ads_field_pb',
78
105
  'GoogleAdsField'],
106
+ HotelGroupView: ['resources', 'hotel_group_view_pb',
107
+ 'HotelGroupView'],
79
108
  KeywordView: ['resources', 'keyword_view_pb', 'KeywordView'],
109
+ ManagedPlacementView: ['resources', 'managed_placement_view_pb',
110
+ 'ManagedPlacementView'],
111
+ MediaFile: ['resources', 'media_file_pb', 'MediaFile'],
112
+ MediaImage: ['resources', 'media_file_pb', 'MediaImage'],
113
+ MediaBundle: ['resources', 'media_file_pb', 'MediaBundle'],
114
+ ParentalStatusView: ['resources', 'parental_status_view_pb',
115
+ 'ParentalStatusView'],
116
+ ProductGroupView: ['resources', 'product_group_view_pb',
117
+ 'ProductGroupView'],
80
118
  Recommendation: ['resources', 'recommendation_pb', 'Recommendation'],
81
119
  RecommendationImpact: ['resources', 'recommendation_pb',
82
120
  'Recommendation::RecommendationImpact'],
@@ -108,27 +146,22 @@ module Google
108
146
  SharedCriterion: ['resources', 'shared_criterion_pb',
109
147
  'SharedCriterion'],
110
148
  SharedSet: ['resources', 'shared_set_pb', 'SharedSet'],
111
- ConversionAction: ['resources', 'conversion_action_pb',
112
- 'ConversionAction'],
113
- AttributionModelSettings: ['resources', 'conversion_action_pb', 'ConversionAction::AttributionModelSettings'],
114
- TagSnippet: ['resources', 'conversion_action_pb', 'ConversionAction::TagSnippet'],
115
- ValueSettings: ['resources', 'conversion_action_pb', 'ConversionAction::ValueSettings'],
116
- AccountBudget: ['resources', 'account_budget_pb', 'AccountBudget'],
117
- AccountBudgetProposal: ['resources', 'account_budget_proposal_pb',
118
- 'AccountBudgetProposal'],
119
- BillingSetup: ['resources', 'billing_setup_pb', 'BillingSetup'],
120
- ChangeStatus: ['resources', 'change_status_pb', 'ChangeStatus'],
149
+ TopicConstant: ['resources', 'topic_constant_pb', 'TopicConstant'],
150
+ TopicView: ['resources', 'topic_view_pb', 'TopicView'],
121
151
  Video: ['resources', 'video_pb', 'Video'],
122
152
  TextAdInfo: ['common', 'ad_type_infos_pb', 'TextAdInfo'],
123
- ExpandedTextAdInfo: ['common', 'ad_type_infos_pb', 'ExpandedTextAdInfo'],
124
- DynamicSearchAdInfo: ['common', 'ad_type_infos_pb', 'DynamicSearchAdInfo'],
153
+ ExpandedTextAdInfo: ['common', 'ad_type_infos_pb',
154
+ 'ExpandedTextAdInfo'],
155
+ DynamicSearchAdInfo: ['common', 'ad_type_infos_pb',
156
+ 'DynamicSearchAdInfo'],
125
157
  ResponsiveDisplayAdInfo: ['common', 'ad_type_infos_pb',
126
158
  'ResponsiveDisplayAdInfo'],
127
159
  CallOnlyAdInfo: ['common', 'ad_type_infos_pb', 'CallOnlyAdInfo'],
128
160
  ExpandedDynamicSearchAdInfo: ['common', 'ad_type_infos_pb',
129
161
  'ExpandedDynamicSearchAdInfo'],
130
162
  HotelAdInfo: ['common', 'ad_type_infos_pb', 'HotelAdInfo'],
131
- ShoppingSmartAdInfo: ['common', 'ad_type_infos_pb', 'ShoppingSmartAdInfo'],
163
+ ShoppingSmartAdInfo: ['common', 'ad_type_infos_pb',
164
+ 'ShoppingSmartAdInfo'],
132
165
  ShoppingProductAdInfo: ['common', 'ad_type_infos_pb',
133
166
  'ShoppingProductAdInfo'],
134
167
  EnhancedCpc: ['common', 'bidding_pb', 'EnhancedCpc'],
@@ -175,6 +208,16 @@ module Google
175
208
  HotelCheckInDayInfo: ['common', 'criteria_pb', 'HotelCheckInDayInfo'],
176
209
  InteractionTypeInfo: ['common', 'criteria_pb', 'InteractionTypeInfo'],
177
210
  AdScheduleInfo: ['common', 'criteria_pb', 'AdScheduleInfo'],
211
+ AgeRangeInfo: ['common', 'criteria_pb', 'AgeRangeInfo'],
212
+ GenderInfo: ['common', 'criteria_pb', 'GenderInfo'],
213
+ IncomeRangeInfo: ['common', 'criteria_pb', 'IncomeRangeInfo'],
214
+ ParentalStatusInfo: ['common', 'criteria_pb', 'ParentalStatusInfo'],
215
+ YouTubeVideoInfo: ['common', 'criteria_pb', 'YouTubeVideoInfo'],
216
+ YouTubeChannelInfo: ['common', 'criteria_pb', 'YouTubeChannelInfo'],
217
+ ProximityInfo: ['common', 'criteria_pb', 'ProximityInfo'],
218
+ GeoPointInfo: ['common', 'criteria_pb', 'GeoPointInfo'],
219
+ AddressInfo: ['common', 'criteria_pb', 'AddressInfo'],
220
+ TopicInfo: ['common', 'criteria_pb', 'TopicInfo'],
178
221
  CustomParameter: ['common', 'custom_parameter_pb', 'CustomParameter'],
179
222
  Metrics: ['common', 'metrics_pb', 'Metrics'],
180
223
  PolicyViolationKey: ['common', 'policy_pb', 'PolicyViolationKey'],
@@ -198,6 +241,7 @@ module Google
198
241
  CountryConstraint: ['common', 'policy_pb',
199
242
  'PolicyTopicConstraint::CountryConstraint'],
200
243
  Value: ['common', 'value_pb', 'Value'],
244
+ TagSnippet: ['common', 'tag_snippet_pb', 'TagSnippet'],
201
245
  CampaignBudgetParameters: ['services', 'recommendation_service_pb',
202
246
  'ApplyRecommendationOperation::CampaignBudgetParameters'],
203
247
  TextAdParameters: ['services', 'recommendation_service_pb',
@@ -205,7 +249,11 @@ module Google
205
249
  KeywordParameters: ['services', 'recommendation_service_pb',
206
250
  'ApplyRecommendationOperation::KeywordParameters'],
207
251
  TargetCpaOptInParameters: ['services', 'recommendation_service_pb',
208
- 'ApplyRecommendationOperation::TargetCpaOptInParameters']
252
+ 'ApplyRecommendationOperation::TargetCpaOptInParameters'],
253
+ LocationNames: ['services', 'geo_target_constant_service_pb',
254
+ 'SuggestGeoTargetConstantsRequest::LocationNames'],
255
+ GeoTargets: ['services', 'geo_target_constant_service_pb',
256
+ 'SuggestGeoTargetConstantsRequest::GeoTargets']
209
257
  }.freeze
210
258
 
211
259
  ENUMS = {
@@ -213,6 +261,10 @@ module Google
213
261
  'AccountBudgetProposalStatus'],
214
262
  AccountBudgetProposalType: ['account_budget_proposal_type_pb',
215
263
  'AccountBudgetProposalType'],
264
+ AccountBudgetStatus: ['account_budget_status_pb',
265
+ 'AccountBudgetStatus'],
266
+ AdGroupAdRotationMode: ['ad_group_ad_rotation_mode_pb',
267
+ 'AdGroupAdRotationMode'],
216
268
  AdGroupAdStatus: ['ad_group_ad_status_pb', 'AdGroupAdStatus'],
217
269
  AdGroupCriterionStatus: ['ad_group_criterion_status_pb',
218
270
  'AdGroupCriterionStatus'],
@@ -226,6 +278,7 @@ module Google
226
278
  'AdvertisingChannelSubType'],
227
279
  AdvertisingChannelType: ['advertising_channel_type_pb',
228
280
  'AdvertisingChannelType'],
281
+ AgeRangeType: ['age_range_type_pb', 'AgeRangeType'],
229
282
  AttributionModel: ['attribution_model_pb', 'AttributionModel'],
230
283
  BiddingSource: ['bidding_source_pb', 'BiddingSource'],
231
284
  BiddingStrategyType: ['bidding_strategy_type_pb',
@@ -235,6 +288,8 @@ module Google
235
288
  BudgetDeliveryMethod: ['budget_delivery_method_pb',
236
289
  'BudgetDeliveryMethod'],
237
290
  BudgetStatus: ['budget_status_pb', 'BudgetStatus'],
291
+ CallConversionReportingState: ['call_conversion_reporting_state_pb',
292
+ 'CallConversionReportingState'],
238
293
  CampaignGroupStatus: ['campaign_group_status_pb',
239
294
  'CampaignGroupStatus'],
240
295
  CampaignServingStatus: ['campaign_serving_status_pb',
@@ -244,6 +299,8 @@ module Google
244
299
  CampaignStatus: ['campaign_status_pb', 'CampaignStatus'],
245
300
  ChangeStatusOperation: ['change_status_operation_pb',
246
301
  'ChangeStatusOperation'],
302
+ ChangeStatusResourceType: ['change_status_resource_type_pb',
303
+ 'ChangeStatusResourceType'],
247
304
  ConversionActionCategory: ['conversion_action_category_pb',
248
305
  'ConversionActionCategory'],
249
306
  ConversionActionCountingType: ['conversion_action_counting_type_pb',
@@ -256,21 +313,31 @@ module Google
256
313
  'DataDrivenModelStatus'],
257
314
  DayOfWeek: ['day_of_week_pb', 'DayOfWeek'],
258
315
  Device: ['device_pb', 'Device'],
316
+ DisplayAdFormatSetting: ['display_ad_format_setting_pb',
317
+ 'DisplayAdFormatSetting'],
318
+ GenderType: ['gender_type_pb', 'GenderType'],
319
+ GeoTargetConstantStatus: ['geo_target_constant_status_pb',
320
+ 'GeoTargetConstantStatus'],
259
321
  GoogleAdsFieldCategory: ['google_ads_field_category_pb',
260
322
  'GoogleAdsFieldCategory'],
261
323
  GoogleAdsFieldDataType: ['google_ads_field_data_type_pb',
262
324
  'GoogleAdsFieldDataType'],
263
325
  HotelDateSelectionType: ['hotel_date_selection_type_pb',
264
326
  'HotelDateSelectionType'],
327
+ IncomeRangeType: ['income_range_type_pb', 'IncomeRangeType'],
265
328
  InteractionType: ['interaction_type_pb', 'InteractionType'],
266
329
  KeywordMatchType: ['keyword_match_type_pb', 'KeywordMatchType'],
267
330
  ListingCustomAttributeIndex: ['listing_custom_attribute_index_pb',
268
331
  'ListingCustomAttributeIndex'],
269
332
  ListingGroupType: ['listing_group_type_pb', 'ListingGroupType'],
333
+ ManagerLinkStatus: ['manager_link_status_pb', 'ManagerLinkStatus'],
270
334
  MinuteOfHour: ['minute_of_hour_pb', 'MinuteOfHour'],
271
335
  MonthOfYear: ['month_of_year_pb', 'MonthOfYear'],
336
+ MediaType: ['media_type_pb', 'MediaType'],
337
+ MimeType: ['mime_type_pb', 'MimeType'],
272
338
  PageOnePromotedStrategyGoal: ['page_one_promoted_strategy_goal_pb',
273
339
  'PageOnePromotedStrategyGoal'],
340
+ ParentalStatusType: ['parental_status_type_pb', 'ParentalStatusType'],
274
341
  PolicyApprovalStatus: ['policy_approval_status_pb',
275
342
  'PolicyApprovalStatus'],
276
343
  PolicyReviewStatus: ['policy_review_status_pb',
@@ -285,10 +352,10 @@ module Google
285
352
  'ProductChannelExclusivity'],
286
353
  ProductCondition: ['product_condition_pb', 'ProductCondition'],
287
354
  ProductTypeLevel: ['product_type_level_pb', 'ProductTypeLevel'],
355
+ ProximityRadiusUnits: ['proximity_radius_units_pb',
356
+ 'ProximityRadiusUnits'],
288
357
  QualityScoreBucket: ['quality_score_bucket_pb', 'QualityScoreBucket'],
289
358
  RecommendationType: ['recommendation_type_pb', 'RecommendationType'],
290
- ResourceType: ['resource_type_pb',
291
- 'ResourceType'],
292
359
  SharedSetStatus: ['shared_set_status_pb', 'SharedSetStatus'],
293
360
  SharedSetType: ['shared_set_type_pb', 'SharedSetType'],
294
361
  Slot: ['slot_pb', 'Slot'],
@@ -303,15 +370,20 @@ module Google
303
370
  }.freeze
304
371
 
305
372
  SERVICES = {
306
- AccountBudgetProposal:
307
- ['account_budget_proposal_service_client',
308
- 'AccountBudgetProposalServiceClient'],
373
+ AccountBudgetProposal: ['account_budget_proposal_service_client',
374
+ 'AccountBudgetProposalServiceClient'],
375
+ AccountBudget: ['account_budget_service_client',
376
+ 'AccountBudgetServiceClient'],
309
377
  AdGroupAd: ['ad_group_ad_service_client', 'AdGroupAdServiceClient'],
378
+ AdGroupAudienceView: ['ad_group_audience_view_service_client',
379
+ 'AdGroupAudienceViewServiceClient'],
310
380
  AdGroupBidModifier: ['ad_group_bid_modifier_service_client',
311
381
  'AdGroupBidModifierServiceClient'],
312
382
  AdGroupCriterion: ['ad_group_criterion_service_client',
313
383
  'AdGroupCriterionServiceClient'],
314
384
  AdGroup: ['ad_group_service_client', 'AdGroupServiceClient'],
385
+ AgeRangeView: ['age_range_view_service_client',
386
+ 'AgeRangeViewServiceClient'],
315
387
  BiddingStrategy: ['bidding_strategy_service_client',
316
388
  'BiddingStrategyServiceClient'],
317
389
  BillingSetup: ['billing_setup_service_client',
@@ -331,19 +403,38 @@ module Google
331
403
  'ChangeStatusServiceClient'],
332
404
  ConversionAction: ['conversion_action_service_client',
333
405
  'ConversionActionServiceClient'],
406
+ CustomerClientLink: ['customer_client_link_service_client',
407
+ 'CustomerClientLinkServiceClient'],
408
+ CustomerManagerLink: ['customer_manager_link_service_client',
409
+ 'CustomerManagerLinkServiceClient'],
334
410
  Customer: ['customer_service_client', 'CustomerServiceClient'],
411
+ DisplayKeywordView: ['display_keyword_view_service_client',
412
+ 'DisplayKeywordViewServiceClient'],
413
+ GenderView: ['gender_view_service_client', 'GenderViewServiceClient'],
335
414
  GeoTargetConstant: ['geo_target_constant_service_client',
336
415
  'GeoTargetConstantServiceClient'],
337
416
  GoogleAdsField: ['google_ads_field_service_client',
338
417
  'GoogleAdsFieldServiceClient'],
339
418
  GoogleAds: ['google_ads_service_client', 'GoogleAdsServiceClient'],
419
+ HotelGroupView: ['hotel_group_view_service_client',
420
+ 'HotelGroupViewServiceClient'],
340
421
  KeywordView: ['keyword_view_service_client',
341
422
  'KeywordViewServiceClient'],
423
+ ManagedPlacementView: ['managed_placement_view_service_client',
424
+ 'ManagedPlacementViewServiceClient'],
425
+ MediaFile: ['media_file_service_client', 'MediaFileServiceClient'],
426
+ ParentalStatusView: ['parental_status_view_service_client',
427
+ 'ParentalStatusViewServiceClient'],
428
+ ProductGroupView: ['product_group_view_service_client',
429
+ 'ProductGroupViewServiceClient'],
342
430
  Recommendation: ['recommendation_service_client',
343
431
  'RecommendationServiceClient'],
344
432
  SharedCriterion: ['shared_criterion_service_client',
345
433
  'SharedCriterionServiceClient'],
346
434
  SharedSet: ['shared_set_service_client', 'SharedSetServiceClient'],
435
+ TopicConstant: ['topic_constant_service_client',
436
+ 'TopicConstantServiceClient'],
437
+ TopicView: ['topic_view_service_client', 'TopicViewServiceClient'],
347
438
  Video: ['video_service_client', 'VideoServiceClient']
348
439
  }.freeze
349
440
 
@@ -372,7 +463,9 @@ module Google
372
463
  Campaign: ['campaign_service_pb', 'CampaignOperation'],
373
464
  CampaignSharedSet: ['campaign_shared_set_service_pb',
374
465
  'CampaignSharedSetOperation'],
375
- ConversionAction: ['conversion_action_service_pb', 'ConversionActionOperation'],
466
+ ConversionAction: ['conversion_action_service_pb',
467
+ 'ConversionActionOperation'],
468
+ MediaFile: ['media_file_service_pb', 'MediaFileOperation'],
376
469
  SharedCriterion: ['shared_criterion_service_pb',
377
470
  'SharedCriterionOperation'],
378
471
  SharedSet: ['shared_set_service_pb', 'SharedSetOperation']