google-ads-googleads 3.0.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +3 -0
  3. data/lib/google/ads/google_ads/factories/v1/enums.rb +1170 -1170
  4. data/lib/google/ads/google_ads/factories/v1/operations.rb +1236 -1236
  5. data/lib/google/ads/google_ads/factories/v1/resources.rb +2366 -2366
  6. data/lib/google/ads/google_ads/factories/v1/services.rb +298 -298
  7. data/lib/google/ads/google_ads/factories/v2/enums.rb +1140 -1116
  8. data/lib/google/ads/google_ads/factories/v2/operations.rb +1331 -1331
  9. data/lib/google/ads/google_ads/factories/v2/resources.rb +2573 -2417
  10. data/lib/google/ads/google_ads/factories/v2/services.rb +329 -309
  11. data/lib/google/ads/google_ads/v2/common/ad_type_infos_pb.rb +1 -0
  12. data/lib/google/ads/google_ads/v2/common/metrics_pb.rb +1 -0
  13. data/lib/google/ads/google_ads/v2/enums/policy_review_status_pb.rb +1 -0
  14. data/lib/google/ads/google_ads/v2/enums/reach_plan_ad_length_pb.rb +22 -0
  15. data/lib/google/ads/google_ads/v2/enums/reach_plan_age_range_pb.rb +45 -0
  16. data/lib/google/ads/google_ads/v2/errors/authorization_error_pb.rb +1 -0
  17. data/lib/google/ads/google_ads/v2/errors/billing_setup_error_pb.rb +1 -0
  18. data/lib/google/ads/google_ads/v2/errors/errors_pb.rb +2 -0
  19. data/lib/google/ads/google_ads/v2/errors/feed_item_validation_error_pb.rb +2 -0
  20. data/lib/google/ads/google_ads/v2/errors/reach_plan_error_pb.rb +19 -0
  21. data/lib/google/ads/google_ads/v2/resources/campaign_criterion_pb.rb +1 -0
  22. data/lib/google/ads/google_ads/v2/resources/campaign_pb.rb +13 -13
  23. data/lib/google/ads/google_ads/v2/resources/customer_client_pb.rb +6 -0
  24. data/lib/google/ads/google_ads/v2/resources/recommendation_pb.rb +19 -19
  25. data/lib/google/ads/google_ads/v2/services/billing_setup_service_client.rb +2 -2
  26. data/lib/google/ads/google_ads/v2/services/billing_setup_service_services_pb.rb +2 -2
  27. data/lib/google/ads/google_ads/v2/services/campaign_draft_service_client.rb +0 -1
  28. data/lib/google/ads/google_ads/v2/services/campaign_experiment_service_client.rb +0 -1
  29. data/lib/google/ads/google_ads/v2/services/label_service_pb.rb +0 -1
  30. data/lib/google/ads/google_ads/v2/services/media_file_service_pb.rb +0 -1
  31. data/lib/google/ads/google_ads/v2/services/mutate_job_service_client.rb +0 -1
  32. data/lib/google/ads/google_ads/v2/services/payments_account_service_client.rb +2 -2
  33. data/lib/google/ads/google_ads/v2/services/payments_account_service_services_pb.rb +3 -3
  34. data/lib/google/ads/google_ads/v2/services/reach_plan_service_client.rb +436 -0
  35. data/lib/google/ads/google_ads/v2/services/reach_plan_service_client_config.json +46 -0
  36. data/lib/google/ads/google_ads/v2/services/reach_plan_service_pb.rb +126 -0
  37. data/lib/google/ads/google_ads/v2/services/reach_plan_service_services_pb.rb +55 -0
  38. data/lib/google/ads/google_ads/v2/services/remarketing_action_service_pb.rb +0 -1
  39. data/lib/google/ads/google_ads/v2/services/shared_criterion_service_pb.rb +0 -1
  40. data/lib/google/ads/google_ads/v2/services/shared_set_service_pb.rb +0 -1
  41. data/lib/google/ads/google_ads/v2/services/user_list_service_pb.rb +0 -1
  42. data/lib/google/ads/google_ads/version.rb +1 -1
  43. metadata +10 -3
@@ -12,44 +12,76 @@ module Google
12
12
  Google::Ads::GoogleAds::V2::Resources::FeedAttributeOperation.new
13
13
  end
14
14
 
15
- # Create a new CustomInterestOperation
15
+ # Create a new KeywordPlanKeywordOperation
16
16
  #
17
- # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation
18
- def self.custom_interest
19
- require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
20
- Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
17
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation
18
+ def self.keyword_plan_keyword
19
+ require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
20
+ Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
21
21
  end
22
22
 
23
- # Create a new RemarketingActionOperation
23
+ # Create a new FeedMappingOperation
24
24
  #
25
- # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation
26
- def self.remarketing_action
27
- require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
28
- Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
25
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] the operation
26
+ def self.feed_mapping
27
+ require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
28
+ Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
29
29
  end
30
30
 
31
- # Create a new KeywordPlanCampaignOperation
31
+ # Create a new FeedOperation
32
32
  #
33
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] the operation
34
- def self.keyword_plan_campaign
35
- require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
36
- Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
33
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation
34
+ def self.feed
35
+ require "google/ads/google_ads/v2/services/feed_service_pb.rb"
36
+ Google::Ads::GoogleAds::V2::Services::FeedOperation.new
37
37
  end
38
38
 
39
- # Create a new AdGroupAdLabelOperation
39
+ # Create a new AdGroupCriterionLabelOperation
40
40
  #
41
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] the operation
42
- def self.ad_group_ad_label
43
- require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
44
- Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
41
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation] the operation
42
+ def self.ad_group_criterion_label
43
+ require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
44
+ Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
45
45
  end
46
46
 
47
- # Create a new AdGroupAdOperation
47
+ # Create a new ConversionActionOperation
48
48
  #
49
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] the operation
50
- def self.ad_group_ad
51
- require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
52
- Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
49
+ # @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] the operation
50
+ def self.conversion_action
51
+ require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
52
+ Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
53
+ end
54
+
55
+ # Create a new BiddingStrategyOperation
56
+ #
57
+ # @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] the operation
58
+ def self.bidding_strategy
59
+ require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
60
+ Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
61
+ end
62
+
63
+ # Create a new AccountBudgetProposalOperation
64
+ #
65
+ # @return [Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation] the operation
66
+ def self.account_budget_proposal
67
+ require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
68
+ Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
69
+ end
70
+
71
+ # Create a new FeedItemOperation
72
+ #
73
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] the operation
74
+ def self.feed_item
75
+ require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
76
+ Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
77
+ end
78
+
79
+ # Create a new CampaignBudgetOperation
80
+ #
81
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] the operation
82
+ def self.campaign_budget
83
+ require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
84
+ Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
53
85
  end
54
86
 
55
87
  # Create a new AdGroupBidModifierOperation
@@ -60,12 +92,60 @@ module Google
60
92
  Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
61
93
  end
62
94
 
63
- # Create a new AdGroupCriterionLabelOperation
95
+ # Create a new AdOperation
64
96
  #
65
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation] the operation
66
- def self.ad_group_criterion_label
67
- require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
68
- Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
97
+ # @return [Google::Ads::GoogleAds::V2::Services::AdOperation] the operation
98
+ def self.ad
99
+ require "google/ads/google_ads/v2/services/ad_service_pb.rb"
100
+ Google::Ads::GoogleAds::V2::Services::AdOperation.new
101
+ end
102
+
103
+ # Create a new CustomerOperation
104
+ #
105
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerOperation] the operation
106
+ def self.customer
107
+ require "google/ads/google_ads/v2/services/customer_service_pb.rb"
108
+ Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
109
+ end
110
+
111
+ # Create a new CampaignLabelOperation
112
+ #
113
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation] the operation
114
+ def self.campaign_label
115
+ require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
116
+ Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
117
+ end
118
+
119
+ # Create a new SharedCriterionOperation
120
+ #
121
+ # @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] the operation
122
+ def self.shared_criterion
123
+ require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
124
+ Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
125
+ end
126
+
127
+ # Create a new KeywordPlanAdGroupOperation
128
+ #
129
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] the operation
130
+ def self.keyword_plan_ad_group
131
+ require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
132
+ Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
133
+ end
134
+
135
+ # Create a new CampaignDraftOperation
136
+ #
137
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] the operation
138
+ def self.campaign_draft
139
+ require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
140
+ Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
141
+ end
142
+
143
+ # Create a new CampaignFeedOperation
144
+ #
145
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] the operation
146
+ def self.campaign_feed
147
+ require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
148
+ Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
69
149
  end
70
150
 
71
151
  # Create a new AdGroupCriterionOperation
@@ -76,6 +156,22 @@ module Google
76
156
  Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
77
157
  end
78
158
 
159
+ # Create a new AdGroupAdLabelOperation
160
+ #
161
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] the operation
162
+ def self.ad_group_ad_label
163
+ require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
164
+ Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
165
+ end
166
+
167
+ # Create a new AdGroupAdOperation
168
+ #
169
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] the operation
170
+ def self.ad_group_ad
171
+ require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
172
+ Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
173
+ end
174
+
79
175
  # Create a new AdGroupExtensionSettingOperation
80
176
  #
81
177
  # @return [Google::Ads::GoogleAds::V2::Services::AdGroupExtensionSettingOperation] the operation
@@ -124,14 +220,6 @@ module Google
124
220
  Google::Ads::GoogleAds::V2::Services::AssetOperation.new
125
221
  end
126
222
 
127
- # Create a new BiddingStrategyOperation
128
- #
129
- # @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] the operation
130
- def self.bidding_strategy
131
- require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
132
- Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
133
- end
134
-
135
223
  # Create a new CampaignBidModifierOperation
136
224
  #
137
225
  # @return [Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation] the operation
@@ -140,14 +228,6 @@ module Google
140
228
  Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
141
229
  end
142
230
 
143
- # Create a new CampaignBudgetOperation
144
- #
145
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] the operation
146
- def self.campaign_budget
147
- require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
148
- Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
149
- end
150
-
151
231
  # Create a new CampaignCriterionOperation
152
232
  #
153
233
  # @return [Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation] the operation
@@ -156,14 +236,6 @@ module Google
156
236
  Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
157
237
  end
158
238
 
159
- # Create a new CampaignDraftOperation
160
- #
161
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] the operation
162
- def self.campaign_draft
163
- require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
164
- Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
165
- end
166
-
167
239
  # Create a new CampaignExperimentOperation
168
240
  #
169
241
  # @return [Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation] the operation
@@ -180,22 +252,6 @@ module Google
180
252
  Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation.new
181
253
  end
182
254
 
183
- # Create a new CampaignFeedOperation
184
- #
185
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] the operation
186
- def self.campaign_feed
187
- require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
188
- Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
189
- end
190
-
191
- # Create a new CampaignLabelOperation
192
- #
193
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation] the operation
194
- def self.campaign_label
195
- require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
196
- Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
197
- end
198
-
199
255
  # Create a new CampaignOperation
200
256
  #
201
257
  # @return [Google::Ads::GoogleAds::V2::Services::CampaignOperation] the operation
@@ -212,14 +268,6 @@ module Google
212
268
  Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
213
269
  end
214
270
 
215
- # Create a new ConversionActionOperation
216
- #
217
- # @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] the operation
218
- def self.conversion_action
219
- require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
220
- Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
221
- end
222
-
223
271
  # Create a new CustomerExtensionSettingOperation
224
272
  #
225
273
  # @return [Google::Ads::GoogleAds::V2::Services::CustomerExtensionSettingOperation] the operation
@@ -252,14 +300,6 @@ module Google
252
300
  Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation.new
253
301
  end
254
302
 
255
- # Create a new CustomerOperation
256
- #
257
- # @return [Google::Ads::GoogleAds::V2::Services::CustomerOperation] the operation
258
- def self.customer
259
- require "google/ads/google_ads/v2/services/customer_service_pb.rb"
260
- Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
261
- end
262
-
263
303
  # Create a new ExtensionFeedItemOperation
264
304
  #
265
305
  # @return [Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation] the operation
@@ -268,14 +308,6 @@ module Google
268
308
  Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation.new
269
309
  end
270
310
 
271
- # Create a new FeedItemOperation
272
- #
273
- # @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] the operation
274
- def self.feed_item
275
- require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
276
- Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
277
- end
278
-
279
311
  # Create a new FeedItemTargetOperation
280
312
  #
281
313
  # @return [Google::Ads::GoogleAds::V2::Services::FeedItemTargetOperation] the operation
@@ -284,22 +316,6 @@ module Google
284
316
  Google::Ads::GoogleAds::V2::Services::FeedItemTargetOperation.new
285
317
  end
286
318
 
287
- # Create a new FeedMappingOperation
288
- #
289
- # @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] the operation
290
- def self.feed_mapping
291
- require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
292
- Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
293
- end
294
-
295
- # Create a new FeedOperation
296
- #
297
- # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation
298
- def self.feed
299
- require "google/ads/google_ads/v2/services/feed_service_pb.rb"
300
- Google::Ads::GoogleAds::V2::Services::FeedOperation.new
301
- end
302
-
303
319
  # Create a new LabelOperation
304
320
  #
305
321
  # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] the operation
@@ -316,12 +332,12 @@ module Google
316
332
  Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
317
333
  end
318
334
 
319
- # Create a new SharedCriterionOperation
335
+ # Create a new RemarketingActionOperation
320
336
  #
321
- # @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] the operation
322
- def self.shared_criterion
323
- require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
324
- Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
337
+ # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation
338
+ def self.remarketing_action
339
+ require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
340
+ Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
325
341
  end
326
342
 
327
343
  # Create a new SharedSetOperation
@@ -348,14 +364,6 @@ module Google
348
364
  Google::Ads::GoogleAds::V2::Services::MutateOperation.new
349
365
  end
350
366
 
351
- # Create a new KeywordPlanKeywordOperation
352
- #
353
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation
354
- def self.keyword_plan_keyword
355
- require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
356
- Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
357
- end
358
-
359
367
  # Create a new ApplyRecommendationOperation
360
368
  #
361
369
  # @return [Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation] the operation
@@ -372,20 +380,20 @@ module Google
372
380
  Google::Ads::GoogleAds::V2::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
373
381
  end
374
382
 
375
- # Create a new KeywordPlanNegativeKeywordOperation
383
+ # Create a new KeywordPlanCampaignOperation
376
384
  #
377
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] the operation
378
- def self.keyword_plan_negative_keyword
379
- require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
380
- Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
385
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] the operation
386
+ def self.keyword_plan_campaign
387
+ require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
388
+ Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
381
389
  end
382
390
 
383
- # Create a new KeywordPlanOperation
391
+ # Create a new BillingSetupOperation
384
392
  #
385
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] the operation
386
- def self.keyword_plan
387
- require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
388
- Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
393
+ # @return [Google::Ads::GoogleAds::V2::Services::BillingSetupOperation] the operation
394
+ def self.billing_setup
395
+ require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
396
+ Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
389
397
  end
390
398
 
391
399
  # Create a new MerchantCenterLinkOperation
@@ -396,6 +404,14 @@ module Google
396
404
  Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
397
405
  end
398
406
 
407
+ # Create a new KeywordPlanOperation
408
+ #
409
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] the operation
410
+ def self.keyword_plan
411
+ require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
412
+ Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
413
+ end
414
+
399
415
  # Create a new CustomerManagerLinkOperation
400
416
  #
401
417
  # @return [Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation] the operation
@@ -404,20 +420,20 @@ module Google
404
420
  Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation.new
405
421
  end
406
422
 
407
- # Create a new AccountBudgetProposalOperation
423
+ # Create a new KeywordPlanNegativeKeywordOperation
408
424
  #
409
- # @return [Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation] the operation
410
- def self.account_budget_proposal
411
- require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
412
- Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
425
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] the operation
426
+ def self.keyword_plan_negative_keyword
427
+ require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
428
+ Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
413
429
  end
414
430
 
415
- # Create a new AdOperation
431
+ # Create a new CustomInterestOperation
416
432
  #
417
- # @return [Google::Ads::GoogleAds::V2::Services::AdOperation] the operation
418
- def self.ad
419
- require "google/ads/google_ads/v2/services/ad_service_pb.rb"
420
- Google::Ads::GoogleAds::V2::Services::AdOperation.new
433
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation
434
+ def self.custom_interest
435
+ require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
436
+ Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
421
437
  end
422
438
 
423
439
  # Create a new CustomerClientLinkOperation
@@ -428,22 +444,6 @@ module Google
428
444
  Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
429
445
  end
430
446
 
431
- # Create a new BillingSetupOperation
432
- #
433
- # @return [Google::Ads::GoogleAds::V2::Services::BillingSetupOperation] the operation
434
- def self.billing_setup
435
- require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
436
- Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
437
- end
438
-
439
- # Create a new KeywordPlanAdGroupOperation
440
- #
441
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] the operation
442
- def self.keyword_plan_ad_group
443
- require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
444
- Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
445
- end
446
-
447
447
  # Get a reference module containing convenience methods for creating
448
448
  # resources
449
449
  #
@@ -469,551 +469,676 @@ module Google
469
469
  end
470
470
 
471
471
  module CreateResource
472
- # A convenience method for creating an CustomInterestOperation instance with
473
- # its "create" field prepopulated with an CustomInterest instance.
472
+ # A convenience method for creating an KeywordPlanKeywordOperation instance with
473
+ # its "create" field prepopulated with an KeywordPlanKeyword instance.
474
474
  #
475
- # @overload custom_interest
476
- # creates an operation instance, yielding a newly fabricated CustomInterest
475
+ # @overload keyword_plan_keyword
476
+ # creates an operation instance, yielding a newly fabricated KeywordPlanKeyword
477
477
  # which can be used for setting attributes on the newly created resource
478
- # @overload custom_interest(res)
478
+ # @overload keyword_plan_keyword(res)
479
479
  # creates an operation instance, with the resource to be created
480
480
  # set to the passed value (res)
481
- # @param res [Google::Ads::GoogleAds::V2::Resources::CustomInterest]
481
+ # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword]
482
482
  # a resource instance to be used for creation in this operation.
483
483
  #
484
- # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] instance that will create the resource
485
- def self.custom_interest(res = nil, &blk)
486
- require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
487
- op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
484
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] instance that will create the resource
485
+ def self.keyword_plan_keyword(res = nil, &blk)
486
+ require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
487
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
488
488
  if !res.nil?
489
489
  op["create"] = res
490
490
  elsif !blk.nil?
491
- op["create"] = Factories::V2::Resources.custom_interest(&blk)
491
+ op["create"] = Factories::V2::Resources.keyword_plan_keyword(&blk)
492
492
  end
493
493
 
494
494
  op
495
495
  end
496
496
 
497
- # A convenience method for creating an RemarketingActionOperation instance with
498
- # its "create" field prepopulated with an RemarketingAction instance.
497
+ # A convenience method for creating an FeedMappingOperation instance with
498
+ # its "create" field prepopulated with an FeedMapping instance.
499
499
  #
500
- # @overload remarketing_action
501
- # creates an operation instance, yielding a newly fabricated RemarketingAction
500
+ # @overload feed_mapping
501
+ # creates an operation instance, yielding a newly fabricated FeedMapping
502
502
  # which can be used for setting attributes on the newly created resource
503
- # @overload remarketing_action(res)
503
+ # @overload feed_mapping(res)
504
504
  # creates an operation instance, with the resource to be created
505
505
  # set to the passed value (res)
506
- # @param res [Google::Ads::GoogleAds::V2::Resources::RemarketingAction]
506
+ # @param res [Google::Ads::GoogleAds::V2::Resources::FeedMapping]
507
507
  # a resource instance to be used for creation in this operation.
508
508
  #
509
- # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] instance that will create the resource
510
- def self.remarketing_action(res = nil, &blk)
511
- require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
512
- op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
509
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] instance that will create the resource
510
+ def self.feed_mapping(res = nil, &blk)
511
+ require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
512
+ op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
513
513
  if !res.nil?
514
514
  op["create"] = res
515
515
  elsif !blk.nil?
516
- op["create"] = Factories::V2::Resources.remarketing_action(&blk)
516
+ op["create"] = Factories::V2::Resources.feed_mapping(&blk)
517
517
  end
518
518
 
519
519
  op
520
520
  end
521
521
 
522
- # A convenience method for creating an KeywordPlanCampaignOperation instance with
523
- # its "create" field prepopulated with an KeywordPlanCampaign instance.
522
+ # A convenience method for creating an FeedOperation instance with
523
+ # its "create" field prepopulated with an Feed instance.
524
524
  #
525
- # @overload keyword_plan_campaign
526
- # creates an operation instance, yielding a newly fabricated KeywordPlanCampaign
525
+ # @overload feed
526
+ # creates an operation instance, yielding a newly fabricated Feed
527
527
  # which can be used for setting attributes on the newly created resource
528
- # @overload keyword_plan_campaign(res)
528
+ # @overload feed(res)
529
529
  # creates an operation instance, with the resource to be created
530
530
  # set to the passed value (res)
531
- # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign]
531
+ # @param res [Google::Ads::GoogleAds::V2::Resources::Feed]
532
532
  # a resource instance to be used for creation in this operation.
533
533
  #
534
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] instance that will create the resource
535
- def self.keyword_plan_campaign(res = nil, &blk)
536
- require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
537
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
534
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] instance that will create the resource
535
+ def self.feed(res = nil, &blk)
536
+ require "google/ads/google_ads/v2/services/feed_service_pb.rb"
537
+ op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
538
538
  if !res.nil?
539
539
  op["create"] = res
540
540
  elsif !blk.nil?
541
- op["create"] = Factories::V2::Resources.keyword_plan_campaign(&blk)
541
+ op["create"] = Factories::V2::Resources.feed(&blk)
542
542
  end
543
543
 
544
544
  op
545
545
  end
546
546
 
547
- # A convenience method for creating an AdGroupAdLabelOperation instance with
548
- # its "create" field prepopulated with an AdGroupAdLabel instance.
547
+ # A convenience method for creating an AdGroupCriterionLabelOperation instance with
548
+ # its "create" field prepopulated with an AdGroupCriterionLabel instance.
549
549
  #
550
- # @overload ad_group_ad_label
551
- # creates an operation instance, yielding a newly fabricated AdGroupAdLabel
550
+ # @overload ad_group_criterion_label
551
+ # creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
552
552
  # which can be used for setting attributes on the newly created resource
553
- # @overload ad_group_ad_label(res)
553
+ # @overload ad_group_criterion_label(res)
554
554
  # creates an operation instance, with the resource to be created
555
555
  # set to the passed value (res)
556
- # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupAdLabel]
556
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterionLabel]
557
557
  # a resource instance to be used for creation in this operation.
558
558
  #
559
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] instance that will create the resource
560
- def self.ad_group_ad_label(res = nil, &blk)
561
- require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
562
- op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
559
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation] instance that will create the resource
560
+ def self.ad_group_criterion_label(res = nil, &blk)
561
+ require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
562
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
563
563
  if !res.nil?
564
564
  op["create"] = res
565
565
  elsif !blk.nil?
566
- op["create"] = Factories::V2::Resources.ad_group_ad_label(&blk)
566
+ op["create"] = Factories::V2::Resources.ad_group_criterion_label(&blk)
567
567
  end
568
568
 
569
569
  op
570
570
  end
571
571
 
572
- # A convenience method for creating an AdGroupAdOperation instance with
573
- # its "create" field prepopulated with an AdGroupAd instance.
572
+ # A convenience method for creating an ConversionActionOperation instance with
573
+ # its "create" field prepopulated with an ConversionAction instance.
574
574
  #
575
- # @overload ad_group_ad
576
- # creates an operation instance, yielding a newly fabricated AdGroupAd
575
+ # @overload conversion_action
576
+ # creates an operation instance, yielding a newly fabricated ConversionAction
577
577
  # which can be used for setting attributes on the newly created resource
578
- # @overload ad_group_ad(res)
578
+ # @overload conversion_action(res)
579
579
  # creates an operation instance, with the resource to be created
580
580
  # set to the passed value (res)
581
- # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupAd]
581
+ # @param res [Google::Ads::GoogleAds::V2::Resources::ConversionAction]
582
582
  # a resource instance to be used for creation in this operation.
583
583
  #
584
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] instance that will create the resource
585
- def self.ad_group_ad(res = nil, &blk)
586
- require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
587
- op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
584
+ # @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] instance that will create the resource
585
+ def self.conversion_action(res = nil, &blk)
586
+ require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
587
+ op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
588
588
  if !res.nil?
589
589
  op["create"] = res
590
590
  elsif !blk.nil?
591
- op["create"] = Factories::V2::Resources.ad_group_ad(&blk)
591
+ op["create"] = Factories::V2::Resources.conversion_action(&blk)
592
592
  end
593
593
 
594
594
  op
595
595
  end
596
596
 
597
- # A convenience method for creating an AdGroupBidModifierOperation instance with
598
- # its "create" field prepopulated with an AdGroupBidModifier instance.
597
+ # A convenience method for creating an BiddingStrategyOperation instance with
598
+ # its "create" field prepopulated with an BiddingStrategy instance.
599
599
  #
600
- # @overload ad_group_bid_modifier
601
- # creates an operation instance, yielding a newly fabricated AdGroupBidModifier
600
+ # @overload bidding_strategy
601
+ # creates an operation instance, yielding a newly fabricated BiddingStrategy
602
602
  # which can be used for setting attributes on the newly created resource
603
- # @overload ad_group_bid_modifier(res)
603
+ # @overload bidding_strategy(res)
604
604
  # creates an operation instance, with the resource to be created
605
605
  # set to the passed value (res)
606
- # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier]
606
+ # @param res [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy]
607
607
  # a resource instance to be used for creation in this operation.
608
608
  #
609
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] instance that will create the resource
610
- def self.ad_group_bid_modifier(res = nil, &blk)
611
- require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
612
- op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
609
+ # @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] instance that will create the resource
610
+ def self.bidding_strategy(res = nil, &blk)
611
+ require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
612
+ op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
613
613
  if !res.nil?
614
614
  op["create"] = res
615
615
  elsif !blk.nil?
616
- op["create"] = Factories::V2::Resources.ad_group_bid_modifier(&blk)
616
+ op["create"] = Factories::V2::Resources.bidding_strategy(&blk)
617
617
  end
618
618
 
619
619
  op
620
620
  end
621
621
 
622
- # A convenience method for creating an AdGroupCriterionLabelOperation instance with
623
- # its "create" field prepopulated with an AdGroupCriterionLabel instance.
622
+ # A convenience method for creating an AccountBudgetProposalOperation instance with
623
+ # its "create" field prepopulated with an AccountBudgetProposal instance.
624
624
  #
625
- # @overload ad_group_criterion_label
626
- # creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
625
+ # @overload account_budget_proposal
626
+ # creates an operation instance, yielding a newly fabricated AccountBudgetProposal
627
627
  # which can be used for setting attributes on the newly created resource
628
- # @overload ad_group_criterion_label(res)
628
+ # @overload account_budget_proposal(res)
629
629
  # creates an operation instance, with the resource to be created
630
630
  # set to the passed value (res)
631
- # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterionLabel]
631
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AccountBudgetProposal]
632
632
  # a resource instance to be used for creation in this operation.
633
633
  #
634
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation] instance that will create the resource
635
- def self.ad_group_criterion_label(res = nil, &blk)
636
- require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
637
- op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
634
+ # @return [Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation] instance that will create the resource
635
+ def self.account_budget_proposal(res = nil, &blk)
636
+ require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
637
+ op = Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
638
638
  if !res.nil?
639
639
  op["create"] = res
640
640
  elsif !blk.nil?
641
- op["create"] = Factories::V2::Resources.ad_group_criterion_label(&blk)
641
+ op["create"] = Factories::V2::Resources.account_budget_proposal(&blk)
642
642
  end
643
643
 
644
644
  op
645
645
  end
646
646
 
647
- # A convenience method for creating an AdGroupCriterionOperation instance with
648
- # its "create" field prepopulated with an AdGroupCriterion instance.
647
+ # A convenience method for creating an FeedItemOperation instance with
648
+ # its "create" field prepopulated with an FeedItem instance.
649
649
  #
650
- # @overload ad_group_criterion
651
- # creates an operation instance, yielding a newly fabricated AdGroupCriterion
650
+ # @overload feed_item
651
+ # creates an operation instance, yielding a newly fabricated FeedItem
652
652
  # which can be used for setting attributes on the newly created resource
653
- # @overload ad_group_criterion(res)
653
+ # @overload feed_item(res)
654
654
  # creates an operation instance, with the resource to be created
655
655
  # set to the passed value (res)
656
- # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion]
656
+ # @param res [Google::Ads::GoogleAds::V2::Resources::FeedItem]
657
657
  # a resource instance to be used for creation in this operation.
658
658
  #
659
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation] instance that will create the resource
660
- def self.ad_group_criterion(res = nil, &blk)
661
- require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
662
- op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
659
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] instance that will create the resource
660
+ def self.feed_item(res = nil, &blk)
661
+ require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
662
+ op = Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
663
663
  if !res.nil?
664
664
  op["create"] = res
665
665
  elsif !blk.nil?
666
- op["create"] = Factories::V2::Resources.ad_group_criterion(&blk)
666
+ op["create"] = Factories::V2::Resources.feed_item(&blk)
667
667
  end
668
668
 
669
669
  op
670
670
  end
671
671
 
672
- # A convenience method for creating an AdGroupExtensionSettingOperation instance with
673
- # its "create" field prepopulated with an AdGroupExtensionSetting instance.
672
+ # A convenience method for creating an CampaignBudgetOperation instance with
673
+ # its "create" field prepopulated with an CampaignBudget instance.
674
674
  #
675
- # @overload ad_group_extension_setting
676
- # creates an operation instance, yielding a newly fabricated AdGroupExtensionSetting
675
+ # @overload campaign_budget
676
+ # creates an operation instance, yielding a newly fabricated CampaignBudget
677
677
  # which can be used for setting attributes on the newly created resource
678
- # @overload ad_group_extension_setting(res)
678
+ # @overload campaign_budget(res)
679
679
  # creates an operation instance, with the resource to be created
680
680
  # set to the passed value (res)
681
- # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupExtensionSetting]
681
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignBudget]
682
682
  # a resource instance to be used for creation in this operation.
683
683
  #
684
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupExtensionSettingOperation] instance that will create the resource
685
- def self.ad_group_extension_setting(res = nil, &blk)
686
- require "google/ads/google_ads/v2/services/ad_group_extension_setting_service_pb.rb"
687
- op = Google::Ads::GoogleAds::V2::Services::AdGroupExtensionSettingOperation.new
688
- if !res.nil?
689
- op["create"] = res
684
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] instance that will create the resource
685
+ def self.campaign_budget(res = nil, &blk)
686
+ require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
687
+ op = Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
688
+ if !res.nil?
689
+ op["create"] = res
690
690
  elsif !blk.nil?
691
- op["create"] = Factories::V2::Resources.ad_group_extension_setting(&blk)
691
+ op["create"] = Factories::V2::Resources.campaign_budget(&blk)
692
692
  end
693
693
 
694
694
  op
695
695
  end
696
696
 
697
- # A convenience method for creating an AdGroupFeedOperation instance with
698
- # its "create" field prepopulated with an AdGroupFeed instance.
697
+ # A convenience method for creating an AdGroupBidModifierOperation instance with
698
+ # its "create" field prepopulated with an AdGroupBidModifier instance.
699
699
  #
700
- # @overload ad_group_feed
701
- # creates an operation instance, yielding a newly fabricated AdGroupFeed
700
+ # @overload ad_group_bid_modifier
701
+ # creates an operation instance, yielding a newly fabricated AdGroupBidModifier
702
702
  # which can be used for setting attributes on the newly created resource
703
- # @overload ad_group_feed(res)
703
+ # @overload ad_group_bid_modifier(res)
704
704
  # creates an operation instance, with the resource to be created
705
705
  # set to the passed value (res)
706
- # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupFeed]
706
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier]
707
707
  # a resource instance to be used for creation in this operation.
708
708
  #
709
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation] instance that will create the resource
710
- def self.ad_group_feed(res = nil, &blk)
711
- require "google/ads/google_ads/v2/services/ad_group_feed_service_pb.rb"
712
- op = Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation.new
709
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] instance that will create the resource
710
+ def self.ad_group_bid_modifier(res = nil, &blk)
711
+ require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
712
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
713
713
  if !res.nil?
714
714
  op["create"] = res
715
715
  elsif !blk.nil?
716
- op["create"] = Factories::V2::Resources.ad_group_feed(&blk)
716
+ op["create"] = Factories::V2::Resources.ad_group_bid_modifier(&blk)
717
717
  end
718
718
 
719
719
  op
720
720
  end
721
721
 
722
- # A convenience method for creating an AdGroupLabelOperation instance with
723
- # its "create" field prepopulated with an AdGroupLabel instance.
722
+ # A convenience method for creating an CampaignLabelOperation instance with
723
+ # its "create" field prepopulated with an CampaignLabel instance.
724
724
  #
725
- # @overload ad_group_label
726
- # creates an operation instance, yielding a newly fabricated AdGroupLabel
725
+ # @overload campaign_label
726
+ # creates an operation instance, yielding a newly fabricated CampaignLabel
727
727
  # which can be used for setting attributes on the newly created resource
728
- # @overload ad_group_label(res)
728
+ # @overload campaign_label(res)
729
729
  # creates an operation instance, with the resource to be created
730
730
  # set to the passed value (res)
731
- # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupLabel]
731
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignLabel]
732
732
  # a resource instance to be used for creation in this operation.
733
733
  #
734
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation] instance that will create the resource
735
- def self.ad_group_label(res = nil, &blk)
736
- require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
737
- op = Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
734
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation] instance that will create the resource
735
+ def self.campaign_label(res = nil, &blk)
736
+ require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
737
+ op = Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
738
738
  if !res.nil?
739
739
  op["create"] = res
740
740
  elsif !blk.nil?
741
- op["create"] = Factories::V2::Resources.ad_group_label(&blk)
741
+ op["create"] = Factories::V2::Resources.campaign_label(&blk)
742
742
  end
743
743
 
744
744
  op
745
745
  end
746
746
 
747
- # A convenience method for creating an AdGroupOperation instance with
748
- # its "create" field prepopulated with an AdGroup instance.
747
+ # A convenience method for creating an SharedCriterionOperation instance with
748
+ # its "create" field prepopulated with an SharedCriterion instance.
749
749
  #
750
- # @overload ad_group
751
- # creates an operation instance, yielding a newly fabricated AdGroup
750
+ # @overload shared_criterion
751
+ # creates an operation instance, yielding a newly fabricated SharedCriterion
752
752
  # which can be used for setting attributes on the newly created resource
753
- # @overload ad_group(res)
753
+ # @overload shared_criterion(res)
754
754
  # creates an operation instance, with the resource to be created
755
755
  # set to the passed value (res)
756
- # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroup]
756
+ # @param res [Google::Ads::GoogleAds::V2::Resources::SharedCriterion]
757
757
  # a resource instance to be used for creation in this operation.
758
758
  #
759
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupOperation] instance that will create the resource
760
- def self.ad_group(res = nil, &blk)
761
- require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
762
- op = Google::Ads::GoogleAds::V2::Services::AdGroupOperation.new
759
+ # @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] instance that will create the resource
760
+ def self.shared_criterion(res = nil, &blk)
761
+ require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
762
+ op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
763
763
  if !res.nil?
764
764
  op["create"] = res
765
765
  elsif !blk.nil?
766
- op["create"] = Factories::V2::Resources.ad_group(&blk)
766
+ op["create"] = Factories::V2::Resources.shared_criterion(&blk)
767
767
  end
768
768
 
769
769
  op
770
770
  end
771
771
 
772
- # A convenience method for creating an AdParameterOperation instance with
773
- # its "create" field prepopulated with an AdParameter instance.
772
+ # A convenience method for creating an KeywordPlanAdGroupOperation instance with
773
+ # its "create" field prepopulated with an KeywordPlanAdGroup instance.
774
774
  #
775
- # @overload ad_parameter
776
- # creates an operation instance, yielding a newly fabricated AdParameter
775
+ # @overload keyword_plan_ad_group
776
+ # creates an operation instance, yielding a newly fabricated KeywordPlanAdGroup
777
777
  # which can be used for setting attributes on the newly created resource
778
- # @overload ad_parameter(res)
778
+ # @overload keyword_plan_ad_group(res)
779
779
  # creates an operation instance, with the resource to be created
780
780
  # set to the passed value (res)
781
- # @param res [Google::Ads::GoogleAds::V2::Resources::AdParameter]
781
+ # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup]
782
782
  # a resource instance to be used for creation in this operation.
783
783
  #
784
- # @return [Google::Ads::GoogleAds::V2::Services::AdParameterOperation] instance that will create the resource
785
- def self.ad_parameter(res = nil, &blk)
786
- require "google/ads/google_ads/v2/services/ad_parameter_service_pb.rb"
787
- op = Google::Ads::GoogleAds::V2::Services::AdParameterOperation.new
784
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] instance that will create the resource
785
+ def self.keyword_plan_ad_group(res = nil, &blk)
786
+ require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
787
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
788
788
  if !res.nil?
789
789
  op["create"] = res
790
790
  elsif !blk.nil?
791
- op["create"] = Factories::V2::Resources.ad_parameter(&blk)
791
+ op["create"] = Factories::V2::Resources.keyword_plan_ad_group(&blk)
792
792
  end
793
793
 
794
794
  op
795
795
  end
796
796
 
797
- # A convenience method for creating an AssetOperation instance with
798
- # its "create" field prepopulated with an Asset instance.
797
+ # A convenience method for creating an CampaignDraftOperation instance with
798
+ # its "create" field prepopulated with an CampaignDraft instance.
799
799
  #
800
- # @overload asset
801
- # creates an operation instance, yielding a newly fabricated Asset
800
+ # @overload campaign_draft
801
+ # creates an operation instance, yielding a newly fabricated CampaignDraft
802
802
  # which can be used for setting attributes on the newly created resource
803
- # @overload asset(res)
803
+ # @overload campaign_draft(res)
804
804
  # creates an operation instance, with the resource to be created
805
805
  # set to the passed value (res)
806
- # @param res [Google::Ads::GoogleAds::V2::Resources::Asset]
806
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignDraft]
807
807
  # a resource instance to be used for creation in this operation.
808
808
  #
809
- # @return [Google::Ads::GoogleAds::V2::Services::AssetOperation] instance that will create the resource
810
- def self.asset(res = nil, &blk)
811
- require "google/ads/google_ads/v2/services/asset_service_pb.rb"
812
- op = Google::Ads::GoogleAds::V2::Services::AssetOperation.new
809
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] instance that will create the resource
810
+ def self.campaign_draft(res = nil, &blk)
811
+ require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
812
+ op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
813
813
  if !res.nil?
814
814
  op["create"] = res
815
815
  elsif !blk.nil?
816
- op["create"] = Factories::V2::Resources.asset(&blk)
816
+ op["create"] = Factories::V2::Resources.campaign_draft(&blk)
817
817
  end
818
818
 
819
819
  op
820
820
  end
821
821
 
822
- # A convenience method for creating an BiddingStrategyOperation instance with
823
- # its "create" field prepopulated with an BiddingStrategy instance.
822
+ # A convenience method for creating an CampaignFeedOperation instance with
823
+ # its "create" field prepopulated with an CampaignFeed instance.
824
824
  #
825
- # @overload bidding_strategy
826
- # creates an operation instance, yielding a newly fabricated BiddingStrategy
825
+ # @overload campaign_feed
826
+ # creates an operation instance, yielding a newly fabricated CampaignFeed
827
827
  # which can be used for setting attributes on the newly created resource
828
- # @overload bidding_strategy(res)
828
+ # @overload campaign_feed(res)
829
829
  # creates an operation instance, with the resource to be created
830
830
  # set to the passed value (res)
831
- # @param res [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy]
831
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignFeed]
832
832
  # a resource instance to be used for creation in this operation.
833
833
  #
834
- # @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] instance that will create the resource
835
- def self.bidding_strategy(res = nil, &blk)
836
- require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
837
- op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
834
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] instance that will create the resource
835
+ def self.campaign_feed(res = nil, &blk)
836
+ require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
837
+ op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
838
838
  if !res.nil?
839
839
  op["create"] = res
840
840
  elsif !blk.nil?
841
- op["create"] = Factories::V2::Resources.bidding_strategy(&blk)
841
+ op["create"] = Factories::V2::Resources.campaign_feed(&blk)
842
842
  end
843
843
 
844
844
  op
845
845
  end
846
846
 
847
- # A convenience method for creating an CampaignBidModifierOperation instance with
848
- # its "create" field prepopulated with an CampaignBidModifier instance.
847
+ # A convenience method for creating an AdGroupCriterionOperation instance with
848
+ # its "create" field prepopulated with an AdGroupCriterion instance.
849
849
  #
850
- # @overload campaign_bid_modifier
851
- # creates an operation instance, yielding a newly fabricated CampaignBidModifier
850
+ # @overload ad_group_criterion
851
+ # creates an operation instance, yielding a newly fabricated AdGroupCriterion
852
852
  # which can be used for setting attributes on the newly created resource
853
- # @overload campaign_bid_modifier(res)
853
+ # @overload ad_group_criterion(res)
854
854
  # creates an operation instance, with the resource to be created
855
855
  # set to the passed value (res)
856
- # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier]
856
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion]
857
857
  # a resource instance to be used for creation in this operation.
858
858
  #
859
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation] instance that will create the resource
860
- def self.campaign_bid_modifier(res = nil, &blk)
861
- require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
862
- op = Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
859
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation] instance that will create the resource
860
+ def self.ad_group_criterion(res = nil, &blk)
861
+ require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
862
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
863
863
  if !res.nil?
864
864
  op["create"] = res
865
865
  elsif !blk.nil?
866
- op["create"] = Factories::V2::Resources.campaign_bid_modifier(&blk)
866
+ op["create"] = Factories::V2::Resources.ad_group_criterion(&blk)
867
867
  end
868
868
 
869
869
  op
870
870
  end
871
871
 
872
- # A convenience method for creating an CampaignBudgetOperation instance with
873
- # its "create" field prepopulated with an CampaignBudget instance.
872
+ # A convenience method for creating an AdGroupAdLabelOperation instance with
873
+ # its "create" field prepopulated with an AdGroupAdLabel instance.
874
874
  #
875
- # @overload campaign_budget
876
- # creates an operation instance, yielding a newly fabricated CampaignBudget
875
+ # @overload ad_group_ad_label
876
+ # creates an operation instance, yielding a newly fabricated AdGroupAdLabel
877
877
  # which can be used for setting attributes on the newly created resource
878
- # @overload campaign_budget(res)
878
+ # @overload ad_group_ad_label(res)
879
879
  # creates an operation instance, with the resource to be created
880
880
  # set to the passed value (res)
881
- # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignBudget]
881
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupAdLabel]
882
882
  # a resource instance to be used for creation in this operation.
883
883
  #
884
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] instance that will create the resource
885
- def self.campaign_budget(res = nil, &blk)
886
- require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
887
- op = Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
884
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] instance that will create the resource
885
+ def self.ad_group_ad_label(res = nil, &blk)
886
+ require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
887
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
888
888
  if !res.nil?
889
889
  op["create"] = res
890
890
  elsif !blk.nil?
891
- op["create"] = Factories::V2::Resources.campaign_budget(&blk)
891
+ op["create"] = Factories::V2::Resources.ad_group_ad_label(&blk)
892
892
  end
893
893
 
894
894
  op
895
895
  end
896
896
 
897
- # A convenience method for creating an CampaignCriterionOperation instance with
898
- # its "create" field prepopulated with an CampaignCriterion instance.
897
+ # A convenience method for creating an AdGroupAdOperation instance with
898
+ # its "create" field prepopulated with an AdGroupAd instance.
899
899
  #
900
- # @overload campaign_criterion
901
- # creates an operation instance, yielding a newly fabricated CampaignCriterion
900
+ # @overload ad_group_ad
901
+ # creates an operation instance, yielding a newly fabricated AdGroupAd
902
902
  # which can be used for setting attributes on the newly created resource
903
- # @overload campaign_criterion(res)
903
+ # @overload ad_group_ad(res)
904
904
  # creates an operation instance, with the resource to be created
905
905
  # set to the passed value (res)
906
- # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignCriterion]
906
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupAd]
907
907
  # a resource instance to be used for creation in this operation.
908
908
  #
909
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation] instance that will create the resource
910
- def self.campaign_criterion(res = nil, &blk)
911
- require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
912
- op = Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
909
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] instance that will create the resource
910
+ def self.ad_group_ad(res = nil, &blk)
911
+ require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
912
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
913
913
  if !res.nil?
914
914
  op["create"] = res
915
915
  elsif !blk.nil?
916
- op["create"] = Factories::V2::Resources.campaign_criterion(&blk)
916
+ op["create"] = Factories::V2::Resources.ad_group_ad(&blk)
917
917
  end
918
918
 
919
919
  op
920
920
  end
921
921
 
922
- # A convenience method for creating an CampaignDraftOperation instance with
923
- # its "create" field prepopulated with an CampaignDraft instance.
922
+ # A convenience method for creating an AdGroupExtensionSettingOperation instance with
923
+ # its "create" field prepopulated with an AdGroupExtensionSetting instance.
924
924
  #
925
- # @overload campaign_draft
926
- # creates an operation instance, yielding a newly fabricated CampaignDraft
925
+ # @overload ad_group_extension_setting
926
+ # creates an operation instance, yielding a newly fabricated AdGroupExtensionSetting
927
927
  # which can be used for setting attributes on the newly created resource
928
- # @overload campaign_draft(res)
928
+ # @overload ad_group_extension_setting(res)
929
929
  # creates an operation instance, with the resource to be created
930
930
  # set to the passed value (res)
931
- # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignDraft]
931
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupExtensionSetting]
932
932
  # a resource instance to be used for creation in this operation.
933
933
  #
934
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] instance that will create the resource
935
- def self.campaign_draft(res = nil, &blk)
936
- require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
937
- op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
934
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupExtensionSettingOperation] instance that will create the resource
935
+ def self.ad_group_extension_setting(res = nil, &blk)
936
+ require "google/ads/google_ads/v2/services/ad_group_extension_setting_service_pb.rb"
937
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupExtensionSettingOperation.new
938
938
  if !res.nil?
939
939
  op["create"] = res
940
940
  elsif !blk.nil?
941
- op["create"] = Factories::V2::Resources.campaign_draft(&blk)
941
+ op["create"] = Factories::V2::Resources.ad_group_extension_setting(&blk)
942
942
  end
943
943
 
944
944
  op
945
945
  end
946
946
 
947
- # A convenience method for creating an CampaignExtensionSettingOperation instance with
948
- # its "create" field prepopulated with an CampaignExtensionSetting instance.
947
+ # A convenience method for creating an AdGroupFeedOperation instance with
948
+ # its "create" field prepopulated with an AdGroupFeed instance.
949
949
  #
950
- # @overload campaign_extension_setting
951
- # creates an operation instance, yielding a newly fabricated CampaignExtensionSetting
950
+ # @overload ad_group_feed
951
+ # creates an operation instance, yielding a newly fabricated AdGroupFeed
952
952
  # which can be used for setting attributes on the newly created resource
953
- # @overload campaign_extension_setting(res)
953
+ # @overload ad_group_feed(res)
954
954
  # creates an operation instance, with the resource to be created
955
955
  # set to the passed value (res)
956
- # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignExtensionSetting]
956
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupFeed]
957
957
  # a resource instance to be used for creation in this operation.
958
958
  #
959
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation] instance that will create the resource
960
- def self.campaign_extension_setting(res = nil, &blk)
961
- require "google/ads/google_ads/v2/services/campaign_extension_setting_service_pb.rb"
962
- op = Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation.new
959
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation] instance that will create the resource
960
+ def self.ad_group_feed(res = nil, &blk)
961
+ require "google/ads/google_ads/v2/services/ad_group_feed_service_pb.rb"
962
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation.new
963
963
  if !res.nil?
964
964
  op["create"] = res
965
965
  elsif !blk.nil?
966
- op["create"] = Factories::V2::Resources.campaign_extension_setting(&blk)
966
+ op["create"] = Factories::V2::Resources.ad_group_feed(&blk)
967
967
  end
968
968
 
969
969
  op
970
970
  end
971
971
 
972
- # A convenience method for creating an CampaignFeedOperation instance with
973
- # its "create" field prepopulated with an CampaignFeed instance.
972
+ # A convenience method for creating an AdGroupLabelOperation instance with
973
+ # its "create" field prepopulated with an AdGroupLabel instance.
974
974
  #
975
- # @overload campaign_feed
976
- # creates an operation instance, yielding a newly fabricated CampaignFeed
975
+ # @overload ad_group_label
976
+ # creates an operation instance, yielding a newly fabricated AdGroupLabel
977
977
  # which can be used for setting attributes on the newly created resource
978
- # @overload campaign_feed(res)
978
+ # @overload ad_group_label(res)
979
979
  # creates an operation instance, with the resource to be created
980
980
  # set to the passed value (res)
981
- # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignFeed]
981
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupLabel]
982
982
  # a resource instance to be used for creation in this operation.
983
983
  #
984
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] instance that will create the resource
985
- def self.campaign_feed(res = nil, &blk)
986
- require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
987
- op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
984
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation] instance that will create the resource
985
+ def self.ad_group_label(res = nil, &blk)
986
+ require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
987
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
988
988
  if !res.nil?
989
989
  op["create"] = res
990
990
  elsif !blk.nil?
991
- op["create"] = Factories::V2::Resources.campaign_feed(&blk)
991
+ op["create"] = Factories::V2::Resources.ad_group_label(&blk)
992
992
  end
993
993
 
994
994
  op
995
995
  end
996
996
 
997
- # A convenience method for creating an CampaignLabelOperation instance with
998
- # its "create" field prepopulated with an CampaignLabel instance.
997
+ # A convenience method for creating an AdGroupOperation instance with
998
+ # its "create" field prepopulated with an AdGroup instance.
999
999
  #
1000
- # @overload campaign_label
1001
- # creates an operation instance, yielding a newly fabricated CampaignLabel
1000
+ # @overload ad_group
1001
+ # creates an operation instance, yielding a newly fabricated AdGroup
1002
1002
  # which can be used for setting attributes on the newly created resource
1003
- # @overload campaign_label(res)
1003
+ # @overload ad_group(res)
1004
1004
  # creates an operation instance, with the resource to be created
1005
1005
  # set to the passed value (res)
1006
- # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignLabel]
1006
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroup]
1007
1007
  # a resource instance to be used for creation in this operation.
1008
1008
  #
1009
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation] instance that will create the resource
1010
- def self.campaign_label(res = nil, &blk)
1011
- require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
1012
- op = Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
1009
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupOperation] instance that will create the resource
1010
+ def self.ad_group(res = nil, &blk)
1011
+ require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
1012
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupOperation.new
1013
1013
  if !res.nil?
1014
1014
  op["create"] = res
1015
1015
  elsif !blk.nil?
1016
- op["create"] = Factories::V2::Resources.campaign_label(&blk)
1016
+ op["create"] = Factories::V2::Resources.ad_group(&blk)
1017
+ end
1018
+
1019
+ op
1020
+ end
1021
+
1022
+ # A convenience method for creating an AdParameterOperation instance with
1023
+ # its "create" field prepopulated with an AdParameter instance.
1024
+ #
1025
+ # @overload ad_parameter
1026
+ # creates an operation instance, yielding a newly fabricated AdParameter
1027
+ # which can be used for setting attributes on the newly created resource
1028
+ # @overload ad_parameter(res)
1029
+ # creates an operation instance, with the resource to be created
1030
+ # set to the passed value (res)
1031
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdParameter]
1032
+ # a resource instance to be used for creation in this operation.
1033
+ #
1034
+ # @return [Google::Ads::GoogleAds::V2::Services::AdParameterOperation] instance that will create the resource
1035
+ def self.ad_parameter(res = nil, &blk)
1036
+ require "google/ads/google_ads/v2/services/ad_parameter_service_pb.rb"
1037
+ op = Google::Ads::GoogleAds::V2::Services::AdParameterOperation.new
1038
+ if !res.nil?
1039
+ op["create"] = res
1040
+ elsif !blk.nil?
1041
+ op["create"] = Factories::V2::Resources.ad_parameter(&blk)
1042
+ end
1043
+
1044
+ op
1045
+ end
1046
+
1047
+ # A convenience method for creating an AssetOperation instance with
1048
+ # its "create" field prepopulated with an Asset instance.
1049
+ #
1050
+ # @overload asset
1051
+ # creates an operation instance, yielding a newly fabricated Asset
1052
+ # which can be used for setting attributes on the newly created resource
1053
+ # @overload asset(res)
1054
+ # creates an operation instance, with the resource to be created
1055
+ # set to the passed value (res)
1056
+ # @param res [Google::Ads::GoogleAds::V2::Resources::Asset]
1057
+ # a resource instance to be used for creation in this operation.
1058
+ #
1059
+ # @return [Google::Ads::GoogleAds::V2::Services::AssetOperation] instance that will create the resource
1060
+ def self.asset(res = nil, &blk)
1061
+ require "google/ads/google_ads/v2/services/asset_service_pb.rb"
1062
+ op = Google::Ads::GoogleAds::V2::Services::AssetOperation.new
1063
+ if !res.nil?
1064
+ op["create"] = res
1065
+ elsif !blk.nil?
1066
+ op["create"] = Factories::V2::Resources.asset(&blk)
1067
+ end
1068
+
1069
+ op
1070
+ end
1071
+
1072
+ # A convenience method for creating an CampaignBidModifierOperation instance with
1073
+ # its "create" field prepopulated with an CampaignBidModifier instance.
1074
+ #
1075
+ # @overload campaign_bid_modifier
1076
+ # creates an operation instance, yielding a newly fabricated CampaignBidModifier
1077
+ # which can be used for setting attributes on the newly created resource
1078
+ # @overload campaign_bid_modifier(res)
1079
+ # creates an operation instance, with the resource to be created
1080
+ # set to the passed value (res)
1081
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier]
1082
+ # a resource instance to be used for creation in this operation.
1083
+ #
1084
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation] instance that will create the resource
1085
+ def self.campaign_bid_modifier(res = nil, &blk)
1086
+ require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
1087
+ op = Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
1088
+ if !res.nil?
1089
+ op["create"] = res
1090
+ elsif !blk.nil?
1091
+ op["create"] = Factories::V2::Resources.campaign_bid_modifier(&blk)
1092
+ end
1093
+
1094
+ op
1095
+ end
1096
+
1097
+ # A convenience method for creating an CampaignCriterionOperation instance with
1098
+ # its "create" field prepopulated with an CampaignCriterion instance.
1099
+ #
1100
+ # @overload campaign_criterion
1101
+ # creates an operation instance, yielding a newly fabricated CampaignCriterion
1102
+ # which can be used for setting attributes on the newly created resource
1103
+ # @overload campaign_criterion(res)
1104
+ # creates an operation instance, with the resource to be created
1105
+ # set to the passed value (res)
1106
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignCriterion]
1107
+ # a resource instance to be used for creation in this operation.
1108
+ #
1109
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation] instance that will create the resource
1110
+ def self.campaign_criterion(res = nil, &blk)
1111
+ require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
1112
+ op = Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
1113
+ if !res.nil?
1114
+ op["create"] = res
1115
+ elsif !blk.nil?
1116
+ op["create"] = Factories::V2::Resources.campaign_criterion(&blk)
1117
+ end
1118
+
1119
+ op
1120
+ end
1121
+
1122
+ # A convenience method for creating an CampaignExtensionSettingOperation instance with
1123
+ # its "create" field prepopulated with an CampaignExtensionSetting instance.
1124
+ #
1125
+ # @overload campaign_extension_setting
1126
+ # creates an operation instance, yielding a newly fabricated CampaignExtensionSetting
1127
+ # which can be used for setting attributes on the newly created resource
1128
+ # @overload campaign_extension_setting(res)
1129
+ # creates an operation instance, with the resource to be created
1130
+ # set to the passed value (res)
1131
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignExtensionSetting]
1132
+ # a resource instance to be used for creation in this operation.
1133
+ #
1134
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation] instance that will create the resource
1135
+ def self.campaign_extension_setting(res = nil, &blk)
1136
+ require "google/ads/google_ads/v2/services/campaign_extension_setting_service_pb.rb"
1137
+ op = Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation.new
1138
+ if !res.nil?
1139
+ op["create"] = res
1140
+ elsif !blk.nil?
1141
+ op["create"] = Factories::V2::Resources.campaign_extension_setting(&blk)
1017
1142
  end
1018
1143
 
1019
1144
  op
@@ -1069,31 +1194,6 @@ module Google
1069
1194
  op
1070
1195
  end
1071
1196
 
1072
- # A convenience method for creating an ConversionActionOperation instance with
1073
- # its "create" field prepopulated with an ConversionAction instance.
1074
- #
1075
- # @overload conversion_action
1076
- # creates an operation instance, yielding a newly fabricated ConversionAction
1077
- # which can be used for setting attributes on the newly created resource
1078
- # @overload conversion_action(res)
1079
- # creates an operation instance, with the resource to be created
1080
- # set to the passed value (res)
1081
- # @param res [Google::Ads::GoogleAds::V2::Resources::ConversionAction]
1082
- # a resource instance to be used for creation in this operation.
1083
- #
1084
- # @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] instance that will create the resource
1085
- def self.conversion_action(res = nil, &blk)
1086
- require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
1087
- op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
1088
- if !res.nil?
1089
- op["create"] = res
1090
- elsif !blk.nil?
1091
- op["create"] = Factories::V2::Resources.conversion_action(&blk)
1092
- end
1093
-
1094
- op
1095
- end
1096
-
1097
1197
  # A convenience method for creating an CustomerExtensionSettingOperation instance with
1098
1198
  # its "create" field prepopulated with an CustomerExtensionSetting instance.
1099
1199
  #
@@ -1219,31 +1319,6 @@ module Google
1219
1319
  op
1220
1320
  end
1221
1321
 
1222
- # A convenience method for creating an FeedItemOperation instance with
1223
- # its "create" field prepopulated with an FeedItem instance.
1224
- #
1225
- # @overload feed_item
1226
- # creates an operation instance, yielding a newly fabricated FeedItem
1227
- # which can be used for setting attributes on the newly created resource
1228
- # @overload feed_item(res)
1229
- # creates an operation instance, with the resource to be created
1230
- # set to the passed value (res)
1231
- # @param res [Google::Ads::GoogleAds::V2::Resources::FeedItem]
1232
- # a resource instance to be used for creation in this operation.
1233
- #
1234
- # @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] instance that will create the resource
1235
- def self.feed_item(res = nil, &blk)
1236
- require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
1237
- op = Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
1238
- if !res.nil?
1239
- op["create"] = res
1240
- elsif !blk.nil?
1241
- op["create"] = Factories::V2::Resources.feed_item(&blk)
1242
- end
1243
-
1244
- op
1245
- end
1246
-
1247
1322
  # A convenience method for creating an FeedItemTargetOperation instance with
1248
1323
  # its "create" field prepopulated with an FeedItemTarget instance.
1249
1324
  #
@@ -1269,97 +1344,47 @@ module Google
1269
1344
  op
1270
1345
  end
1271
1346
 
1272
- # A convenience method for creating an FeedMappingOperation instance with
1273
- # its "create" field prepopulated with an FeedMapping instance.
1347
+ # A convenience method for creating an LabelOperation instance with
1348
+ # its "create" field prepopulated with an Label instance.
1274
1349
  #
1275
- # @overload feed_mapping
1276
- # creates an operation instance, yielding a newly fabricated FeedMapping
1350
+ # @overload label
1351
+ # creates an operation instance, yielding a newly fabricated Label
1277
1352
  # which can be used for setting attributes on the newly created resource
1278
- # @overload feed_mapping(res)
1353
+ # @overload label(res)
1279
1354
  # creates an operation instance, with the resource to be created
1280
1355
  # set to the passed value (res)
1281
- # @param res [Google::Ads::GoogleAds::V2::Resources::FeedMapping]
1356
+ # @param res [Google::Ads::GoogleAds::V2::Resources::Label]
1282
1357
  # a resource instance to be used for creation in this operation.
1283
1358
  #
1284
- # @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] instance that will create the resource
1285
- def self.feed_mapping(res = nil, &blk)
1286
- require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
1287
- op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
1359
+ # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] instance that will create the resource
1360
+ def self.label(res = nil, &blk)
1361
+ require "google/ads/google_ads/v2/services/label_service_pb.rb"
1362
+ op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
1288
1363
  if !res.nil?
1289
1364
  op["create"] = res
1290
1365
  elsif !blk.nil?
1291
- op["create"] = Factories::V2::Resources.feed_mapping(&blk)
1366
+ op["create"] = Factories::V2::Resources.label(&blk)
1292
1367
  end
1293
1368
 
1294
1369
  op
1295
1370
  end
1296
1371
 
1297
- # A convenience method for creating an FeedOperation instance with
1298
- # its "create" field prepopulated with an Feed instance.
1372
+ # A convenience method for creating an MediaFileOperation instance with
1373
+ # its "create" field prepopulated with an MediaFile instance.
1299
1374
  #
1300
- # @overload feed
1301
- # creates an operation instance, yielding a newly fabricated Feed
1375
+ # @overload media_file
1376
+ # creates an operation instance, yielding a newly fabricated MediaFile
1302
1377
  # which can be used for setting attributes on the newly created resource
1303
- # @overload feed(res)
1378
+ # @overload media_file(res)
1304
1379
  # creates an operation instance, with the resource to be created
1305
1380
  # set to the passed value (res)
1306
- # @param res [Google::Ads::GoogleAds::V2::Resources::Feed]
1381
+ # @param res [Google::Ads::GoogleAds::V2::Resources::MediaFile]
1307
1382
  # a resource instance to be used for creation in this operation.
1308
1383
  #
1309
- # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] instance that will create the resource
1310
- def self.feed(res = nil, &blk)
1311
- require "google/ads/google_ads/v2/services/feed_service_pb.rb"
1312
- op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
1313
- if !res.nil?
1314
- op["create"] = res
1315
- elsif !blk.nil?
1316
- op["create"] = Factories::V2::Resources.feed(&blk)
1317
- end
1318
-
1319
- op
1320
- end
1321
-
1322
- # A convenience method for creating an LabelOperation instance with
1323
- # its "create" field prepopulated with an Label instance.
1324
- #
1325
- # @overload label
1326
- # creates an operation instance, yielding a newly fabricated Label
1327
- # which can be used for setting attributes on the newly created resource
1328
- # @overload label(res)
1329
- # creates an operation instance, with the resource to be created
1330
- # set to the passed value (res)
1331
- # @param res [Google::Ads::GoogleAds::V2::Resources::Label]
1332
- # a resource instance to be used for creation in this operation.
1333
- #
1334
- # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] instance that will create the resource
1335
- def self.label(res = nil, &blk)
1336
- require "google/ads/google_ads/v2/services/label_service_pb.rb"
1337
- op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
1338
- if !res.nil?
1339
- op["create"] = res
1340
- elsif !blk.nil?
1341
- op["create"] = Factories::V2::Resources.label(&blk)
1342
- end
1343
-
1344
- op
1345
- end
1346
-
1347
- # A convenience method for creating an MediaFileOperation instance with
1348
- # its "create" field prepopulated with an MediaFile instance.
1349
- #
1350
- # @overload media_file
1351
- # creates an operation instance, yielding a newly fabricated MediaFile
1352
- # which can be used for setting attributes on the newly created resource
1353
- # @overload media_file(res)
1354
- # creates an operation instance, with the resource to be created
1355
- # set to the passed value (res)
1356
- # @param res [Google::Ads::GoogleAds::V2::Resources::MediaFile]
1357
- # a resource instance to be used for creation in this operation.
1358
- #
1359
- # @return [Google::Ads::GoogleAds::V2::Services::MediaFileOperation] instance that will create the resource
1360
- def self.media_file(res = nil, &blk)
1361
- require "google/ads/google_ads/v2/services/media_file_service_pb.rb"
1362
- op = Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
1384
+ # @return [Google::Ads::GoogleAds::V2::Services::MediaFileOperation] instance that will create the resource
1385
+ def self.media_file(res = nil, &blk)
1386
+ require "google/ads/google_ads/v2/services/media_file_service_pb.rb"
1387
+ op = Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
1363
1388
  if !res.nil?
1364
1389
  op["create"] = res
1365
1390
  elsif !blk.nil?
@@ -1369,26 +1394,26 @@ module Google
1369
1394
  op
1370
1395
  end
1371
1396
 
1372
- # A convenience method for creating an SharedCriterionOperation instance with
1373
- # its "create" field prepopulated with an SharedCriterion instance.
1397
+ # A convenience method for creating an RemarketingActionOperation instance with
1398
+ # its "create" field prepopulated with an RemarketingAction instance.
1374
1399
  #
1375
- # @overload shared_criterion
1376
- # creates an operation instance, yielding a newly fabricated SharedCriterion
1400
+ # @overload remarketing_action
1401
+ # creates an operation instance, yielding a newly fabricated RemarketingAction
1377
1402
  # which can be used for setting attributes on the newly created resource
1378
- # @overload shared_criterion(res)
1403
+ # @overload remarketing_action(res)
1379
1404
  # creates an operation instance, with the resource to be created
1380
1405
  # set to the passed value (res)
1381
- # @param res [Google::Ads::GoogleAds::V2::Resources::SharedCriterion]
1406
+ # @param res [Google::Ads::GoogleAds::V2::Resources::RemarketingAction]
1382
1407
  # a resource instance to be used for creation in this operation.
1383
1408
  #
1384
- # @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] instance that will create the resource
1385
- def self.shared_criterion(res = nil, &blk)
1386
- require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
1387
- op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
1409
+ # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] instance that will create the resource
1410
+ def self.remarketing_action(res = nil, &blk)
1411
+ require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
1412
+ op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
1388
1413
  if !res.nil?
1389
1414
  op["create"] = res
1390
1415
  elsif !blk.nil?
1391
- op["create"] = Factories::V2::Resources.shared_criterion(&blk)
1416
+ op["create"] = Factories::V2::Resources.remarketing_action(&blk)
1392
1417
  end
1393
1418
 
1394
1419
  op
@@ -1444,51 +1469,51 @@ module Google
1444
1469
  op
1445
1470
  end
1446
1471
 
1447
- # A convenience method for creating an KeywordPlanKeywordOperation instance with
1448
- # its "create" field prepopulated with an KeywordPlanKeyword instance.
1472
+ # A convenience method for creating an KeywordPlanCampaignOperation instance with
1473
+ # its "create" field prepopulated with an KeywordPlanCampaign instance.
1449
1474
  #
1450
- # @overload keyword_plan_keyword
1451
- # creates an operation instance, yielding a newly fabricated KeywordPlanKeyword
1475
+ # @overload keyword_plan_campaign
1476
+ # creates an operation instance, yielding a newly fabricated KeywordPlanCampaign
1452
1477
  # which can be used for setting attributes on the newly created resource
1453
- # @overload keyword_plan_keyword(res)
1478
+ # @overload keyword_plan_campaign(res)
1454
1479
  # creates an operation instance, with the resource to be created
1455
1480
  # set to the passed value (res)
1456
- # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword]
1481
+ # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign]
1457
1482
  # a resource instance to be used for creation in this operation.
1458
1483
  #
1459
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] instance that will create the resource
1460
- def self.keyword_plan_keyword(res = nil, &blk)
1461
- require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
1462
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
1484
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] instance that will create the resource
1485
+ def self.keyword_plan_campaign(res = nil, &blk)
1486
+ require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
1487
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
1463
1488
  if !res.nil?
1464
1489
  op["create"] = res
1465
1490
  elsif !blk.nil?
1466
- op["create"] = Factories::V2::Resources.keyword_plan_keyword(&blk)
1491
+ op["create"] = Factories::V2::Resources.keyword_plan_campaign(&blk)
1467
1492
  end
1468
1493
 
1469
1494
  op
1470
1495
  end
1471
1496
 
1472
- # A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with
1473
- # its "create" field prepopulated with an KeywordPlanNegativeKeyword instance.
1497
+ # A convenience method for creating an BillingSetupOperation instance with
1498
+ # its "create" field prepopulated with an BillingSetup instance.
1474
1499
  #
1475
- # @overload keyword_plan_negative_keyword
1476
- # creates an operation instance, yielding a newly fabricated KeywordPlanNegativeKeyword
1500
+ # @overload billing_setup
1501
+ # creates an operation instance, yielding a newly fabricated BillingSetup
1477
1502
  # which can be used for setting attributes on the newly created resource
1478
- # @overload keyword_plan_negative_keyword(res)
1503
+ # @overload billing_setup(res)
1479
1504
  # creates an operation instance, with the resource to be created
1480
1505
  # set to the passed value (res)
1481
- # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword]
1506
+ # @param res [Google::Ads::GoogleAds::V2::Resources::BillingSetup]
1482
1507
  # a resource instance to be used for creation in this operation.
1483
1508
  #
1484
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] instance that will create the resource
1485
- def self.keyword_plan_negative_keyword(res = nil, &blk)
1486
- require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
1487
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
1509
+ # @return [Google::Ads::GoogleAds::V2::Services::BillingSetupOperation] instance that will create the resource
1510
+ def self.billing_setup(res = nil, &blk)
1511
+ require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
1512
+ op = Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
1488
1513
  if !res.nil?
1489
1514
  op["create"] = res
1490
1515
  elsif !blk.nil?
1491
- op["create"] = Factories::V2::Resources.keyword_plan_negative_keyword(&blk)
1516
+ op["create"] = Factories::V2::Resources.billing_setup(&blk)
1492
1517
  end
1493
1518
 
1494
1519
  op
@@ -1519,101 +1544,76 @@ module Google
1519
1544
  op
1520
1545
  end
1521
1546
 
1522
- # A convenience method for creating an AccountBudgetProposalOperation instance with
1523
- # its "create" field prepopulated with an AccountBudgetProposal instance.
1524
- #
1525
- # @overload account_budget_proposal
1526
- # creates an operation instance, yielding a newly fabricated AccountBudgetProposal
1527
- # which can be used for setting attributes on the newly created resource
1528
- # @overload account_budget_proposal(res)
1529
- # creates an operation instance, with the resource to be created
1530
- # set to the passed value (res)
1531
- # @param res [Google::Ads::GoogleAds::V2::Resources::AccountBudgetProposal]
1532
- # a resource instance to be used for creation in this operation.
1533
- #
1534
- # @return [Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation] instance that will create the resource
1535
- def self.account_budget_proposal(res = nil, &blk)
1536
- require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
1537
- op = Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
1538
- if !res.nil?
1539
- op["create"] = res
1540
- elsif !blk.nil?
1541
- op["create"] = Factories::V2::Resources.account_budget_proposal(&blk)
1542
- end
1543
-
1544
- op
1545
- end
1546
-
1547
- # A convenience method for creating an CustomerClientLinkOperation instance with
1548
- # its "create" field prepopulated with an CustomerClientLink instance.
1547
+ # A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with
1548
+ # its "create" field prepopulated with an KeywordPlanNegativeKeyword instance.
1549
1549
  #
1550
- # @overload customer_client_link
1551
- # creates an operation instance, yielding a newly fabricated CustomerClientLink
1550
+ # @overload keyword_plan_negative_keyword
1551
+ # creates an operation instance, yielding a newly fabricated KeywordPlanNegativeKeyword
1552
1552
  # which can be used for setting attributes on the newly created resource
1553
- # @overload customer_client_link(res)
1553
+ # @overload keyword_plan_negative_keyword(res)
1554
1554
  # creates an operation instance, with the resource to be created
1555
1555
  # set to the passed value (res)
1556
- # @param res [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink]
1556
+ # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword]
1557
1557
  # a resource instance to be used for creation in this operation.
1558
1558
  #
1559
- # @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] instance that will create the resource
1560
- def self.customer_client_link(res = nil, &blk)
1561
- require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
1562
- op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
1559
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] instance that will create the resource
1560
+ def self.keyword_plan_negative_keyword(res = nil, &blk)
1561
+ require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
1562
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
1563
1563
  if !res.nil?
1564
1564
  op["create"] = res
1565
1565
  elsif !blk.nil?
1566
- op["create"] = Factories::V2::Resources.customer_client_link(&blk)
1566
+ op["create"] = Factories::V2::Resources.keyword_plan_negative_keyword(&blk)
1567
1567
  end
1568
1568
 
1569
1569
  op
1570
1570
  end
1571
1571
 
1572
- # A convenience method for creating an BillingSetupOperation instance with
1573
- # its "create" field prepopulated with an BillingSetup instance.
1572
+ # A convenience method for creating an CustomInterestOperation instance with
1573
+ # its "create" field prepopulated with an CustomInterest instance.
1574
1574
  #
1575
- # @overload billing_setup
1576
- # creates an operation instance, yielding a newly fabricated BillingSetup
1575
+ # @overload custom_interest
1576
+ # creates an operation instance, yielding a newly fabricated CustomInterest
1577
1577
  # which can be used for setting attributes on the newly created resource
1578
- # @overload billing_setup(res)
1578
+ # @overload custom_interest(res)
1579
1579
  # creates an operation instance, with the resource to be created
1580
1580
  # set to the passed value (res)
1581
- # @param res [Google::Ads::GoogleAds::V2::Resources::BillingSetup]
1581
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CustomInterest]
1582
1582
  # a resource instance to be used for creation in this operation.
1583
1583
  #
1584
- # @return [Google::Ads::GoogleAds::V2::Services::BillingSetupOperation] instance that will create the resource
1585
- def self.billing_setup(res = nil, &blk)
1586
- require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
1587
- op = Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
1584
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] instance that will create the resource
1585
+ def self.custom_interest(res = nil, &blk)
1586
+ require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
1587
+ op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
1588
1588
  if !res.nil?
1589
1589
  op["create"] = res
1590
1590
  elsif !blk.nil?
1591
- op["create"] = Factories::V2::Resources.billing_setup(&blk)
1591
+ op["create"] = Factories::V2::Resources.custom_interest(&blk)
1592
1592
  end
1593
1593
 
1594
1594
  op
1595
1595
  end
1596
1596
 
1597
- # A convenience method for creating an KeywordPlanAdGroupOperation instance with
1598
- # its "create" field prepopulated with an KeywordPlanAdGroup instance.
1597
+ # A convenience method for creating an CustomerClientLinkOperation instance with
1598
+ # its "create" field prepopulated with an CustomerClientLink instance.
1599
1599
  #
1600
- # @overload keyword_plan_ad_group
1601
- # creates an operation instance, yielding a newly fabricated KeywordPlanAdGroup
1600
+ # @overload customer_client_link
1601
+ # creates an operation instance, yielding a newly fabricated CustomerClientLink
1602
1602
  # which can be used for setting attributes on the newly created resource
1603
- # @overload keyword_plan_ad_group(res)
1603
+ # @overload customer_client_link(res)
1604
1604
  # creates an operation instance, with the resource to be created
1605
1605
  # set to the passed value (res)
1606
- # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup]
1606
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink]
1607
1607
  # a resource instance to be used for creation in this operation.
1608
1608
  #
1609
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] instance that will create the resource
1610
- def self.keyword_plan_ad_group(res = nil, &blk)
1611
- require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
1612
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
1609
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] instance that will create the resource
1610
+ def self.customer_client_link(res = nil, &blk)
1611
+ require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
1612
+ op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
1613
1613
  if !res.nil?
1614
1614
  op["create"] = res
1615
1615
  elsif !blk.nil?
1616
- op["create"] = Factories::V2::Resources.keyword_plan_ad_group(&blk)
1616
+ op["create"] = Factories::V2::Resources.customer_client_link(&blk)
1617
1617
  end
1618
1618
 
1619
1619
  op
@@ -1621,31 +1621,31 @@ module Google
1621
1621
  end
1622
1622
 
1623
1623
  module UpdateResource
1624
- # A convenience method for creating an CustomInterestOperation instance with
1625
- # its "update" field prepopulated with an CustomInterest instance, and
1624
+ # A convenience method for creating an KeywordPlanKeywordOperation instance with
1625
+ # its "update" field prepopulated with an KeywordPlanKeyword instance, and
1626
1626
  # its "update_mask" field populated as needed to send the updates to the API.
1627
1627
  #
1628
- # @overload #custom_interest(path, &blk)
1628
+ # @overload #keyword_plan_keyword(path, &blk)
1629
1629
  # @param path [String] a resource path for the resource to update
1630
- # @yield [Google::Ads::GoogleAds::V2::Resources::CustomInterest] a new instance of the resource for this update operation, on
1630
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a new instance of the resource for this update operation, on
1631
1631
  # which fields can be set to update
1632
1632
  #
1633
- # @overload #custom_interest(resource, &blk)
1634
- # @param resource [Google::Ads::GoogleAds::V2::Resources::CustomInterest] a resource instance to update
1633
+ # @overload #keyword_plan_keyword(resource, &blk)
1634
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a resource instance to update
1635
1635
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
1636
- # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation instance to update the resource
1637
- def self.custom_interest(resource_or_path, &blk)
1638
- require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
1636
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation instance to update the resource
1637
+ def self.keyword_plan_keyword(resource_or_path, &blk)
1638
+ require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
1639
1639
  res = case resource_or_path
1640
- when Google::Ads::GoogleAds::V2::Resources::CustomInterest
1640
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword
1641
1641
  resource_or_path
1642
1642
  # got a resource path
1643
1643
  when String
1644
- obj = Google::Ads::GoogleAds::V2::Resources::CustomInterest.new
1644
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword.new
1645
1645
  obj.resource_name = resource_or_path
1646
1646
  obj
1647
1647
  else
1648
- unless Google::Ads::GoogleAds::V2::Resources::CustomInterest === res
1648
+ unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword === res
1649
1649
  raise ArgumentError.new(
1650
1650
  "Called #{__method__} with instance of wrong type:"\
1651
1651
  " #{res.class} want #{operation.update_class}"\
@@ -1654,37 +1654,37 @@ module Google
1654
1654
  end
1655
1655
  end
1656
1656
 
1657
- op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
1657
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
1658
1658
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1659
1659
  op["update"] = res
1660
1660
  op
1661
1661
  end
1662
1662
 
1663
- # A convenience method for creating an RemarketingActionOperation instance with
1664
- # its "update" field prepopulated with an RemarketingAction instance, and
1663
+ # A convenience method for creating an FeedOperation instance with
1664
+ # its "update" field prepopulated with an Feed instance, and
1665
1665
  # its "update_mask" field populated as needed to send the updates to the API.
1666
1666
  #
1667
- # @overload #remarketing_action(path, &blk)
1667
+ # @overload #feed(path, &blk)
1668
1668
  # @param path [String] a resource path for the resource to update
1669
- # @yield [Google::Ads::GoogleAds::V2::Resources::RemarketingAction] a new instance of the resource for this update operation, on
1669
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Feed] a new instance of the resource for this update operation, on
1670
1670
  # which fields can be set to update
1671
1671
  #
1672
- # @overload #remarketing_action(resource, &blk)
1673
- # @param resource [Google::Ads::GoogleAds::V2::Resources::RemarketingAction] a resource instance to update
1672
+ # @overload #feed(resource, &blk)
1673
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::Feed] a resource instance to update
1674
1674
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
1675
- # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation instance to update the resource
1676
- def self.remarketing_action(resource_or_path, &blk)
1677
- require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
1675
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation instance to update the resource
1676
+ def self.feed(resource_or_path, &blk)
1677
+ require "google/ads/google_ads/v2/services/feed_service_pb.rb"
1678
1678
  res = case resource_or_path
1679
- when Google::Ads::GoogleAds::V2::Resources::RemarketingAction
1679
+ when Google::Ads::GoogleAds::V2::Resources::Feed
1680
1680
  resource_or_path
1681
1681
  # got a resource path
1682
1682
  when String
1683
- obj = Google::Ads::GoogleAds::V2::Resources::RemarketingAction.new
1683
+ obj = Google::Ads::GoogleAds::V2::Resources::Feed.new
1684
1684
  obj.resource_name = resource_or_path
1685
1685
  obj
1686
1686
  else
1687
- unless Google::Ads::GoogleAds::V2::Resources::RemarketingAction === res
1687
+ unless Google::Ads::GoogleAds::V2::Resources::Feed === res
1688
1688
  raise ArgumentError.new(
1689
1689
  "Called #{__method__} with instance of wrong type:"\
1690
1690
  " #{res.class} want #{operation.update_class}"\
@@ -1693,37 +1693,37 @@ module Google
1693
1693
  end
1694
1694
  end
1695
1695
 
1696
- op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
1696
+ op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
1697
1697
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1698
1698
  op["update"] = res
1699
1699
  op
1700
1700
  end
1701
1701
 
1702
- # A convenience method for creating an KeywordPlanCampaignOperation instance with
1703
- # its "update" field prepopulated with an KeywordPlanCampaign instance, and
1702
+ # A convenience method for creating an ConversionActionOperation instance with
1703
+ # its "update" field prepopulated with an ConversionAction instance, and
1704
1704
  # its "update_mask" field populated as needed to send the updates to the API.
1705
1705
  #
1706
- # @overload #keyword_plan_campaign(path, &blk)
1706
+ # @overload #conversion_action(path, &blk)
1707
1707
  # @param path [String] a resource path for the resource to update
1708
- # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign] a new instance of the resource for this update operation, on
1708
+ # @yield [Google::Ads::GoogleAds::V2::Resources::ConversionAction] a new instance of the resource for this update operation, on
1709
1709
  # which fields can be set to update
1710
1710
  #
1711
- # @overload #keyword_plan_campaign(resource, &blk)
1712
- # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign] a resource instance to update
1711
+ # @overload #conversion_action(resource, &blk)
1712
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::ConversionAction] a resource instance to update
1713
1713
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
1714
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] the operation instance to update the resource
1715
- def self.keyword_plan_campaign(resource_or_path, &blk)
1716
- require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
1714
+ # @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] the operation instance to update the resource
1715
+ def self.conversion_action(resource_or_path, &blk)
1716
+ require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
1717
1717
  res = case resource_or_path
1718
- when Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign
1718
+ when Google::Ads::GoogleAds::V2::Resources::ConversionAction
1719
1719
  resource_or_path
1720
1720
  # got a resource path
1721
1721
  when String
1722
- obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign.new
1722
+ obj = Google::Ads::GoogleAds::V2::Resources::ConversionAction.new
1723
1723
  obj.resource_name = resource_or_path
1724
1724
  obj
1725
1725
  else
1726
- unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign === res
1726
+ unless Google::Ads::GoogleAds::V2::Resources::ConversionAction === res
1727
1727
  raise ArgumentError.new(
1728
1728
  "Called #{__method__} with instance of wrong type:"\
1729
1729
  " #{res.class} want #{operation.update_class}"\
@@ -1732,37 +1732,349 @@ module Google
1732
1732
  end
1733
1733
  end
1734
1734
 
1735
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
1735
+ op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
1736
1736
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1737
1737
  op["update"] = res
1738
1738
  op
1739
1739
  end
1740
1740
 
1741
- # A convenience method for creating an AdGroupAdOperation instance with
1742
- # its "update" field prepopulated with an AdGroupAd instance, and
1741
+ # A convenience method for creating an BiddingStrategyOperation instance with
1742
+ # its "update" field prepopulated with an BiddingStrategy instance, and
1743
1743
  # its "update_mask" field populated as needed to send the updates to the API.
1744
1744
  #
1745
- # @overload #ad_group_ad(path, &blk)
1745
+ # @overload #bidding_strategy(path, &blk)
1746
1746
  # @param path [String] a resource path for the resource to update
1747
- # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupAd] a new instance of the resource for this update operation, on
1747
+ # @yield [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy] a new instance of the resource for this update operation, on
1748
1748
  # which fields can be set to update
1749
1749
  #
1750
- # @overload #ad_group_ad(resource, &blk)
1751
- # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupAd] a resource instance to update
1750
+ # @overload #bidding_strategy(resource, &blk)
1751
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy] a resource instance to update
1752
1752
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
1753
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] the operation instance to update the resource
1754
- def self.ad_group_ad(resource_or_path, &blk)
1755
- require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
1753
+ # @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] the operation instance to update the resource
1754
+ def self.bidding_strategy(resource_or_path, &blk)
1755
+ require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
1756
+ res = case resource_or_path
1757
+ when Google::Ads::GoogleAds::V2::Resources::BiddingStrategy
1758
+ resource_or_path
1759
+ # got a resource path
1760
+ when String
1761
+ obj = Google::Ads::GoogleAds::V2::Resources::BiddingStrategy.new
1762
+ obj.resource_name = resource_or_path
1763
+ obj
1764
+ else
1765
+ unless Google::Ads::GoogleAds::V2::Resources::BiddingStrategy === res
1766
+ raise ArgumentError.new(
1767
+ "Called #{__method__} with instance of wrong type:"\
1768
+ " #{res.class} want #{operation.update_class}"\
1769
+ " or String representing resource name"
1770
+ )
1771
+ end
1772
+ end
1773
+
1774
+ op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
1775
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1776
+ op["update"] = res
1777
+ op
1778
+ end
1779
+
1780
+ # A convenience method for creating an FeedItemOperation instance with
1781
+ # its "update" field prepopulated with an FeedItem instance, and
1782
+ # its "update_mask" field populated as needed to send the updates to the API.
1783
+ #
1784
+ # @overload #feed_item(path, &blk)
1785
+ # @param path [String] a resource path for the resource to update
1786
+ # @yield [Google::Ads::GoogleAds::V2::Resources::FeedItem] a new instance of the resource for this update operation, on
1787
+ # which fields can be set to update
1788
+ #
1789
+ # @overload #feed_item(resource, &blk)
1790
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::FeedItem] a resource instance to update
1791
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1792
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] the operation instance to update the resource
1793
+ def self.feed_item(resource_or_path, &blk)
1794
+ require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
1795
+ res = case resource_or_path
1796
+ when Google::Ads::GoogleAds::V2::Resources::FeedItem
1797
+ resource_or_path
1798
+ # got a resource path
1799
+ when String
1800
+ obj = Google::Ads::GoogleAds::V2::Resources::FeedItem.new
1801
+ obj.resource_name = resource_or_path
1802
+ obj
1803
+ else
1804
+ unless Google::Ads::GoogleAds::V2::Resources::FeedItem === res
1805
+ raise ArgumentError.new(
1806
+ "Called #{__method__} with instance of wrong type:"\
1807
+ " #{res.class} want #{operation.update_class}"\
1808
+ " or String representing resource name"
1809
+ )
1810
+ end
1811
+ end
1812
+
1813
+ op = Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
1814
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1815
+ op["update"] = res
1816
+ op
1817
+ end
1818
+
1819
+ # A convenience method for creating an CampaignBudgetOperation instance with
1820
+ # its "update" field prepopulated with an CampaignBudget instance, and
1821
+ # its "update_mask" field populated as needed to send the updates to the API.
1822
+ #
1823
+ # @overload #campaign_budget(path, &blk)
1824
+ # @param path [String] a resource path for the resource to update
1825
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignBudget] a new instance of the resource for this update operation, on
1826
+ # which fields can be set to update
1827
+ #
1828
+ # @overload #campaign_budget(resource, &blk)
1829
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignBudget] a resource instance to update
1830
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1831
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] the operation instance to update the resource
1832
+ def self.campaign_budget(resource_or_path, &blk)
1833
+ require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
1834
+ res = case resource_or_path
1835
+ when Google::Ads::GoogleAds::V2::Resources::CampaignBudget
1836
+ resource_or_path
1837
+ # got a resource path
1838
+ when String
1839
+ obj = Google::Ads::GoogleAds::V2::Resources::CampaignBudget.new
1840
+ obj.resource_name = resource_or_path
1841
+ obj
1842
+ else
1843
+ unless Google::Ads::GoogleAds::V2::Resources::CampaignBudget === res
1844
+ raise ArgumentError.new(
1845
+ "Called #{__method__} with instance of wrong type:"\
1846
+ " #{res.class} want #{operation.update_class}"\
1847
+ " or String representing resource name"
1848
+ )
1849
+ end
1850
+ end
1851
+
1852
+ op = Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
1853
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1854
+ op["update"] = res
1855
+ op
1856
+ end
1857
+
1858
+ # A convenience method for creating an AdGroupBidModifierOperation instance with
1859
+ # its "update" field prepopulated with an AdGroupBidModifier instance, and
1860
+ # its "update_mask" field populated as needed to send the updates to the API.
1861
+ #
1862
+ # @overload #ad_group_bid_modifier(path, &blk)
1863
+ # @param path [String] a resource path for the resource to update
1864
+ # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a new instance of the resource for this update operation, on
1865
+ # which fields can be set to update
1866
+ #
1867
+ # @overload #ad_group_bid_modifier(resource, &blk)
1868
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a resource instance to update
1869
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1870
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] the operation instance to update the resource
1871
+ def self.ad_group_bid_modifier(resource_or_path, &blk)
1872
+ require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
1873
+ res = case resource_or_path
1874
+ when Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier
1875
+ resource_or_path
1876
+ # got a resource path
1877
+ when String
1878
+ obj = Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier.new
1879
+ obj.resource_name = resource_or_path
1880
+ obj
1881
+ else
1882
+ unless Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier === res
1883
+ raise ArgumentError.new(
1884
+ "Called #{__method__} with instance of wrong type:"\
1885
+ " #{res.class} want #{operation.update_class}"\
1886
+ " or String representing resource name"
1887
+ )
1888
+ end
1889
+ end
1890
+
1891
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
1892
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1893
+ op["update"] = res
1894
+ op
1895
+ end
1896
+
1897
+ # A convenience method for creating an AdOperation instance with
1898
+ # its "update" field prepopulated with an Ad instance, and
1899
+ # its "update_mask" field populated as needed to send the updates to the API.
1900
+ #
1901
+ # @overload #ad(path, &blk)
1902
+ # @param path [String] a resource path for the resource to update
1903
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Ad] a new instance of the resource for this update operation, on
1904
+ # which fields can be set to update
1905
+ #
1906
+ # @overload #ad(resource, &blk)
1907
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::Ad] a resource instance to update
1908
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1909
+ # @return [Google::Ads::GoogleAds::V2::Services::AdOperation] the operation instance to update the resource
1910
+ def self.ad(resource_or_path, &blk)
1911
+ require "google/ads/google_ads/v2/services/ad_service_pb.rb"
1912
+ res = case resource_or_path
1913
+ when Google::Ads::GoogleAds::V2::Resources::Ad
1914
+ resource_or_path
1915
+ # got a resource path
1916
+ when String
1917
+ obj = Google::Ads::GoogleAds::V2::Resources::Ad.new
1918
+ obj.resource_name = resource_or_path
1919
+ obj
1920
+ else
1921
+ unless Google::Ads::GoogleAds::V2::Resources::Ad === res
1922
+ raise ArgumentError.new(
1923
+ "Called #{__method__} with instance of wrong type:"\
1924
+ " #{res.class} want #{operation.update_class}"\
1925
+ " or String representing resource name"
1926
+ )
1927
+ end
1928
+ end
1929
+
1930
+ op = Google::Ads::GoogleAds::V2::Services::AdOperation.new
1931
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1932
+ op["update"] = res
1933
+ op
1934
+ end
1935
+
1936
+ # A convenience method for creating an CustomerOperation instance with
1937
+ # its "update" field prepopulated with an Customer instance, and
1938
+ # its "update_mask" field populated as needed to send the updates to the API.
1939
+ #
1940
+ # @overload #customer(path, &blk)
1941
+ # @param path [String] a resource path for the resource to update
1942
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Customer] a new instance of the resource for this update operation, on
1943
+ # which fields can be set to update
1944
+ #
1945
+ # @overload #customer(resource, &blk)
1946
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::Customer] a resource instance to update
1947
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1948
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerOperation] the operation instance to update the resource
1949
+ def self.customer(resource_or_path, &blk)
1950
+ require "google/ads/google_ads/v2/services/customer_service_pb.rb"
1951
+ res = case resource_or_path
1952
+ when Google::Ads::GoogleAds::V2::Resources::Customer
1953
+ resource_or_path
1954
+ # got a resource path
1955
+ when String
1956
+ obj = Google::Ads::GoogleAds::V2::Resources::Customer.new
1957
+ obj.resource_name = resource_or_path
1958
+ obj
1959
+ else
1960
+ unless Google::Ads::GoogleAds::V2::Resources::Customer === res
1961
+ raise ArgumentError.new(
1962
+ "Called #{__method__} with instance of wrong type:"\
1963
+ " #{res.class} want #{operation.update_class}"\
1964
+ " or String representing resource name"
1965
+ )
1966
+ end
1967
+ end
1968
+
1969
+ op = Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
1970
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1971
+ op["update"] = res
1972
+ op
1973
+ end
1974
+
1975
+ # A convenience method for creating an KeywordPlanAdGroupOperation instance with
1976
+ # its "update" field prepopulated with an KeywordPlanAdGroup instance, and
1977
+ # its "update_mask" field populated as needed to send the updates to the API.
1978
+ #
1979
+ # @overload #keyword_plan_ad_group(path, &blk)
1980
+ # @param path [String] a resource path for the resource to update
1981
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup] a new instance of the resource for this update operation, on
1982
+ # which fields can be set to update
1983
+ #
1984
+ # @overload #keyword_plan_ad_group(resource, &blk)
1985
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup] a resource instance to update
1986
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
1987
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] the operation instance to update the resource
1988
+ def self.keyword_plan_ad_group(resource_or_path, &blk)
1989
+ require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
1990
+ res = case resource_or_path
1991
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup
1992
+ resource_or_path
1993
+ # got a resource path
1994
+ when String
1995
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup.new
1996
+ obj.resource_name = resource_or_path
1997
+ obj
1998
+ else
1999
+ unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup === res
2000
+ raise ArgumentError.new(
2001
+ "Called #{__method__} with instance of wrong type:"\
2002
+ " #{res.class} want #{operation.update_class}"\
2003
+ " or String representing resource name"
2004
+ )
2005
+ end
2006
+ end
2007
+
2008
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
2009
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2010
+ op["update"] = res
2011
+ op
2012
+ end
2013
+
2014
+ # A convenience method for creating an CampaignDraftOperation instance with
2015
+ # its "update" field prepopulated with an CampaignDraft instance, and
2016
+ # its "update_mask" field populated as needed to send the updates to the API.
2017
+ #
2018
+ # @overload #campaign_draft(path, &blk)
2019
+ # @param path [String] a resource path for the resource to update
2020
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignDraft] a new instance of the resource for this update operation, on
2021
+ # which fields can be set to update
2022
+ #
2023
+ # @overload #campaign_draft(resource, &blk)
2024
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignDraft] a resource instance to update
2025
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2026
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] the operation instance to update the resource
2027
+ def self.campaign_draft(resource_or_path, &blk)
2028
+ require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
2029
+ res = case resource_or_path
2030
+ when Google::Ads::GoogleAds::V2::Resources::CampaignDraft
2031
+ resource_or_path
2032
+ # got a resource path
2033
+ when String
2034
+ obj = Google::Ads::GoogleAds::V2::Resources::CampaignDraft.new
2035
+ obj.resource_name = resource_or_path
2036
+ obj
2037
+ else
2038
+ unless Google::Ads::GoogleAds::V2::Resources::CampaignDraft === res
2039
+ raise ArgumentError.new(
2040
+ "Called #{__method__} with instance of wrong type:"\
2041
+ " #{res.class} want #{operation.update_class}"\
2042
+ " or String representing resource name"
2043
+ )
2044
+ end
2045
+ end
2046
+
2047
+ op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
2048
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2049
+ op["update"] = res
2050
+ op
2051
+ end
2052
+
2053
+ # A convenience method for creating an CampaignFeedOperation instance with
2054
+ # its "update" field prepopulated with an CampaignFeed instance, and
2055
+ # its "update_mask" field populated as needed to send the updates to the API.
2056
+ #
2057
+ # @overload #campaign_feed(path, &blk)
2058
+ # @param path [String] a resource path for the resource to update
2059
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignFeed] a new instance of the resource for this update operation, on
2060
+ # which fields can be set to update
2061
+ #
2062
+ # @overload #campaign_feed(resource, &blk)
2063
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignFeed] a resource instance to update
2064
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2065
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] the operation instance to update the resource
2066
+ def self.campaign_feed(resource_or_path, &blk)
2067
+ require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
1756
2068
  res = case resource_or_path
1757
- when Google::Ads::GoogleAds::V2::Resources::AdGroupAd
2069
+ when Google::Ads::GoogleAds::V2::Resources::CampaignFeed
1758
2070
  resource_or_path
1759
2071
  # got a resource path
1760
2072
  when String
1761
- obj = Google::Ads::GoogleAds::V2::Resources::AdGroupAd.new
2073
+ obj = Google::Ads::GoogleAds::V2::Resources::CampaignFeed.new
1762
2074
  obj.resource_name = resource_or_path
1763
2075
  obj
1764
2076
  else
1765
- unless Google::Ads::GoogleAds::V2::Resources::AdGroupAd === res
2077
+ unless Google::Ads::GoogleAds::V2::Resources::CampaignFeed === res
1766
2078
  raise ArgumentError.new(
1767
2079
  "Called #{__method__} with instance of wrong type:"\
1768
2080
  " #{res.class} want #{operation.update_class}"\
@@ -1771,37 +2083,37 @@ module Google
1771
2083
  end
1772
2084
  end
1773
2085
 
1774
- op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
2086
+ op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
1775
2087
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1776
2088
  op["update"] = res
1777
2089
  op
1778
2090
  end
1779
2091
 
1780
- # A convenience method for creating an AdGroupBidModifierOperation instance with
1781
- # its "update" field prepopulated with an AdGroupBidModifier instance, and
2092
+ # A convenience method for creating an AdGroupCriterionOperation instance with
2093
+ # its "update" field prepopulated with an AdGroupCriterion instance, and
1782
2094
  # its "update_mask" field populated as needed to send the updates to the API.
1783
2095
  #
1784
- # @overload #ad_group_bid_modifier(path, &blk)
2096
+ # @overload #ad_group_criterion(path, &blk)
1785
2097
  # @param path [String] a resource path for the resource to update
1786
- # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a new instance of the resource for this update operation, on
2098
+ # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion] a new instance of the resource for this update operation, on
1787
2099
  # which fields can be set to update
1788
2100
  #
1789
- # @overload #ad_group_bid_modifier(resource, &blk)
1790
- # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a resource instance to update
2101
+ # @overload #ad_group_criterion(resource, &blk)
2102
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion] a resource instance to update
1791
2103
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
1792
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] the operation instance to update the resource
1793
- def self.ad_group_bid_modifier(resource_or_path, &blk)
1794
- require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
2104
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation] the operation instance to update the resource
2105
+ def self.ad_group_criterion(resource_or_path, &blk)
2106
+ require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
1795
2107
  res = case resource_or_path
1796
- when Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier
2108
+ when Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion
1797
2109
  resource_or_path
1798
2110
  # got a resource path
1799
2111
  when String
1800
- obj = Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier.new
2112
+ obj = Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion.new
1801
2113
  obj.resource_name = resource_or_path
1802
2114
  obj
1803
2115
  else
1804
- unless Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier === res
2116
+ unless Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion === res
1805
2117
  raise ArgumentError.new(
1806
2118
  "Called #{__method__} with instance of wrong type:"\
1807
2119
  " #{res.class} want #{operation.update_class}"\
@@ -1810,37 +2122,37 @@ module Google
1810
2122
  end
1811
2123
  end
1812
2124
 
1813
- op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
2125
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
1814
2126
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1815
2127
  op["update"] = res
1816
2128
  op
1817
2129
  end
1818
2130
 
1819
- # A convenience method for creating an AdGroupCriterionOperation instance with
1820
- # its "update" field prepopulated with an AdGroupCriterion instance, and
2131
+ # A convenience method for creating an AdGroupAdOperation instance with
2132
+ # its "update" field prepopulated with an AdGroupAd instance, and
1821
2133
  # its "update_mask" field populated as needed to send the updates to the API.
1822
2134
  #
1823
- # @overload #ad_group_criterion(path, &blk)
2135
+ # @overload #ad_group_ad(path, &blk)
1824
2136
  # @param path [String] a resource path for the resource to update
1825
- # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion] a new instance of the resource for this update operation, on
2137
+ # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupAd] a new instance of the resource for this update operation, on
1826
2138
  # which fields can be set to update
1827
2139
  #
1828
- # @overload #ad_group_criterion(resource, &blk)
1829
- # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion] a resource instance to update
2140
+ # @overload #ad_group_ad(resource, &blk)
2141
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupAd] a resource instance to update
1830
2142
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
1831
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation] the operation instance to update the resource
1832
- def self.ad_group_criterion(resource_or_path, &blk)
1833
- require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
2143
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] the operation instance to update the resource
2144
+ def self.ad_group_ad(resource_or_path, &blk)
2145
+ require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
1834
2146
  res = case resource_or_path
1835
- when Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion
2147
+ when Google::Ads::GoogleAds::V2::Resources::AdGroupAd
1836
2148
  resource_or_path
1837
2149
  # got a resource path
1838
2150
  when String
1839
- obj = Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion.new
2151
+ obj = Google::Ads::GoogleAds::V2::Resources::AdGroupAd.new
1840
2152
  obj.resource_name = resource_or_path
1841
2153
  obj
1842
2154
  else
1843
- unless Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion === res
2155
+ unless Google::Ads::GoogleAds::V2::Resources::AdGroupAd === res
1844
2156
  raise ArgumentError.new(
1845
2157
  "Called #{__method__} with instance of wrong type:"\
1846
2158
  " #{res.class} want #{operation.update_class}"\
@@ -1849,7 +2161,7 @@ module Google
1849
2161
  end
1850
2162
  end
1851
2163
 
1852
- op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
2164
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
1853
2165
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
1854
2166
  op["update"] = res
1855
2167
  op
@@ -2011,45 +2323,6 @@ module Google
2011
2323
  op
2012
2324
  end
2013
2325
 
2014
- # A convenience method for creating an BiddingStrategyOperation instance with
2015
- # its "update" field prepopulated with an BiddingStrategy instance, and
2016
- # its "update_mask" field populated as needed to send the updates to the API.
2017
- #
2018
- # @overload #bidding_strategy(path, &blk)
2019
- # @param path [String] a resource path for the resource to update
2020
- # @yield [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy] a new instance of the resource for this update operation, on
2021
- # which fields can be set to update
2022
- #
2023
- # @overload #bidding_strategy(resource, &blk)
2024
- # @param resource [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy] a resource instance to update
2025
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
2026
- # @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] the operation instance to update the resource
2027
- def self.bidding_strategy(resource_or_path, &blk)
2028
- require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
2029
- res = case resource_or_path
2030
- when Google::Ads::GoogleAds::V2::Resources::BiddingStrategy
2031
- resource_or_path
2032
- # got a resource path
2033
- when String
2034
- obj = Google::Ads::GoogleAds::V2::Resources::BiddingStrategy.new
2035
- obj.resource_name = resource_or_path
2036
- obj
2037
- else
2038
- unless Google::Ads::GoogleAds::V2::Resources::BiddingStrategy === res
2039
- raise ArgumentError.new(
2040
- "Called #{__method__} with instance of wrong type:"\
2041
- " #{res.class} want #{operation.update_class}"\
2042
- " or String representing resource name"
2043
- )
2044
- end
2045
- end
2046
-
2047
- op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
2048
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2049
- op["update"] = res
2050
- op
2051
- end
2052
-
2053
2326
  # A convenience method for creating an CampaignBidModifierOperation instance with
2054
2327
  # its "update" field prepopulated with an CampaignBidModifier instance, and
2055
2328
  # its "update_mask" field populated as needed to send the updates to the API.
@@ -2089,45 +2362,6 @@ module Google
2089
2362
  op
2090
2363
  end
2091
2364
 
2092
- # A convenience method for creating an CampaignBudgetOperation instance with
2093
- # its "update" field prepopulated with an CampaignBudget instance, and
2094
- # its "update_mask" field populated as needed to send the updates to the API.
2095
- #
2096
- # @overload #campaign_budget(path, &blk)
2097
- # @param path [String] a resource path for the resource to update
2098
- # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignBudget] a new instance of the resource for this update operation, on
2099
- # which fields can be set to update
2100
- #
2101
- # @overload #campaign_budget(resource, &blk)
2102
- # @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignBudget] a resource instance to update
2103
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
2104
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] the operation instance to update the resource
2105
- def self.campaign_budget(resource_or_path, &blk)
2106
- require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
2107
- res = case resource_or_path
2108
- when Google::Ads::GoogleAds::V2::Resources::CampaignBudget
2109
- resource_or_path
2110
- # got a resource path
2111
- when String
2112
- obj = Google::Ads::GoogleAds::V2::Resources::CampaignBudget.new
2113
- obj.resource_name = resource_or_path
2114
- obj
2115
- else
2116
- unless Google::Ads::GoogleAds::V2::Resources::CampaignBudget === res
2117
- raise ArgumentError.new(
2118
- "Called #{__method__} with instance of wrong type:"\
2119
- " #{res.class} want #{operation.update_class}"\
2120
- " or String representing resource name"
2121
- )
2122
- end
2123
- end
2124
-
2125
- op = Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
2126
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2127
- op["update"] = res
2128
- op
2129
- end
2130
-
2131
2365
  # A convenience method for creating an CampaignCriterionOperation instance with
2132
2366
  # its "update" field prepopulated with an CampaignCriterion instance, and
2133
2367
  # its "update_mask" field populated as needed to send the updates to the API.
@@ -2167,45 +2401,6 @@ module Google
2167
2401
  op
2168
2402
  end
2169
2403
 
2170
- # A convenience method for creating an CampaignDraftOperation instance with
2171
- # its "update" field prepopulated with an CampaignDraft instance, and
2172
- # its "update_mask" field populated as needed to send the updates to the API.
2173
- #
2174
- # @overload #campaign_draft(path, &blk)
2175
- # @param path [String] a resource path for the resource to update
2176
- # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignDraft] a new instance of the resource for this update operation, on
2177
- # which fields can be set to update
2178
- #
2179
- # @overload #campaign_draft(resource, &blk)
2180
- # @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignDraft] a resource instance to update
2181
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
2182
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] the operation instance to update the resource
2183
- def self.campaign_draft(resource_or_path, &blk)
2184
- require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
2185
- res = case resource_or_path
2186
- when Google::Ads::GoogleAds::V2::Resources::CampaignDraft
2187
- resource_or_path
2188
- # got a resource path
2189
- when String
2190
- obj = Google::Ads::GoogleAds::V2::Resources::CampaignDraft.new
2191
- obj.resource_name = resource_or_path
2192
- obj
2193
- else
2194
- unless Google::Ads::GoogleAds::V2::Resources::CampaignDraft === res
2195
- raise ArgumentError.new(
2196
- "Called #{__method__} with instance of wrong type:"\
2197
- " #{res.class} want #{operation.update_class}"\
2198
- " or String representing resource name"
2199
- )
2200
- end
2201
- end
2202
-
2203
- op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
2204
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2205
- op["update"] = res
2206
- op
2207
- end
2208
-
2209
2404
  # A convenience method for creating an CampaignExperimentOperation instance with
2210
2405
  # its "update" field prepopulated with an CampaignExperiment instance, and
2211
2406
  # its "update_mask" field populated as needed to send the updates to the API.
@@ -2278,115 +2473,37 @@ module Google
2278
2473
  end
2279
2474
  end
2280
2475
 
2281
- op = Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation.new
2282
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2283
- op["update"] = res
2284
- op
2285
- end
2286
-
2287
- # A convenience method for creating an CampaignFeedOperation instance with
2288
- # its "update" field prepopulated with an CampaignFeed instance, and
2289
- # its "update_mask" field populated as needed to send the updates to the API.
2290
- #
2291
- # @overload #campaign_feed(path, &blk)
2292
- # @param path [String] a resource path for the resource to update
2293
- # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignFeed] a new instance of the resource for this update operation, on
2294
- # which fields can be set to update
2295
- #
2296
- # @overload #campaign_feed(resource, &blk)
2297
- # @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignFeed] a resource instance to update
2298
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
2299
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] the operation instance to update the resource
2300
- def self.campaign_feed(resource_or_path, &blk)
2301
- require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
2302
- res = case resource_or_path
2303
- when Google::Ads::GoogleAds::V2::Resources::CampaignFeed
2304
- resource_or_path
2305
- # got a resource path
2306
- when String
2307
- obj = Google::Ads::GoogleAds::V2::Resources::CampaignFeed.new
2308
- obj.resource_name = resource_or_path
2309
- obj
2310
- else
2311
- unless Google::Ads::GoogleAds::V2::Resources::CampaignFeed === res
2312
- raise ArgumentError.new(
2313
- "Called #{__method__} with instance of wrong type:"\
2314
- " #{res.class} want #{operation.update_class}"\
2315
- " or String representing resource name"
2316
- )
2317
- end
2318
- end
2319
-
2320
- op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
2321
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2322
- op["update"] = res
2323
- op
2324
- end
2325
-
2326
- # A convenience method for creating an CampaignOperation instance with
2327
- # its "update" field prepopulated with an Campaign instance, and
2328
- # its "update_mask" field populated as needed to send the updates to the API.
2329
- #
2330
- # @overload #campaign(path, &blk)
2331
- # @param path [String] a resource path for the resource to update
2332
- # @yield [Google::Ads::GoogleAds::V2::Resources::Campaign] a new instance of the resource for this update operation, on
2333
- # which fields can be set to update
2334
- #
2335
- # @overload #campaign(resource, &blk)
2336
- # @param resource [Google::Ads::GoogleAds::V2::Resources::Campaign] a resource instance to update
2337
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
2338
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignOperation] the operation instance to update the resource
2339
- def self.campaign(resource_or_path, &blk)
2340
- require "google/ads/google_ads/v2/services/campaign_service_pb.rb"
2341
- res = case resource_or_path
2342
- when Google::Ads::GoogleAds::V2::Resources::Campaign
2343
- resource_or_path
2344
- # got a resource path
2345
- when String
2346
- obj = Google::Ads::GoogleAds::V2::Resources::Campaign.new
2347
- obj.resource_name = resource_or_path
2348
- obj
2349
- else
2350
- unless Google::Ads::GoogleAds::V2::Resources::Campaign === res
2351
- raise ArgumentError.new(
2352
- "Called #{__method__} with instance of wrong type:"\
2353
- " #{res.class} want #{operation.update_class}"\
2354
- " or String representing resource name"
2355
- )
2356
- end
2357
- end
2358
-
2359
- op = Google::Ads::GoogleAds::V2::Services::CampaignOperation.new
2476
+ op = Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation.new
2360
2477
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2361
2478
  op["update"] = res
2362
2479
  op
2363
2480
  end
2364
2481
 
2365
- # A convenience method for creating an ConversionActionOperation instance with
2366
- # its "update" field prepopulated with an ConversionAction instance, and
2482
+ # A convenience method for creating an CampaignOperation instance with
2483
+ # its "update" field prepopulated with an Campaign instance, and
2367
2484
  # its "update_mask" field populated as needed to send the updates to the API.
2368
2485
  #
2369
- # @overload #conversion_action(path, &blk)
2486
+ # @overload #campaign(path, &blk)
2370
2487
  # @param path [String] a resource path for the resource to update
2371
- # @yield [Google::Ads::GoogleAds::V2::Resources::ConversionAction] a new instance of the resource for this update operation, on
2488
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Campaign] a new instance of the resource for this update operation, on
2372
2489
  # which fields can be set to update
2373
2490
  #
2374
- # @overload #conversion_action(resource, &blk)
2375
- # @param resource [Google::Ads::GoogleAds::V2::Resources::ConversionAction] a resource instance to update
2491
+ # @overload #campaign(resource, &blk)
2492
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::Campaign] a resource instance to update
2376
2493
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2377
- # @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] the operation instance to update the resource
2378
- def self.conversion_action(resource_or_path, &blk)
2379
- require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
2494
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignOperation] the operation instance to update the resource
2495
+ def self.campaign(resource_or_path, &blk)
2496
+ require "google/ads/google_ads/v2/services/campaign_service_pb.rb"
2380
2497
  res = case resource_or_path
2381
- when Google::Ads::GoogleAds::V2::Resources::ConversionAction
2498
+ when Google::Ads::GoogleAds::V2::Resources::Campaign
2382
2499
  resource_or_path
2383
2500
  # got a resource path
2384
2501
  when String
2385
- obj = Google::Ads::GoogleAds::V2::Resources::ConversionAction.new
2502
+ obj = Google::Ads::GoogleAds::V2::Resources::Campaign.new
2386
2503
  obj.resource_name = resource_or_path
2387
2504
  obj
2388
2505
  else
2389
- unless Google::Ads::GoogleAds::V2::Resources::ConversionAction === res
2506
+ unless Google::Ads::GoogleAds::V2::Resources::Campaign === res
2390
2507
  raise ArgumentError.new(
2391
2508
  "Called #{__method__} with instance of wrong type:"\
2392
2509
  " #{res.class} want #{operation.update_class}"\
@@ -2395,7 +2512,7 @@ module Google
2395
2512
  end
2396
2513
  end
2397
2514
 
2398
- op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
2515
+ op = Google::Ads::GoogleAds::V2::Services::CampaignOperation.new
2399
2516
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2400
2517
  op["update"] = res
2401
2518
  op
@@ -2479,45 +2596,6 @@ module Google
2479
2596
  op
2480
2597
  end
2481
2598
 
2482
- # A convenience method for creating an CustomerOperation instance with
2483
- # its "update" field prepopulated with an Customer instance, and
2484
- # its "update_mask" field populated as needed to send the updates to the API.
2485
- #
2486
- # @overload #customer(path, &blk)
2487
- # @param path [String] a resource path for the resource to update
2488
- # @yield [Google::Ads::GoogleAds::V2::Resources::Customer] a new instance of the resource for this update operation, on
2489
- # which fields can be set to update
2490
- #
2491
- # @overload #customer(resource, &blk)
2492
- # @param resource [Google::Ads::GoogleAds::V2::Resources::Customer] a resource instance to update
2493
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
2494
- # @return [Google::Ads::GoogleAds::V2::Services::CustomerOperation] the operation instance to update the resource
2495
- def self.customer(resource_or_path, &blk)
2496
- require "google/ads/google_ads/v2/services/customer_service_pb.rb"
2497
- res = case resource_or_path
2498
- when Google::Ads::GoogleAds::V2::Resources::Customer
2499
- resource_or_path
2500
- # got a resource path
2501
- when String
2502
- obj = Google::Ads::GoogleAds::V2::Resources::Customer.new
2503
- obj.resource_name = resource_or_path
2504
- obj
2505
- else
2506
- unless Google::Ads::GoogleAds::V2::Resources::Customer === res
2507
- raise ArgumentError.new(
2508
- "Called #{__method__} with instance of wrong type:"\
2509
- " #{res.class} want #{operation.update_class}"\
2510
- " or String representing resource name"
2511
- )
2512
- end
2513
- end
2514
-
2515
- op = Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
2516
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2517
- op["update"] = res
2518
- op
2519
- end
2520
-
2521
2599
  # A convenience method for creating an ExtensionFeedItemOperation instance with
2522
2600
  # its "update" field prepopulated with an ExtensionFeedItem instance, and
2523
2601
  # its "update_mask" field populated as needed to send the updates to the API.
@@ -2557,70 +2635,31 @@ module Google
2557
2635
  op
2558
2636
  end
2559
2637
 
2560
- # A convenience method for creating an FeedItemOperation instance with
2561
- # its "update" field prepopulated with an FeedItem instance, and
2562
- # its "update_mask" field populated as needed to send the updates to the API.
2563
- #
2564
- # @overload #feed_item(path, &blk)
2565
- # @param path [String] a resource path for the resource to update
2566
- # @yield [Google::Ads::GoogleAds::V2::Resources::FeedItem] a new instance of the resource for this update operation, on
2567
- # which fields can be set to update
2568
- #
2569
- # @overload #feed_item(resource, &blk)
2570
- # @param resource [Google::Ads::GoogleAds::V2::Resources::FeedItem] a resource instance to update
2571
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
2572
- # @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] the operation instance to update the resource
2573
- def self.feed_item(resource_or_path, &blk)
2574
- require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
2575
- res = case resource_or_path
2576
- when Google::Ads::GoogleAds::V2::Resources::FeedItem
2577
- resource_or_path
2578
- # got a resource path
2579
- when String
2580
- obj = Google::Ads::GoogleAds::V2::Resources::FeedItem.new
2581
- obj.resource_name = resource_or_path
2582
- obj
2583
- else
2584
- unless Google::Ads::GoogleAds::V2::Resources::FeedItem === res
2585
- raise ArgumentError.new(
2586
- "Called #{__method__} with instance of wrong type:"\
2587
- " #{res.class} want #{operation.update_class}"\
2588
- " or String representing resource name"
2589
- )
2590
- end
2591
- end
2592
-
2593
- op = Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
2594
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2595
- op["update"] = res
2596
- op
2597
- end
2598
-
2599
- # A convenience method for creating an FeedOperation instance with
2600
- # its "update" field prepopulated with an Feed instance, and
2638
+ # A convenience method for creating an LabelOperation instance with
2639
+ # its "update" field prepopulated with an Label instance, and
2601
2640
  # its "update_mask" field populated as needed to send the updates to the API.
2602
2641
  #
2603
- # @overload #feed(path, &blk)
2642
+ # @overload #label(path, &blk)
2604
2643
  # @param path [String] a resource path for the resource to update
2605
- # @yield [Google::Ads::GoogleAds::V2::Resources::Feed] a new instance of the resource for this update operation, on
2644
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Label] a new instance of the resource for this update operation, on
2606
2645
  # which fields can be set to update
2607
2646
  #
2608
- # @overload #feed(resource, &blk)
2609
- # @param resource [Google::Ads::GoogleAds::V2::Resources::Feed] a resource instance to update
2647
+ # @overload #label(resource, &blk)
2648
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::Label] a resource instance to update
2610
2649
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2611
- # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation instance to update the resource
2612
- def self.feed(resource_or_path, &blk)
2613
- require "google/ads/google_ads/v2/services/feed_service_pb.rb"
2650
+ # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] the operation instance to update the resource
2651
+ def self.label(resource_or_path, &blk)
2652
+ require "google/ads/google_ads/v2/services/label_service_pb.rb"
2614
2653
  res = case resource_or_path
2615
- when Google::Ads::GoogleAds::V2::Resources::Feed
2654
+ when Google::Ads::GoogleAds::V2::Resources::Label
2616
2655
  resource_or_path
2617
2656
  # got a resource path
2618
2657
  when String
2619
- obj = Google::Ads::GoogleAds::V2::Resources::Feed.new
2658
+ obj = Google::Ads::GoogleAds::V2::Resources::Label.new
2620
2659
  obj.resource_name = resource_or_path
2621
2660
  obj
2622
2661
  else
2623
- unless Google::Ads::GoogleAds::V2::Resources::Feed === res
2662
+ unless Google::Ads::GoogleAds::V2::Resources::Label === res
2624
2663
  raise ArgumentError.new(
2625
2664
  "Called #{__method__} with instance of wrong type:"\
2626
2665
  " #{res.class} want #{operation.update_class}"\
@@ -2629,37 +2668,37 @@ module Google
2629
2668
  end
2630
2669
  end
2631
2670
 
2632
- op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
2671
+ op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
2633
2672
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2634
2673
  op["update"] = res
2635
2674
  op
2636
2675
  end
2637
2676
 
2638
- # A convenience method for creating an LabelOperation instance with
2639
- # its "update" field prepopulated with an Label instance, and
2677
+ # A convenience method for creating an RemarketingActionOperation instance with
2678
+ # its "update" field prepopulated with an RemarketingAction instance, and
2640
2679
  # its "update_mask" field populated as needed to send the updates to the API.
2641
2680
  #
2642
- # @overload #label(path, &blk)
2681
+ # @overload #remarketing_action(path, &blk)
2643
2682
  # @param path [String] a resource path for the resource to update
2644
- # @yield [Google::Ads::GoogleAds::V2::Resources::Label] a new instance of the resource for this update operation, on
2683
+ # @yield [Google::Ads::GoogleAds::V2::Resources::RemarketingAction] a new instance of the resource for this update operation, on
2645
2684
  # which fields can be set to update
2646
2685
  #
2647
- # @overload #label(resource, &blk)
2648
- # @param resource [Google::Ads::GoogleAds::V2::Resources::Label] a resource instance to update
2686
+ # @overload #remarketing_action(resource, &blk)
2687
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::RemarketingAction] a resource instance to update
2649
2688
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2650
- # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] the operation instance to update the resource
2651
- def self.label(resource_or_path, &blk)
2652
- require "google/ads/google_ads/v2/services/label_service_pb.rb"
2689
+ # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation instance to update the resource
2690
+ def self.remarketing_action(resource_or_path, &blk)
2691
+ require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
2653
2692
  res = case resource_or_path
2654
- when Google::Ads::GoogleAds::V2::Resources::Label
2693
+ when Google::Ads::GoogleAds::V2::Resources::RemarketingAction
2655
2694
  resource_or_path
2656
2695
  # got a resource path
2657
2696
  when String
2658
- obj = Google::Ads::GoogleAds::V2::Resources::Label.new
2697
+ obj = Google::Ads::GoogleAds::V2::Resources::RemarketingAction.new
2659
2698
  obj.resource_name = resource_or_path
2660
2699
  obj
2661
2700
  else
2662
- unless Google::Ads::GoogleAds::V2::Resources::Label === res
2701
+ unless Google::Ads::GoogleAds::V2::Resources::RemarketingAction === res
2663
2702
  raise ArgumentError.new(
2664
2703
  "Called #{__method__} with instance of wrong type:"\
2665
2704
  " #{res.class} want #{operation.update_class}"\
@@ -2668,7 +2707,7 @@ module Google
2668
2707
  end
2669
2708
  end
2670
2709
 
2671
- op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
2710
+ op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
2672
2711
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2673
2712
  op["update"] = res
2674
2713
  op
@@ -2752,109 +2791,31 @@ module Google
2752
2791
  op
2753
2792
  end
2754
2793
 
2755
- # A convenience method for creating an KeywordPlanKeywordOperation instance with
2756
- # its "update" field prepopulated with an KeywordPlanKeyword instance, and
2757
- # its "update_mask" field populated as needed to send the updates to the API.
2758
- #
2759
- # @overload #keyword_plan_keyword(path, &blk)
2760
- # @param path [String] a resource path for the resource to update
2761
- # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a new instance of the resource for this update operation, on
2762
- # which fields can be set to update
2763
- #
2764
- # @overload #keyword_plan_keyword(resource, &blk)
2765
- # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a resource instance to update
2766
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
2767
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation instance to update the resource
2768
- def self.keyword_plan_keyword(resource_or_path, &blk)
2769
- require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
2770
- res = case resource_or_path
2771
- when Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword
2772
- resource_or_path
2773
- # got a resource path
2774
- when String
2775
- obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword.new
2776
- obj.resource_name = resource_or_path
2777
- obj
2778
- else
2779
- unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword === res
2780
- raise ArgumentError.new(
2781
- "Called #{__method__} with instance of wrong type:"\
2782
- " #{res.class} want #{operation.update_class}"\
2783
- " or String representing resource name"
2784
- )
2785
- end
2786
- end
2787
-
2788
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
2789
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2790
- op["update"] = res
2791
- op
2792
- end
2793
-
2794
- # A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with
2795
- # its "update" field prepopulated with an KeywordPlanNegativeKeyword instance, and
2796
- # its "update_mask" field populated as needed to send the updates to the API.
2797
- #
2798
- # @overload #keyword_plan_negative_keyword(path, &blk)
2799
- # @param path [String] a resource path for the resource to update
2800
- # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword] a new instance of the resource for this update operation, on
2801
- # which fields can be set to update
2802
- #
2803
- # @overload #keyword_plan_negative_keyword(resource, &blk)
2804
- # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword] a resource instance to update
2805
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
2806
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] the operation instance to update the resource
2807
- def self.keyword_plan_negative_keyword(resource_or_path, &blk)
2808
- require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
2809
- res = case resource_or_path
2810
- when Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword
2811
- resource_or_path
2812
- # got a resource path
2813
- when String
2814
- obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword.new
2815
- obj.resource_name = resource_or_path
2816
- obj
2817
- else
2818
- unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword === res
2819
- raise ArgumentError.new(
2820
- "Called #{__method__} with instance of wrong type:"\
2821
- " #{res.class} want #{operation.update_class}"\
2822
- " or String representing resource name"
2823
- )
2824
- end
2825
- end
2826
-
2827
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
2828
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2829
- op["update"] = res
2830
- op
2831
- end
2832
-
2833
- # A convenience method for creating an KeywordPlanOperation instance with
2834
- # its "update" field prepopulated with an KeywordPlan instance, and
2794
+ # A convenience method for creating an KeywordPlanCampaignOperation instance with
2795
+ # its "update" field prepopulated with an KeywordPlanCampaign instance, and
2835
2796
  # its "update_mask" field populated as needed to send the updates to the API.
2836
2797
  #
2837
- # @overload #keyword_plan(path, &blk)
2798
+ # @overload #keyword_plan_campaign(path, &blk)
2838
2799
  # @param path [String] a resource path for the resource to update
2839
- # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] a new instance of the resource for this update operation, on
2800
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign] a new instance of the resource for this update operation, on
2840
2801
  # which fields can be set to update
2841
2802
  #
2842
- # @overload #keyword_plan(resource, &blk)
2843
- # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] a resource instance to update
2803
+ # @overload #keyword_plan_campaign(resource, &blk)
2804
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign] a resource instance to update
2844
2805
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2845
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] the operation instance to update the resource
2846
- def self.keyword_plan(resource_or_path, &blk)
2847
- require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
2806
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] the operation instance to update the resource
2807
+ def self.keyword_plan_campaign(resource_or_path, &blk)
2808
+ require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
2848
2809
  res = case resource_or_path
2849
- when Google::Ads::GoogleAds::V2::Resources::KeywordPlan
2810
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign
2850
2811
  resource_or_path
2851
2812
  # got a resource path
2852
2813
  when String
2853
- obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlan.new
2814
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign.new
2854
2815
  obj.resource_name = resource_or_path
2855
2816
  obj
2856
2817
  else
2857
- unless Google::Ads::GoogleAds::V2::Resources::KeywordPlan === res
2818
+ unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign === res
2858
2819
  raise ArgumentError.new(
2859
2820
  "Called #{__method__} with instance of wrong type:"\
2860
2821
  " #{res.class} want #{operation.update_class}"\
@@ -2863,7 +2824,7 @@ module Google
2863
2824
  end
2864
2825
  end
2865
2826
 
2866
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
2827
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
2867
2828
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2868
2829
  op["update"] = res
2869
2830
  op
@@ -2908,6 +2869,45 @@ module Google
2908
2869
  op
2909
2870
  end
2910
2871
 
2872
+ # A convenience method for creating an KeywordPlanOperation instance with
2873
+ # its "update" field prepopulated with an KeywordPlan instance, and
2874
+ # its "update_mask" field populated as needed to send the updates to the API.
2875
+ #
2876
+ # @overload #keyword_plan(path, &blk)
2877
+ # @param path [String] a resource path for the resource to update
2878
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] a new instance of the resource for this update operation, on
2879
+ # which fields can be set to update
2880
+ #
2881
+ # @overload #keyword_plan(resource, &blk)
2882
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] a resource instance to update
2883
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2884
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] the operation instance to update the resource
2885
+ def self.keyword_plan(resource_or_path, &blk)
2886
+ require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
2887
+ res = case resource_or_path
2888
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlan
2889
+ resource_or_path
2890
+ # got a resource path
2891
+ when String
2892
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlan.new
2893
+ obj.resource_name = resource_or_path
2894
+ obj
2895
+ else
2896
+ unless Google::Ads::GoogleAds::V2::Resources::KeywordPlan === res
2897
+ raise ArgumentError.new(
2898
+ "Called #{__method__} with instance of wrong type:"\
2899
+ " #{res.class} want #{operation.update_class}"\
2900
+ " or String representing resource name"
2901
+ )
2902
+ end
2903
+ end
2904
+
2905
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
2906
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2907
+ op["update"] = res
2908
+ op
2909
+ end
2910
+
2911
2911
  # A convenience method for creating an CustomerManagerLinkOperation instance with
2912
2912
  # its "update" field prepopulated with an CustomerManagerLink instance, and
2913
2913
  # its "update_mask" field populated as needed to send the updates to the API.
@@ -2947,31 +2947,31 @@ module Google
2947
2947
  op
2948
2948
  end
2949
2949
 
2950
- # A convenience method for creating an AdOperation instance with
2951
- # its "update" field prepopulated with an Ad instance, and
2950
+ # A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with
2951
+ # its "update" field prepopulated with an KeywordPlanNegativeKeyword instance, and
2952
2952
  # its "update_mask" field populated as needed to send the updates to the API.
2953
2953
  #
2954
- # @overload #ad(path, &blk)
2954
+ # @overload #keyword_plan_negative_keyword(path, &blk)
2955
2955
  # @param path [String] a resource path for the resource to update
2956
- # @yield [Google::Ads::GoogleAds::V2::Resources::Ad] a new instance of the resource for this update operation, on
2956
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword] a new instance of the resource for this update operation, on
2957
2957
  # which fields can be set to update
2958
2958
  #
2959
- # @overload #ad(resource, &blk)
2960
- # @param resource [Google::Ads::GoogleAds::V2::Resources::Ad] a resource instance to update
2959
+ # @overload #keyword_plan_negative_keyword(resource, &blk)
2960
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword] a resource instance to update
2961
2961
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2962
- # @return [Google::Ads::GoogleAds::V2::Services::AdOperation] the operation instance to update the resource
2963
- def self.ad(resource_or_path, &blk)
2964
- require "google/ads/google_ads/v2/services/ad_service_pb.rb"
2962
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] the operation instance to update the resource
2963
+ def self.keyword_plan_negative_keyword(resource_or_path, &blk)
2964
+ require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
2965
2965
  res = case resource_or_path
2966
- when Google::Ads::GoogleAds::V2::Resources::Ad
2966
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword
2967
2967
  resource_or_path
2968
2968
  # got a resource path
2969
2969
  when String
2970
- obj = Google::Ads::GoogleAds::V2::Resources::Ad.new
2970
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword.new
2971
2971
  obj.resource_name = resource_or_path
2972
2972
  obj
2973
2973
  else
2974
- unless Google::Ads::GoogleAds::V2::Resources::Ad === res
2974
+ unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword === res
2975
2975
  raise ArgumentError.new(
2976
2976
  "Called #{__method__} with instance of wrong type:"\
2977
2977
  " #{res.class} want #{operation.update_class}"\
@@ -2980,37 +2980,37 @@ module Google
2980
2980
  end
2981
2981
  end
2982
2982
 
2983
- op = Google::Ads::GoogleAds::V2::Services::AdOperation.new
2983
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
2984
2984
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2985
2985
  op["update"] = res
2986
2986
  op
2987
2987
  end
2988
2988
 
2989
- # A convenience method for creating an CustomerClientLinkOperation instance with
2990
- # its "update" field prepopulated with an CustomerClientLink instance, and
2989
+ # A convenience method for creating an CustomInterestOperation instance with
2990
+ # its "update" field prepopulated with an CustomInterest instance, and
2991
2991
  # its "update_mask" field populated as needed to send the updates to the API.
2992
2992
  #
2993
- # @overload #customer_client_link(path, &blk)
2993
+ # @overload #custom_interest(path, &blk)
2994
2994
  # @param path [String] a resource path for the resource to update
2995
- # @yield [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
2995
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CustomInterest] a new instance of the resource for this update operation, on
2996
2996
  # which fields can be set to update
2997
2997
  #
2998
- # @overload #customer_client_link(resource, &blk)
2999
- # @param resource [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink] a resource instance to update
2998
+ # @overload #custom_interest(resource, &blk)
2999
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CustomInterest] a resource instance to update
3000
3000
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
3001
- # @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] the operation instance to update the resource
3002
- def self.customer_client_link(resource_or_path, &blk)
3003
- require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
3001
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation instance to update the resource
3002
+ def self.custom_interest(resource_or_path, &blk)
3003
+ require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
3004
3004
  res = case resource_or_path
3005
- when Google::Ads::GoogleAds::V2::Resources::CustomerClientLink
3005
+ when Google::Ads::GoogleAds::V2::Resources::CustomInterest
3006
3006
  resource_or_path
3007
3007
  # got a resource path
3008
3008
  when String
3009
- obj = Google::Ads::GoogleAds::V2::Resources::CustomerClientLink.new
3009
+ obj = Google::Ads::GoogleAds::V2::Resources::CustomInterest.new
3010
3010
  obj.resource_name = resource_or_path
3011
3011
  obj
3012
3012
  else
3013
- unless Google::Ads::GoogleAds::V2::Resources::CustomerClientLink === res
3013
+ unless Google::Ads::GoogleAds::V2::Resources::CustomInterest === res
3014
3014
  raise ArgumentError.new(
3015
3015
  "Called #{__method__} with instance of wrong type:"\
3016
3016
  " #{res.class} want #{operation.update_class}"\
@@ -3019,37 +3019,37 @@ module Google
3019
3019
  end
3020
3020
  end
3021
3021
 
3022
- op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
3022
+ op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
3023
3023
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3024
3024
  op["update"] = res
3025
3025
  op
3026
3026
  end
3027
3027
 
3028
- # A convenience method for creating an KeywordPlanAdGroupOperation instance with
3029
- # its "update" field prepopulated with an KeywordPlanAdGroup instance, and
3028
+ # A convenience method for creating an CustomerClientLinkOperation instance with
3029
+ # its "update" field prepopulated with an CustomerClientLink instance, and
3030
3030
  # its "update_mask" field populated as needed to send the updates to the API.
3031
3031
  #
3032
- # @overload #keyword_plan_ad_group(path, &blk)
3032
+ # @overload #customer_client_link(path, &blk)
3033
3033
  # @param path [String] a resource path for the resource to update
3034
- # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup] a new instance of the resource for this update operation, on
3034
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
3035
3035
  # which fields can be set to update
3036
3036
  #
3037
- # @overload #keyword_plan_ad_group(resource, &blk)
3038
- # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup] a resource instance to update
3037
+ # @overload #customer_client_link(resource, &blk)
3038
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink] a resource instance to update
3039
3039
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
3040
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] the operation instance to update the resource
3041
- def self.keyword_plan_ad_group(resource_or_path, &blk)
3042
- require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
3040
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] the operation instance to update the resource
3041
+ def self.customer_client_link(resource_or_path, &blk)
3042
+ require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
3043
3043
  res = case resource_or_path
3044
- when Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup
3044
+ when Google::Ads::GoogleAds::V2::Resources::CustomerClientLink
3045
3045
  resource_or_path
3046
3046
  # got a resource path
3047
3047
  when String
3048
- obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup.new
3048
+ obj = Google::Ads::GoogleAds::V2::Resources::CustomerClientLink.new
3049
3049
  obj.resource_name = resource_or_path
3050
3050
  obj
3051
3051
  else
3052
- unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup === res
3052
+ unless Google::Ads::GoogleAds::V2::Resources::CustomerClientLink === res
3053
3053
  raise ArgumentError.new(
3054
3054
  "Called #{__method__} with instance of wrong type:"\
3055
3055
  " #{res.class} want #{operation.update_class}"\
@@ -3058,7 +3058,7 @@ module Google
3058
3058
  end
3059
3059
  end
3060
3060
 
3061
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
3061
+ op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
3062
3062
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3063
3063
  op["update"] = res
3064
3064
  op
@@ -3077,90 +3077,222 @@ module Google
3077
3077
  op
3078
3078
  end
3079
3079
 
3080
- # A convenience method for creationg an CustomInterestOperation instance with
3080
+ # A convenience method for creationg an KeywordPlanKeywordOperation instance with
3081
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3082
+ #
3083
+ # @param path [String] the resource name of the resource to delete.
3084
+ def self.keyword_plan_keyword(path)
3085
+ require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
3086
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
3087
+ op["remove"] = path
3088
+ op
3089
+ end
3090
+
3091
+ # A convenience method for creationg an FeedMappingOperation instance with
3092
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3093
+ #
3094
+ # @param path [String] the resource name of the resource to delete.
3095
+ def self.feed_mapping(path)
3096
+ require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
3097
+ op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
3098
+ op["remove"] = path
3099
+ op
3100
+ end
3101
+
3102
+ # A convenience method for creationg an FeedOperation instance with
3103
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3104
+ #
3105
+ # @param path [String] the resource name of the resource to delete.
3106
+ def self.feed(path)
3107
+ require "google/ads/google_ads/v2/services/feed_service_pb.rb"
3108
+ op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
3109
+ op["remove"] = path
3110
+ op
3111
+ end
3112
+
3113
+ # A convenience method for creationg an AdGroupCriterionLabelOperation instance with
3114
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3115
+ #
3116
+ # @param path [String] the resource name of the resource to delete.
3117
+ def self.ad_group_criterion_label(path)
3118
+ require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
3119
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
3120
+ op["remove"] = path
3121
+ op
3122
+ end
3123
+
3124
+ # A convenience method for creationg an ConversionActionOperation instance with
3125
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3126
+ #
3127
+ # @param path [String] the resource name of the resource to delete.
3128
+ def self.conversion_action(path)
3129
+ require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
3130
+ op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
3131
+ op["remove"] = path
3132
+ op
3133
+ end
3134
+
3135
+ # A convenience method for creationg an BiddingStrategyOperation instance with
3136
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3137
+ #
3138
+ # @param path [String] the resource name of the resource to delete.
3139
+ def self.bidding_strategy(path)
3140
+ require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
3141
+ op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
3142
+ op["remove"] = path
3143
+ op
3144
+ end
3145
+
3146
+ # A convenience method for creationg an AccountBudgetProposalOperation instance with
3147
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3148
+ #
3149
+ # @param path [String] the resource name of the resource to delete.
3150
+ def self.account_budget_proposal(path)
3151
+ require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
3152
+ op = Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
3153
+ op["remove"] = path
3154
+ op
3155
+ end
3156
+
3157
+ # A convenience method for creationg an FeedItemOperation instance with
3158
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3159
+ #
3160
+ # @param path [String] the resource name of the resource to delete.
3161
+ def self.feed_item(path)
3162
+ require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
3163
+ op = Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
3164
+ op["remove"] = path
3165
+ op
3166
+ end
3167
+
3168
+ # A convenience method for creationg an CampaignBudgetOperation instance with
3169
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3170
+ #
3171
+ # @param path [String] the resource name of the resource to delete.
3172
+ def self.campaign_budget(path)
3173
+ require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
3174
+ op = Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
3175
+ op["remove"] = path
3176
+ op
3177
+ end
3178
+
3179
+ # A convenience method for creationg an AdGroupBidModifierOperation instance with
3180
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3181
+ #
3182
+ # @param path [String] the resource name of the resource to delete.
3183
+ def self.ad_group_bid_modifier(path)
3184
+ require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
3185
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
3186
+ op["remove"] = path
3187
+ op
3188
+ end
3189
+
3190
+ # A convenience method for creationg an AdOperation instance with
3191
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3192
+ #
3193
+ # @param path [String] the resource name of the resource to delete.
3194
+ def self.ad(path)
3195
+ require "google/ads/google_ads/v2/services/ad_service_pb.rb"
3196
+ op = Google::Ads::GoogleAds::V2::Services::AdOperation.new
3197
+ op["remove"] = path
3198
+ op
3199
+ end
3200
+
3201
+ # A convenience method for creationg an CustomerOperation instance with
3202
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3203
+ #
3204
+ # @param path [String] the resource name of the resource to delete.
3205
+ def self.customer(path)
3206
+ require "google/ads/google_ads/v2/services/customer_service_pb.rb"
3207
+ op = Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
3208
+ op["remove"] = path
3209
+ op
3210
+ end
3211
+
3212
+ # A convenience method for creationg an CampaignLabelOperation instance with
3081
3213
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3082
3214
  #
3083
3215
  # @param path [String] the resource name of the resource to delete.
3084
- def self.custom_interest(path)
3085
- require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
3086
- op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
3216
+ def self.campaign_label(path)
3217
+ require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
3218
+ op = Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
3087
3219
  op["remove"] = path
3088
3220
  op
3089
3221
  end
3090
3222
 
3091
- # A convenience method for creationg an RemarketingActionOperation instance with
3223
+ # A convenience method for creationg an SharedCriterionOperation instance with
3092
3224
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3093
3225
  #
3094
3226
  # @param path [String] the resource name of the resource to delete.
3095
- def self.remarketing_action(path)
3096
- require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
3097
- op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
3227
+ def self.shared_criterion(path)
3228
+ require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
3229
+ op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
3098
3230
  op["remove"] = path
3099
3231
  op
3100
3232
  end
3101
3233
 
3102
- # A convenience method for creationg an KeywordPlanCampaignOperation instance with
3234
+ # A convenience method for creationg an KeywordPlanAdGroupOperation instance with
3103
3235
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3104
3236
  #
3105
3237
  # @param path [String] the resource name of the resource to delete.
3106
- def self.keyword_plan_campaign(path)
3107
- require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
3108
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
3238
+ def self.keyword_plan_ad_group(path)
3239
+ require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
3240
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
3109
3241
  op["remove"] = path
3110
3242
  op
3111
3243
  end
3112
3244
 
3113
- # A convenience method for creationg an AdGroupAdLabelOperation instance with
3245
+ # A convenience method for creationg an CampaignDraftOperation instance with
3114
3246
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3115
3247
  #
3116
3248
  # @param path [String] the resource name of the resource to delete.
3117
- def self.ad_group_ad_label(path)
3118
- require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
3119
- op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
3249
+ def self.campaign_draft(path)
3250
+ require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
3251
+ op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
3120
3252
  op["remove"] = path
3121
3253
  op
3122
3254
  end
3123
3255
 
3124
- # A convenience method for creationg an AdGroupAdOperation instance with
3256
+ # A convenience method for creationg an CampaignFeedOperation instance with
3125
3257
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3126
3258
  #
3127
3259
  # @param path [String] the resource name of the resource to delete.
3128
- def self.ad_group_ad(path)
3129
- require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
3130
- op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
3260
+ def self.campaign_feed(path)
3261
+ require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
3262
+ op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
3131
3263
  op["remove"] = path
3132
3264
  op
3133
3265
  end
3134
3266
 
3135
- # A convenience method for creationg an AdGroupBidModifierOperation instance with
3267
+ # A convenience method for creationg an AdGroupCriterionOperation instance with
3136
3268
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3137
3269
  #
3138
3270
  # @param path [String] the resource name of the resource to delete.
3139
- def self.ad_group_bid_modifier(path)
3140
- require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
3141
- op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
3271
+ def self.ad_group_criterion(path)
3272
+ require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
3273
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
3142
3274
  op["remove"] = path
3143
3275
  op
3144
3276
  end
3145
3277
 
3146
- # A convenience method for creationg an AdGroupCriterionLabelOperation instance with
3278
+ # A convenience method for creationg an AdGroupAdLabelOperation instance with
3147
3279
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3148
3280
  #
3149
3281
  # @param path [String] the resource name of the resource to delete.
3150
- def self.ad_group_criterion_label(path)
3151
- require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
3152
- op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
3282
+ def self.ad_group_ad_label(path)
3283
+ require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
3284
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
3153
3285
  op["remove"] = path
3154
3286
  op
3155
3287
  end
3156
3288
 
3157
- # A convenience method for creationg an AdGroupCriterionOperation instance with
3289
+ # A convenience method for creationg an AdGroupAdOperation instance with
3158
3290
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3159
3291
  #
3160
3292
  # @param path [String] the resource name of the resource to delete.
3161
- def self.ad_group_criterion(path)
3162
- require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
3163
- op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
3293
+ def self.ad_group_ad(path)
3294
+ require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
3295
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
3164
3296
  op["remove"] = path
3165
3297
  op
3166
3298
  end
@@ -3231,17 +3363,6 @@ module Google
3231
3363
  op
3232
3364
  end
3233
3365
 
3234
- # A convenience method for creationg an BiddingStrategyOperation instance with
3235
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3236
- #
3237
- # @param path [String] the resource name of the resource to delete.
3238
- def self.bidding_strategy(path)
3239
- require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
3240
- op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
3241
- op["remove"] = path
3242
- op
3243
- end
3244
-
3245
3366
  # A convenience method for creationg an CampaignBidModifierOperation instance with
3246
3367
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3247
3368
  #
@@ -3253,17 +3374,6 @@ module Google
3253
3374
  op
3254
3375
  end
3255
3376
 
3256
- # A convenience method for creationg an CampaignBudgetOperation instance with
3257
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3258
- #
3259
- # @param path [String] the resource name of the resource to delete.
3260
- def self.campaign_budget(path)
3261
- require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
3262
- op = Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
3263
- op["remove"] = path
3264
- op
3265
- end
3266
-
3267
3377
  # A convenience method for creationg an CampaignCriterionOperation instance with
3268
3378
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3269
3379
  #
@@ -3275,17 +3385,6 @@ module Google
3275
3385
  op
3276
3386
  end
3277
3387
 
3278
- # A convenience method for creationg an CampaignDraftOperation instance with
3279
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3280
- #
3281
- # @param path [String] the resource name of the resource to delete.
3282
- def self.campaign_draft(path)
3283
- require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
3284
- op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
3285
- op["remove"] = path
3286
- op
3287
- end
3288
-
3289
3388
  # A convenience method for creationg an CampaignExperimentOperation instance with
3290
3389
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3291
3390
  #
@@ -3308,28 +3407,6 @@ module Google
3308
3407
  op
3309
3408
  end
3310
3409
 
3311
- # A convenience method for creationg an CampaignFeedOperation instance with
3312
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3313
- #
3314
- # @param path [String] the resource name of the resource to delete.
3315
- def self.campaign_feed(path)
3316
- require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
3317
- op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
3318
- op["remove"] = path
3319
- op
3320
- end
3321
-
3322
- # A convenience method for creationg an CampaignLabelOperation instance with
3323
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3324
- #
3325
- # @param path [String] the resource name of the resource to delete.
3326
- def self.campaign_label(path)
3327
- require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
3328
- op = Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
3329
- op["remove"] = path
3330
- op
3331
- end
3332
-
3333
3410
  # A convenience method for creationg an CampaignOperation instance with
3334
3411
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3335
3412
  #
@@ -3352,17 +3429,6 @@ module Google
3352
3429
  op
3353
3430
  end
3354
3431
 
3355
- # A convenience method for creationg an ConversionActionOperation instance with
3356
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3357
- #
3358
- # @param path [String] the resource name of the resource to delete.
3359
- def self.conversion_action(path)
3360
- require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
3361
- op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
3362
- op["remove"] = path
3363
- op
3364
- end
3365
-
3366
3432
  # A convenience method for creationg an CustomerExtensionSettingOperation instance with
3367
3433
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3368
3434
  #
@@ -3407,17 +3473,6 @@ module Google
3407
3473
  op
3408
3474
  end
3409
3475
 
3410
- # A convenience method for creationg an CustomerOperation instance with
3411
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3412
- #
3413
- # @param path [String] the resource name of the resource to delete.
3414
- def self.customer(path)
3415
- require "google/ads/google_ads/v2/services/customer_service_pb.rb"
3416
- op = Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
3417
- op["remove"] = path
3418
- op
3419
- end
3420
-
3421
3476
  # A convenience method for creationg an ExtensionFeedItemOperation instance with
3422
3477
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3423
3478
  #
@@ -3429,17 +3484,6 @@ module Google
3429
3484
  op
3430
3485
  end
3431
3486
 
3432
- # A convenience method for creationg an FeedItemOperation instance with
3433
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3434
- #
3435
- # @param path [String] the resource name of the resource to delete.
3436
- def self.feed_item(path)
3437
- require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
3438
- op = Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
3439
- op["remove"] = path
3440
- op
3441
- end
3442
-
3443
3487
  # A convenience method for creationg an FeedItemTargetOperation instance with
3444
3488
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3445
3489
  #
@@ -3451,28 +3495,6 @@ module Google
3451
3495
  op
3452
3496
  end
3453
3497
 
3454
- # A convenience method for creationg an FeedMappingOperation instance with
3455
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3456
- #
3457
- # @param path [String] the resource name of the resource to delete.
3458
- def self.feed_mapping(path)
3459
- require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
3460
- op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
3461
- op["remove"] = path
3462
- op
3463
- end
3464
-
3465
- # A convenience method for creationg an FeedOperation instance with
3466
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3467
- #
3468
- # @param path [String] the resource name of the resource to delete.
3469
- def self.feed(path)
3470
- require "google/ads/google_ads/v2/services/feed_service_pb.rb"
3471
- op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
3472
- op["remove"] = path
3473
- op
3474
- end
3475
-
3476
3498
  # A convenience method for creationg an LabelOperation instance with
3477
3499
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3478
3500
  #
@@ -3495,13 +3517,13 @@ module Google
3495
3517
  op
3496
3518
  end
3497
3519
 
3498
- # A convenience method for creationg an SharedCriterionOperation instance with
3520
+ # A convenience method for creationg an RemarketingActionOperation instance with
3499
3521
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3500
3522
  #
3501
3523
  # @param path [String] the resource name of the resource to delete.
3502
- def self.shared_criterion(path)
3503
- require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
3504
- op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
3524
+ def self.remarketing_action(path)
3525
+ require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
3526
+ op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
3505
3527
  op["remove"] = path
3506
3528
  op
3507
3529
  end
@@ -3539,17 +3561,6 @@ module Google
3539
3561
  op
3540
3562
  end
3541
3563
 
3542
- # A convenience method for creationg an KeywordPlanKeywordOperation instance with
3543
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3544
- #
3545
- # @param path [String] the resource name of the resource to delete.
3546
- def self.keyword_plan_keyword(path)
3547
- require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
3548
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
3549
- op["remove"] = path
3550
- op
3551
- end
3552
-
3553
3564
  # A convenience method for creationg an ApplyRecommendationOperation instance with
3554
3565
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3555
3566
  #
@@ -3572,24 +3583,24 @@ module Google
3572
3583
  op
3573
3584
  end
3574
3585
 
3575
- # A convenience method for creationg an KeywordPlanNegativeKeywordOperation instance with
3586
+ # A convenience method for creationg an KeywordPlanCampaignOperation instance with
3576
3587
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3577
3588
  #
3578
3589
  # @param path [String] the resource name of the resource to delete.
3579
- def self.keyword_plan_negative_keyword(path)
3580
- require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
3581
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
3590
+ def self.keyword_plan_campaign(path)
3591
+ require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
3592
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
3582
3593
  op["remove"] = path
3583
3594
  op
3584
3595
  end
3585
3596
 
3586
- # A convenience method for creationg an KeywordPlanOperation instance with
3597
+ # A convenience method for creationg an BillingSetupOperation instance with
3587
3598
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3588
3599
  #
3589
3600
  # @param path [String] the resource name of the resource to delete.
3590
- def self.keyword_plan(path)
3591
- require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
3592
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
3601
+ def self.billing_setup(path)
3602
+ require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
3603
+ op = Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
3593
3604
  op["remove"] = path
3594
3605
  op
3595
3606
  end
@@ -3605,6 +3616,17 @@ module Google
3605
3616
  op
3606
3617
  end
3607
3618
 
3619
+ # A convenience method for creationg an KeywordPlanOperation instance with
3620
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3621
+ #
3622
+ # @param path [String] the resource name of the resource to delete.
3623
+ def self.keyword_plan(path)
3624
+ require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
3625
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
3626
+ op["remove"] = path
3627
+ op
3628
+ end
3629
+
3608
3630
  # A convenience method for creationg an CustomerManagerLinkOperation instance with
3609
3631
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3610
3632
  #
@@ -3616,24 +3638,24 @@ module Google
3616
3638
  op
3617
3639
  end
3618
3640
 
3619
- # A convenience method for creationg an AccountBudgetProposalOperation instance with
3641
+ # A convenience method for creationg an KeywordPlanNegativeKeywordOperation instance with
3620
3642
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3621
3643
  #
3622
3644
  # @param path [String] the resource name of the resource to delete.
3623
- def self.account_budget_proposal(path)
3624
- require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
3625
- op = Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
3645
+ def self.keyword_plan_negative_keyword(path)
3646
+ require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
3647
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
3626
3648
  op["remove"] = path
3627
3649
  op
3628
3650
  end
3629
3651
 
3630
- # A convenience method for creationg an AdOperation instance with
3652
+ # A convenience method for creationg an CustomInterestOperation instance with
3631
3653
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3632
3654
  #
3633
3655
  # @param path [String] the resource name of the resource to delete.
3634
- def self.ad(path)
3635
- require "google/ads/google_ads/v2/services/ad_service_pb.rb"
3636
- op = Google::Ads::GoogleAds::V2::Services::AdOperation.new
3656
+ def self.custom_interest(path)
3657
+ require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
3658
+ op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
3637
3659
  op["remove"] = path
3638
3660
  op
3639
3661
  end
@@ -3648,28 +3670,6 @@ module Google
3648
3670
  op["remove"] = path
3649
3671
  op
3650
3672
  end
3651
-
3652
- # A convenience method for creationg an BillingSetupOperation instance with
3653
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3654
- #
3655
- # @param path [String] the resource name of the resource to delete.
3656
- def self.billing_setup(path)
3657
- require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
3658
- op = Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
3659
- op["remove"] = path
3660
- op
3661
- end
3662
-
3663
- # A convenience method for creationg an KeywordPlanAdGroupOperation instance with
3664
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3665
- #
3666
- # @param path [String] the resource name of the resource to delete.
3667
- def self.keyword_plan_ad_group(path)
3668
- require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
3669
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
3670
- op["remove"] = path
3671
- op
3672
- end
3673
3673
  end
3674
3674
  end
3675
3675
  end