google-ads-googleads 2.0.0 → 2.1.1

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