google-ads-googleads 9.0.0 → 10.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,20 @@ module Google
4
4
  module Factories
5
5
  module V5
6
6
  module Operations
7
+ # Create a new FeedAttributeOperation
8
+ #
9
+ # @return [Google::Ads::GoogleAds::V5::Resources::FeedAttributeOperation] the operation
10
+ def self.feed_attribute
11
+ require "google/ads/google_ads/v5/resources/feed_pb"
12
+ if block_given?
13
+ op = Google::Ads::GoogleAds::V5::Resources::FeedAttributeOperation.new
14
+ yield op
15
+ op
16
+ else
17
+ Google::Ads::GoogleAds::V5::Resources::FeedAttributeOperation.new
18
+ end
19
+ end
20
+
7
21
  # Create a new TargetRestrictionOperation
8
22
  #
9
23
  # @return [Google::Ads::GoogleAds::V5::Common::TargetRestrictionOperation] the operation
@@ -18,59 +32,101 @@ module Google
18
32
  end
19
33
  end
20
34
 
21
- # Create a new FeedAttributeOperation
35
+ # Create a new CustomerClientLinkOperation
22
36
  #
23
- # @return [Google::Ads::GoogleAds::V5::Resources::FeedAttributeOperation] the operation
24
- def self.feed_attribute
25
- require "google/ads/google_ads/v5/resources/feed_pb"
37
+ # @return [Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation] the operation
38
+ def self.customer_client_link
39
+ require "google/ads/google_ads/v5/services/customer_client_link_service_pb"
26
40
  if block_given?
27
- op = Google::Ads::GoogleAds::V5::Resources::FeedAttributeOperation.new
41
+ op = Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation.new
28
42
  yield op
29
43
  op
30
44
  else
31
- Google::Ads::GoogleAds::V5::Resources::FeedAttributeOperation.new
45
+ Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation.new
32
46
  end
33
47
  end
34
48
 
35
- # Create a new CampaignBudgetOperation
49
+ # Create a new CustomInterestOperation
36
50
  #
37
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation] the operation
38
- def self.campaign_budget
39
- require "google/ads/google_ads/v5/services/campaign_budget_service_pb"
51
+ # @return [Google::Ads::GoogleAds::V5::Services::CustomInterestOperation] the operation
52
+ def self.custom_interest
53
+ require "google/ads/google_ads/v5/services/custom_interest_service_pb"
40
54
  if block_given?
41
- op = Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation.new
55
+ op = Google::Ads::GoogleAds::V5::Services::CustomInterestOperation.new
42
56
  yield op
43
57
  op
44
58
  else
45
- Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation.new
59
+ Google::Ads::GoogleAds::V5::Services::CustomInterestOperation.new
46
60
  end
47
61
  end
48
62
 
49
- # Create a new AdGroupAdLabelOperation
63
+ # Create a new CustomerNegativeCriterionOperation
50
64
  #
51
- # @return [Google::Ads::GoogleAds::V5::Services::AdGroupAdLabelOperation] the operation
52
- def self.ad_group_ad_label
53
- require "google/ads/google_ads/v5/services/ad_group_ad_label_service_pb"
65
+ # @return [Google::Ads::GoogleAds::V5::Services::CustomerNegativeCriterionOperation] the operation
66
+ def self.customer_negative_criterion
67
+ require "google/ads/google_ads/v5/services/customer_negative_criterion_service_pb"
54
68
  if block_given?
55
- op = Google::Ads::GoogleAds::V5::Services::AdGroupAdLabelOperation.new
69
+ op = Google::Ads::GoogleAds::V5::Services::CustomerNegativeCriterionOperation.new
56
70
  yield op
57
71
  op
58
72
  else
59
- Google::Ads::GoogleAds::V5::Services::AdGroupAdLabelOperation.new
73
+ Google::Ads::GoogleAds::V5::Services::CustomerNegativeCriterionOperation.new
60
74
  end
61
75
  end
62
76
 
63
- # Create a new CustomerOperation
77
+ # Create a new SharedCriterionOperation
64
78
  #
65
- # @return [Google::Ads::GoogleAds::V5::Services::CustomerOperation] the operation
66
- def self.customer
67
- require "google/ads/google_ads/v5/services/customer_service_pb"
79
+ # @return [Google::Ads::GoogleAds::V5::Services::SharedCriterionOperation] the operation
80
+ def self.shared_criterion
81
+ require "google/ads/google_ads/v5/services/shared_criterion_service_pb"
68
82
  if block_given?
69
- op = Google::Ads::GoogleAds::V5::Services::CustomerOperation.new
83
+ op = Google::Ads::GoogleAds::V5::Services::SharedCriterionOperation.new
70
84
  yield op
71
85
  op
72
86
  else
73
- Google::Ads::GoogleAds::V5::Services::CustomerOperation.new
87
+ Google::Ads::GoogleAds::V5::Services::SharedCriterionOperation.new
88
+ end
89
+ end
90
+
91
+ # Create a new KeywordPlanAdGroupKeywordOperation
92
+ #
93
+ # @return [Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation] the operation
94
+ def self.keyword_plan_ad_group_keyword
95
+ require "google/ads/google_ads/v5/services/keyword_plan_ad_group_keyword_service_pb"
96
+ if block_given?
97
+ op = Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation.new
98
+ yield op
99
+ op
100
+ else
101
+ Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation.new
102
+ end
103
+ end
104
+
105
+ # Create a new FeedMappingOperation
106
+ #
107
+ # @return [Google::Ads::GoogleAds::V5::Services::FeedMappingOperation] the operation
108
+ def self.feed_mapping
109
+ require "google/ads/google_ads/v5/services/feed_mapping_service_pb"
110
+ if block_given?
111
+ op = Google::Ads::GoogleAds::V5::Services::FeedMappingOperation.new
112
+ yield op
113
+ op
114
+ else
115
+ Google::Ads::GoogleAds::V5::Services::FeedMappingOperation.new
116
+ end
117
+ end
118
+
119
+ # Create a new AdGroupOperation
120
+ #
121
+ # @return [Google::Ads::GoogleAds::V5::Services::AdGroupOperation] the operation
122
+ def self.ad_group
123
+ require "google/ads/google_ads/v5/services/ad_group_service_pb"
124
+ if block_given?
125
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupOperation.new
126
+ yield op
127
+ op
128
+ else
129
+ Google::Ads::GoogleAds::V5::Services::AdGroupOperation.new
74
130
  end
75
131
  end
76
132
 
@@ -88,73 +144,73 @@ module Google
88
144
  end
89
145
  end
90
146
 
91
- # Create a new CampaignOperation
147
+ # Create a new CustomerManagerLinkOperation
92
148
  #
93
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignOperation] the operation
94
- def self.campaign
95
- require "google/ads/google_ads/v5/services/campaign_service_pb"
149
+ # @return [Google::Ads::GoogleAds::V5::Services::CustomerManagerLinkOperation] the operation
150
+ def self.customer_manager_link
151
+ require "google/ads/google_ads/v5/services/customer_manager_link_service_pb"
96
152
  if block_given?
97
- op = Google::Ads::GoogleAds::V5::Services::CampaignOperation.new
153
+ op = Google::Ads::GoogleAds::V5::Services::CustomerManagerLinkOperation.new
98
154
  yield op
99
155
  op
100
156
  else
101
- Google::Ads::GoogleAds::V5::Services::CampaignOperation.new
157
+ Google::Ads::GoogleAds::V5::Services::CustomerManagerLinkOperation.new
102
158
  end
103
159
  end
104
160
 
105
- # Create a new BiddingStrategyOperation
161
+ # Create a new CampaignDraftOperation
106
162
  #
107
- # @return [Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation] the operation
108
- def self.bidding_strategy
109
- require "google/ads/google_ads/v5/services/bidding_strategy_service_pb"
163
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation] the operation
164
+ def self.campaign_draft
165
+ require "google/ads/google_ads/v5/services/campaign_draft_service_pb"
110
166
  if block_given?
111
- op = Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation.new
167
+ op = Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation.new
112
168
  yield op
113
169
  op
114
170
  else
115
- Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation.new
171
+ Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation.new
116
172
  end
117
173
  end
118
174
 
119
- # Create a new AdGroupOperation
175
+ # Create a new UserListOperation
120
176
  #
121
- # @return [Google::Ads::GoogleAds::V5::Services::AdGroupOperation] the operation
122
- def self.ad_group
123
- require "google/ads/google_ads/v5/services/ad_group_service_pb"
177
+ # @return [Google::Ads::GoogleAds::V5::Services::UserListOperation] the operation
178
+ def self.user_list
179
+ require "google/ads/google_ads/v5/services/user_list_service_pb"
124
180
  if block_given?
125
- op = Google::Ads::GoogleAds::V5::Services::AdGroupOperation.new
181
+ op = Google::Ads::GoogleAds::V5::Services::UserListOperation.new
126
182
  yield op
127
183
  op
128
184
  else
129
- Google::Ads::GoogleAds::V5::Services::AdGroupOperation.new
185
+ Google::Ads::GoogleAds::V5::Services::UserListOperation.new
130
186
  end
131
187
  end
132
188
 
133
- # Create a new AdGroupAdOperation
189
+ # Create a new CustomerOperation
134
190
  #
135
- # @return [Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation] the operation
136
- def self.ad_group_ad
137
- require "google/ads/google_ads/v5/services/ad_group_ad_service_pb"
191
+ # @return [Google::Ads::GoogleAds::V5::Services::CustomerOperation] the operation
192
+ def self.customer
193
+ require "google/ads/google_ads/v5/services/customer_service_pb"
138
194
  if block_given?
139
- op = Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation.new
195
+ op = Google::Ads::GoogleAds::V5::Services::CustomerOperation.new
140
196
  yield op
141
197
  op
142
198
  else
143
- Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation.new
199
+ Google::Ads::GoogleAds::V5::Services::CustomerOperation.new
144
200
  end
145
201
  end
146
202
 
147
- # Create a new AdGroupBidModifierOperation
203
+ # Create a new SharedSetOperation
148
204
  #
149
- # @return [Google::Ads::GoogleAds::V5::Services::AdGroupBidModifierOperation] the operation
150
- def self.ad_group_bid_modifier
151
- require "google/ads/google_ads/v5/services/ad_group_bid_modifier_service_pb"
205
+ # @return [Google::Ads::GoogleAds::V5::Services::SharedSetOperation] the operation
206
+ def self.shared_set
207
+ require "google/ads/google_ads/v5/services/shared_set_service_pb"
152
208
  if block_given?
153
- op = Google::Ads::GoogleAds::V5::Services::AdGroupBidModifierOperation.new
209
+ op = Google::Ads::GoogleAds::V5::Services::SharedSetOperation.new
154
210
  yield op
155
211
  op
156
212
  else
157
- Google::Ads::GoogleAds::V5::Services::AdGroupBidModifierOperation.new
213
+ Google::Ads::GoogleAds::V5::Services::SharedSetOperation.new
158
214
  end
159
215
  end
160
216
 
@@ -172,6 +228,62 @@ module Google
172
228
  end
173
229
  end
174
230
 
231
+ # Create a new LabelOperation
232
+ #
233
+ # @return [Google::Ads::GoogleAds::V5::Services::LabelOperation] the operation
234
+ def self.label
235
+ require "google/ads/google_ads/v5/services/label_service_pb"
236
+ if block_given?
237
+ op = Google::Ads::GoogleAds::V5::Services::LabelOperation.new
238
+ yield op
239
+ op
240
+ else
241
+ Google::Ads::GoogleAds::V5::Services::LabelOperation.new
242
+ end
243
+ end
244
+
245
+ # Create a new AdGroupAdLabelOperation
246
+ #
247
+ # @return [Google::Ads::GoogleAds::V5::Services::AdGroupAdLabelOperation] the operation
248
+ def self.ad_group_ad_label
249
+ require "google/ads/google_ads/v5/services/ad_group_ad_label_service_pb"
250
+ if block_given?
251
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupAdLabelOperation.new
252
+ yield op
253
+ op
254
+ else
255
+ Google::Ads::GoogleAds::V5::Services::AdGroupAdLabelOperation.new
256
+ end
257
+ end
258
+
259
+ # Create a new AdGroupAdOperation
260
+ #
261
+ # @return [Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation] the operation
262
+ def self.ad_group_ad
263
+ require "google/ads/google_ads/v5/services/ad_group_ad_service_pb"
264
+ if block_given?
265
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation.new
266
+ yield op
267
+ op
268
+ else
269
+ Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation.new
270
+ end
271
+ end
272
+
273
+ # Create a new AdGroupBidModifierOperation
274
+ #
275
+ # @return [Google::Ads::GoogleAds::V5::Services::AdGroupBidModifierOperation] the operation
276
+ def self.ad_group_bid_modifier
277
+ require "google/ads/google_ads/v5/services/ad_group_bid_modifier_service_pb"
278
+ if block_given?
279
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupBidModifierOperation.new
280
+ yield op
281
+ op
282
+ else
283
+ Google::Ads::GoogleAds::V5::Services::AdGroupBidModifierOperation.new
284
+ end
285
+ end
286
+
175
287
  # Create a new AdGroupCriterionOperation
176
288
  #
177
289
  # @return [Google::Ads::GoogleAds::V5::Services::AdGroupCriterionOperation] the operation
@@ -270,6 +382,20 @@ module Google
270
382
  end
271
383
  end
272
384
 
385
+ # Create a new BiddingStrategyOperation
386
+ #
387
+ # @return [Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation] the operation
388
+ def self.bidding_strategy
389
+ require "google/ads/google_ads/v5/services/bidding_strategy_service_pb"
390
+ if block_given?
391
+ op = Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation.new
392
+ yield op
393
+ op
394
+ else
395
+ Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation.new
396
+ end
397
+ end
398
+
273
399
  # Create a new CampaignAssetOperation
274
400
  #
275
401
  # @return [Google::Ads::GoogleAds::V5::Services::CampaignAssetOperation] the operation
@@ -284,6 +410,20 @@ module Google
284
410
  end
285
411
  end
286
412
 
413
+ # Create a new CampaignBudgetOperation
414
+ #
415
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation] the operation
416
+ def self.campaign_budget
417
+ require "google/ads/google_ads/v5/services/campaign_budget_service_pb"
418
+ if block_given?
419
+ op = Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation.new
420
+ yield op
421
+ op
422
+ else
423
+ Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation.new
424
+ end
425
+ end
426
+
287
427
  # Create a new CampaignCriterionOperation
288
428
  #
289
429
  # @return [Google::Ads::GoogleAds::V5::Services::CampaignCriterionOperation] the operation
@@ -298,25 +438,11 @@ module Google
298
438
  end
299
439
  end
300
440
 
301
- # Create a new CampaignDraftOperation
441
+ # Create a new CampaignExperimentOperation
302
442
  #
303
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation] the operation
304
- def self.campaign_draft
305
- require "google/ads/google_ads/v5/services/campaign_draft_service_pb"
306
- if block_given?
307
- op = Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation.new
308
- yield op
309
- op
310
- else
311
- Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation.new
312
- end
313
- end
314
-
315
- # Create a new CampaignExperimentOperation
316
- #
317
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignExperimentOperation] the operation
318
- def self.campaign_experiment
319
- require "google/ads/google_ads/v5/services/campaign_experiment_service_pb"
443
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignExperimentOperation] the operation
444
+ def self.campaign_experiment
445
+ require "google/ads/google_ads/v5/services/campaign_experiment_service_pb"
320
446
  if block_given?
321
447
  op = Google::Ads::GoogleAds::V5::Services::CampaignExperimentOperation.new
322
448
  yield op
@@ -368,6 +494,20 @@ module Google
368
494
  end
369
495
  end
370
496
 
497
+ # Create a new CampaignOperation
498
+ #
499
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignOperation] the operation
500
+ def self.campaign
501
+ require "google/ads/google_ads/v5/services/campaign_service_pb"
502
+ if block_given?
503
+ op = Google::Ads::GoogleAds::V5::Services::CampaignOperation.new
504
+ yield op
505
+ op
506
+ else
507
+ Google::Ads::GoogleAds::V5::Services::CampaignOperation.new
508
+ end
509
+ end
510
+
371
511
  # Create a new CampaignSharedSetOperation
372
512
  #
373
513
  # @return [Google::Ads::GoogleAds::V5::Services::CampaignSharedSetOperation] the operation
@@ -438,20 +578,6 @@ module Google
438
578
  end
439
579
  end
440
580
 
441
- # Create a new CustomerNegativeCriterionOperation
442
- #
443
- # @return [Google::Ads::GoogleAds::V5::Services::CustomerNegativeCriterionOperation] the operation
444
- def self.customer_negative_criterion
445
- require "google/ads/google_ads/v5/services/customer_negative_criterion_service_pb"
446
- if block_given?
447
- op = Google::Ads::GoogleAds::V5::Services::CustomerNegativeCriterionOperation.new
448
- yield op
449
- op
450
- else
451
- Google::Ads::GoogleAds::V5::Services::CustomerNegativeCriterionOperation.new
452
- end
453
- end
454
-
455
581
  # Create a new ExtensionFeedItemOperation
456
582
  #
457
583
  # @return [Google::Ads::GoogleAds::V5::Services::ExtensionFeedItemOperation] the operation
@@ -494,20 +620,6 @@ module Google
494
620
  end
495
621
  end
496
622
 
497
- # Create a new FeedMappingOperation
498
- #
499
- # @return [Google::Ads::GoogleAds::V5::Services::FeedMappingOperation] the operation
500
- def self.feed_mapping
501
- require "google/ads/google_ads/v5/services/feed_mapping_service_pb"
502
- if block_given?
503
- op = Google::Ads::GoogleAds::V5::Services::FeedMappingOperation.new
504
- yield op
505
- op
506
- else
507
- Google::Ads::GoogleAds::V5::Services::FeedMappingOperation.new
508
- end
509
- end
510
-
511
623
  # Create a new FeedOperation
512
624
  #
513
625
  # @return [Google::Ads::GoogleAds::V5::Services::FeedOperation] the operation
@@ -522,20 +634,6 @@ module Google
522
634
  end
523
635
  end
524
636
 
525
- # Create a new KeywordPlanAdGroupKeywordOperation
526
- #
527
- # @return [Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation] the operation
528
- def self.keyword_plan_ad_group_keyword
529
- require "google/ads/google_ads/v5/services/keyword_plan_ad_group_keyword_service_pb"
530
- if block_given?
531
- op = Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation.new
532
- yield op
533
- op
534
- else
535
- Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation.new
536
- end
537
- end
538
-
539
637
  # Create a new KeywordPlanAdGroupOperation
540
638
  #
541
639
  # @return [Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupOperation] the operation
@@ -592,20 +690,6 @@ module Google
592
690
  end
593
691
  end
594
692
 
595
- # Create a new LabelOperation
596
- #
597
- # @return [Google::Ads::GoogleAds::V5::Services::LabelOperation] the operation
598
- def self.label
599
- require "google/ads/google_ads/v5/services/label_service_pb"
600
- if block_given?
601
- op = Google::Ads::GoogleAds::V5::Services::LabelOperation.new
602
- yield op
603
- op
604
- else
605
- Google::Ads::GoogleAds::V5::Services::LabelOperation.new
606
- end
607
- end
608
-
609
693
  # Create a new MediaFileOperation
610
694
  #
611
695
  # @return [Google::Ads::GoogleAds::V5::Services::MediaFileOperation] the operation
@@ -634,48 +718,6 @@ module Google
634
718
  end
635
719
  end
636
720
 
637
- # Create a new SharedCriterionOperation
638
- #
639
- # @return [Google::Ads::GoogleAds::V5::Services::SharedCriterionOperation] the operation
640
- def self.shared_criterion
641
- require "google/ads/google_ads/v5/services/shared_criterion_service_pb"
642
- if block_given?
643
- op = Google::Ads::GoogleAds::V5::Services::SharedCriterionOperation.new
644
- yield op
645
- op
646
- else
647
- Google::Ads::GoogleAds::V5::Services::SharedCriterionOperation.new
648
- end
649
- end
650
-
651
- # Create a new SharedSetOperation
652
- #
653
- # @return [Google::Ads::GoogleAds::V5::Services::SharedSetOperation] the operation
654
- def self.shared_set
655
- require "google/ads/google_ads/v5/services/shared_set_service_pb"
656
- if block_given?
657
- op = Google::Ads::GoogleAds::V5::Services::SharedSetOperation.new
658
- yield op
659
- op
660
- else
661
- Google::Ads::GoogleAds::V5::Services::SharedSetOperation.new
662
- end
663
- end
664
-
665
- # Create a new UserListOperation
666
- #
667
- # @return [Google::Ads::GoogleAds::V5::Services::UserListOperation] the operation
668
- def self.user_list
669
- require "google/ads/google_ads/v5/services/user_list_service_pb"
670
- if block_given?
671
- op = Google::Ads::GoogleAds::V5::Services::UserListOperation.new
672
- yield op
673
- op
674
- else
675
- Google::Ads::GoogleAds::V5::Services::UserListOperation.new
676
- end
677
- end
678
-
679
721
  # Create a new MutateOperation
680
722
  #
681
723
  # @return [Google::Ads::GoogleAds::V5::Services::MutateOperation] the operation
@@ -718,48 +760,6 @@ module Google
718
760
  end
719
761
  end
720
762
 
721
- # Create a new CustomInterestOperation
722
- #
723
- # @return [Google::Ads::GoogleAds::V5::Services::CustomInterestOperation] the operation
724
- def self.custom_interest
725
- require "google/ads/google_ads/v5/services/custom_interest_service_pb"
726
- if block_given?
727
- op = Google::Ads::GoogleAds::V5::Services::CustomInterestOperation.new
728
- yield op
729
- op
730
- else
731
- Google::Ads::GoogleAds::V5::Services::CustomInterestOperation.new
732
- end
733
- end
734
-
735
- # Create a new MerchantCenterLinkOperation
736
- #
737
- # @return [Google::Ads::GoogleAds::V5::Services::MerchantCenterLinkOperation] the operation
738
- def self.merchant_center_link
739
- require "google/ads/google_ads/v5/services/merchant_center_link_service_pb"
740
- if block_given?
741
- op = Google::Ads::GoogleAds::V5::Services::MerchantCenterLinkOperation.new
742
- yield op
743
- op
744
- else
745
- Google::Ads::GoogleAds::V5::Services::MerchantCenterLinkOperation.new
746
- end
747
- end
748
-
749
- # Create a new CustomerClientLinkOperation
750
- #
751
- # @return [Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation] the operation
752
- def self.customer_client_link
753
- require "google/ads/google_ads/v5/services/customer_client_link_service_pb"
754
- if block_given?
755
- op = Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation.new
756
- yield op
757
- op
758
- else
759
- Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation.new
760
- end
761
- end
762
-
763
763
  # Create a new UserDataOperation
764
764
  #
765
765
  # @return [Google::Ads::GoogleAds::V5::Services::UserDataOperation] the operation
@@ -774,17 +774,17 @@ module Google
774
774
  end
775
775
  end
776
776
 
777
- # Create a new CustomerManagerLinkOperation
777
+ # Create a new AccountBudgetProposalOperation
778
778
  #
779
- # @return [Google::Ads::GoogleAds::V5::Services::CustomerManagerLinkOperation] the operation
780
- def self.customer_manager_link
781
- require "google/ads/google_ads/v5/services/customer_manager_link_service_pb"
779
+ # @return [Google::Ads::GoogleAds::V5::Services::AccountBudgetProposalOperation] the operation
780
+ def self.account_budget_proposal
781
+ require "google/ads/google_ads/v5/services/account_budget_proposal_service_pb"
782
782
  if block_given?
783
- op = Google::Ads::GoogleAds::V5::Services::CustomerManagerLinkOperation.new
783
+ op = Google::Ads::GoogleAds::V5::Services::AccountBudgetProposalOperation.new
784
784
  yield op
785
785
  op
786
786
  else
787
- Google::Ads::GoogleAds::V5::Services::CustomerManagerLinkOperation.new
787
+ Google::Ads::GoogleAds::V5::Services::AccountBudgetProposalOperation.new
788
788
  end
789
789
  end
790
790
 
@@ -816,45 +816,45 @@ module Google
816
816
  end
817
817
  end
818
818
 
819
- # Create a new BillingSetupOperation
819
+ # Create a new AccountLinkOperation
820
820
  #
821
- # @return [Google::Ads::GoogleAds::V5::Services::BillingSetupOperation] the operation
822
- def self.billing_setup
823
- require "google/ads/google_ads/v5/services/billing_setup_service_pb"
821
+ # @return [Google::Ads::GoogleAds::V5::Services::AccountLinkOperation] the operation
822
+ def self.account_link
823
+ require "google/ads/google_ads/v5/services/account_link_service_pb"
824
824
  if block_given?
825
- op = Google::Ads::GoogleAds::V5::Services::BillingSetupOperation.new
825
+ op = Google::Ads::GoogleAds::V5::Services::AccountLinkOperation.new
826
826
  yield op
827
827
  op
828
828
  else
829
- Google::Ads::GoogleAds::V5::Services::BillingSetupOperation.new
829
+ Google::Ads::GoogleAds::V5::Services::AccountLinkOperation.new
830
830
  end
831
831
  end
832
832
 
833
- # Create a new AccountLinkOperation
833
+ # Create a new MerchantCenterLinkOperation
834
834
  #
835
- # @return [Google::Ads::GoogleAds::V5::Services::AccountLinkOperation] the operation
836
- def self.account_link
837
- require "google/ads/google_ads/v5/services/account_link_service_pb"
835
+ # @return [Google::Ads::GoogleAds::V5::Services::MerchantCenterLinkOperation] the operation
836
+ def self.merchant_center_link
837
+ require "google/ads/google_ads/v5/services/merchant_center_link_service_pb"
838
838
  if block_given?
839
- op = Google::Ads::GoogleAds::V5::Services::AccountLinkOperation.new
839
+ op = Google::Ads::GoogleAds::V5::Services::MerchantCenterLinkOperation.new
840
840
  yield op
841
841
  op
842
842
  else
843
- Google::Ads::GoogleAds::V5::Services::AccountLinkOperation.new
843
+ Google::Ads::GoogleAds::V5::Services::MerchantCenterLinkOperation.new
844
844
  end
845
845
  end
846
846
 
847
- # Create a new AccountBudgetProposalOperation
847
+ # Create a new BillingSetupOperation
848
848
  #
849
- # @return [Google::Ads::GoogleAds::V5::Services::AccountBudgetProposalOperation] the operation
850
- def self.account_budget_proposal
851
- require "google/ads/google_ads/v5/services/account_budget_proposal_service_pb"
849
+ # @return [Google::Ads::GoogleAds::V5::Services::BillingSetupOperation] the operation
850
+ def self.billing_setup
851
+ require "google/ads/google_ads/v5/services/billing_setup_service_pb"
852
852
  if block_given?
853
- op = Google::Ads::GoogleAds::V5::Services::AccountBudgetProposalOperation.new
853
+ op = Google::Ads::GoogleAds::V5::Services::BillingSetupOperation.new
854
854
  yield op
855
855
  op
856
856
  else
857
- Google::Ads::GoogleAds::V5::Services::AccountBudgetProposalOperation.new
857
+ Google::Ads::GoogleAds::V5::Services::BillingSetupOperation.new
858
858
  end
859
859
  end
860
860
 
@@ -883,136 +883,163 @@ module Google
883
883
  end
884
884
 
885
885
  module CreateResource
886
- # A convenience method for creating an CampaignBudgetOperation instance with
887
- # its "create" field prepopulated with an CampaignBudget instance.
886
+ # A convenience method for creating an CustomerClientLinkOperation instance with
887
+ # its "create" field prepopulated with an CustomerClientLink instance.
888
888
  #
889
- # @overload campaign_budget
890
- # creates an operation instance, yielding a newly fabricated CampaignBudget
889
+ # @overload customer_client_link
890
+ # creates an operation instance, yielding a newly fabricated CustomerClientLink
891
891
  # which can be used for setting attributes on the newly created resource
892
- # @overload campaign_budget(res)
892
+ # @overload customer_client_link(res)
893
893
  # creates an operation instance, with the resource to be created
894
894
  # set to the passed value (res)
895
- # @param res [Google::Ads::GoogleAds::V5::Resources::CampaignBudget]
895
+ # @param res [Google::Ads::GoogleAds::V5::Resources::CustomerClientLink]
896
896
  # a resource instance to be used for creation in this operation.
897
897
  #
898
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation] instance that will create the resource
899
- def self.campaign_budget(res = nil, &blk)
900
- require "google/ads/google_ads/v5/services/campaign_budget_service_pb"
901
- op = Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation.new
898
+ # @return [Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation] instance that will create the resource
899
+ def self.customer_client_link(res = nil, &blk)
900
+ require "google/ads/google_ads/v5/services/customer_client_link_service_pb"
901
+ op = Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation.new
902
902
  op["create"] = if !res.nil?
903
903
  res
904
904
  elsif !blk.nil?
905
- Factories::V5::Resources.campaign_budget(&blk)
905
+ Factories::V5::Resources.customer_client_link(&blk)
906
906
  else
907
- Factories::V5::Resources.campaign_budget
907
+ Factories::V5::Resources.customer_client_link
908
908
  end
909
909
 
910
910
  op
911
911
  end
912
912
 
913
- # A convenience method for creating an AdGroupAdLabelOperation instance with
914
- # its "create" field prepopulated with an AdGroupAdLabel instance.
913
+ # A convenience method for creating an CustomInterestOperation instance with
914
+ # its "create" field prepopulated with an CustomInterest instance.
915
915
  #
916
- # @overload ad_group_ad_label
917
- # creates an operation instance, yielding a newly fabricated AdGroupAdLabel
916
+ # @overload custom_interest
917
+ # creates an operation instance, yielding a newly fabricated CustomInterest
918
918
  # which can be used for setting attributes on the newly created resource
919
- # @overload ad_group_ad_label(res)
919
+ # @overload custom_interest(res)
920
920
  # creates an operation instance, with the resource to be created
921
921
  # set to the passed value (res)
922
- # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupAdLabel]
922
+ # @param res [Google::Ads::GoogleAds::V5::Resources::CustomInterest]
923
923
  # a resource instance to be used for creation in this operation.
924
924
  #
925
- # @return [Google::Ads::GoogleAds::V5::Services::AdGroupAdLabelOperation] instance that will create the resource
926
- def self.ad_group_ad_label(res = nil, &blk)
927
- require "google/ads/google_ads/v5/services/ad_group_ad_label_service_pb"
928
- op = Google::Ads::GoogleAds::V5::Services::AdGroupAdLabelOperation.new
925
+ # @return [Google::Ads::GoogleAds::V5::Services::CustomInterestOperation] instance that will create the resource
926
+ def self.custom_interest(res = nil, &blk)
927
+ require "google/ads/google_ads/v5/services/custom_interest_service_pb"
928
+ op = Google::Ads::GoogleAds::V5::Services::CustomInterestOperation.new
929
929
  op["create"] = if !res.nil?
930
930
  res
931
931
  elsif !blk.nil?
932
- Factories::V5::Resources.ad_group_ad_label(&blk)
932
+ Factories::V5::Resources.custom_interest(&blk)
933
933
  else
934
- Factories::V5::Resources.ad_group_ad_label
934
+ Factories::V5::Resources.custom_interest
935
935
  end
936
936
 
937
937
  op
938
938
  end
939
939
 
940
- # A convenience method for creating an CampaignBidModifierOperation instance with
941
- # its "create" field prepopulated with an CampaignBidModifier instance.
940
+ # A convenience method for creating an CustomerNegativeCriterionOperation instance with
941
+ # its "create" field prepopulated with an CustomerNegativeCriterion instance.
942
942
  #
943
- # @overload campaign_bid_modifier
944
- # creates an operation instance, yielding a newly fabricated CampaignBidModifier
943
+ # @overload customer_negative_criterion
944
+ # creates an operation instance, yielding a newly fabricated CustomerNegativeCriterion
945
945
  # which can be used for setting attributes on the newly created resource
946
- # @overload campaign_bid_modifier(res)
946
+ # @overload customer_negative_criterion(res)
947
947
  # creates an operation instance, with the resource to be created
948
948
  # set to the passed value (res)
949
- # @param res [Google::Ads::GoogleAds::V5::Resources::CampaignBidModifier]
949
+ # @param res [Google::Ads::GoogleAds::V5::Resources::CustomerNegativeCriterion]
950
950
  # a resource instance to be used for creation in this operation.
951
951
  #
952
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignBidModifierOperation] instance that will create the resource
953
- def self.campaign_bid_modifier(res = nil, &blk)
954
- require "google/ads/google_ads/v5/services/campaign_bid_modifier_service_pb"
955
- op = Google::Ads::GoogleAds::V5::Services::CampaignBidModifierOperation.new
952
+ # @return [Google::Ads::GoogleAds::V5::Services::CustomerNegativeCriterionOperation] instance that will create the resource
953
+ def self.customer_negative_criterion(res = nil, &blk)
954
+ require "google/ads/google_ads/v5/services/customer_negative_criterion_service_pb"
955
+ op = Google::Ads::GoogleAds::V5::Services::CustomerNegativeCriterionOperation.new
956
956
  op["create"] = if !res.nil?
957
957
  res
958
958
  elsif !blk.nil?
959
- Factories::V5::Resources.campaign_bid_modifier(&blk)
959
+ Factories::V5::Resources.customer_negative_criterion(&blk)
960
960
  else
961
- Factories::V5::Resources.campaign_bid_modifier
961
+ Factories::V5::Resources.customer_negative_criterion
962
962
  end
963
963
 
964
964
  op
965
965
  end
966
966
 
967
- # A convenience method for creating an CampaignOperation instance with
968
- # its "create" field prepopulated with an Campaign instance.
967
+ # A convenience method for creating an SharedCriterionOperation instance with
968
+ # its "create" field prepopulated with an SharedCriterion instance.
969
969
  #
970
- # @overload campaign
971
- # creates an operation instance, yielding a newly fabricated Campaign
970
+ # @overload shared_criterion
971
+ # creates an operation instance, yielding a newly fabricated SharedCriterion
972
972
  # which can be used for setting attributes on the newly created resource
973
- # @overload campaign(res)
973
+ # @overload shared_criterion(res)
974
974
  # creates an operation instance, with the resource to be created
975
975
  # set to the passed value (res)
976
- # @param res [Google::Ads::GoogleAds::V5::Resources::Campaign]
976
+ # @param res [Google::Ads::GoogleAds::V5::Resources::SharedCriterion]
977
977
  # a resource instance to be used for creation in this operation.
978
978
  #
979
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignOperation] instance that will create the resource
980
- def self.campaign(res = nil, &blk)
981
- require "google/ads/google_ads/v5/services/campaign_service_pb"
982
- op = Google::Ads::GoogleAds::V5::Services::CampaignOperation.new
979
+ # @return [Google::Ads::GoogleAds::V5::Services::SharedCriterionOperation] instance that will create the resource
980
+ def self.shared_criterion(res = nil, &blk)
981
+ require "google/ads/google_ads/v5/services/shared_criterion_service_pb"
982
+ op = Google::Ads::GoogleAds::V5::Services::SharedCriterionOperation.new
983
983
  op["create"] = if !res.nil?
984
984
  res
985
985
  elsif !blk.nil?
986
- Factories::V5::Resources.campaign(&blk)
986
+ Factories::V5::Resources.shared_criterion(&blk)
987
987
  else
988
- Factories::V5::Resources.campaign
988
+ Factories::V5::Resources.shared_criterion
989
989
  end
990
990
 
991
991
  op
992
992
  end
993
993
 
994
- # A convenience method for creating an BiddingStrategyOperation instance with
995
- # its "create" field prepopulated with an BiddingStrategy instance.
994
+ # A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
995
+ # its "create" field prepopulated with an KeywordPlanAdGroupKeyword instance.
996
996
  #
997
- # @overload bidding_strategy
998
- # creates an operation instance, yielding a newly fabricated BiddingStrategy
997
+ # @overload keyword_plan_ad_group_keyword
998
+ # creates an operation instance, yielding a newly fabricated KeywordPlanAdGroupKeyword
999
999
  # which can be used for setting attributes on the newly created resource
1000
- # @overload bidding_strategy(res)
1000
+ # @overload keyword_plan_ad_group_keyword(res)
1001
1001
  # creates an operation instance, with the resource to be created
1002
1002
  # set to the passed value (res)
1003
- # @param res [Google::Ads::GoogleAds::V5::Resources::BiddingStrategy]
1003
+ # @param res [Google::Ads::GoogleAds::V5::Resources::KeywordPlanAdGroupKeyword]
1004
1004
  # a resource instance to be used for creation in this operation.
1005
1005
  #
1006
- # @return [Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation] instance that will create the resource
1007
- def self.bidding_strategy(res = nil, &blk)
1008
- require "google/ads/google_ads/v5/services/bidding_strategy_service_pb"
1009
- op = Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation.new
1006
+ # @return [Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation] instance that will create the resource
1007
+ def self.keyword_plan_ad_group_keyword(res = nil, &blk)
1008
+ require "google/ads/google_ads/v5/services/keyword_plan_ad_group_keyword_service_pb"
1009
+ op = Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation.new
1010
1010
  op["create"] = if !res.nil?
1011
1011
  res
1012
1012
  elsif !blk.nil?
1013
- Factories::V5::Resources.bidding_strategy(&blk)
1013
+ Factories::V5::Resources.keyword_plan_ad_group_keyword(&blk)
1014
1014
  else
1015
- Factories::V5::Resources.bidding_strategy
1015
+ Factories::V5::Resources.keyword_plan_ad_group_keyword
1016
+ end
1017
+
1018
+ op
1019
+ end
1020
+
1021
+ # A convenience method for creating an FeedMappingOperation instance with
1022
+ # its "create" field prepopulated with an FeedMapping instance.
1023
+ #
1024
+ # @overload feed_mapping
1025
+ # creates an operation instance, yielding a newly fabricated FeedMapping
1026
+ # which can be used for setting attributes on the newly created resource
1027
+ # @overload feed_mapping(res)
1028
+ # creates an operation instance, with the resource to be created
1029
+ # set to the passed value (res)
1030
+ # @param res [Google::Ads::GoogleAds::V5::Resources::FeedMapping]
1031
+ # a resource instance to be used for creation in this operation.
1032
+ #
1033
+ # @return [Google::Ads::GoogleAds::V5::Services::FeedMappingOperation] instance that will create the resource
1034
+ def self.feed_mapping(res = nil, &blk)
1035
+ require "google/ads/google_ads/v5/services/feed_mapping_service_pb"
1036
+ op = Google::Ads::GoogleAds::V5::Services::FeedMappingOperation.new
1037
+ op["create"] = if !res.nil?
1038
+ res
1039
+ elsif !blk.nil?
1040
+ Factories::V5::Resources.feed_mapping(&blk)
1041
+ else
1042
+ Factories::V5::Resources.feed_mapping
1016
1043
  end
1017
1044
 
1018
1045
  op
@@ -1045,172 +1072,334 @@ module Google
1045
1072
  op
1046
1073
  end
1047
1074
 
1048
- # A convenience method for creating an AdGroupAdOperation instance with
1049
- # its "create" field prepopulated with an AdGroupAd instance.
1075
+ # A convenience method for creating an CampaignBidModifierOperation instance with
1076
+ # its "create" field prepopulated with an CampaignBidModifier instance.
1050
1077
  #
1051
- # @overload ad_group_ad
1052
- # creates an operation instance, yielding a newly fabricated AdGroupAd
1078
+ # @overload campaign_bid_modifier
1079
+ # creates an operation instance, yielding a newly fabricated CampaignBidModifier
1053
1080
  # which can be used for setting attributes on the newly created resource
1054
- # @overload ad_group_ad(res)
1081
+ # @overload campaign_bid_modifier(res)
1055
1082
  # creates an operation instance, with the resource to be created
1056
1083
  # set to the passed value (res)
1057
- # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupAd]
1084
+ # @param res [Google::Ads::GoogleAds::V5::Resources::CampaignBidModifier]
1058
1085
  # a resource instance to be used for creation in this operation.
1059
1086
  #
1060
- # @return [Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation] instance that will create the resource
1061
- def self.ad_group_ad(res = nil, &blk)
1062
- require "google/ads/google_ads/v5/services/ad_group_ad_service_pb"
1063
- op = Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation.new
1087
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignBidModifierOperation] instance that will create the resource
1088
+ def self.campaign_bid_modifier(res = nil, &blk)
1089
+ require "google/ads/google_ads/v5/services/campaign_bid_modifier_service_pb"
1090
+ op = Google::Ads::GoogleAds::V5::Services::CampaignBidModifierOperation.new
1064
1091
  op["create"] = if !res.nil?
1065
1092
  res
1066
1093
  elsif !blk.nil?
1067
- Factories::V5::Resources.ad_group_ad(&blk)
1094
+ Factories::V5::Resources.campaign_bid_modifier(&blk)
1068
1095
  else
1069
- Factories::V5::Resources.ad_group_ad
1096
+ Factories::V5::Resources.campaign_bid_modifier
1070
1097
  end
1071
1098
 
1072
1099
  op
1073
1100
  end
1074
1101
 
1075
- # A convenience method for creating an AdGroupBidModifierOperation instance with
1076
- # its "create" field prepopulated with an AdGroupBidModifier instance.
1102
+ # A convenience method for creating an CampaignDraftOperation instance with
1103
+ # its "create" field prepopulated with an CampaignDraft instance.
1077
1104
  #
1078
- # @overload ad_group_bid_modifier
1079
- # creates an operation instance, yielding a newly fabricated AdGroupBidModifier
1105
+ # @overload campaign_draft
1106
+ # creates an operation instance, yielding a newly fabricated CampaignDraft
1080
1107
  # which can be used for setting attributes on the newly created resource
1081
- # @overload ad_group_bid_modifier(res)
1108
+ # @overload campaign_draft(res)
1082
1109
  # creates an operation instance, with the resource to be created
1083
1110
  # set to the passed value (res)
1084
- # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupBidModifier]
1111
+ # @param res [Google::Ads::GoogleAds::V5::Resources::CampaignDraft]
1085
1112
  # a resource instance to be used for creation in this operation.
1086
1113
  #
1087
- # @return [Google::Ads::GoogleAds::V5::Services::AdGroupBidModifierOperation] instance that will create the resource
1088
- def self.ad_group_bid_modifier(res = nil, &blk)
1089
- require "google/ads/google_ads/v5/services/ad_group_bid_modifier_service_pb"
1090
- op = Google::Ads::GoogleAds::V5::Services::AdGroupBidModifierOperation.new
1114
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation] instance that will create the resource
1115
+ def self.campaign_draft(res = nil, &blk)
1116
+ require "google/ads/google_ads/v5/services/campaign_draft_service_pb"
1117
+ op = Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation.new
1091
1118
  op["create"] = if !res.nil?
1092
1119
  res
1093
1120
  elsif !blk.nil?
1094
- Factories::V5::Resources.ad_group_bid_modifier(&blk)
1121
+ Factories::V5::Resources.campaign_draft(&blk)
1095
1122
  else
1096
- Factories::V5::Resources.ad_group_bid_modifier
1123
+ Factories::V5::Resources.campaign_draft
1097
1124
  end
1098
1125
 
1099
1126
  op
1100
1127
  end
1101
1128
 
1102
- # A convenience method for creating an AdGroupCriterionLabelOperation instance with
1103
- # its "create" field prepopulated with an AdGroupCriterionLabel instance.
1129
+ # A convenience method for creating an UserListOperation instance with
1130
+ # its "create" field prepopulated with an UserList instance.
1104
1131
  #
1105
- # @overload ad_group_criterion_label
1106
- # creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
1132
+ # @overload user_list
1133
+ # creates an operation instance, yielding a newly fabricated UserList
1107
1134
  # which can be used for setting attributes on the newly created resource
1108
- # @overload ad_group_criterion_label(res)
1135
+ # @overload user_list(res)
1109
1136
  # creates an operation instance, with the resource to be created
1110
1137
  # set to the passed value (res)
1111
- # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupCriterionLabel]
1138
+ # @param res [Google::Ads::GoogleAds::V5::Resources::UserList]
1112
1139
  # a resource instance to be used for creation in this operation.
1113
1140
  #
1114
- # @return [Google::Ads::GoogleAds::V5::Services::AdGroupCriterionLabelOperation] instance that will create the resource
1115
- def self.ad_group_criterion_label(res = nil, &blk)
1116
- require "google/ads/google_ads/v5/services/ad_group_criterion_label_service_pb"
1117
- op = Google::Ads::GoogleAds::V5::Services::AdGroupCriterionLabelOperation.new
1141
+ # @return [Google::Ads::GoogleAds::V5::Services::UserListOperation] instance that will create the resource
1142
+ def self.user_list(res = nil, &blk)
1143
+ require "google/ads/google_ads/v5/services/user_list_service_pb"
1144
+ op = Google::Ads::GoogleAds::V5::Services::UserListOperation.new
1118
1145
  op["create"] = if !res.nil?
1119
1146
  res
1120
1147
  elsif !blk.nil?
1121
- Factories::V5::Resources.ad_group_criterion_label(&blk)
1148
+ Factories::V5::Resources.user_list(&blk)
1122
1149
  else
1123
- Factories::V5::Resources.ad_group_criterion_label
1150
+ Factories::V5::Resources.user_list
1124
1151
  end
1125
1152
 
1126
1153
  op
1127
1154
  end
1128
1155
 
1129
- # A convenience method for creating an AdGroupCriterionOperation instance with
1130
- # its "create" field prepopulated with an AdGroupCriterion instance.
1156
+ # A convenience method for creating an SharedSetOperation instance with
1157
+ # its "create" field prepopulated with an SharedSet instance.
1131
1158
  #
1132
- # @overload ad_group_criterion
1133
- # creates an operation instance, yielding a newly fabricated AdGroupCriterion
1159
+ # @overload shared_set
1160
+ # creates an operation instance, yielding a newly fabricated SharedSet
1134
1161
  # which can be used for setting attributes on the newly created resource
1135
- # @overload ad_group_criterion(res)
1162
+ # @overload shared_set(res)
1136
1163
  # creates an operation instance, with the resource to be created
1137
1164
  # set to the passed value (res)
1138
- # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupCriterion]
1165
+ # @param res [Google::Ads::GoogleAds::V5::Resources::SharedSet]
1139
1166
  # a resource instance to be used for creation in this operation.
1140
1167
  #
1141
- # @return [Google::Ads::GoogleAds::V5::Services::AdGroupCriterionOperation] instance that will create the resource
1142
- def self.ad_group_criterion(res = nil, &blk)
1143
- require "google/ads/google_ads/v5/services/ad_group_criterion_service_pb"
1144
- op = Google::Ads::GoogleAds::V5::Services::AdGroupCriterionOperation.new
1168
+ # @return [Google::Ads::GoogleAds::V5::Services::SharedSetOperation] instance that will create the resource
1169
+ def self.shared_set(res = nil, &blk)
1170
+ require "google/ads/google_ads/v5/services/shared_set_service_pb"
1171
+ op = Google::Ads::GoogleAds::V5::Services::SharedSetOperation.new
1145
1172
  op["create"] = if !res.nil?
1146
1173
  res
1147
1174
  elsif !blk.nil?
1148
- Factories::V5::Resources.ad_group_criterion(&blk)
1175
+ Factories::V5::Resources.shared_set(&blk)
1149
1176
  else
1150
- Factories::V5::Resources.ad_group_criterion
1177
+ Factories::V5::Resources.shared_set
1151
1178
  end
1152
1179
 
1153
1180
  op
1154
1181
  end
1155
1182
 
1156
- # A convenience method for creating an AdGroupExtensionSettingOperation instance with
1157
- # its "create" field prepopulated with an AdGroupExtensionSetting instance.
1183
+ # A convenience method for creating an AdGroupCriterionLabelOperation instance with
1184
+ # its "create" field prepopulated with an AdGroupCriterionLabel instance.
1158
1185
  #
1159
- # @overload ad_group_extension_setting
1160
- # creates an operation instance, yielding a newly fabricated AdGroupExtensionSetting
1186
+ # @overload ad_group_criterion_label
1187
+ # creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
1161
1188
  # which can be used for setting attributes on the newly created resource
1162
- # @overload ad_group_extension_setting(res)
1189
+ # @overload ad_group_criterion_label(res)
1163
1190
  # creates an operation instance, with the resource to be created
1164
1191
  # set to the passed value (res)
1165
- # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupExtensionSetting]
1192
+ # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupCriterionLabel]
1166
1193
  # a resource instance to be used for creation in this operation.
1167
1194
  #
1168
- # @return [Google::Ads::GoogleAds::V5::Services::AdGroupExtensionSettingOperation] instance that will create the resource
1169
- def self.ad_group_extension_setting(res = nil, &blk)
1170
- require "google/ads/google_ads/v5/services/ad_group_extension_setting_service_pb"
1171
- op = Google::Ads::GoogleAds::V5::Services::AdGroupExtensionSettingOperation.new
1195
+ # @return [Google::Ads::GoogleAds::V5::Services::AdGroupCriterionLabelOperation] instance that will create the resource
1196
+ def self.ad_group_criterion_label(res = nil, &blk)
1197
+ require "google/ads/google_ads/v5/services/ad_group_criterion_label_service_pb"
1198
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupCriterionLabelOperation.new
1172
1199
  op["create"] = if !res.nil?
1173
1200
  res
1174
1201
  elsif !blk.nil?
1175
- Factories::V5::Resources.ad_group_extension_setting(&blk)
1202
+ Factories::V5::Resources.ad_group_criterion_label(&blk)
1176
1203
  else
1177
- Factories::V5::Resources.ad_group_extension_setting
1204
+ Factories::V5::Resources.ad_group_criterion_label
1178
1205
  end
1179
1206
 
1180
1207
  op
1181
1208
  end
1182
1209
 
1183
- # A convenience method for creating an AdGroupFeedOperation instance with
1184
- # its "create" field prepopulated with an AdGroupFeed instance.
1210
+ # A convenience method for creating an LabelOperation instance with
1211
+ # its "create" field prepopulated with an Label instance.
1185
1212
  #
1186
- # @overload ad_group_feed
1187
- # creates an operation instance, yielding a newly fabricated AdGroupFeed
1213
+ # @overload label
1214
+ # creates an operation instance, yielding a newly fabricated Label
1188
1215
  # which can be used for setting attributes on the newly created resource
1189
- # @overload ad_group_feed(res)
1216
+ # @overload label(res)
1190
1217
  # creates an operation instance, with the resource to be created
1191
1218
  # set to the passed value (res)
1192
- # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupFeed]
1219
+ # @param res [Google::Ads::GoogleAds::V5::Resources::Label]
1193
1220
  # a resource instance to be used for creation in this operation.
1194
1221
  #
1195
- # @return [Google::Ads::GoogleAds::V5::Services::AdGroupFeedOperation] instance that will create the resource
1196
- def self.ad_group_feed(res = nil, &blk)
1197
- require "google/ads/google_ads/v5/services/ad_group_feed_service_pb"
1198
- op = Google::Ads::GoogleAds::V5::Services::AdGroupFeedOperation.new
1222
+ # @return [Google::Ads::GoogleAds::V5::Services::LabelOperation] instance that will create the resource
1223
+ def self.label(res = nil, &blk)
1224
+ require "google/ads/google_ads/v5/services/label_service_pb"
1225
+ op = Google::Ads::GoogleAds::V5::Services::LabelOperation.new
1199
1226
  op["create"] = if !res.nil?
1200
1227
  res
1201
1228
  elsif !blk.nil?
1202
- Factories::V5::Resources.ad_group_feed(&blk)
1229
+ Factories::V5::Resources.label(&blk)
1203
1230
  else
1204
- Factories::V5::Resources.ad_group_feed
1231
+ Factories::V5::Resources.label
1205
1232
  end
1206
1233
 
1207
1234
  op
1208
1235
  end
1209
1236
 
1210
- # A convenience method for creating an AdGroupLabelOperation instance with
1211
- # its "create" field prepopulated with an AdGroupLabel instance.
1237
+ # A convenience method for creating an AdGroupAdLabelOperation instance with
1238
+ # its "create" field prepopulated with an AdGroupAdLabel instance.
1212
1239
  #
1213
- # @overload ad_group_label
1240
+ # @overload ad_group_ad_label
1241
+ # creates an operation instance, yielding a newly fabricated AdGroupAdLabel
1242
+ # which can be used for setting attributes on the newly created resource
1243
+ # @overload ad_group_ad_label(res)
1244
+ # creates an operation instance, with the resource to be created
1245
+ # set to the passed value (res)
1246
+ # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupAdLabel]
1247
+ # a resource instance to be used for creation in this operation.
1248
+ #
1249
+ # @return [Google::Ads::GoogleAds::V5::Services::AdGroupAdLabelOperation] instance that will create the resource
1250
+ def self.ad_group_ad_label(res = nil, &blk)
1251
+ require "google/ads/google_ads/v5/services/ad_group_ad_label_service_pb"
1252
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupAdLabelOperation.new
1253
+ op["create"] = if !res.nil?
1254
+ res
1255
+ elsif !blk.nil?
1256
+ Factories::V5::Resources.ad_group_ad_label(&blk)
1257
+ else
1258
+ Factories::V5::Resources.ad_group_ad_label
1259
+ end
1260
+
1261
+ op
1262
+ end
1263
+
1264
+ # A convenience method for creating an AdGroupAdOperation instance with
1265
+ # its "create" field prepopulated with an AdGroupAd instance.
1266
+ #
1267
+ # @overload ad_group_ad
1268
+ # creates an operation instance, yielding a newly fabricated AdGroupAd
1269
+ # which can be used for setting attributes on the newly created resource
1270
+ # @overload ad_group_ad(res)
1271
+ # creates an operation instance, with the resource to be created
1272
+ # set to the passed value (res)
1273
+ # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupAd]
1274
+ # a resource instance to be used for creation in this operation.
1275
+ #
1276
+ # @return [Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation] instance that will create the resource
1277
+ def self.ad_group_ad(res = nil, &blk)
1278
+ require "google/ads/google_ads/v5/services/ad_group_ad_service_pb"
1279
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation.new
1280
+ op["create"] = if !res.nil?
1281
+ res
1282
+ elsif !blk.nil?
1283
+ Factories::V5::Resources.ad_group_ad(&blk)
1284
+ else
1285
+ Factories::V5::Resources.ad_group_ad
1286
+ end
1287
+
1288
+ op
1289
+ end
1290
+
1291
+ # A convenience method for creating an AdGroupBidModifierOperation instance with
1292
+ # its "create" field prepopulated with an AdGroupBidModifier instance.
1293
+ #
1294
+ # @overload ad_group_bid_modifier
1295
+ # creates an operation instance, yielding a newly fabricated AdGroupBidModifier
1296
+ # which can be used for setting attributes on the newly created resource
1297
+ # @overload ad_group_bid_modifier(res)
1298
+ # creates an operation instance, with the resource to be created
1299
+ # set to the passed value (res)
1300
+ # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupBidModifier]
1301
+ # a resource instance to be used for creation in this operation.
1302
+ #
1303
+ # @return [Google::Ads::GoogleAds::V5::Services::AdGroupBidModifierOperation] instance that will create the resource
1304
+ def self.ad_group_bid_modifier(res = nil, &blk)
1305
+ require "google/ads/google_ads/v5/services/ad_group_bid_modifier_service_pb"
1306
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupBidModifierOperation.new
1307
+ op["create"] = if !res.nil?
1308
+ res
1309
+ elsif !blk.nil?
1310
+ Factories::V5::Resources.ad_group_bid_modifier(&blk)
1311
+ else
1312
+ Factories::V5::Resources.ad_group_bid_modifier
1313
+ end
1314
+
1315
+ op
1316
+ end
1317
+
1318
+ # A convenience method for creating an AdGroupCriterionOperation instance with
1319
+ # its "create" field prepopulated with an AdGroupCriterion instance.
1320
+ #
1321
+ # @overload ad_group_criterion
1322
+ # creates an operation instance, yielding a newly fabricated AdGroupCriterion
1323
+ # which can be used for setting attributes on the newly created resource
1324
+ # @overload ad_group_criterion(res)
1325
+ # creates an operation instance, with the resource to be created
1326
+ # set to the passed value (res)
1327
+ # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupCriterion]
1328
+ # a resource instance to be used for creation in this operation.
1329
+ #
1330
+ # @return [Google::Ads::GoogleAds::V5::Services::AdGroupCriterionOperation] instance that will create the resource
1331
+ def self.ad_group_criterion(res = nil, &blk)
1332
+ require "google/ads/google_ads/v5/services/ad_group_criterion_service_pb"
1333
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupCriterionOperation.new
1334
+ op["create"] = if !res.nil?
1335
+ res
1336
+ elsif !blk.nil?
1337
+ Factories::V5::Resources.ad_group_criterion(&blk)
1338
+ else
1339
+ Factories::V5::Resources.ad_group_criterion
1340
+ end
1341
+
1342
+ op
1343
+ end
1344
+
1345
+ # A convenience method for creating an AdGroupExtensionSettingOperation instance with
1346
+ # its "create" field prepopulated with an AdGroupExtensionSetting instance.
1347
+ #
1348
+ # @overload ad_group_extension_setting
1349
+ # creates an operation instance, yielding a newly fabricated AdGroupExtensionSetting
1350
+ # which can be used for setting attributes on the newly created resource
1351
+ # @overload ad_group_extension_setting(res)
1352
+ # creates an operation instance, with the resource to be created
1353
+ # set to the passed value (res)
1354
+ # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupExtensionSetting]
1355
+ # a resource instance to be used for creation in this operation.
1356
+ #
1357
+ # @return [Google::Ads::GoogleAds::V5::Services::AdGroupExtensionSettingOperation] instance that will create the resource
1358
+ def self.ad_group_extension_setting(res = nil, &blk)
1359
+ require "google/ads/google_ads/v5/services/ad_group_extension_setting_service_pb"
1360
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupExtensionSettingOperation.new
1361
+ op["create"] = if !res.nil?
1362
+ res
1363
+ elsif !blk.nil?
1364
+ Factories::V5::Resources.ad_group_extension_setting(&blk)
1365
+ else
1366
+ Factories::V5::Resources.ad_group_extension_setting
1367
+ end
1368
+
1369
+ op
1370
+ end
1371
+
1372
+ # A convenience method for creating an AdGroupFeedOperation instance with
1373
+ # its "create" field prepopulated with an AdGroupFeed instance.
1374
+ #
1375
+ # @overload ad_group_feed
1376
+ # creates an operation instance, yielding a newly fabricated AdGroupFeed
1377
+ # which can be used for setting attributes on the newly created resource
1378
+ # @overload ad_group_feed(res)
1379
+ # creates an operation instance, with the resource to be created
1380
+ # set to the passed value (res)
1381
+ # @param res [Google::Ads::GoogleAds::V5::Resources::AdGroupFeed]
1382
+ # a resource instance to be used for creation in this operation.
1383
+ #
1384
+ # @return [Google::Ads::GoogleAds::V5::Services::AdGroupFeedOperation] instance that will create the resource
1385
+ def self.ad_group_feed(res = nil, &blk)
1386
+ require "google/ads/google_ads/v5/services/ad_group_feed_service_pb"
1387
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupFeedOperation.new
1388
+ op["create"] = if !res.nil?
1389
+ res
1390
+ elsif !blk.nil?
1391
+ Factories::V5::Resources.ad_group_feed(&blk)
1392
+ else
1393
+ Factories::V5::Resources.ad_group_feed
1394
+ end
1395
+
1396
+ op
1397
+ end
1398
+
1399
+ # A convenience method for creating an AdGroupLabelOperation instance with
1400
+ # its "create" field prepopulated with an AdGroupLabel instance.
1401
+ #
1402
+ # @overload ad_group_label
1214
1403
  # creates an operation instance, yielding a newly fabricated AdGroupLabel
1215
1404
  # which can be used for setting attributes on the newly created resource
1216
1405
  # @overload ad_group_label(res)
@@ -1288,6 +1477,33 @@ module Google
1288
1477
  op
1289
1478
  end
1290
1479
 
1480
+ # A convenience method for creating an BiddingStrategyOperation instance with
1481
+ # its "create" field prepopulated with an BiddingStrategy instance.
1482
+ #
1483
+ # @overload bidding_strategy
1484
+ # creates an operation instance, yielding a newly fabricated BiddingStrategy
1485
+ # which can be used for setting attributes on the newly created resource
1486
+ # @overload bidding_strategy(res)
1487
+ # creates an operation instance, with the resource to be created
1488
+ # set to the passed value (res)
1489
+ # @param res [Google::Ads::GoogleAds::V5::Resources::BiddingStrategy]
1490
+ # a resource instance to be used for creation in this operation.
1491
+ #
1492
+ # @return [Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation] instance that will create the resource
1493
+ def self.bidding_strategy(res = nil, &blk)
1494
+ require "google/ads/google_ads/v5/services/bidding_strategy_service_pb"
1495
+ op = Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation.new
1496
+ op["create"] = if !res.nil?
1497
+ res
1498
+ elsif !blk.nil?
1499
+ Factories::V5::Resources.bidding_strategy(&blk)
1500
+ else
1501
+ Factories::V5::Resources.bidding_strategy
1502
+ end
1503
+
1504
+ op
1505
+ end
1506
+
1291
1507
  # A convenience method for creating an CampaignAssetOperation instance with
1292
1508
  # its "create" field prepopulated with an CampaignAsset instance.
1293
1509
  #
@@ -1315,55 +1531,55 @@ module Google
1315
1531
  op
1316
1532
  end
1317
1533
 
1318
- # A convenience method for creating an CampaignCriterionOperation instance with
1319
- # its "create" field prepopulated with an CampaignCriterion instance.
1534
+ # A convenience method for creating an CampaignBudgetOperation instance with
1535
+ # its "create" field prepopulated with an CampaignBudget instance.
1320
1536
  #
1321
- # @overload campaign_criterion
1322
- # creates an operation instance, yielding a newly fabricated CampaignCriterion
1537
+ # @overload campaign_budget
1538
+ # creates an operation instance, yielding a newly fabricated CampaignBudget
1323
1539
  # which can be used for setting attributes on the newly created resource
1324
- # @overload campaign_criterion(res)
1540
+ # @overload campaign_budget(res)
1325
1541
  # creates an operation instance, with the resource to be created
1326
1542
  # set to the passed value (res)
1327
- # @param res [Google::Ads::GoogleAds::V5::Resources::CampaignCriterion]
1543
+ # @param res [Google::Ads::GoogleAds::V5::Resources::CampaignBudget]
1328
1544
  # a resource instance to be used for creation in this operation.
1329
1545
  #
1330
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignCriterionOperation] instance that will create the resource
1331
- def self.campaign_criterion(res = nil, &blk)
1332
- require "google/ads/google_ads/v5/services/campaign_criterion_service_pb"
1333
- op = Google::Ads::GoogleAds::V5::Services::CampaignCriterionOperation.new
1546
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation] instance that will create the resource
1547
+ def self.campaign_budget(res = nil, &blk)
1548
+ require "google/ads/google_ads/v5/services/campaign_budget_service_pb"
1549
+ op = Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation.new
1334
1550
  op["create"] = if !res.nil?
1335
1551
  res
1336
1552
  elsif !blk.nil?
1337
- Factories::V5::Resources.campaign_criterion(&blk)
1553
+ Factories::V5::Resources.campaign_budget(&blk)
1338
1554
  else
1339
- Factories::V5::Resources.campaign_criterion
1555
+ Factories::V5::Resources.campaign_budget
1340
1556
  end
1341
1557
 
1342
1558
  op
1343
1559
  end
1344
1560
 
1345
- # A convenience method for creating an CampaignDraftOperation instance with
1346
- # its "create" field prepopulated with an CampaignDraft instance.
1561
+ # A convenience method for creating an CampaignCriterionOperation instance with
1562
+ # its "create" field prepopulated with an CampaignCriterion instance.
1347
1563
  #
1348
- # @overload campaign_draft
1349
- # creates an operation instance, yielding a newly fabricated CampaignDraft
1564
+ # @overload campaign_criterion
1565
+ # creates an operation instance, yielding a newly fabricated CampaignCriterion
1350
1566
  # which can be used for setting attributes on the newly created resource
1351
- # @overload campaign_draft(res)
1567
+ # @overload campaign_criterion(res)
1352
1568
  # creates an operation instance, with the resource to be created
1353
1569
  # set to the passed value (res)
1354
- # @param res [Google::Ads::GoogleAds::V5::Resources::CampaignDraft]
1570
+ # @param res [Google::Ads::GoogleAds::V5::Resources::CampaignCriterion]
1355
1571
  # a resource instance to be used for creation in this operation.
1356
1572
  #
1357
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation] instance that will create the resource
1358
- def self.campaign_draft(res = nil, &blk)
1359
- require "google/ads/google_ads/v5/services/campaign_draft_service_pb"
1360
- op = Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation.new
1573
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignCriterionOperation] instance that will create the resource
1574
+ def self.campaign_criterion(res = nil, &blk)
1575
+ require "google/ads/google_ads/v5/services/campaign_criterion_service_pb"
1576
+ op = Google::Ads::GoogleAds::V5::Services::CampaignCriterionOperation.new
1361
1577
  op["create"] = if !res.nil?
1362
1578
  res
1363
1579
  elsif !blk.nil?
1364
- Factories::V5::Resources.campaign_draft(&blk)
1580
+ Factories::V5::Resources.campaign_criterion(&blk)
1365
1581
  else
1366
- Factories::V5::Resources.campaign_draft
1582
+ Factories::V5::Resources.campaign_criterion
1367
1583
  end
1368
1584
 
1369
1585
  op
@@ -1450,24 +1666,51 @@ module Google
1450
1666
  op
1451
1667
  end
1452
1668
 
1453
- # A convenience method for creating an CampaignSharedSetOperation instance with
1454
- # its "create" field prepopulated with an CampaignSharedSet instance.
1669
+ # A convenience method for creating an CampaignOperation instance with
1670
+ # its "create" field prepopulated with an Campaign instance.
1455
1671
  #
1456
- # @overload campaign_shared_set
1457
- # creates an operation instance, yielding a newly fabricated CampaignSharedSet
1672
+ # @overload campaign
1673
+ # creates an operation instance, yielding a newly fabricated Campaign
1458
1674
  # which can be used for setting attributes on the newly created resource
1459
- # @overload campaign_shared_set(res)
1675
+ # @overload campaign(res)
1460
1676
  # creates an operation instance, with the resource to be created
1461
1677
  # set to the passed value (res)
1462
- # @param res [Google::Ads::GoogleAds::V5::Resources::CampaignSharedSet]
1678
+ # @param res [Google::Ads::GoogleAds::V5::Resources::Campaign]
1463
1679
  # a resource instance to be used for creation in this operation.
1464
1680
  #
1465
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignSharedSetOperation] instance that will create the resource
1466
- def self.campaign_shared_set(res = nil, &blk)
1467
- require "google/ads/google_ads/v5/services/campaign_shared_set_service_pb"
1468
- op = Google::Ads::GoogleAds::V5::Services::CampaignSharedSetOperation.new
1469
- op["create"] = if !res.nil?
1470
- res
1681
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignOperation] instance that will create the resource
1682
+ def self.campaign(res = nil, &blk)
1683
+ require "google/ads/google_ads/v5/services/campaign_service_pb"
1684
+ op = Google::Ads::GoogleAds::V5::Services::CampaignOperation.new
1685
+ op["create"] = if !res.nil?
1686
+ res
1687
+ elsif !blk.nil?
1688
+ Factories::V5::Resources.campaign(&blk)
1689
+ else
1690
+ Factories::V5::Resources.campaign
1691
+ end
1692
+
1693
+ op
1694
+ end
1695
+
1696
+ # A convenience method for creating an CampaignSharedSetOperation instance with
1697
+ # its "create" field prepopulated with an CampaignSharedSet instance.
1698
+ #
1699
+ # @overload campaign_shared_set
1700
+ # creates an operation instance, yielding a newly fabricated CampaignSharedSet
1701
+ # which can be used for setting attributes on the newly created resource
1702
+ # @overload campaign_shared_set(res)
1703
+ # creates an operation instance, with the resource to be created
1704
+ # set to the passed value (res)
1705
+ # @param res [Google::Ads::GoogleAds::V5::Resources::CampaignSharedSet]
1706
+ # a resource instance to be used for creation in this operation.
1707
+ #
1708
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignSharedSetOperation] instance that will create the resource
1709
+ def self.campaign_shared_set(res = nil, &blk)
1710
+ require "google/ads/google_ads/v5/services/campaign_shared_set_service_pb"
1711
+ op = Google::Ads::GoogleAds::V5::Services::CampaignSharedSetOperation.new
1712
+ op["create"] = if !res.nil?
1713
+ res
1471
1714
  elsif !blk.nil?
1472
1715
  Factories::V5::Resources.campaign_shared_set(&blk)
1473
1716
  else
@@ -1585,33 +1828,6 @@ module Google
1585
1828
  op
1586
1829
  end
1587
1830
 
1588
- # A convenience method for creating an CustomerNegativeCriterionOperation instance with
1589
- # its "create" field prepopulated with an CustomerNegativeCriterion instance.
1590
- #
1591
- # @overload customer_negative_criterion
1592
- # creates an operation instance, yielding a newly fabricated CustomerNegativeCriterion
1593
- # which can be used for setting attributes on the newly created resource
1594
- # @overload customer_negative_criterion(res)
1595
- # creates an operation instance, with the resource to be created
1596
- # set to the passed value (res)
1597
- # @param res [Google::Ads::GoogleAds::V5::Resources::CustomerNegativeCriterion]
1598
- # a resource instance to be used for creation in this operation.
1599
- #
1600
- # @return [Google::Ads::GoogleAds::V5::Services::CustomerNegativeCriterionOperation] instance that will create the resource
1601
- def self.customer_negative_criterion(res = nil, &blk)
1602
- require "google/ads/google_ads/v5/services/customer_negative_criterion_service_pb"
1603
- op = Google::Ads::GoogleAds::V5::Services::CustomerNegativeCriterionOperation.new
1604
- op["create"] = if !res.nil?
1605
- res
1606
- elsif !blk.nil?
1607
- Factories::V5::Resources.customer_negative_criterion(&blk)
1608
- else
1609
- Factories::V5::Resources.customer_negative_criterion
1610
- end
1611
-
1612
- op
1613
- end
1614
-
1615
1831
  # A convenience method for creating an ExtensionFeedItemOperation instance with
1616
1832
  # its "create" field prepopulated with an ExtensionFeedItem instance.
1617
1833
  #
@@ -1693,33 +1909,6 @@ module Google
1693
1909
  op
1694
1910
  end
1695
1911
 
1696
- # A convenience method for creating an FeedMappingOperation instance with
1697
- # its "create" field prepopulated with an FeedMapping instance.
1698
- #
1699
- # @overload feed_mapping
1700
- # creates an operation instance, yielding a newly fabricated FeedMapping
1701
- # which can be used for setting attributes on the newly created resource
1702
- # @overload feed_mapping(res)
1703
- # creates an operation instance, with the resource to be created
1704
- # set to the passed value (res)
1705
- # @param res [Google::Ads::GoogleAds::V5::Resources::FeedMapping]
1706
- # a resource instance to be used for creation in this operation.
1707
- #
1708
- # @return [Google::Ads::GoogleAds::V5::Services::FeedMappingOperation] instance that will create the resource
1709
- def self.feed_mapping(res = nil, &blk)
1710
- require "google/ads/google_ads/v5/services/feed_mapping_service_pb"
1711
- op = Google::Ads::GoogleAds::V5::Services::FeedMappingOperation.new
1712
- op["create"] = if !res.nil?
1713
- res
1714
- elsif !blk.nil?
1715
- Factories::V5::Resources.feed_mapping(&blk)
1716
- else
1717
- Factories::V5::Resources.feed_mapping
1718
- end
1719
-
1720
- op
1721
- end
1722
-
1723
1912
  # A convenience method for creating an FeedOperation instance with
1724
1913
  # its "create" field prepopulated with an Feed instance.
1725
1914
  #
@@ -1747,33 +1936,6 @@ module Google
1747
1936
  op
1748
1937
  end
1749
1938
 
1750
- # A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
1751
- # its "create" field prepopulated with an KeywordPlanAdGroupKeyword instance.
1752
- #
1753
- # @overload keyword_plan_ad_group_keyword
1754
- # creates an operation instance, yielding a newly fabricated KeywordPlanAdGroupKeyword
1755
- # which can be used for setting attributes on the newly created resource
1756
- # @overload keyword_plan_ad_group_keyword(res)
1757
- # creates an operation instance, with the resource to be created
1758
- # set to the passed value (res)
1759
- # @param res [Google::Ads::GoogleAds::V5::Resources::KeywordPlanAdGroupKeyword]
1760
- # a resource instance to be used for creation in this operation.
1761
- #
1762
- # @return [Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation] instance that will create the resource
1763
- def self.keyword_plan_ad_group_keyword(res = nil, &blk)
1764
- require "google/ads/google_ads/v5/services/keyword_plan_ad_group_keyword_service_pb"
1765
- op = Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation.new
1766
- op["create"] = if !res.nil?
1767
- res
1768
- elsif !blk.nil?
1769
- Factories::V5::Resources.keyword_plan_ad_group_keyword(&blk)
1770
- else
1771
- Factories::V5::Resources.keyword_plan_ad_group_keyword
1772
- end
1773
-
1774
- op
1775
- end
1776
-
1777
1939
  # A convenience method for creating an KeywordPlanAdGroupOperation instance with
1778
1940
  # its "create" field prepopulated with an KeywordPlanAdGroup instance.
1779
1941
  #
@@ -1882,33 +2044,6 @@ module Google
1882
2044
  op
1883
2045
  end
1884
2046
 
1885
- # A convenience method for creating an LabelOperation instance with
1886
- # its "create" field prepopulated with an Label instance.
1887
- #
1888
- # @overload label
1889
- # creates an operation instance, yielding a newly fabricated Label
1890
- # which can be used for setting attributes on the newly created resource
1891
- # @overload label(res)
1892
- # creates an operation instance, with the resource to be created
1893
- # set to the passed value (res)
1894
- # @param res [Google::Ads::GoogleAds::V5::Resources::Label]
1895
- # a resource instance to be used for creation in this operation.
1896
- #
1897
- # @return [Google::Ads::GoogleAds::V5::Services::LabelOperation] instance that will create the resource
1898
- def self.label(res = nil, &blk)
1899
- require "google/ads/google_ads/v5/services/label_service_pb"
1900
- op = Google::Ads::GoogleAds::V5::Services::LabelOperation.new
1901
- op["create"] = if !res.nil?
1902
- res
1903
- elsif !blk.nil?
1904
- Factories::V5::Resources.label(&blk)
1905
- else
1906
- Factories::V5::Resources.label
1907
- end
1908
-
1909
- op
1910
- end
1911
-
1912
2047
  # A convenience method for creating an MediaFileOperation instance with
1913
2048
  # its "create" field prepopulated with an MediaFile instance.
1914
2049
  #
@@ -1963,87 +2098,6 @@ module Google
1963
2098
  op
1964
2099
  end
1965
2100
 
1966
- # A convenience method for creating an SharedCriterionOperation instance with
1967
- # its "create" field prepopulated with an SharedCriterion instance.
1968
- #
1969
- # @overload shared_criterion
1970
- # creates an operation instance, yielding a newly fabricated SharedCriterion
1971
- # which can be used for setting attributes on the newly created resource
1972
- # @overload shared_criterion(res)
1973
- # creates an operation instance, with the resource to be created
1974
- # set to the passed value (res)
1975
- # @param res [Google::Ads::GoogleAds::V5::Resources::SharedCriterion]
1976
- # a resource instance to be used for creation in this operation.
1977
- #
1978
- # @return [Google::Ads::GoogleAds::V5::Services::SharedCriterionOperation] instance that will create the resource
1979
- def self.shared_criterion(res = nil, &blk)
1980
- require "google/ads/google_ads/v5/services/shared_criterion_service_pb"
1981
- op = Google::Ads::GoogleAds::V5::Services::SharedCriterionOperation.new
1982
- op["create"] = if !res.nil?
1983
- res
1984
- elsif !blk.nil?
1985
- Factories::V5::Resources.shared_criterion(&blk)
1986
- else
1987
- Factories::V5::Resources.shared_criterion
1988
- end
1989
-
1990
- op
1991
- end
1992
-
1993
- # A convenience method for creating an SharedSetOperation instance with
1994
- # its "create" field prepopulated with an SharedSet instance.
1995
- #
1996
- # @overload shared_set
1997
- # creates an operation instance, yielding a newly fabricated SharedSet
1998
- # which can be used for setting attributes on the newly created resource
1999
- # @overload shared_set(res)
2000
- # creates an operation instance, with the resource to be created
2001
- # set to the passed value (res)
2002
- # @param res [Google::Ads::GoogleAds::V5::Resources::SharedSet]
2003
- # a resource instance to be used for creation in this operation.
2004
- #
2005
- # @return [Google::Ads::GoogleAds::V5::Services::SharedSetOperation] instance that will create the resource
2006
- def self.shared_set(res = nil, &blk)
2007
- require "google/ads/google_ads/v5/services/shared_set_service_pb"
2008
- op = Google::Ads::GoogleAds::V5::Services::SharedSetOperation.new
2009
- op["create"] = if !res.nil?
2010
- res
2011
- elsif !blk.nil?
2012
- Factories::V5::Resources.shared_set(&blk)
2013
- else
2014
- Factories::V5::Resources.shared_set
2015
- end
2016
-
2017
- op
2018
- end
2019
-
2020
- # A convenience method for creating an UserListOperation instance with
2021
- # its "create" field prepopulated with an UserList instance.
2022
- #
2023
- # @overload user_list
2024
- # creates an operation instance, yielding a newly fabricated UserList
2025
- # which can be used for setting attributes on the newly created resource
2026
- # @overload user_list(res)
2027
- # creates an operation instance, with the resource to be created
2028
- # set to the passed value (res)
2029
- # @param res [Google::Ads::GoogleAds::V5::Resources::UserList]
2030
- # a resource instance to be used for creation in this operation.
2031
- #
2032
- # @return [Google::Ads::GoogleAds::V5::Services::UserListOperation] instance that will create the resource
2033
- def self.user_list(res = nil, &blk)
2034
- require "google/ads/google_ads/v5/services/user_list_service_pb"
2035
- op = Google::Ads::GoogleAds::V5::Services::UserListOperation.new
2036
- op["create"] = if !res.nil?
2037
- res
2038
- elsif !blk.nil?
2039
- Factories::V5::Resources.user_list(&blk)
2040
- else
2041
- Factories::V5::Resources.user_list
2042
- end
2043
-
2044
- op
2045
- end
2046
-
2047
2101
  # A convenience method for creating an BatchJobOperation instance with
2048
2102
  # its "create" field prepopulated with an BatchJob instance.
2049
2103
  #
@@ -2098,82 +2152,55 @@ module Google
2098
2152
  op
2099
2153
  end
2100
2154
 
2101
- # A convenience method for creating an CustomInterestOperation instance with
2102
- # its "create" field prepopulated with an CustomInterest instance.
2155
+ # A convenience method for creating an UserDataOperation instance with
2156
+ # its "create" field prepopulated with an UserData instance.
2103
2157
  #
2104
- # @overload custom_interest
2105
- # creates an operation instance, yielding a newly fabricated CustomInterest
2158
+ # @overload user_data
2159
+ # creates an operation instance, yielding a newly fabricated UserData
2106
2160
  # which can be used for setting attributes on the newly created resource
2107
- # @overload custom_interest(res)
2161
+ # @overload user_data(res)
2108
2162
  # creates an operation instance, with the resource to be created
2109
2163
  # set to the passed value (res)
2110
- # @param res [Google::Ads::GoogleAds::V5::Resources::CustomInterest]
2164
+ # @param res [Google::Ads::GoogleAds::V5::Common::UserData]
2111
2165
  # a resource instance to be used for creation in this operation.
2112
2166
  #
2113
- # @return [Google::Ads::GoogleAds::V5::Services::CustomInterestOperation] instance that will create the resource
2114
- def self.custom_interest(res = nil, &blk)
2115
- require "google/ads/google_ads/v5/services/custom_interest_service_pb"
2116
- op = Google::Ads::GoogleAds::V5::Services::CustomInterestOperation.new
2167
+ # @return [Google::Ads::GoogleAds::V5::Services::UserDataOperation] instance that will create the resource
2168
+ def self.user_data(res = nil, &blk)
2169
+ require "google/ads/google_ads/v5/services/user_data_service_pb"
2170
+ op = Google::Ads::GoogleAds::V5::Services::UserDataOperation.new
2117
2171
  op["create"] = if !res.nil?
2118
2172
  res
2119
2173
  elsif !blk.nil?
2120
- Factories::V5::Resources.custom_interest(&blk)
2174
+ Factories::V5::Resources.user_data(&blk)
2121
2175
  else
2122
- Factories::V5::Resources.custom_interest
2176
+ Factories::V5::Resources.user_data
2123
2177
  end
2124
2178
 
2125
2179
  op
2126
2180
  end
2127
2181
 
2128
- # A convenience method for creating an CustomerClientLinkOperation instance with
2129
- # its "create" field prepopulated with an CustomerClientLink instance.
2182
+ # A convenience method for creating an AccountBudgetProposalOperation instance with
2183
+ # its "create" field prepopulated with an AccountBudgetProposal instance.
2130
2184
  #
2131
- # @overload customer_client_link
2132
- # creates an operation instance, yielding a newly fabricated CustomerClientLink
2185
+ # @overload account_budget_proposal
2186
+ # creates an operation instance, yielding a newly fabricated AccountBudgetProposal
2133
2187
  # which can be used for setting attributes on the newly created resource
2134
- # @overload customer_client_link(res)
2188
+ # @overload account_budget_proposal(res)
2135
2189
  # creates an operation instance, with the resource to be created
2136
2190
  # set to the passed value (res)
2137
- # @param res [Google::Ads::GoogleAds::V5::Resources::CustomerClientLink]
2138
- # a resource instance to be used for creation in this operation.
2139
- #
2140
- # @return [Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation] instance that will create the resource
2141
- def self.customer_client_link(res = nil, &blk)
2142
- require "google/ads/google_ads/v5/services/customer_client_link_service_pb"
2143
- op = Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation.new
2144
- op["create"] = if !res.nil?
2145
- res
2146
- elsif !blk.nil?
2147
- Factories::V5::Resources.customer_client_link(&blk)
2148
- else
2149
- Factories::V5::Resources.customer_client_link
2150
- end
2151
-
2152
- op
2153
- end
2154
-
2155
- # A convenience method for creating an UserDataOperation instance with
2156
- # its "create" field prepopulated with an UserData instance.
2157
- #
2158
- # @overload user_data
2159
- # creates an operation instance, yielding a newly fabricated UserData
2160
- # which can be used for setting attributes on the newly created resource
2161
- # @overload user_data(res)
2162
- # creates an operation instance, with the resource to be created
2163
- # set to the passed value (res)
2164
- # @param res [Google::Ads::GoogleAds::V5::Common::UserData]
2191
+ # @param res [Google::Ads::GoogleAds::V5::Resources::AccountBudgetProposal]
2165
2192
  # a resource instance to be used for creation in this operation.
2166
2193
  #
2167
- # @return [Google::Ads::GoogleAds::V5::Services::UserDataOperation] instance that will create the resource
2168
- def self.user_data(res = nil, &blk)
2169
- require "google/ads/google_ads/v5/services/user_data_service_pb"
2170
- op = Google::Ads::GoogleAds::V5::Services::UserDataOperation.new
2194
+ # @return [Google::Ads::GoogleAds::V5::Services::AccountBudgetProposalOperation] instance that will create the resource
2195
+ def self.account_budget_proposal(res = nil, &blk)
2196
+ require "google/ads/google_ads/v5/services/account_budget_proposal_service_pb"
2197
+ op = Google::Ads::GoogleAds::V5::Services::AccountBudgetProposalOperation.new
2171
2198
  op["create"] = if !res.nil?
2172
2199
  res
2173
2200
  elsif !blk.nil?
2174
- Factories::V5::Resources.user_data(&blk)
2201
+ Factories::V5::Resources.account_budget_proposal(&blk)
2175
2202
  else
2176
- Factories::V5::Resources.user_data
2203
+ Factories::V5::Resources.account_budget_proposal
2177
2204
  end
2178
2205
 
2179
2206
  op
@@ -2205,61 +2232,34 @@ module Google
2205
2232
 
2206
2233
  op
2207
2234
  end
2208
-
2209
- # A convenience method for creating an AccountBudgetProposalOperation instance with
2210
- # its "create" field prepopulated with an AccountBudgetProposal instance.
2211
- #
2212
- # @overload account_budget_proposal
2213
- # creates an operation instance, yielding a newly fabricated AccountBudgetProposal
2214
- # which can be used for setting attributes on the newly created resource
2215
- # @overload account_budget_proposal(res)
2216
- # creates an operation instance, with the resource to be created
2217
- # set to the passed value (res)
2218
- # @param res [Google::Ads::GoogleAds::V5::Resources::AccountBudgetProposal]
2219
- # a resource instance to be used for creation in this operation.
2220
- #
2221
- # @return [Google::Ads::GoogleAds::V5::Services::AccountBudgetProposalOperation] instance that will create the resource
2222
- def self.account_budget_proposal(res = nil, &blk)
2223
- require "google/ads/google_ads/v5/services/account_budget_proposal_service_pb"
2224
- op = Google::Ads::GoogleAds::V5::Services::AccountBudgetProposalOperation.new
2225
- op["create"] = if !res.nil?
2226
- res
2227
- elsif !blk.nil?
2228
- Factories::V5::Resources.account_budget_proposal(&blk)
2229
- else
2230
- Factories::V5::Resources.account_budget_proposal
2231
- end
2232
-
2233
- op
2234
- end
2235
2235
  end
2236
2236
 
2237
2237
  module UpdateResource
2238
- # A convenience method for creating an CampaignBudgetOperation instance with
2239
- # its "update" field prepopulated with an CampaignBudget instance, and
2238
+ # A convenience method for creating an CustomerClientLinkOperation instance with
2239
+ # its "update" field prepopulated with an CustomerClientLink instance, and
2240
2240
  # its "update_mask" field populated as needed to send the updates to the API.
2241
2241
  #
2242
- # @overload #campaign_budget(path, &blk)
2242
+ # @overload #customer_client_link(path, &blk)
2243
2243
  # @param path [String] a resource path for the resource to update
2244
- # @yield [Google::Ads::GoogleAds::V5::Resources::CampaignBudget] a new instance of the resource for this update operation, on
2244
+ # @yield [Google::Ads::GoogleAds::V5::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
2245
2245
  # which fields can be set to update
2246
2246
  #
2247
- # @overload #campaign_budget(resource, &blk)
2248
- # @param resource [Google::Ads::GoogleAds::V5::Resources::CampaignBudget] a resource instance to update
2247
+ # @overload #customer_client_link(resource, &blk)
2248
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::CustomerClientLink] a resource instance to update
2249
2249
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2250
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation] the operation instance to update the resource
2251
- def self.campaign_budget(resource_or_path, &blk)
2252
- require "google/ads/google_ads/v5/services/campaign_budget_service_pb"
2250
+ # @return [Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation] the operation instance to update the resource
2251
+ def self.customer_client_link(resource_or_path, &blk)
2252
+ require "google/ads/google_ads/v5/services/customer_client_link_service_pb"
2253
2253
  res = case resource_or_path
2254
- when Google::Ads::GoogleAds::V5::Resources::CampaignBudget
2254
+ when Google::Ads::GoogleAds::V5::Resources::CustomerClientLink
2255
2255
  resource_or_path
2256
2256
  # got a resource path
2257
2257
  when String
2258
- obj = Google::Ads::GoogleAds::V5::Resources::CampaignBudget.new
2258
+ obj = Google::Ads::GoogleAds::V5::Resources::CustomerClientLink.new
2259
2259
  obj.resource_name = resource_or_path
2260
2260
  obj
2261
2261
  else
2262
- unless Google::Ads::GoogleAds::V5::Resources::CampaignBudget === res
2262
+ unless Google::Ads::GoogleAds::V5::Resources::CustomerClientLink === res
2263
2263
  raise ArgumentError.new(
2264
2264
  "Called #{__method__} with instance of wrong type:"\
2265
2265
  " #{res.class} want #{operation.update_class}"\
@@ -2268,37 +2268,37 @@ module Google
2268
2268
  end
2269
2269
  end
2270
2270
 
2271
- op = Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation.new
2271
+ op = Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation.new
2272
2272
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2273
2273
  op["update"] = res
2274
2274
  op
2275
2275
  end
2276
2276
 
2277
- # A convenience method for creating an CustomerOperation instance with
2278
- # its "update" field prepopulated with an Customer instance, and
2277
+ # A convenience method for creating an CustomInterestOperation instance with
2278
+ # its "update" field prepopulated with an CustomInterest instance, and
2279
2279
  # its "update_mask" field populated as needed to send the updates to the API.
2280
2280
  #
2281
- # @overload #customer(path, &blk)
2281
+ # @overload #custom_interest(path, &blk)
2282
2282
  # @param path [String] a resource path for the resource to update
2283
- # @yield [Google::Ads::GoogleAds::V5::Resources::Customer] a new instance of the resource for this update operation, on
2283
+ # @yield [Google::Ads::GoogleAds::V5::Resources::CustomInterest] a new instance of the resource for this update operation, on
2284
2284
  # which fields can be set to update
2285
2285
  #
2286
- # @overload #customer(resource, &blk)
2287
- # @param resource [Google::Ads::GoogleAds::V5::Resources::Customer] a resource instance to update
2286
+ # @overload #custom_interest(resource, &blk)
2287
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::CustomInterest] a resource instance to update
2288
2288
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2289
- # @return [Google::Ads::GoogleAds::V5::Services::CustomerOperation] the operation instance to update the resource
2290
- def self.customer(resource_or_path, &blk)
2291
- require "google/ads/google_ads/v5/services/customer_service_pb"
2289
+ # @return [Google::Ads::GoogleAds::V5::Services::CustomInterestOperation] the operation instance to update the resource
2290
+ def self.custom_interest(resource_or_path, &blk)
2291
+ require "google/ads/google_ads/v5/services/custom_interest_service_pb"
2292
2292
  res = case resource_or_path
2293
- when Google::Ads::GoogleAds::V5::Resources::Customer
2293
+ when Google::Ads::GoogleAds::V5::Resources::CustomInterest
2294
2294
  resource_or_path
2295
2295
  # got a resource path
2296
2296
  when String
2297
- obj = Google::Ads::GoogleAds::V5::Resources::Customer.new
2297
+ obj = Google::Ads::GoogleAds::V5::Resources::CustomInterest.new
2298
2298
  obj.resource_name = resource_or_path
2299
2299
  obj
2300
2300
  else
2301
- unless Google::Ads::GoogleAds::V5::Resources::Customer === res
2301
+ unless Google::Ads::GoogleAds::V5::Resources::CustomInterest === res
2302
2302
  raise ArgumentError.new(
2303
2303
  "Called #{__method__} with instance of wrong type:"\
2304
2304
  " #{res.class} want #{operation.update_class}"\
@@ -2307,37 +2307,37 @@ module Google
2307
2307
  end
2308
2308
  end
2309
2309
 
2310
- op = Google::Ads::GoogleAds::V5::Services::CustomerOperation.new
2310
+ op = Google::Ads::GoogleAds::V5::Services::CustomInterestOperation.new
2311
2311
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2312
2312
  op["update"] = res
2313
2313
  op
2314
2314
  end
2315
2315
 
2316
- # A convenience method for creating an CampaignBidModifierOperation instance with
2317
- # its "update" field prepopulated with an CampaignBidModifier instance, and
2316
+ # A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
2317
+ # its "update" field prepopulated with an KeywordPlanAdGroupKeyword instance, and
2318
2318
  # its "update_mask" field populated as needed to send the updates to the API.
2319
2319
  #
2320
- # @overload #campaign_bid_modifier(path, &blk)
2320
+ # @overload #keyword_plan_ad_group_keyword(path, &blk)
2321
2321
  # @param path [String] a resource path for the resource to update
2322
- # @yield [Google::Ads::GoogleAds::V5::Resources::CampaignBidModifier] a new instance of the resource for this update operation, on
2322
+ # @yield [Google::Ads::GoogleAds::V5::Resources::KeywordPlanAdGroupKeyword] a new instance of the resource for this update operation, on
2323
2323
  # which fields can be set to update
2324
2324
  #
2325
- # @overload #campaign_bid_modifier(resource, &blk)
2326
- # @param resource [Google::Ads::GoogleAds::V5::Resources::CampaignBidModifier] a resource instance to update
2325
+ # @overload #keyword_plan_ad_group_keyword(resource, &blk)
2326
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::KeywordPlanAdGroupKeyword] a resource instance to update
2327
2327
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2328
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignBidModifierOperation] the operation instance to update the resource
2329
- def self.campaign_bid_modifier(resource_or_path, &blk)
2330
- require "google/ads/google_ads/v5/services/campaign_bid_modifier_service_pb"
2328
+ # @return [Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation] the operation instance to update the resource
2329
+ def self.keyword_plan_ad_group_keyword(resource_or_path, &blk)
2330
+ require "google/ads/google_ads/v5/services/keyword_plan_ad_group_keyword_service_pb"
2331
2331
  res = case resource_or_path
2332
- when Google::Ads::GoogleAds::V5::Resources::CampaignBidModifier
2332
+ when Google::Ads::GoogleAds::V5::Resources::KeywordPlanAdGroupKeyword
2333
2333
  resource_or_path
2334
2334
  # got a resource path
2335
2335
  when String
2336
- obj = Google::Ads::GoogleAds::V5::Resources::CampaignBidModifier.new
2336
+ obj = Google::Ads::GoogleAds::V5::Resources::KeywordPlanAdGroupKeyword.new
2337
2337
  obj.resource_name = resource_or_path
2338
2338
  obj
2339
2339
  else
2340
- unless Google::Ads::GoogleAds::V5::Resources::CampaignBidModifier === res
2340
+ unless Google::Ads::GoogleAds::V5::Resources::KeywordPlanAdGroupKeyword === res
2341
2341
  raise ArgumentError.new(
2342
2342
  "Called #{__method__} with instance of wrong type:"\
2343
2343
  " #{res.class} want #{operation.update_class}"\
@@ -2346,37 +2346,37 @@ module Google
2346
2346
  end
2347
2347
  end
2348
2348
 
2349
- op = Google::Ads::GoogleAds::V5::Services::CampaignBidModifierOperation.new
2349
+ op = Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation.new
2350
2350
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2351
2351
  op["update"] = res
2352
2352
  op
2353
2353
  end
2354
2354
 
2355
- # A convenience method for creating an CampaignOperation instance with
2356
- # its "update" field prepopulated with an Campaign instance, and
2355
+ # A convenience method for creating an AdGroupOperation instance with
2356
+ # its "update" field prepopulated with an AdGroup instance, and
2357
2357
  # its "update_mask" field populated as needed to send the updates to the API.
2358
2358
  #
2359
- # @overload #campaign(path, &blk)
2359
+ # @overload #ad_group(path, &blk)
2360
2360
  # @param path [String] a resource path for the resource to update
2361
- # @yield [Google::Ads::GoogleAds::V5::Resources::Campaign] a new instance of the resource for this update operation, on
2361
+ # @yield [Google::Ads::GoogleAds::V5::Resources::AdGroup] a new instance of the resource for this update operation, on
2362
2362
  # which fields can be set to update
2363
2363
  #
2364
- # @overload #campaign(resource, &blk)
2365
- # @param resource [Google::Ads::GoogleAds::V5::Resources::Campaign] a resource instance to update
2364
+ # @overload #ad_group(resource, &blk)
2365
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::AdGroup] a resource instance to update
2366
2366
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2367
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignOperation] the operation instance to update the resource
2368
- def self.campaign(resource_or_path, &blk)
2369
- require "google/ads/google_ads/v5/services/campaign_service_pb"
2367
+ # @return [Google::Ads::GoogleAds::V5::Services::AdGroupOperation] the operation instance to update the resource
2368
+ def self.ad_group(resource_or_path, &blk)
2369
+ require "google/ads/google_ads/v5/services/ad_group_service_pb"
2370
2370
  res = case resource_or_path
2371
- when Google::Ads::GoogleAds::V5::Resources::Campaign
2371
+ when Google::Ads::GoogleAds::V5::Resources::AdGroup
2372
2372
  resource_or_path
2373
2373
  # got a resource path
2374
2374
  when String
2375
- obj = Google::Ads::GoogleAds::V5::Resources::Campaign.new
2375
+ obj = Google::Ads::GoogleAds::V5::Resources::AdGroup.new
2376
2376
  obj.resource_name = resource_or_path
2377
2377
  obj
2378
2378
  else
2379
- unless Google::Ads::GoogleAds::V5::Resources::Campaign === res
2379
+ unless Google::Ads::GoogleAds::V5::Resources::AdGroup === res
2380
2380
  raise ArgumentError.new(
2381
2381
  "Called #{__method__} with instance of wrong type:"\
2382
2382
  " #{res.class} want #{operation.update_class}"\
@@ -2385,37 +2385,37 @@ module Google
2385
2385
  end
2386
2386
  end
2387
2387
 
2388
- op = Google::Ads::GoogleAds::V5::Services::CampaignOperation.new
2388
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupOperation.new
2389
2389
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2390
2390
  op["update"] = res
2391
2391
  op
2392
2392
  end
2393
2393
 
2394
- # A convenience method for creating an BiddingStrategyOperation instance with
2395
- # its "update" field prepopulated with an BiddingStrategy instance, and
2394
+ # A convenience method for creating an CampaignBidModifierOperation instance with
2395
+ # its "update" field prepopulated with an CampaignBidModifier instance, and
2396
2396
  # its "update_mask" field populated as needed to send the updates to the API.
2397
2397
  #
2398
- # @overload #bidding_strategy(path, &blk)
2398
+ # @overload #campaign_bid_modifier(path, &blk)
2399
2399
  # @param path [String] a resource path for the resource to update
2400
- # @yield [Google::Ads::GoogleAds::V5::Resources::BiddingStrategy] a new instance of the resource for this update operation, on
2400
+ # @yield [Google::Ads::GoogleAds::V5::Resources::CampaignBidModifier] a new instance of the resource for this update operation, on
2401
2401
  # which fields can be set to update
2402
2402
  #
2403
- # @overload #bidding_strategy(resource, &blk)
2404
- # @param resource [Google::Ads::GoogleAds::V5::Resources::BiddingStrategy] a resource instance to update
2403
+ # @overload #campaign_bid_modifier(resource, &blk)
2404
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::CampaignBidModifier] a resource instance to update
2405
2405
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2406
- # @return [Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation] the operation instance to update the resource
2407
- def self.bidding_strategy(resource_or_path, &blk)
2408
- require "google/ads/google_ads/v5/services/bidding_strategy_service_pb"
2406
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignBidModifierOperation] the operation instance to update the resource
2407
+ def self.campaign_bid_modifier(resource_or_path, &blk)
2408
+ require "google/ads/google_ads/v5/services/campaign_bid_modifier_service_pb"
2409
2409
  res = case resource_or_path
2410
- when Google::Ads::GoogleAds::V5::Resources::BiddingStrategy
2410
+ when Google::Ads::GoogleAds::V5::Resources::CampaignBidModifier
2411
2411
  resource_or_path
2412
2412
  # got a resource path
2413
2413
  when String
2414
- obj = Google::Ads::GoogleAds::V5::Resources::BiddingStrategy.new
2414
+ obj = Google::Ads::GoogleAds::V5::Resources::CampaignBidModifier.new
2415
2415
  obj.resource_name = resource_or_path
2416
2416
  obj
2417
2417
  else
2418
- unless Google::Ads::GoogleAds::V5::Resources::BiddingStrategy === res
2418
+ unless Google::Ads::GoogleAds::V5::Resources::CampaignBidModifier === res
2419
2419
  raise ArgumentError.new(
2420
2420
  "Called #{__method__} with instance of wrong type:"\
2421
2421
  " #{res.class} want #{operation.update_class}"\
@@ -2424,37 +2424,37 @@ module Google
2424
2424
  end
2425
2425
  end
2426
2426
 
2427
- op = Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation.new
2427
+ op = Google::Ads::GoogleAds::V5::Services::CampaignBidModifierOperation.new
2428
2428
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2429
2429
  op["update"] = res
2430
2430
  op
2431
2431
  end
2432
2432
 
2433
- # A convenience method for creating an AdGroupOperation instance with
2434
- # its "update" field prepopulated with an AdGroup instance, and
2433
+ # A convenience method for creating an CustomerManagerLinkOperation instance with
2434
+ # its "update" field prepopulated with an CustomerManagerLink instance, and
2435
2435
  # its "update_mask" field populated as needed to send the updates to the API.
2436
2436
  #
2437
- # @overload #ad_group(path, &blk)
2437
+ # @overload #customer_manager_link(path, &blk)
2438
2438
  # @param path [String] a resource path for the resource to update
2439
- # @yield [Google::Ads::GoogleAds::V5::Resources::AdGroup] a new instance of the resource for this update operation, on
2439
+ # @yield [Google::Ads::GoogleAds::V5::Resources::CustomerManagerLink] a new instance of the resource for this update operation, on
2440
2440
  # which fields can be set to update
2441
2441
  #
2442
- # @overload #ad_group(resource, &blk)
2443
- # @param resource [Google::Ads::GoogleAds::V5::Resources::AdGroup] a resource instance to update
2442
+ # @overload #customer_manager_link(resource, &blk)
2443
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::CustomerManagerLink] a resource instance to update
2444
2444
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2445
- # @return [Google::Ads::GoogleAds::V5::Services::AdGroupOperation] the operation instance to update the resource
2446
- def self.ad_group(resource_or_path, &blk)
2447
- require "google/ads/google_ads/v5/services/ad_group_service_pb"
2445
+ # @return [Google::Ads::GoogleAds::V5::Services::CustomerManagerLinkOperation] the operation instance to update the resource
2446
+ def self.customer_manager_link(resource_or_path, &blk)
2447
+ require "google/ads/google_ads/v5/services/customer_manager_link_service_pb"
2448
2448
  res = case resource_or_path
2449
- when Google::Ads::GoogleAds::V5::Resources::AdGroup
2449
+ when Google::Ads::GoogleAds::V5::Resources::CustomerManagerLink
2450
2450
  resource_or_path
2451
2451
  # got a resource path
2452
2452
  when String
2453
- obj = Google::Ads::GoogleAds::V5::Resources::AdGroup.new
2453
+ obj = Google::Ads::GoogleAds::V5::Resources::CustomerManagerLink.new
2454
2454
  obj.resource_name = resource_or_path
2455
2455
  obj
2456
2456
  else
2457
- unless Google::Ads::GoogleAds::V5::Resources::AdGroup === res
2457
+ unless Google::Ads::GoogleAds::V5::Resources::CustomerManagerLink === res
2458
2458
  raise ArgumentError.new(
2459
2459
  "Called #{__method__} with instance of wrong type:"\
2460
2460
  " #{res.class} want #{operation.update_class}"\
@@ -2463,37 +2463,37 @@ module Google
2463
2463
  end
2464
2464
  end
2465
2465
 
2466
- op = Google::Ads::GoogleAds::V5::Services::AdGroupOperation.new
2466
+ op = Google::Ads::GoogleAds::V5::Services::CustomerManagerLinkOperation.new
2467
2467
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2468
2468
  op["update"] = res
2469
2469
  op
2470
2470
  end
2471
2471
 
2472
- # A convenience method for creating an AdGroupAdOperation instance with
2473
- # its "update" field prepopulated with an AdGroupAd instance, and
2472
+ # A convenience method for creating an CampaignDraftOperation instance with
2473
+ # its "update" field prepopulated with an CampaignDraft instance, and
2474
2474
  # its "update_mask" field populated as needed to send the updates to the API.
2475
2475
  #
2476
- # @overload #ad_group_ad(path, &blk)
2476
+ # @overload #campaign_draft(path, &blk)
2477
2477
  # @param path [String] a resource path for the resource to update
2478
- # @yield [Google::Ads::GoogleAds::V5::Resources::AdGroupAd] a new instance of the resource for this update operation, on
2478
+ # @yield [Google::Ads::GoogleAds::V5::Resources::CampaignDraft] a new instance of the resource for this update operation, on
2479
2479
  # which fields can be set to update
2480
2480
  #
2481
- # @overload #ad_group_ad(resource, &blk)
2482
- # @param resource [Google::Ads::GoogleAds::V5::Resources::AdGroupAd] a resource instance to update
2481
+ # @overload #campaign_draft(resource, &blk)
2482
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::CampaignDraft] a resource instance to update
2483
2483
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2484
- # @return [Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation] the operation instance to update the resource
2485
- def self.ad_group_ad(resource_or_path, &blk)
2486
- require "google/ads/google_ads/v5/services/ad_group_ad_service_pb"
2484
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation] the operation instance to update the resource
2485
+ def self.campaign_draft(resource_or_path, &blk)
2486
+ require "google/ads/google_ads/v5/services/campaign_draft_service_pb"
2487
2487
  res = case resource_or_path
2488
- when Google::Ads::GoogleAds::V5::Resources::AdGroupAd
2488
+ when Google::Ads::GoogleAds::V5::Resources::CampaignDraft
2489
2489
  resource_or_path
2490
2490
  # got a resource path
2491
2491
  when String
2492
- obj = Google::Ads::GoogleAds::V5::Resources::AdGroupAd.new
2492
+ obj = Google::Ads::GoogleAds::V5::Resources::CampaignDraft.new
2493
2493
  obj.resource_name = resource_or_path
2494
2494
  obj
2495
2495
  else
2496
- unless Google::Ads::GoogleAds::V5::Resources::AdGroupAd === res
2496
+ unless Google::Ads::GoogleAds::V5::Resources::CampaignDraft === res
2497
2497
  raise ArgumentError.new(
2498
2498
  "Called #{__method__} with instance of wrong type:"\
2499
2499
  " #{res.class} want #{operation.update_class}"\
@@ -2502,17 +2502,212 @@ module Google
2502
2502
  end
2503
2503
  end
2504
2504
 
2505
- op = Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation.new
2505
+ op = Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation.new
2506
2506
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2507
2507
  op["update"] = res
2508
2508
  op
2509
2509
  end
2510
2510
 
2511
- # A convenience method for creating an AdGroupBidModifierOperation instance with
2512
- # its "update" field prepopulated with an AdGroupBidModifier instance, and
2511
+ # A convenience method for creating an UserListOperation instance with
2512
+ # its "update" field prepopulated with an UserList instance, and
2513
2513
  # its "update_mask" field populated as needed to send the updates to the API.
2514
2514
  #
2515
- # @overload #ad_group_bid_modifier(path, &blk)
2515
+ # @overload #user_list(path, &blk)
2516
+ # @param path [String] a resource path for the resource to update
2517
+ # @yield [Google::Ads::GoogleAds::V5::Resources::UserList] a new instance of the resource for this update operation, on
2518
+ # which fields can be set to update
2519
+ #
2520
+ # @overload #user_list(resource, &blk)
2521
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::UserList] a resource instance to update
2522
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2523
+ # @return [Google::Ads::GoogleAds::V5::Services::UserListOperation] the operation instance to update the resource
2524
+ def self.user_list(resource_or_path, &blk)
2525
+ require "google/ads/google_ads/v5/services/user_list_service_pb"
2526
+ res = case resource_or_path
2527
+ when Google::Ads::GoogleAds::V5::Resources::UserList
2528
+ resource_or_path
2529
+ # got a resource path
2530
+ when String
2531
+ obj = Google::Ads::GoogleAds::V5::Resources::UserList.new
2532
+ obj.resource_name = resource_or_path
2533
+ obj
2534
+ else
2535
+ unless Google::Ads::GoogleAds::V5::Resources::UserList === res
2536
+ raise ArgumentError.new(
2537
+ "Called #{__method__} with instance of wrong type:"\
2538
+ " #{res.class} want #{operation.update_class}"\
2539
+ " or String representing resource name"
2540
+ )
2541
+ end
2542
+ end
2543
+
2544
+ op = Google::Ads::GoogleAds::V5::Services::UserListOperation.new
2545
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2546
+ op["update"] = res
2547
+ op
2548
+ end
2549
+
2550
+ # A convenience method for creating an CustomerOperation instance with
2551
+ # its "update" field prepopulated with an Customer instance, and
2552
+ # its "update_mask" field populated as needed to send the updates to the API.
2553
+ #
2554
+ # @overload #customer(path, &blk)
2555
+ # @param path [String] a resource path for the resource to update
2556
+ # @yield [Google::Ads::GoogleAds::V5::Resources::Customer] a new instance of the resource for this update operation, on
2557
+ # which fields can be set to update
2558
+ #
2559
+ # @overload #customer(resource, &blk)
2560
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::Customer] a resource instance to update
2561
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2562
+ # @return [Google::Ads::GoogleAds::V5::Services::CustomerOperation] the operation instance to update the resource
2563
+ def self.customer(resource_or_path, &blk)
2564
+ require "google/ads/google_ads/v5/services/customer_service_pb"
2565
+ res = case resource_or_path
2566
+ when Google::Ads::GoogleAds::V5::Resources::Customer
2567
+ resource_or_path
2568
+ # got a resource path
2569
+ when String
2570
+ obj = Google::Ads::GoogleAds::V5::Resources::Customer.new
2571
+ obj.resource_name = resource_or_path
2572
+ obj
2573
+ else
2574
+ unless Google::Ads::GoogleAds::V5::Resources::Customer === res
2575
+ raise ArgumentError.new(
2576
+ "Called #{__method__} with instance of wrong type:"\
2577
+ " #{res.class} want #{operation.update_class}"\
2578
+ " or String representing resource name"
2579
+ )
2580
+ end
2581
+ end
2582
+
2583
+ op = Google::Ads::GoogleAds::V5::Services::CustomerOperation.new
2584
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2585
+ op["update"] = res
2586
+ op
2587
+ end
2588
+
2589
+ # A convenience method for creating an SharedSetOperation instance with
2590
+ # its "update" field prepopulated with an SharedSet instance, and
2591
+ # its "update_mask" field populated as needed to send the updates to the API.
2592
+ #
2593
+ # @overload #shared_set(path, &blk)
2594
+ # @param path [String] a resource path for the resource to update
2595
+ # @yield [Google::Ads::GoogleAds::V5::Resources::SharedSet] a new instance of the resource for this update operation, on
2596
+ # which fields can be set to update
2597
+ #
2598
+ # @overload #shared_set(resource, &blk)
2599
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::SharedSet] a resource instance to update
2600
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2601
+ # @return [Google::Ads::GoogleAds::V5::Services::SharedSetOperation] the operation instance to update the resource
2602
+ def self.shared_set(resource_or_path, &blk)
2603
+ require "google/ads/google_ads/v5/services/shared_set_service_pb"
2604
+ res = case resource_or_path
2605
+ when Google::Ads::GoogleAds::V5::Resources::SharedSet
2606
+ resource_or_path
2607
+ # got a resource path
2608
+ when String
2609
+ obj = Google::Ads::GoogleAds::V5::Resources::SharedSet.new
2610
+ obj.resource_name = resource_or_path
2611
+ obj
2612
+ else
2613
+ unless Google::Ads::GoogleAds::V5::Resources::SharedSet === res
2614
+ raise ArgumentError.new(
2615
+ "Called #{__method__} with instance of wrong type:"\
2616
+ " #{res.class} want #{operation.update_class}"\
2617
+ " or String representing resource name"
2618
+ )
2619
+ end
2620
+ end
2621
+
2622
+ op = Google::Ads::GoogleAds::V5::Services::SharedSetOperation.new
2623
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2624
+ op["update"] = res
2625
+ op
2626
+ end
2627
+
2628
+ # A convenience method for creating an LabelOperation instance with
2629
+ # its "update" field prepopulated with an Label instance, and
2630
+ # its "update_mask" field populated as needed to send the updates to the API.
2631
+ #
2632
+ # @overload #label(path, &blk)
2633
+ # @param path [String] a resource path for the resource to update
2634
+ # @yield [Google::Ads::GoogleAds::V5::Resources::Label] a new instance of the resource for this update operation, on
2635
+ # which fields can be set to update
2636
+ #
2637
+ # @overload #label(resource, &blk)
2638
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::Label] a resource instance to update
2639
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2640
+ # @return [Google::Ads::GoogleAds::V5::Services::LabelOperation] the operation instance to update the resource
2641
+ def self.label(resource_or_path, &blk)
2642
+ require "google/ads/google_ads/v5/services/label_service_pb"
2643
+ res = case resource_or_path
2644
+ when Google::Ads::GoogleAds::V5::Resources::Label
2645
+ resource_or_path
2646
+ # got a resource path
2647
+ when String
2648
+ obj = Google::Ads::GoogleAds::V5::Resources::Label.new
2649
+ obj.resource_name = resource_or_path
2650
+ obj
2651
+ else
2652
+ unless Google::Ads::GoogleAds::V5::Resources::Label === res
2653
+ raise ArgumentError.new(
2654
+ "Called #{__method__} with instance of wrong type:"\
2655
+ " #{res.class} want #{operation.update_class}"\
2656
+ " or String representing resource name"
2657
+ )
2658
+ end
2659
+ end
2660
+
2661
+ op = Google::Ads::GoogleAds::V5::Services::LabelOperation.new
2662
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2663
+ op["update"] = res
2664
+ op
2665
+ end
2666
+
2667
+ # A convenience method for creating an AdGroupAdOperation instance with
2668
+ # its "update" field prepopulated with an AdGroupAd instance, and
2669
+ # its "update_mask" field populated as needed to send the updates to the API.
2670
+ #
2671
+ # @overload #ad_group_ad(path, &blk)
2672
+ # @param path [String] a resource path for the resource to update
2673
+ # @yield [Google::Ads::GoogleAds::V5::Resources::AdGroupAd] a new instance of the resource for this update operation, on
2674
+ # which fields can be set to update
2675
+ #
2676
+ # @overload #ad_group_ad(resource, &blk)
2677
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::AdGroupAd] a resource instance to update
2678
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
2679
+ # @return [Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation] the operation instance to update the resource
2680
+ def self.ad_group_ad(resource_or_path, &blk)
2681
+ require "google/ads/google_ads/v5/services/ad_group_ad_service_pb"
2682
+ res = case resource_or_path
2683
+ when Google::Ads::GoogleAds::V5::Resources::AdGroupAd
2684
+ resource_or_path
2685
+ # got a resource path
2686
+ when String
2687
+ obj = Google::Ads::GoogleAds::V5::Resources::AdGroupAd.new
2688
+ obj.resource_name = resource_or_path
2689
+ obj
2690
+ else
2691
+ unless Google::Ads::GoogleAds::V5::Resources::AdGroupAd === res
2692
+ raise ArgumentError.new(
2693
+ "Called #{__method__} with instance of wrong type:"\
2694
+ " #{res.class} want #{operation.update_class}"\
2695
+ " or String representing resource name"
2696
+ )
2697
+ end
2698
+ end
2699
+
2700
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupAdOperation.new
2701
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2702
+ op["update"] = res
2703
+ op
2704
+ end
2705
+
2706
+ # A convenience method for creating an AdGroupBidModifierOperation instance with
2707
+ # its "update" field prepopulated with an AdGroupBidModifier instance, and
2708
+ # its "update_mask" field populated as needed to send the updates to the API.
2709
+ #
2710
+ # @overload #ad_group_bid_modifier(path, &blk)
2516
2711
  # @param path [String] a resource path for the resource to update
2517
2712
  # @yield [Google::Ads::GoogleAds::V5::Resources::AdGroupBidModifier] a new instance of the resource for this update operation, on
2518
2713
  # which fields can be set to update
@@ -2742,31 +2937,31 @@ module Google
2742
2937
  op
2743
2938
  end
2744
2939
 
2745
- # A convenience method for creating an CampaignCriterionOperation instance with
2746
- # its "update" field prepopulated with an CampaignCriterion instance, and
2940
+ # A convenience method for creating an BiddingStrategyOperation instance with
2941
+ # its "update" field prepopulated with an BiddingStrategy instance, and
2747
2942
  # its "update_mask" field populated as needed to send the updates to the API.
2748
2943
  #
2749
- # @overload #campaign_criterion(path, &blk)
2944
+ # @overload #bidding_strategy(path, &blk)
2750
2945
  # @param path [String] a resource path for the resource to update
2751
- # @yield [Google::Ads::GoogleAds::V5::Resources::CampaignCriterion] a new instance of the resource for this update operation, on
2946
+ # @yield [Google::Ads::GoogleAds::V5::Resources::BiddingStrategy] a new instance of the resource for this update operation, on
2752
2947
  # which fields can be set to update
2753
2948
  #
2754
- # @overload #campaign_criterion(resource, &blk)
2755
- # @param resource [Google::Ads::GoogleAds::V5::Resources::CampaignCriterion] a resource instance to update
2949
+ # @overload #bidding_strategy(resource, &blk)
2950
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::BiddingStrategy] a resource instance to update
2756
2951
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2757
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignCriterionOperation] the operation instance to update the resource
2758
- def self.campaign_criterion(resource_or_path, &blk)
2759
- require "google/ads/google_ads/v5/services/campaign_criterion_service_pb"
2952
+ # @return [Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation] the operation instance to update the resource
2953
+ def self.bidding_strategy(resource_or_path, &blk)
2954
+ require "google/ads/google_ads/v5/services/bidding_strategy_service_pb"
2760
2955
  res = case resource_or_path
2761
- when Google::Ads::GoogleAds::V5::Resources::CampaignCriterion
2956
+ when Google::Ads::GoogleAds::V5::Resources::BiddingStrategy
2762
2957
  resource_or_path
2763
2958
  # got a resource path
2764
2959
  when String
2765
- obj = Google::Ads::GoogleAds::V5::Resources::CampaignCriterion.new
2960
+ obj = Google::Ads::GoogleAds::V5::Resources::BiddingStrategy.new
2766
2961
  obj.resource_name = resource_or_path
2767
2962
  obj
2768
2963
  else
2769
- unless Google::Ads::GoogleAds::V5::Resources::CampaignCriterion === res
2964
+ unless Google::Ads::GoogleAds::V5::Resources::BiddingStrategy === res
2770
2965
  raise ArgumentError.new(
2771
2966
  "Called #{__method__} with instance of wrong type:"\
2772
2967
  " #{res.class} want #{operation.update_class}"\
@@ -2775,37 +2970,37 @@ module Google
2775
2970
  end
2776
2971
  end
2777
2972
 
2778
- op = Google::Ads::GoogleAds::V5::Services::CampaignCriterionOperation.new
2973
+ op = Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation.new
2779
2974
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2780
2975
  op["update"] = res
2781
2976
  op
2782
2977
  end
2783
2978
 
2784
- # A convenience method for creating an CampaignDraftOperation instance with
2785
- # its "update" field prepopulated with an CampaignDraft instance, and
2979
+ # A convenience method for creating an CampaignBudgetOperation instance with
2980
+ # its "update" field prepopulated with an CampaignBudget instance, and
2786
2981
  # its "update_mask" field populated as needed to send the updates to the API.
2787
2982
  #
2788
- # @overload #campaign_draft(path, &blk)
2983
+ # @overload #campaign_budget(path, &blk)
2789
2984
  # @param path [String] a resource path for the resource to update
2790
- # @yield [Google::Ads::GoogleAds::V5::Resources::CampaignDraft] a new instance of the resource for this update operation, on
2985
+ # @yield [Google::Ads::GoogleAds::V5::Resources::CampaignBudget] a new instance of the resource for this update operation, on
2791
2986
  # which fields can be set to update
2792
2987
  #
2793
- # @overload #campaign_draft(resource, &blk)
2794
- # @param resource [Google::Ads::GoogleAds::V5::Resources::CampaignDraft] a resource instance to update
2988
+ # @overload #campaign_budget(resource, &blk)
2989
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::CampaignBudget] a resource instance to update
2795
2990
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2796
- # @return [Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation] the operation instance to update the resource
2797
- def self.campaign_draft(resource_or_path, &blk)
2798
- require "google/ads/google_ads/v5/services/campaign_draft_service_pb"
2991
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation] the operation instance to update the resource
2992
+ def self.campaign_budget(resource_or_path, &blk)
2993
+ require "google/ads/google_ads/v5/services/campaign_budget_service_pb"
2799
2994
  res = case resource_or_path
2800
- when Google::Ads::GoogleAds::V5::Resources::CampaignDraft
2995
+ when Google::Ads::GoogleAds::V5::Resources::CampaignBudget
2801
2996
  resource_or_path
2802
2997
  # got a resource path
2803
2998
  when String
2804
- obj = Google::Ads::GoogleAds::V5::Resources::CampaignDraft.new
2999
+ obj = Google::Ads::GoogleAds::V5::Resources::CampaignBudget.new
2805
3000
  obj.resource_name = resource_or_path
2806
3001
  obj
2807
3002
  else
2808
- unless Google::Ads::GoogleAds::V5::Resources::CampaignDraft === res
3003
+ unless Google::Ads::GoogleAds::V5::Resources::CampaignBudget === res
2809
3004
  raise ArgumentError.new(
2810
3005
  "Called #{__method__} with instance of wrong type:"\
2811
3006
  " #{res.class} want #{operation.update_class}"\
@@ -2814,22 +3009,61 @@ module Google
2814
3009
  end
2815
3010
  end
2816
3011
 
2817
- op = Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation.new
3012
+ op = Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation.new
2818
3013
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
2819
3014
  op["update"] = res
2820
3015
  op
2821
3016
  end
2822
3017
 
2823
- # A convenience method for creating an CampaignExperimentOperation instance with
2824
- # its "update" field prepopulated with an CampaignExperiment instance, and
3018
+ # A convenience method for creating an CampaignCriterionOperation instance with
3019
+ # its "update" field prepopulated with an CampaignCriterion instance, and
2825
3020
  # its "update_mask" field populated as needed to send the updates to the API.
2826
3021
  #
2827
- # @overload #campaign_experiment(path, &blk)
3022
+ # @overload #campaign_criterion(path, &blk)
2828
3023
  # @param path [String] a resource path for the resource to update
2829
- # @yield [Google::Ads::GoogleAds::V5::Resources::CampaignExperiment] a new instance of the resource for this update operation, on
3024
+ # @yield [Google::Ads::GoogleAds::V5::Resources::CampaignCriterion] a new instance of the resource for this update operation, on
2830
3025
  # which fields can be set to update
2831
3026
  #
2832
- # @overload #campaign_experiment(resource, &blk)
3027
+ # @overload #campaign_criterion(resource, &blk)
3028
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::CampaignCriterion] a resource instance to update
3029
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
3030
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignCriterionOperation] the operation instance to update the resource
3031
+ def self.campaign_criterion(resource_or_path, &blk)
3032
+ require "google/ads/google_ads/v5/services/campaign_criterion_service_pb"
3033
+ res = case resource_or_path
3034
+ when Google::Ads::GoogleAds::V5::Resources::CampaignCriterion
3035
+ resource_or_path
3036
+ # got a resource path
3037
+ when String
3038
+ obj = Google::Ads::GoogleAds::V5::Resources::CampaignCriterion.new
3039
+ obj.resource_name = resource_or_path
3040
+ obj
3041
+ else
3042
+ unless Google::Ads::GoogleAds::V5::Resources::CampaignCriterion === res
3043
+ raise ArgumentError.new(
3044
+ "Called #{__method__} with instance of wrong type:"\
3045
+ " #{res.class} want #{operation.update_class}"\
3046
+ " or String representing resource name"
3047
+ )
3048
+ end
3049
+ end
3050
+
3051
+ op = Google::Ads::GoogleAds::V5::Services::CampaignCriterionOperation.new
3052
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3053
+ op["update"] = res
3054
+ op
3055
+ end
3056
+
3057
+ # A convenience method for creating an CampaignExperimentOperation instance with
3058
+ # its "update" field prepopulated with an CampaignExperiment instance, and
3059
+ # its "update_mask" field populated as needed to send the updates to the API.
3060
+ #
3061
+ # @overload #campaign_experiment(path, &blk)
3062
+ # @param path [String] a resource path for the resource to update
3063
+ # @yield [Google::Ads::GoogleAds::V5::Resources::CampaignExperiment] a new instance of the resource for this update operation, on
3064
+ # which fields can be set to update
3065
+ #
3066
+ # @overload #campaign_experiment(resource, &blk)
2833
3067
  # @param resource [Google::Ads::GoogleAds::V5::Resources::CampaignExperiment] a resource instance to update
2834
3068
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
2835
3069
  # @return [Google::Ads::GoogleAds::V5::Services::CampaignExperimentOperation] the operation instance to update the resource
@@ -2937,6 +3171,45 @@ module Google
2937
3171
  op
2938
3172
  end
2939
3173
 
3174
+ # A convenience method for creating an CampaignOperation instance with
3175
+ # its "update" field prepopulated with an Campaign instance, and
3176
+ # its "update_mask" field populated as needed to send the updates to the API.
3177
+ #
3178
+ # @overload #campaign(path, &blk)
3179
+ # @param path [String] a resource path for the resource to update
3180
+ # @yield [Google::Ads::GoogleAds::V5::Resources::Campaign] a new instance of the resource for this update operation, on
3181
+ # which fields can be set to update
3182
+ #
3183
+ # @overload #campaign(resource, &blk)
3184
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::Campaign] a resource instance to update
3185
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
3186
+ # @return [Google::Ads::GoogleAds::V5::Services::CampaignOperation] the operation instance to update the resource
3187
+ def self.campaign(resource_or_path, &blk)
3188
+ require "google/ads/google_ads/v5/services/campaign_service_pb"
3189
+ res = case resource_or_path
3190
+ when Google::Ads::GoogleAds::V5::Resources::Campaign
3191
+ resource_or_path
3192
+ # got a resource path
3193
+ when String
3194
+ obj = Google::Ads::GoogleAds::V5::Resources::Campaign.new
3195
+ obj.resource_name = resource_or_path
3196
+ obj
3197
+ else
3198
+ unless Google::Ads::GoogleAds::V5::Resources::Campaign === res
3199
+ raise ArgumentError.new(
3200
+ "Called #{__method__} with instance of wrong type:"\
3201
+ " #{res.class} want #{operation.update_class}"\
3202
+ " or String representing resource name"
3203
+ )
3204
+ end
3205
+ end
3206
+
3207
+ op = Google::Ads::GoogleAds::V5::Services::CampaignOperation.new
3208
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3209
+ op["update"] = res
3210
+ op
3211
+ end
3212
+
2940
3213
  # A convenience method for creating an ConversionActionOperation instance with
2941
3214
  # its "update" field prepopulated with an ConversionAction instance, and
2942
3215
  # its "update_mask" field populated as needed to send the updates to the API.
@@ -3171,45 +3444,6 @@ module Google
3171
3444
  op
3172
3445
  end
3173
3446
 
3174
- # A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
3175
- # its "update" field prepopulated with an KeywordPlanAdGroupKeyword instance, and
3176
- # its "update_mask" field populated as needed to send the updates to the API.
3177
- #
3178
- # @overload #keyword_plan_ad_group_keyword(path, &blk)
3179
- # @param path [String] a resource path for the resource to update
3180
- # @yield [Google::Ads::GoogleAds::V5::Resources::KeywordPlanAdGroupKeyword] a new instance of the resource for this update operation, on
3181
- # which fields can be set to update
3182
- #
3183
- # @overload #keyword_plan_ad_group_keyword(resource, &blk)
3184
- # @param resource [Google::Ads::GoogleAds::V5::Resources::KeywordPlanAdGroupKeyword] a resource instance to update
3185
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
3186
- # @return [Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation] the operation instance to update the resource
3187
- def self.keyword_plan_ad_group_keyword(resource_or_path, &blk)
3188
- require "google/ads/google_ads/v5/services/keyword_plan_ad_group_keyword_service_pb"
3189
- res = case resource_or_path
3190
- when Google::Ads::GoogleAds::V5::Resources::KeywordPlanAdGroupKeyword
3191
- resource_or_path
3192
- # got a resource path
3193
- when String
3194
- obj = Google::Ads::GoogleAds::V5::Resources::KeywordPlanAdGroupKeyword.new
3195
- obj.resource_name = resource_or_path
3196
- obj
3197
- else
3198
- unless Google::Ads::GoogleAds::V5::Resources::KeywordPlanAdGroupKeyword === res
3199
- raise ArgumentError.new(
3200
- "Called #{__method__} with instance of wrong type:"\
3201
- " #{res.class} want #{operation.update_class}"\
3202
- " or String representing resource name"
3203
- )
3204
- end
3205
- end
3206
-
3207
- op = Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation.new
3208
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3209
- op["update"] = res
3210
- op
3211
- end
3212
-
3213
3447
  # A convenience method for creating an KeywordPlanAdGroupOperation instance with
3214
3448
  # its "update" field prepopulated with an KeywordPlanAdGroup instance, and
3215
3449
  # its "update_mask" field populated as needed to send the updates to the API.
@@ -3366,45 +3600,6 @@ module Google
3366
3600
  op
3367
3601
  end
3368
3602
 
3369
- # A convenience method for creating an LabelOperation instance with
3370
- # its "update" field prepopulated with an Label instance, and
3371
- # its "update_mask" field populated as needed to send the updates to the API.
3372
- #
3373
- # @overload #label(path, &blk)
3374
- # @param path [String] a resource path for the resource to update
3375
- # @yield [Google::Ads::GoogleAds::V5::Resources::Label] a new instance of the resource for this update operation, on
3376
- # which fields can be set to update
3377
- #
3378
- # @overload #label(resource, &blk)
3379
- # @param resource [Google::Ads::GoogleAds::V5::Resources::Label] a resource instance to update
3380
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
3381
- # @return [Google::Ads::GoogleAds::V5::Services::LabelOperation] the operation instance to update the resource
3382
- def self.label(resource_or_path, &blk)
3383
- require "google/ads/google_ads/v5/services/label_service_pb"
3384
- res = case resource_or_path
3385
- when Google::Ads::GoogleAds::V5::Resources::Label
3386
- resource_or_path
3387
- # got a resource path
3388
- when String
3389
- obj = Google::Ads::GoogleAds::V5::Resources::Label.new
3390
- obj.resource_name = resource_or_path
3391
- obj
3392
- else
3393
- unless Google::Ads::GoogleAds::V5::Resources::Label === res
3394
- raise ArgumentError.new(
3395
- "Called #{__method__} with instance of wrong type:"\
3396
- " #{res.class} want #{operation.update_class}"\
3397
- " or String representing resource name"
3398
- )
3399
- end
3400
- end
3401
-
3402
- op = Google::Ads::GoogleAds::V5::Services::LabelOperation.new
3403
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3404
- op["update"] = res
3405
- op
3406
- end
3407
-
3408
3603
  # A convenience method for creating an RemarketingActionOperation instance with
3409
3604
  # its "update" field prepopulated with an RemarketingAction instance, and
3410
3605
  # its "update_mask" field populated as needed to send the updates to the API.
@@ -3444,31 +3639,31 @@ module Google
3444
3639
  op
3445
3640
  end
3446
3641
 
3447
- # A convenience method for creating an SharedSetOperation instance with
3448
- # its "update" field prepopulated with an SharedSet instance, and
3642
+ # A convenience method for creating an MerchantCenterLinkOperation instance with
3643
+ # its "update" field prepopulated with an MerchantCenterLink instance, and
3449
3644
  # its "update_mask" field populated as needed to send the updates to the API.
3450
3645
  #
3451
- # @overload #shared_set(path, &blk)
3646
+ # @overload #merchant_center_link(path, &blk)
3452
3647
  # @param path [String] a resource path for the resource to update
3453
- # @yield [Google::Ads::GoogleAds::V5::Resources::SharedSet] a new instance of the resource for this update operation, on
3648
+ # @yield [Google::Ads::GoogleAds::V5::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on
3454
3649
  # which fields can be set to update
3455
3650
  #
3456
- # @overload #shared_set(resource, &blk)
3457
- # @param resource [Google::Ads::GoogleAds::V5::Resources::SharedSet] a resource instance to update
3651
+ # @overload #merchant_center_link(resource, &blk)
3652
+ # @param resource [Google::Ads::GoogleAds::V5::Resources::MerchantCenterLink] a resource instance to update
3458
3653
  # @yield the passed block is called and updates against `resource` are recordered in the update mask
3459
- # @return [Google::Ads::GoogleAds::V5::Services::SharedSetOperation] the operation instance to update the resource
3460
- def self.shared_set(resource_or_path, &blk)
3461
- require "google/ads/google_ads/v5/services/shared_set_service_pb"
3654
+ # @return [Google::Ads::GoogleAds::V5::Services::MerchantCenterLinkOperation] the operation instance to update the resource
3655
+ def self.merchant_center_link(resource_or_path, &blk)
3656
+ require "google/ads/google_ads/v5/services/merchant_center_link_service_pb"
3462
3657
  res = case resource_or_path
3463
- when Google::Ads::GoogleAds::V5::Resources::SharedSet
3658
+ when Google::Ads::GoogleAds::V5::Resources::MerchantCenterLink
3464
3659
  resource_or_path
3465
3660
  # got a resource path
3466
3661
  when String
3467
- obj = Google::Ads::GoogleAds::V5::Resources::SharedSet.new
3662
+ obj = Google::Ads::GoogleAds::V5::Resources::MerchantCenterLink.new
3468
3663
  obj.resource_name = resource_or_path
3469
3664
  obj
3470
3665
  else
3471
- unless Google::Ads::GoogleAds::V5::Resources::SharedSet === res
3666
+ unless Google::Ads::GoogleAds::V5::Resources::MerchantCenterLink === res
3472
3667
  raise ArgumentError.new(
3473
3668
  "Called #{__method__} with instance of wrong type:"\
3474
3669
  " #{res.class} want #{operation.update_class}"\
@@ -3477,249 +3672,153 @@ module Google
3477
3672
  end
3478
3673
  end
3479
3674
 
3480
- op = Google::Ads::GoogleAds::V5::Services::SharedSetOperation.new
3675
+ op = Google::Ads::GoogleAds::V5::Services::MerchantCenterLinkOperation.new
3481
3676
  op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3482
3677
  op["update"] = res
3483
3678
  op
3484
3679
  end
3680
+ end
3485
3681
 
3486
- # A convenience method for creating an UserListOperation instance with
3487
- # its "update" field prepopulated with an UserList instance, and
3488
- # its "update_mask" field populated as needed to send the updates to the API.
3682
+ module RemoveResource
3683
+ # A convenience method for creating an FeedAttributeOperation instance with
3684
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3489
3685
  #
3490
- # @overload #user_list(path, &blk)
3491
- # @param path [String] a resource path for the resource to update
3492
- # @yield [Google::Ads::GoogleAds::V5::Resources::UserList] a new instance of the resource for this update operation, on
3493
- # which fields can be set to update
3686
+ # @param path [String] the resource name of the resource to delete.
3687
+ def self.feed_attribute(path)
3688
+ require "google/ads/google_ads/v5/resources/feed_pb"
3689
+ op = Google::Ads::GoogleAds::V5::Resources::FeedAttributeOperation.new
3690
+ op["remove"] = path
3691
+ op
3692
+ end
3693
+
3694
+ # A convenience method for creating an TargetRestrictionOperation instance with
3695
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3494
3696
  #
3495
- # @overload #user_list(resource, &blk)
3496
- # @param resource [Google::Ads::GoogleAds::V5::Resources::UserList] a resource instance to update
3497
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
3498
- # @return [Google::Ads::GoogleAds::V5::Services::UserListOperation] the operation instance to update the resource
3499
- def self.user_list(resource_or_path, &blk)
3500
- require "google/ads/google_ads/v5/services/user_list_service_pb"
3501
- res = case resource_or_path
3502
- when Google::Ads::GoogleAds::V5::Resources::UserList
3503
- resource_or_path
3504
- # got a resource path
3505
- when String
3506
- obj = Google::Ads::GoogleAds::V5::Resources::UserList.new
3507
- obj.resource_name = resource_or_path
3508
- obj
3509
- else
3510
- unless Google::Ads::GoogleAds::V5::Resources::UserList === res
3511
- raise ArgumentError.new(
3512
- "Called #{__method__} with instance of wrong type:"\
3513
- " #{res.class} want #{operation.update_class}"\
3514
- " or String representing resource name"
3515
- )
3516
- end
3517
- end
3697
+ # @param path [String] the resource name of the resource to delete.
3698
+ def self.target_restriction(path)
3699
+ require "google/ads/google_ads/v5/common/targeting_setting_pb"
3700
+ op = Google::Ads::GoogleAds::V5::Common::TargetRestrictionOperation.new
3701
+ op["remove"] = path
3702
+ op
3703
+ end
3518
3704
 
3519
- op = Google::Ads::GoogleAds::V5::Services::UserListOperation.new
3520
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3521
- op["update"] = res
3705
+ # A convenience method for creating an CustomerClientLinkOperation instance with
3706
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3707
+ #
3708
+ # @param path [String] the resource name of the resource to delete.
3709
+ def self.customer_client_link(path)
3710
+ require "google/ads/google_ads/v5/services/customer_client_link_service_pb"
3711
+ op = Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation.new
3712
+ op["remove"] = path
3522
3713
  op
3523
3714
  end
3524
3715
 
3525
3716
  # A convenience method for creating an CustomInterestOperation instance with
3526
- # its "update" field prepopulated with an CustomInterest instance, and
3527
- # its "update_mask" field populated as needed to send the updates to the API.
3528
- #
3529
- # @overload #custom_interest(path, &blk)
3530
- # @param path [String] a resource path for the resource to update
3531
- # @yield [Google::Ads::GoogleAds::V5::Resources::CustomInterest] a new instance of the resource for this update operation, on
3532
- # which fields can be set to update
3717
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3533
3718
  #
3534
- # @overload #custom_interest(resource, &blk)
3535
- # @param resource [Google::Ads::GoogleAds::V5::Resources::CustomInterest] a resource instance to update
3536
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
3537
- # @return [Google::Ads::GoogleAds::V5::Services::CustomInterestOperation] the operation instance to update the resource
3538
- def self.custom_interest(resource_or_path, &blk)
3719
+ # @param path [String] the resource name of the resource to delete.
3720
+ def self.custom_interest(path)
3539
3721
  require "google/ads/google_ads/v5/services/custom_interest_service_pb"
3540
- res = case resource_or_path
3541
- when Google::Ads::GoogleAds::V5::Resources::CustomInterest
3542
- resource_or_path
3543
- # got a resource path
3544
- when String
3545
- obj = Google::Ads::GoogleAds::V5::Resources::CustomInterest.new
3546
- obj.resource_name = resource_or_path
3547
- obj
3548
- else
3549
- unless Google::Ads::GoogleAds::V5::Resources::CustomInterest === res
3550
- raise ArgumentError.new(
3551
- "Called #{__method__} with instance of wrong type:"\
3552
- " #{res.class} want #{operation.update_class}"\
3553
- " or String representing resource name"
3554
- )
3555
- end
3556
- end
3557
-
3558
3722
  op = Google::Ads::GoogleAds::V5::Services::CustomInterestOperation.new
3559
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3560
- op["update"] = res
3723
+ op["remove"] = path
3561
3724
  op
3562
3725
  end
3563
3726
 
3564
- # A convenience method for creating an MerchantCenterLinkOperation instance with
3565
- # its "update" field prepopulated with an MerchantCenterLink instance, and
3566
- # its "update_mask" field populated as needed to send the updates to the API.
3567
- #
3568
- # @overload #merchant_center_link(path, &blk)
3569
- # @param path [String] a resource path for the resource to update
3570
- # @yield [Google::Ads::GoogleAds::V5::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on
3571
- # which fields can be set to update
3727
+ # A convenience method for creating an CustomerNegativeCriterionOperation instance with
3728
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3572
3729
  #
3573
- # @overload #merchant_center_link(resource, &blk)
3574
- # @param resource [Google::Ads::GoogleAds::V5::Resources::MerchantCenterLink] a resource instance to update
3575
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
3576
- # @return [Google::Ads::GoogleAds::V5::Services::MerchantCenterLinkOperation] the operation instance to update the resource
3577
- def self.merchant_center_link(resource_or_path, &blk)
3578
- require "google/ads/google_ads/v5/services/merchant_center_link_service_pb"
3579
- res = case resource_or_path
3580
- when Google::Ads::GoogleAds::V5::Resources::MerchantCenterLink
3581
- resource_or_path
3582
- # got a resource path
3583
- when String
3584
- obj = Google::Ads::GoogleAds::V5::Resources::MerchantCenterLink.new
3585
- obj.resource_name = resource_or_path
3586
- obj
3587
- else
3588
- unless Google::Ads::GoogleAds::V5::Resources::MerchantCenterLink === res
3589
- raise ArgumentError.new(
3590
- "Called #{__method__} with instance of wrong type:"\
3591
- " #{res.class} want #{operation.update_class}"\
3592
- " or String representing resource name"
3593
- )
3594
- end
3595
- end
3596
-
3597
- op = Google::Ads::GoogleAds::V5::Services::MerchantCenterLinkOperation.new
3598
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3599
- op["update"] = res
3730
+ # @param path [String] the resource name of the resource to delete.
3731
+ def self.customer_negative_criterion(path)
3732
+ require "google/ads/google_ads/v5/services/customer_negative_criterion_service_pb"
3733
+ op = Google::Ads::GoogleAds::V5::Services::CustomerNegativeCriterionOperation.new
3734
+ op["remove"] = path
3600
3735
  op
3601
3736
  end
3602
3737
 
3603
- # A convenience method for creating an CustomerClientLinkOperation instance with
3604
- # its "update" field prepopulated with an CustomerClientLink instance, and
3605
- # its "update_mask" field populated as needed to send the updates to the API.
3606
- #
3607
- # @overload #customer_client_link(path, &blk)
3608
- # @param path [String] a resource path for the resource to update
3609
- # @yield [Google::Ads::GoogleAds::V5::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
3610
- # which fields can be set to update
3738
+ # A convenience method for creating an SharedCriterionOperation instance with
3739
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3611
3740
  #
3612
- # @overload #customer_client_link(resource, &blk)
3613
- # @param resource [Google::Ads::GoogleAds::V5::Resources::CustomerClientLink] a resource instance to update
3614
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
3615
- # @return [Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation] the operation instance to update the resource
3616
- def self.customer_client_link(resource_or_path, &blk)
3617
- require "google/ads/google_ads/v5/services/customer_client_link_service_pb"
3618
- res = case resource_or_path
3619
- when Google::Ads::GoogleAds::V5::Resources::CustomerClientLink
3620
- resource_or_path
3621
- # got a resource path
3622
- when String
3623
- obj = Google::Ads::GoogleAds::V5::Resources::CustomerClientLink.new
3624
- obj.resource_name = resource_or_path
3625
- obj
3626
- else
3627
- unless Google::Ads::GoogleAds::V5::Resources::CustomerClientLink === res
3628
- raise ArgumentError.new(
3629
- "Called #{__method__} with instance of wrong type:"\
3630
- " #{res.class} want #{operation.update_class}"\
3631
- " or String representing resource name"
3632
- )
3633
- end
3634
- end
3635
-
3636
- op = Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation.new
3637
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3638
- op["update"] = res
3741
+ # @param path [String] the resource name of the resource to delete.
3742
+ def self.shared_criterion(path)
3743
+ require "google/ads/google_ads/v5/services/shared_criterion_service_pb"
3744
+ op = Google::Ads::GoogleAds::V5::Services::SharedCriterionOperation.new
3745
+ op["remove"] = path
3639
3746
  op
3640
3747
  end
3641
3748
 
3642
- # A convenience method for creating an CustomerManagerLinkOperation instance with
3643
- # its "update" field prepopulated with an CustomerManagerLink instance, and
3644
- # its "update_mask" field populated as needed to send the updates to the API.
3749
+ # A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
3750
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3645
3751
  #
3646
- # @overload #customer_manager_link(path, &blk)
3647
- # @param path [String] a resource path for the resource to update
3648
- # @yield [Google::Ads::GoogleAds::V5::Resources::CustomerManagerLink] a new instance of the resource for this update operation, on
3649
- # which fields can be set to update
3752
+ # @param path [String] the resource name of the resource to delete.
3753
+ def self.keyword_plan_ad_group_keyword(path)
3754
+ require "google/ads/google_ads/v5/services/keyword_plan_ad_group_keyword_service_pb"
3755
+ op = Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation.new
3756
+ op["remove"] = path
3757
+ op
3758
+ end
3759
+
3760
+ # A convenience method for creating an FeedMappingOperation instance with
3761
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3650
3762
  #
3651
- # @overload #customer_manager_link(resource, &blk)
3652
- # @param resource [Google::Ads::GoogleAds::V5::Resources::CustomerManagerLink] a resource instance to update
3653
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
3654
- # @return [Google::Ads::GoogleAds::V5::Services::CustomerManagerLinkOperation] the operation instance to update the resource
3655
- def self.customer_manager_link(resource_or_path, &blk)
3656
- require "google/ads/google_ads/v5/services/customer_manager_link_service_pb"
3657
- res = case resource_or_path
3658
- when Google::Ads::GoogleAds::V5::Resources::CustomerManagerLink
3659
- resource_or_path
3660
- # got a resource path
3661
- when String
3662
- obj = Google::Ads::GoogleAds::V5::Resources::CustomerManagerLink.new
3663
- obj.resource_name = resource_or_path
3664
- obj
3665
- else
3666
- unless Google::Ads::GoogleAds::V5::Resources::CustomerManagerLink === res
3667
- raise ArgumentError.new(
3668
- "Called #{__method__} with instance of wrong type:"\
3669
- " #{res.class} want #{operation.update_class}"\
3670
- " or String representing resource name"
3671
- )
3672
- end
3673
- end
3763
+ # @param path [String] the resource name of the resource to delete.
3764
+ def self.feed_mapping(path)
3765
+ require "google/ads/google_ads/v5/services/feed_mapping_service_pb"
3766
+ op = Google::Ads::GoogleAds::V5::Services::FeedMappingOperation.new
3767
+ op["remove"] = path
3768
+ op
3769
+ end
3674
3770
 
3675
- op = Google::Ads::GoogleAds::V5::Services::CustomerManagerLinkOperation.new
3676
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
3677
- op["update"] = res
3771
+ # A convenience method for creating an AdGroupOperation instance with
3772
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3773
+ #
3774
+ # @param path [String] the resource name of the resource to delete.
3775
+ def self.ad_group(path)
3776
+ require "google/ads/google_ads/v5/services/ad_group_service_pb"
3777
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupOperation.new
3778
+ op["remove"] = path
3678
3779
  op
3679
3780
  end
3680
- end
3681
3781
 
3682
- module RemoveResource
3683
- # A convenience method for creating an TargetRestrictionOperation instance with
3782
+ # A convenience method for creating an CampaignBidModifierOperation instance with
3684
3783
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3685
3784
  #
3686
3785
  # @param path [String] the resource name of the resource to delete.
3687
- def self.target_restriction(path)
3688
- require "google/ads/google_ads/v5/common/targeting_setting_pb"
3689
- op = Google::Ads::GoogleAds::V5::Common::TargetRestrictionOperation.new
3786
+ def self.campaign_bid_modifier(path)
3787
+ require "google/ads/google_ads/v5/services/campaign_bid_modifier_service_pb"
3788
+ op = Google::Ads::GoogleAds::V5::Services::CampaignBidModifierOperation.new
3690
3789
  op["remove"] = path
3691
3790
  op
3692
3791
  end
3693
3792
 
3694
- # A convenience method for creating an FeedAttributeOperation instance with
3793
+ # A convenience method for creating an CustomerManagerLinkOperation instance with
3695
3794
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3696
3795
  #
3697
3796
  # @param path [String] the resource name of the resource to delete.
3698
- def self.feed_attribute(path)
3699
- require "google/ads/google_ads/v5/resources/feed_pb"
3700
- op = Google::Ads::GoogleAds::V5::Resources::FeedAttributeOperation.new
3797
+ def self.customer_manager_link(path)
3798
+ require "google/ads/google_ads/v5/services/customer_manager_link_service_pb"
3799
+ op = Google::Ads::GoogleAds::V5::Services::CustomerManagerLinkOperation.new
3701
3800
  op["remove"] = path
3702
3801
  op
3703
3802
  end
3704
3803
 
3705
- # A convenience method for creating an CampaignBudgetOperation instance with
3804
+ # A convenience method for creating an CampaignDraftOperation instance with
3706
3805
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3707
3806
  #
3708
3807
  # @param path [String] the resource name of the resource to delete.
3709
- def self.campaign_budget(path)
3710
- require "google/ads/google_ads/v5/services/campaign_budget_service_pb"
3711
- op = Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation.new
3808
+ def self.campaign_draft(path)
3809
+ require "google/ads/google_ads/v5/services/campaign_draft_service_pb"
3810
+ op = Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation.new
3712
3811
  op["remove"] = path
3713
3812
  op
3714
3813
  end
3715
3814
 
3716
- # A convenience method for creating an AdGroupAdLabelOperation instance with
3815
+ # A convenience method for creating an UserListOperation instance with
3717
3816
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3718
3817
  #
3719
3818
  # @param path [String] the resource name of the resource to delete.
3720
- def self.ad_group_ad_label(path)
3721
- require "google/ads/google_ads/v5/services/ad_group_ad_label_service_pb"
3722
- op = Google::Ads::GoogleAds::V5::Services::AdGroupAdLabelOperation.new
3819
+ def self.user_list(path)
3820
+ require "google/ads/google_ads/v5/services/user_list_service_pb"
3821
+ op = Google::Ads::GoogleAds::V5::Services::UserListOperation.new
3723
3822
  op["remove"] = path
3724
3823
  op
3725
3824
  end
@@ -3735,46 +3834,46 @@ module Google
3735
3834
  op
3736
3835
  end
3737
3836
 
3738
- # A convenience method for creating an CampaignBidModifierOperation instance with
3837
+ # A convenience method for creating an SharedSetOperation instance with
3739
3838
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3740
3839
  #
3741
3840
  # @param path [String] the resource name of the resource to delete.
3742
- def self.campaign_bid_modifier(path)
3743
- require "google/ads/google_ads/v5/services/campaign_bid_modifier_service_pb"
3744
- op = Google::Ads::GoogleAds::V5::Services::CampaignBidModifierOperation.new
3841
+ def self.shared_set(path)
3842
+ require "google/ads/google_ads/v5/services/shared_set_service_pb"
3843
+ op = Google::Ads::GoogleAds::V5::Services::SharedSetOperation.new
3745
3844
  op["remove"] = path
3746
3845
  op
3747
3846
  end
3748
3847
 
3749
- # A convenience method for creating an CampaignOperation instance with
3848
+ # A convenience method for creating an AdGroupCriterionLabelOperation instance with
3750
3849
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3751
3850
  #
3752
3851
  # @param path [String] the resource name of the resource to delete.
3753
- def self.campaign(path)
3754
- require "google/ads/google_ads/v5/services/campaign_service_pb"
3755
- op = Google::Ads::GoogleAds::V5::Services::CampaignOperation.new
3852
+ def self.ad_group_criterion_label(path)
3853
+ require "google/ads/google_ads/v5/services/ad_group_criterion_label_service_pb"
3854
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupCriterionLabelOperation.new
3756
3855
  op["remove"] = path
3757
3856
  op
3758
3857
  end
3759
3858
 
3760
- # A convenience method for creating an BiddingStrategyOperation instance with
3859
+ # A convenience method for creating an LabelOperation instance with
3761
3860
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3762
3861
  #
3763
3862
  # @param path [String] the resource name of the resource to delete.
3764
- def self.bidding_strategy(path)
3765
- require "google/ads/google_ads/v5/services/bidding_strategy_service_pb"
3766
- op = Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation.new
3863
+ def self.label(path)
3864
+ require "google/ads/google_ads/v5/services/label_service_pb"
3865
+ op = Google::Ads::GoogleAds::V5::Services::LabelOperation.new
3767
3866
  op["remove"] = path
3768
3867
  op
3769
3868
  end
3770
3869
 
3771
- # A convenience method for creating an AdGroupOperation instance with
3870
+ # A convenience method for creating an AdGroupAdLabelOperation instance with
3772
3871
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3773
3872
  #
3774
3873
  # @param path [String] the resource name of the resource to delete.
3775
- def self.ad_group(path)
3776
- require "google/ads/google_ads/v5/services/ad_group_service_pb"
3777
- op = Google::Ads::GoogleAds::V5::Services::AdGroupOperation.new
3874
+ def self.ad_group_ad_label(path)
3875
+ require "google/ads/google_ads/v5/services/ad_group_ad_label_service_pb"
3876
+ op = Google::Ads::GoogleAds::V5::Services::AdGroupAdLabelOperation.new
3778
3877
  op["remove"] = path
3779
3878
  op
3780
3879
  end
@@ -3801,17 +3900,6 @@ module Google
3801
3900
  op
3802
3901
  end
3803
3902
 
3804
- # A convenience method for creating an AdGroupCriterionLabelOperation instance with
3805
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3806
- #
3807
- # @param path [String] the resource name of the resource to delete.
3808
- def self.ad_group_criterion_label(path)
3809
- require "google/ads/google_ads/v5/services/ad_group_criterion_label_service_pb"
3810
- op = Google::Ads::GoogleAds::V5::Services::AdGroupCriterionLabelOperation.new
3811
- op["remove"] = path
3812
- op
3813
- end
3814
-
3815
3903
  # A convenience method for creating an AdGroupCriterionOperation instance with
3816
3904
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3817
3905
  #
@@ -3889,6 +3977,17 @@ module Google
3889
3977
  op
3890
3978
  end
3891
3979
 
3980
+ # A convenience method for creating an BiddingStrategyOperation instance with
3981
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3982
+ #
3983
+ # @param path [String] the resource name of the resource to delete.
3984
+ def self.bidding_strategy(path)
3985
+ require "google/ads/google_ads/v5/services/bidding_strategy_service_pb"
3986
+ op = Google::Ads::GoogleAds::V5::Services::BiddingStrategyOperation.new
3987
+ op["remove"] = path
3988
+ op
3989
+ end
3990
+
3892
3991
  # A convenience method for creating an CampaignAssetOperation instance with
3893
3992
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3894
3993
  #
@@ -3900,24 +3999,24 @@ module Google
3900
3999
  op
3901
4000
  end
3902
4001
 
3903
- # A convenience method for creating an CampaignCriterionOperation instance with
4002
+ # A convenience method for creating an CampaignBudgetOperation instance with
3904
4003
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3905
4004
  #
3906
4005
  # @param path [String] the resource name of the resource to delete.
3907
- def self.campaign_criterion(path)
3908
- require "google/ads/google_ads/v5/services/campaign_criterion_service_pb"
3909
- op = Google::Ads::GoogleAds::V5::Services::CampaignCriterionOperation.new
4006
+ def self.campaign_budget(path)
4007
+ require "google/ads/google_ads/v5/services/campaign_budget_service_pb"
4008
+ op = Google::Ads::GoogleAds::V5::Services::CampaignBudgetOperation.new
3910
4009
  op["remove"] = path
3911
4010
  op
3912
4011
  end
3913
4012
 
3914
- # A convenience method for creating an CampaignDraftOperation instance with
4013
+ # A convenience method for creating an CampaignCriterionOperation instance with
3915
4014
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3916
4015
  #
3917
4016
  # @param path [String] the resource name of the resource to delete.
3918
- def self.campaign_draft(path)
3919
- require "google/ads/google_ads/v5/services/campaign_draft_service_pb"
3920
- op = Google::Ads::GoogleAds::V5::Services::CampaignDraftOperation.new
4017
+ def self.campaign_criterion(path)
4018
+ require "google/ads/google_ads/v5/services/campaign_criterion_service_pb"
4019
+ op = Google::Ads::GoogleAds::V5::Services::CampaignCriterionOperation.new
3921
4020
  op["remove"] = path
3922
4021
  op
3923
4022
  end
@@ -3966,6 +4065,17 @@ module Google
3966
4065
  op
3967
4066
  end
3968
4067
 
4068
+ # A convenience method for creating an CampaignOperation instance with
4069
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4070
+ #
4071
+ # @param path [String] the resource name of the resource to delete.
4072
+ def self.campaign(path)
4073
+ require "google/ads/google_ads/v5/services/campaign_service_pb"
4074
+ op = Google::Ads::GoogleAds::V5::Services::CampaignOperation.new
4075
+ op["remove"] = path
4076
+ op
4077
+ end
4078
+
3969
4079
  # A convenience method for creating an CampaignSharedSetOperation instance with
3970
4080
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3971
4081
  #
@@ -4021,17 +4131,6 @@ module Google
4021
4131
  op
4022
4132
  end
4023
4133
 
4024
- # A convenience method for creating an CustomerNegativeCriterionOperation instance with
4025
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4026
- #
4027
- # @param path [String] the resource name of the resource to delete.
4028
- def self.customer_negative_criterion(path)
4029
- require "google/ads/google_ads/v5/services/customer_negative_criterion_service_pb"
4030
- op = Google::Ads::GoogleAds::V5::Services::CustomerNegativeCriterionOperation.new
4031
- op["remove"] = path
4032
- op
4033
- end
4034
-
4035
4134
  # A convenience method for creating an ExtensionFeedItemOperation instance with
4036
4135
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4037
4136
  #
@@ -4065,17 +4164,6 @@ module Google
4065
4164
  op
4066
4165
  end
4067
4166
 
4068
- # A convenience method for creating an FeedMappingOperation instance with
4069
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4070
- #
4071
- # @param path [String] the resource name of the resource to delete.
4072
- def self.feed_mapping(path)
4073
- require "google/ads/google_ads/v5/services/feed_mapping_service_pb"
4074
- op = Google::Ads::GoogleAds::V5::Services::FeedMappingOperation.new
4075
- op["remove"] = path
4076
- op
4077
- end
4078
-
4079
4167
  # A convenience method for creating an FeedOperation instance with
4080
4168
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4081
4169
  #
@@ -4087,17 +4175,6 @@ module Google
4087
4175
  op
4088
4176
  end
4089
4177
 
4090
- # A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
4091
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4092
- #
4093
- # @param path [String] the resource name of the resource to delete.
4094
- def self.keyword_plan_ad_group_keyword(path)
4095
- require "google/ads/google_ads/v5/services/keyword_plan_ad_group_keyword_service_pb"
4096
- op = Google::Ads::GoogleAds::V5::Services::KeywordPlanAdGroupKeywordOperation.new
4097
- op["remove"] = path
4098
- op
4099
- end
4100
-
4101
4178
  # A convenience method for creating an KeywordPlanAdGroupOperation instance with
4102
4179
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4103
4180
  #
@@ -4142,17 +4219,6 @@ module Google
4142
4219
  op
4143
4220
  end
4144
4221
 
4145
- # A convenience method for creating an LabelOperation instance with
4146
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4147
- #
4148
- # @param path [String] the resource name of the resource to delete.
4149
- def self.label(path)
4150
- require "google/ads/google_ads/v5/services/label_service_pb"
4151
- op = Google::Ads::GoogleAds::V5::Services::LabelOperation.new
4152
- op["remove"] = path
4153
- op
4154
- end
4155
-
4156
4222
  # A convenience method for creating an MediaFileOperation instance with
4157
4223
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4158
4224
  #
@@ -4175,39 +4241,6 @@ module Google
4175
4241
  op
4176
4242
  end
4177
4243
 
4178
- # A convenience method for creating an SharedCriterionOperation instance with
4179
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4180
- #
4181
- # @param path [String] the resource name of the resource to delete.
4182
- def self.shared_criterion(path)
4183
- require "google/ads/google_ads/v5/services/shared_criterion_service_pb"
4184
- op = Google::Ads::GoogleAds::V5::Services::SharedCriterionOperation.new
4185
- op["remove"] = path
4186
- op
4187
- end
4188
-
4189
- # A convenience method for creating an SharedSetOperation instance with
4190
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4191
- #
4192
- # @param path [String] the resource name of the resource to delete.
4193
- def self.shared_set(path)
4194
- require "google/ads/google_ads/v5/services/shared_set_service_pb"
4195
- op = Google::Ads::GoogleAds::V5::Services::SharedSetOperation.new
4196
- op["remove"] = path
4197
- op
4198
- end
4199
-
4200
- # A convenience method for creating an UserListOperation instance with
4201
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4202
- #
4203
- # @param path [String] the resource name of the resource to delete.
4204
- def self.user_list(path)
4205
- require "google/ads/google_ads/v5/services/user_list_service_pb"
4206
- op = Google::Ads::GoogleAds::V5::Services::UserListOperation.new
4207
- op["remove"] = path
4208
- op
4209
- end
4210
-
4211
4244
  # A convenience method for creating an MutateOperation instance with
4212
4245
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4213
4246
  #
@@ -4241,39 +4274,6 @@ module Google
4241
4274
  op
4242
4275
  end
4243
4276
 
4244
- # A convenience method for creating an CustomInterestOperation instance with
4245
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4246
- #
4247
- # @param path [String] the resource name of the resource to delete.
4248
- def self.custom_interest(path)
4249
- require "google/ads/google_ads/v5/services/custom_interest_service_pb"
4250
- op = Google::Ads::GoogleAds::V5::Services::CustomInterestOperation.new
4251
- op["remove"] = path
4252
- op
4253
- end
4254
-
4255
- # A convenience method for creating an MerchantCenterLinkOperation instance with
4256
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4257
- #
4258
- # @param path [String] the resource name of the resource to delete.
4259
- def self.merchant_center_link(path)
4260
- require "google/ads/google_ads/v5/services/merchant_center_link_service_pb"
4261
- op = Google::Ads::GoogleAds::V5::Services::MerchantCenterLinkOperation.new
4262
- op["remove"] = path
4263
- op
4264
- end
4265
-
4266
- # A convenience method for creating an CustomerClientLinkOperation instance with
4267
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4268
- #
4269
- # @param path [String] the resource name of the resource to delete.
4270
- def self.customer_client_link(path)
4271
- require "google/ads/google_ads/v5/services/customer_client_link_service_pb"
4272
- op = Google::Ads::GoogleAds::V5::Services::CustomerClientLinkOperation.new
4273
- op["remove"] = path
4274
- op
4275
- end
4276
-
4277
4277
  # A convenience method for creating an UserDataOperation instance with
4278
4278
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4279
4279
  #
@@ -4285,13 +4285,13 @@ module Google
4285
4285
  op
4286
4286
  end
4287
4287
 
4288
- # A convenience method for creating an CustomerManagerLinkOperation instance with
4288
+ # A convenience method for creating an AccountBudgetProposalOperation instance with
4289
4289
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4290
4290
  #
4291
4291
  # @param path [String] the resource name of the resource to delete.
4292
- def self.customer_manager_link(path)
4293
- require "google/ads/google_ads/v5/services/customer_manager_link_service_pb"
4294
- op = Google::Ads::GoogleAds::V5::Services::CustomerManagerLinkOperation.new
4292
+ def self.account_budget_proposal(path)
4293
+ require "google/ads/google_ads/v5/services/account_budget_proposal_service_pb"
4294
+ op = Google::Ads::GoogleAds::V5::Services::AccountBudgetProposalOperation.new
4295
4295
  op["remove"] = path
4296
4296
  op
4297
4297
  end
@@ -4318,35 +4318,35 @@ module Google
4318
4318
  op
4319
4319
  end
4320
4320
 
4321
- # A convenience method for creating an BillingSetupOperation instance with
4321
+ # A convenience method for creating an AccountLinkOperation instance with
4322
4322
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4323
4323
  #
4324
4324
  # @param path [String] the resource name of the resource to delete.
4325
- def self.billing_setup(path)
4326
- require "google/ads/google_ads/v5/services/billing_setup_service_pb"
4327
- op = Google::Ads::GoogleAds::V5::Services::BillingSetupOperation.new
4325
+ def self.account_link(path)
4326
+ require "google/ads/google_ads/v5/services/account_link_service_pb"
4327
+ op = Google::Ads::GoogleAds::V5::Services::AccountLinkOperation.new
4328
4328
  op["remove"] = path
4329
4329
  op
4330
4330
  end
4331
4331
 
4332
- # A convenience method for creating an AccountLinkOperation instance with
4332
+ # A convenience method for creating an MerchantCenterLinkOperation instance with
4333
4333
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4334
4334
  #
4335
4335
  # @param path [String] the resource name of the resource to delete.
4336
- def self.account_link(path)
4337
- require "google/ads/google_ads/v5/services/account_link_service_pb"
4338
- op = Google::Ads::GoogleAds::V5::Services::AccountLinkOperation.new
4336
+ def self.merchant_center_link(path)
4337
+ require "google/ads/google_ads/v5/services/merchant_center_link_service_pb"
4338
+ op = Google::Ads::GoogleAds::V5::Services::MerchantCenterLinkOperation.new
4339
4339
  op["remove"] = path
4340
4340
  op
4341
4341
  end
4342
4342
 
4343
- # A convenience method for creating an AccountBudgetProposalOperation instance with
4343
+ # A convenience method for creating an BillingSetupOperation instance with
4344
4344
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
4345
4345
  #
4346
4346
  # @param path [String] the resource name of the resource to delete.
4347
- def self.account_budget_proposal(path)
4348
- require "google/ads/google_ads/v5/services/account_budget_proposal_service_pb"
4349
- op = Google::Ads::GoogleAds::V5::Services::AccountBudgetProposalOperation.new
4347
+ def self.billing_setup(path)
4348
+ require "google/ads/google_ads/v5/services/billing_setup_service_pb"
4349
+ op = Google::Ads::GoogleAds::V5::Services::BillingSetupOperation.new
4350
4350
  op["remove"] = path
4351
4351
  op
4352
4352
  end