google-ads-googleads 9.0.0 → 10.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +7 -2
- data/lib/google/ads/google_ads/factories/v4/enums.rb +1152 -1152
- data/lib/google/ads/google_ads/factories/v4/operations.rb +1217 -1217
- data/lib/google/ads/google_ads/factories/v4/resources.rb +2445 -2445
- data/lib/google/ads/google_ads/factories/v4/services.rb +578 -578
- data/lib/google/ads/google_ads/factories/v5/enums.rb +1315 -1315
- data/lib/google/ads/google_ads/factories/v5/operations.rb +1237 -1237
- data/lib/google/ads/google_ads/factories/v5/resources.rb +2546 -2546
- data/lib/google/ads/google_ads/factories/v5/services.rb +592 -592
- data/lib/google/ads/google_ads/factories/v6/enums.rb +1341 -1341
- data/lib/google/ads/google_ads/factories/v6/operations.rb +1474 -1474
- data/lib/google/ads/google_ads/factories/v6/resources.rb +2476 -2476
- data/lib/google/ads/google_ads/factories/v6/services.rb +620 -620
- data/lib/google/ads/google_ads/service_wrapper.rb +2 -10
- data/lib/google/ads/google_ads/version.rb +1 -1
- metadata +3 -3
@@ -4,6 +4,20 @@ module Google
|
|
4
4
|
module Factories
|
5
5
|
module V6
|
6
6
|
module Operations
|
7
|
+
# Create a new FeedAttributeOperation
|
8
|
+
#
|
9
|
+
# @return [Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation] the operation
|
10
|
+
def self.feed_attribute
|
11
|
+
require "google/ads/google_ads/v6/resources/feed_pb"
|
12
|
+
if block_given?
|
13
|
+
op = Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation.new
|
14
|
+
yield op
|
15
|
+
op
|
16
|
+
else
|
17
|
+
Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation.new
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
7
21
|
# Create a new TargetRestrictionOperation
|
8
22
|
#
|
9
23
|
# @return [Google::Ads::GoogleAds::V6::Common::TargetRestrictionOperation] the operation
|
@@ -18,17 +32,87 @@ module Google
|
|
18
32
|
end
|
19
33
|
end
|
20
34
|
|
21
|
-
# Create a new
|
35
|
+
# Create a new CustomerClientLinkOperation
|
22
36
|
#
|
23
|
-
# @return [Google::Ads::GoogleAds::V6::
|
24
|
-
def self.
|
25
|
-
require "google/ads/google_ads/v6/
|
37
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation] the operation
|
38
|
+
def self.customer_client_link
|
39
|
+
require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
|
26
40
|
if block_given?
|
27
|
-
op = Google::Ads::GoogleAds::V6::
|
41
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
|
28
42
|
yield op
|
29
43
|
op
|
30
44
|
else
|
31
|
-
Google::Ads::GoogleAds::V6::
|
45
|
+
Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# Create a new CustomInterestOperation
|
50
|
+
#
|
51
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomInterestOperation] the operation
|
52
|
+
def self.custom_interest
|
53
|
+
require "google/ads/google_ads/v6/services/custom_interest_service_pb"
|
54
|
+
if block_given?
|
55
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
|
56
|
+
yield op
|
57
|
+
op
|
58
|
+
else
|
59
|
+
Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# Create a new CustomerNegativeCriterionOperation
|
64
|
+
#
|
65
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation] the operation
|
66
|
+
def self.customer_negative_criterion
|
67
|
+
require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
|
68
|
+
if block_given?
|
69
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
|
70
|
+
yield op
|
71
|
+
op
|
72
|
+
else
|
73
|
+
Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Create a new SharedCriterionOperation
|
78
|
+
#
|
79
|
+
# @return [Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation] the operation
|
80
|
+
def self.shared_criterion
|
81
|
+
require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
|
82
|
+
if block_given?
|
83
|
+
op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
|
84
|
+
yield op
|
85
|
+
op
|
86
|
+
else
|
87
|
+
Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# Create a new KeywordPlanAdGroupKeywordOperation
|
92
|
+
#
|
93
|
+
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation] the operation
|
94
|
+
def self.keyword_plan_ad_group_keyword
|
95
|
+
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
|
96
|
+
if block_given?
|
97
|
+
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
|
98
|
+
yield op
|
99
|
+
op
|
100
|
+
else
|
101
|
+
Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# Create a new FeedMappingOperation
|
106
|
+
#
|
107
|
+
# @return [Google::Ads::GoogleAds::V6::Services::FeedMappingOperation] the operation
|
108
|
+
def self.feed_mapping
|
109
|
+
require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
|
110
|
+
if block_given?
|
111
|
+
op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
|
112
|
+
yield op
|
113
|
+
op
|
114
|
+
else
|
115
|
+
Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
|
32
116
|
end
|
33
117
|
end
|
34
118
|
|
@@ -46,31 +130,87 @@ module Google
|
|
46
130
|
end
|
47
131
|
end
|
48
132
|
|
49
|
-
# Create a new
|
133
|
+
# Create a new AdGroupOperation
|
50
134
|
#
|
51
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
52
|
-
def self.
|
53
|
-
require "google/ads/google_ads/v6/services/
|
135
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupOperation] the operation
|
136
|
+
def self.ad_group
|
137
|
+
require "google/ads/google_ads/v6/services/ad_group_service_pb"
|
54
138
|
if block_given?
|
55
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
139
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
|
56
140
|
yield op
|
57
141
|
op
|
58
142
|
else
|
59
|
-
Google::Ads::GoogleAds::V6::Services::
|
143
|
+
Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
|
60
144
|
end
|
61
145
|
end
|
62
146
|
|
63
|
-
# Create a new
|
147
|
+
# Create a new FeedItemSetOperation
|
64
148
|
#
|
65
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
66
|
-
def self.
|
67
|
-
require "google/ads/google_ads/v6/services/
|
149
|
+
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation] the operation
|
150
|
+
def self.feed_item_set
|
151
|
+
require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
|
68
152
|
if block_given?
|
69
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
153
|
+
op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
|
70
154
|
yield op
|
71
155
|
op
|
72
156
|
else
|
73
|
-
Google::Ads::GoogleAds::V6::Services::
|
157
|
+
Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# Create a new CampaignBidModifierOperation
|
162
|
+
#
|
163
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation] the operation
|
164
|
+
def self.campaign_bid_modifier
|
165
|
+
require "google/ads/google_ads/v6/services/campaign_bid_modifier_service_pb"
|
166
|
+
if block_given?
|
167
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
|
168
|
+
yield op
|
169
|
+
op
|
170
|
+
else
|
171
|
+
Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Create a new CustomerManagerLinkOperation
|
176
|
+
#
|
177
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation] the operation
|
178
|
+
def self.customer_manager_link
|
179
|
+
require "google/ads/google_ads/v6/services/customer_manager_link_service_pb"
|
180
|
+
if block_given?
|
181
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
|
182
|
+
yield op
|
183
|
+
op
|
184
|
+
else
|
185
|
+
Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
# Create a new CampaignDraftOperation
|
190
|
+
#
|
191
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation] the operation
|
192
|
+
def self.campaign_draft
|
193
|
+
require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
|
194
|
+
if block_given?
|
195
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
|
196
|
+
yield op
|
197
|
+
op
|
198
|
+
else
|
199
|
+
Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
# Create a new UserListOperation
|
204
|
+
#
|
205
|
+
# @return [Google::Ads::GoogleAds::V6::Services::UserListOperation] the operation
|
206
|
+
def self.user_list
|
207
|
+
require "google/ads/google_ads/v6/services/user_list_service_pb"
|
208
|
+
if block_given?
|
209
|
+
op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
|
210
|
+
yield op
|
211
|
+
op
|
212
|
+
else
|
213
|
+
Google::Ads::GoogleAds::V6::Services::UserListOperation.new
|
74
214
|
end
|
75
215
|
end
|
76
216
|
|
@@ -88,59 +228,59 @@ module Google
|
|
88
228
|
end
|
89
229
|
end
|
90
230
|
|
91
|
-
# Create a new
|
231
|
+
# Create a new SharedSetOperation
|
92
232
|
#
|
93
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
94
|
-
def self.
|
95
|
-
require "google/ads/google_ads/v6/services/
|
233
|
+
# @return [Google::Ads::GoogleAds::V6::Services::SharedSetOperation] the operation
|
234
|
+
def self.shared_set
|
235
|
+
require "google/ads/google_ads/v6/services/shared_set_service_pb"
|
96
236
|
if block_given?
|
97
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
237
|
+
op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
|
98
238
|
yield op
|
99
239
|
op
|
100
240
|
else
|
101
|
-
Google::Ads::GoogleAds::V6::Services::
|
241
|
+
Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
|
102
242
|
end
|
103
243
|
end
|
104
244
|
|
105
|
-
# Create a new
|
245
|
+
# Create a new AdGroupCriterionLabelOperation
|
106
246
|
#
|
107
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
108
|
-
def self.
|
109
|
-
require "google/ads/google_ads/v6/services/
|
247
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation] the operation
|
248
|
+
def self.ad_group_criterion_label
|
249
|
+
require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
|
110
250
|
if block_given?
|
111
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
251
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
|
112
252
|
yield op
|
113
253
|
op
|
114
254
|
else
|
115
|
-
Google::Ads::GoogleAds::V6::Services::
|
255
|
+
Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
|
116
256
|
end
|
117
257
|
end
|
118
258
|
|
119
|
-
# Create a new
|
259
|
+
# Create a new LabelOperation
|
120
260
|
#
|
121
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
122
|
-
def self.
|
123
|
-
require "google/ads/google_ads/v6/services/
|
261
|
+
# @return [Google::Ads::GoogleAds::V6::Services::LabelOperation] the operation
|
262
|
+
def self.label
|
263
|
+
require "google/ads/google_ads/v6/services/label_service_pb"
|
124
264
|
if block_given?
|
125
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
265
|
+
op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
|
126
266
|
yield op
|
127
267
|
op
|
128
268
|
else
|
129
|
-
Google::Ads::GoogleAds::V6::Services::
|
269
|
+
Google::Ads::GoogleAds::V6::Services::LabelOperation.new
|
130
270
|
end
|
131
271
|
end
|
132
272
|
|
133
|
-
# Create a new
|
273
|
+
# Create a new AdGroupAdLabelOperation
|
134
274
|
#
|
135
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
136
|
-
def self.
|
137
|
-
require "google/ads/google_ads/v6/services/
|
275
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation] the operation
|
276
|
+
def self.ad_group_ad_label
|
277
|
+
require "google/ads/google_ads/v6/services/ad_group_ad_label_service_pb"
|
138
278
|
if block_given?
|
139
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
279
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
|
140
280
|
yield op
|
141
281
|
op
|
142
282
|
else
|
143
|
-
Google::Ads::GoogleAds::V6::Services::
|
283
|
+
Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
|
144
284
|
end
|
145
285
|
end
|
146
286
|
|
@@ -172,20 +312,6 @@ module Google
|
|
172
312
|
end
|
173
313
|
end
|
174
314
|
|
175
|
-
# Create a new AdGroupCriterionLabelOperation
|
176
|
-
#
|
177
|
-
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation] the operation
|
178
|
-
def self.ad_group_criterion_label
|
179
|
-
require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
|
180
|
-
if block_given?
|
181
|
-
op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
|
182
|
-
yield op
|
183
|
-
op
|
184
|
-
else
|
185
|
-
Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
|
186
|
-
end
|
187
|
-
end
|
188
|
-
|
189
315
|
# Create a new AdGroupCriterionOperation
|
190
316
|
#
|
191
317
|
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionOperation] the operation
|
@@ -284,6 +410,20 @@ module Google
|
|
284
410
|
end
|
285
411
|
end
|
286
412
|
|
413
|
+
# Create a new BiddingStrategyOperation
|
414
|
+
#
|
415
|
+
# @return [Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation] the operation
|
416
|
+
def self.bidding_strategy
|
417
|
+
require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
|
418
|
+
if block_given?
|
419
|
+
op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
|
420
|
+
yield op
|
421
|
+
op
|
422
|
+
else
|
423
|
+
Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
|
424
|
+
end
|
425
|
+
end
|
426
|
+
|
287
427
|
# Create a new CampaignAssetOperation
|
288
428
|
#
|
289
429
|
# @return [Google::Ads::GoogleAds::V6::Services::CampaignAssetOperation] the operation
|
@@ -298,31 +438,31 @@ module Google
|
|
298
438
|
end
|
299
439
|
end
|
300
440
|
|
301
|
-
# Create a new
|
441
|
+
# Create a new CampaignBudgetOperation
|
302
442
|
#
|
303
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
304
|
-
def self.
|
305
|
-
require "google/ads/google_ads/v6/services/
|
443
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation] the operation
|
444
|
+
def self.campaign_budget
|
445
|
+
require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
|
306
446
|
if block_given?
|
307
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
447
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
|
308
448
|
yield op
|
309
449
|
op
|
310
450
|
else
|
311
|
-
Google::Ads::GoogleAds::V6::Services::
|
451
|
+
Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
|
312
452
|
end
|
313
453
|
end
|
314
454
|
|
315
|
-
# Create a new
|
455
|
+
# Create a new CampaignCriterionOperation
|
316
456
|
#
|
317
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
318
|
-
def self.
|
319
|
-
require "google/ads/google_ads/v6/services/
|
457
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation] the operation
|
458
|
+
def self.campaign_criterion
|
459
|
+
require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
|
320
460
|
if block_given?
|
321
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
461
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
|
322
462
|
yield op
|
323
463
|
op
|
324
464
|
else
|
325
|
-
Google::Ads::GoogleAds::V6::Services::
|
465
|
+
Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
|
326
466
|
end
|
327
467
|
end
|
328
468
|
|
@@ -382,6 +522,20 @@ module Google
|
|
382
522
|
end
|
383
523
|
end
|
384
524
|
|
525
|
+
# Create a new CampaignOperation
|
526
|
+
#
|
527
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignOperation] the operation
|
528
|
+
def self.campaign
|
529
|
+
require "google/ads/google_ads/v6/services/campaign_service_pb"
|
530
|
+
if block_given?
|
531
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
|
532
|
+
yield op
|
533
|
+
op
|
534
|
+
else
|
535
|
+
Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
|
536
|
+
end
|
537
|
+
end
|
538
|
+
|
385
539
|
# Create a new CampaignSharedSetOperation
|
386
540
|
#
|
387
541
|
# @return [Google::Ads::GoogleAds::V6::Services::CampaignSharedSetOperation] the operation
|
@@ -452,20 +606,6 @@ module Google
|
|
452
606
|
end
|
453
607
|
end
|
454
608
|
|
455
|
-
# Create a new CustomerNegativeCriterionOperation
|
456
|
-
#
|
457
|
-
# @return [Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation] the operation
|
458
|
-
def self.customer_negative_criterion
|
459
|
-
require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
|
460
|
-
if block_given?
|
461
|
-
op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
|
462
|
-
yield op
|
463
|
-
op
|
464
|
-
else
|
465
|
-
Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
|
466
|
-
end
|
467
|
-
end
|
468
|
-
|
469
609
|
# Create a new ExtensionFeedItemOperation
|
470
610
|
#
|
471
611
|
# @return [Google::Ads::GoogleAds::V6::Services::ExtensionFeedItemOperation] the operation
|
@@ -494,20 +634,6 @@ module Google
|
|
494
634
|
end
|
495
635
|
end
|
496
636
|
|
497
|
-
# Create a new FeedItemSetOperation
|
498
|
-
#
|
499
|
-
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation] the operation
|
500
|
-
def self.feed_item_set
|
501
|
-
require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
|
502
|
-
if block_given?
|
503
|
-
op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
|
504
|
-
yield op
|
505
|
-
op
|
506
|
-
else
|
507
|
-
Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
|
508
|
-
end
|
509
|
-
end
|
510
|
-
|
511
637
|
# Create a new FeedItemTargetOperation
|
512
638
|
#
|
513
639
|
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemTargetOperation] the operation
|
@@ -522,20 +648,6 @@ module Google
|
|
522
648
|
end
|
523
649
|
end
|
524
650
|
|
525
|
-
# Create a new FeedMappingOperation
|
526
|
-
#
|
527
|
-
# @return [Google::Ads::GoogleAds::V6::Services::FeedMappingOperation] the operation
|
528
|
-
def self.feed_mapping
|
529
|
-
require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
|
530
|
-
if block_given?
|
531
|
-
op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
|
532
|
-
yield op
|
533
|
-
op
|
534
|
-
else
|
535
|
-
Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
|
536
|
-
end
|
537
|
-
end
|
538
|
-
|
539
651
|
# Create a new FeedOperation
|
540
652
|
#
|
541
653
|
# @return [Google::Ads::GoogleAds::V6::Services::FeedOperation] the operation
|
@@ -550,20 +662,6 @@ module Google
|
|
550
662
|
end
|
551
663
|
end
|
552
664
|
|
553
|
-
# Create a new KeywordPlanAdGroupKeywordOperation
|
554
|
-
#
|
555
|
-
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation] the operation
|
556
|
-
def self.keyword_plan_ad_group_keyword
|
557
|
-
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
|
558
|
-
if block_given?
|
559
|
-
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
|
560
|
-
yield op
|
561
|
-
op
|
562
|
-
else
|
563
|
-
Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
|
564
|
-
end
|
565
|
-
end
|
566
|
-
|
567
665
|
# Create a new KeywordPlanAdGroupOperation
|
568
666
|
#
|
569
667
|
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupOperation] the operation
|
@@ -620,20 +718,6 @@ module Google
|
|
620
718
|
end
|
621
719
|
end
|
622
720
|
|
623
|
-
# Create a new LabelOperation
|
624
|
-
#
|
625
|
-
# @return [Google::Ads::GoogleAds::V6::Services::LabelOperation] the operation
|
626
|
-
def self.label
|
627
|
-
require "google/ads/google_ads/v6/services/label_service_pb"
|
628
|
-
if block_given?
|
629
|
-
op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
|
630
|
-
yield op
|
631
|
-
op
|
632
|
-
else
|
633
|
-
Google::Ads::GoogleAds::V6::Services::LabelOperation.new
|
634
|
-
end
|
635
|
-
end
|
636
|
-
|
637
721
|
# Create a new MediaFileOperation
|
638
722
|
#
|
639
723
|
# @return [Google::Ads::GoogleAds::V6::Services::MediaFileOperation] the operation
|
@@ -662,48 +746,6 @@ module Google
|
|
662
746
|
end
|
663
747
|
end
|
664
748
|
|
665
|
-
# Create a new SharedCriterionOperation
|
666
|
-
#
|
667
|
-
# @return [Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation] the operation
|
668
|
-
def self.shared_criterion
|
669
|
-
require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
|
670
|
-
if block_given?
|
671
|
-
op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
|
672
|
-
yield op
|
673
|
-
op
|
674
|
-
else
|
675
|
-
Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
|
676
|
-
end
|
677
|
-
end
|
678
|
-
|
679
|
-
# Create a new SharedSetOperation
|
680
|
-
#
|
681
|
-
# @return [Google::Ads::GoogleAds::V6::Services::SharedSetOperation] the operation
|
682
|
-
def self.shared_set
|
683
|
-
require "google/ads/google_ads/v6/services/shared_set_service_pb"
|
684
|
-
if block_given?
|
685
|
-
op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
|
686
|
-
yield op
|
687
|
-
op
|
688
|
-
else
|
689
|
-
Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
|
690
|
-
end
|
691
|
-
end
|
692
|
-
|
693
|
-
# Create a new UserListOperation
|
694
|
-
#
|
695
|
-
# @return [Google::Ads::GoogleAds::V6::Services::UserListOperation] the operation
|
696
|
-
def self.user_list
|
697
|
-
require "google/ads/google_ads/v6/services/user_list_service_pb"
|
698
|
-
if block_given?
|
699
|
-
op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
|
700
|
-
yield op
|
701
|
-
op
|
702
|
-
else
|
703
|
-
Google::Ads::GoogleAds::V6::Services::UserListOperation.new
|
704
|
-
end
|
705
|
-
end
|
706
|
-
|
707
749
|
# Create a new MutateOperation
|
708
750
|
#
|
709
751
|
# @return [Google::Ads::GoogleAds::V6::Services::MutateOperation] the operation
|
@@ -732,6 +774,20 @@ module Google
|
|
732
774
|
end
|
733
775
|
end
|
734
776
|
|
777
|
+
# Create a new CustomerUserAccessInvitationOperation
|
778
|
+
#
|
779
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation] the operation
|
780
|
+
def self.customer_user_access_invitation
|
781
|
+
require "google/ads/google_ads/v6/services/customer_user_access_invitation_service_pb"
|
782
|
+
if block_given?
|
783
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
|
784
|
+
yield op
|
785
|
+
op
|
786
|
+
else
|
787
|
+
Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
|
788
|
+
end
|
789
|
+
end
|
790
|
+
|
735
791
|
# Create a new OfflineUserDataJobOperation
|
736
792
|
#
|
737
793
|
# @return [Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation] the operation
|
@@ -746,59 +802,73 @@ module Google
|
|
746
802
|
end
|
747
803
|
end
|
748
804
|
|
749
|
-
# Create a new
|
805
|
+
# Create a new UserDataOperation
|
750
806
|
#
|
751
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
752
|
-
def self.
|
753
|
-
require "google/ads/google_ads/v6/services/
|
807
|
+
# @return [Google::Ads::GoogleAds::V6::Services::UserDataOperation] the operation
|
808
|
+
def self.user_data
|
809
|
+
require "google/ads/google_ads/v6/services/user_data_service_pb"
|
754
810
|
if block_given?
|
755
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
811
|
+
op = Google::Ads::GoogleAds::V6::Services::UserDataOperation.new
|
756
812
|
yield op
|
757
813
|
op
|
758
814
|
else
|
759
|
-
Google::Ads::GoogleAds::V6::Services::
|
815
|
+
Google::Ads::GoogleAds::V6::Services::UserDataOperation.new
|
760
816
|
end
|
761
817
|
end
|
762
818
|
|
763
|
-
# Create a new
|
819
|
+
# Create a new AccountBudgetProposalOperation
|
764
820
|
#
|
765
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
766
|
-
def self.
|
767
|
-
require "google/ads/google_ads/v6/services/
|
821
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation] the operation
|
822
|
+
def self.account_budget_proposal
|
823
|
+
require "google/ads/google_ads/v6/services/account_budget_proposal_service_pb"
|
768
824
|
if block_given?
|
769
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
825
|
+
op = Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
|
770
826
|
yield op
|
771
827
|
op
|
772
828
|
else
|
773
|
-
Google::Ads::GoogleAds::V6::Services::
|
829
|
+
Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
|
774
830
|
end
|
775
831
|
end
|
776
832
|
|
777
|
-
# Create a new
|
833
|
+
# Create a new ApplyRecommendationOperation
|
778
834
|
#
|
779
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
780
|
-
def self.
|
781
|
-
require "google/ads/google_ads/v6/services/
|
835
|
+
# @return [Google::Ads::GoogleAds::V6::Services::ApplyRecommendationOperation] the operation
|
836
|
+
def self.apply_recommendation
|
837
|
+
require "google/ads/google_ads/v6/services/recommendation_service_pb"
|
782
838
|
if block_given?
|
783
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
839
|
+
op = Google::Ads::GoogleAds::V6::Services::ApplyRecommendationOperation.new
|
784
840
|
yield op
|
785
841
|
op
|
786
842
|
else
|
787
|
-
Google::Ads::GoogleAds::V6::Services::
|
843
|
+
Google::Ads::GoogleAds::V6::Services::ApplyRecommendationOperation.new
|
788
844
|
end
|
789
845
|
end
|
790
846
|
|
791
|
-
# Create a new
|
847
|
+
# Create a new DismissRecommendationOperation
|
792
848
|
#
|
793
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
794
|
-
def self.
|
795
|
-
require "google/ads/google_ads/v6/services/
|
849
|
+
# @return [Google::Ads::GoogleAds::V6::Services::DismissRecommendationRequest::DismissRecommendationOperation] the operation
|
850
|
+
def self.dismiss_recommendation
|
851
|
+
require "google/ads/google_ads/v6/services/recommendation_service_pb"
|
796
852
|
if block_given?
|
797
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
853
|
+
op = Google::Ads::GoogleAds::V6::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
|
798
854
|
yield op
|
799
855
|
op
|
800
856
|
else
|
801
|
-
Google::Ads::GoogleAds::V6::Services::
|
857
|
+
Google::Ads::GoogleAds::V6::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
|
858
|
+
end
|
859
|
+
end
|
860
|
+
|
861
|
+
# Create a new AccountLinkOperation
|
862
|
+
#
|
863
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AccountLinkOperation] the operation
|
864
|
+
def self.account_link
|
865
|
+
require "google/ads/google_ads/v6/services/account_link_service_pb"
|
866
|
+
if block_given?
|
867
|
+
op = Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
|
868
|
+
yield op
|
869
|
+
op
|
870
|
+
else
|
871
|
+
Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
|
802
872
|
end
|
803
873
|
end
|
804
874
|
|
@@ -816,69 +886,41 @@ module Google
|
|
816
886
|
end
|
817
887
|
end
|
818
888
|
|
819
|
-
# Create a new
|
889
|
+
# Create a new CustomerUserAccessOperation
|
820
890
|
#
|
821
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
822
|
-
def self.
|
823
|
-
require "google/ads/google_ads/v6/services/
|
891
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation] the operation
|
892
|
+
def self.customer_user_access
|
893
|
+
require "google/ads/google_ads/v6/services/customer_user_access_service_pb"
|
824
894
|
if block_given?
|
825
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
895
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
|
826
896
|
yield op
|
827
897
|
op
|
828
898
|
else
|
829
|
-
Google::Ads::GoogleAds::V6::Services::
|
899
|
+
Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
|
830
900
|
end
|
831
901
|
end
|
832
902
|
|
833
|
-
# Create a new
|
903
|
+
# Create a new MerchantCenterLinkOperation
|
834
904
|
#
|
835
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
836
|
-
def self.
|
837
|
-
require "google/ads/google_ads/v6/services/
|
905
|
+
# @return [Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation] the operation
|
906
|
+
def self.merchant_center_link
|
907
|
+
require "google/ads/google_ads/v6/services/merchant_center_link_service_pb"
|
838
908
|
if block_given?
|
839
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
909
|
+
op = Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
|
840
910
|
yield op
|
841
911
|
op
|
842
912
|
else
|
843
|
-
Google::Ads::GoogleAds::V6::Services::
|
913
|
+
Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
|
844
914
|
end
|
845
915
|
end
|
846
916
|
|
847
|
-
# Create a new
|
917
|
+
# Create a new BillingSetupOperation
|
848
918
|
#
|
849
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
850
|
-
def self.
|
851
|
-
require "google/ads/google_ads/v6/services/
|
919
|
+
# @return [Google::Ads::GoogleAds::V6::Services::BillingSetupOperation] the operation
|
920
|
+
def self.billing_setup
|
921
|
+
require "google/ads/google_ads/v6/services/billing_setup_service_pb"
|
852
922
|
if block_given?
|
853
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
854
|
-
yield op
|
855
|
-
op
|
856
|
-
else
|
857
|
-
Google::Ads::GoogleAds::V6::Services::ApplyRecommendationOperation.new
|
858
|
-
end
|
859
|
-
end
|
860
|
-
|
861
|
-
# Create a new DismissRecommendationOperation
|
862
|
-
#
|
863
|
-
# @return [Google::Ads::GoogleAds::V6::Services::DismissRecommendationRequest::DismissRecommendationOperation] the operation
|
864
|
-
def self.dismiss_recommendation
|
865
|
-
require "google/ads/google_ads/v6/services/recommendation_service_pb"
|
866
|
-
if block_given?
|
867
|
-
op = Google::Ads::GoogleAds::V6::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
|
868
|
-
yield op
|
869
|
-
op
|
870
|
-
else
|
871
|
-
Google::Ads::GoogleAds::V6::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
|
872
|
-
end
|
873
|
-
end
|
874
|
-
|
875
|
-
# Create a new BillingSetupOperation
|
876
|
-
#
|
877
|
-
# @return [Google::Ads::GoogleAds::V6::Services::BillingSetupOperation] the operation
|
878
|
-
def self.billing_setup
|
879
|
-
require "google/ads/google_ads/v6/services/billing_setup_service_pb"
|
880
|
-
if block_given?
|
881
|
-
op = Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
|
923
|
+
op = Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
|
882
924
|
yield op
|
883
925
|
op
|
884
926
|
else
|
@@ -886,48 +928,6 @@ module Google
|
|
886
928
|
end
|
887
929
|
end
|
888
930
|
|
889
|
-
# Create a new CustomerUserAccessInvitationOperation
|
890
|
-
#
|
891
|
-
# @return [Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation] the operation
|
892
|
-
def self.customer_user_access_invitation
|
893
|
-
require "google/ads/google_ads/v6/services/customer_user_access_invitation_service_pb"
|
894
|
-
if block_given?
|
895
|
-
op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
|
896
|
-
yield op
|
897
|
-
op
|
898
|
-
else
|
899
|
-
Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
|
900
|
-
end
|
901
|
-
end
|
902
|
-
|
903
|
-
# Create a new AccountLinkOperation
|
904
|
-
#
|
905
|
-
# @return [Google::Ads::GoogleAds::V6::Services::AccountLinkOperation] the operation
|
906
|
-
def self.account_link
|
907
|
-
require "google/ads/google_ads/v6/services/account_link_service_pb"
|
908
|
-
if block_given?
|
909
|
-
op = Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
|
910
|
-
yield op
|
911
|
-
op
|
912
|
-
else
|
913
|
-
Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
|
914
|
-
end
|
915
|
-
end
|
916
|
-
|
917
|
-
# Create a new AccountBudgetProposalOperation
|
918
|
-
#
|
919
|
-
# @return [Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation] the operation
|
920
|
-
def self.account_budget_proposal
|
921
|
-
require "google/ads/google_ads/v6/services/account_budget_proposal_service_pb"
|
922
|
-
if block_given?
|
923
|
-
op = Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
|
924
|
-
yield op
|
925
|
-
op
|
926
|
-
else
|
927
|
-
Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
|
928
|
-
end
|
929
|
-
end
|
930
|
-
|
931
931
|
# Get a reference module containing convenience methods for creating
|
932
932
|
# resources
|
933
933
|
#
|
@@ -953,6 +953,168 @@ module Google
|
|
953
953
|
end
|
954
954
|
|
955
955
|
module CreateResource
|
956
|
+
# A convenience method for creating an CustomerClientLinkOperation instance with
|
957
|
+
# its "create" field prepopulated with an CustomerClientLink instance.
|
958
|
+
#
|
959
|
+
# @overload customer_client_link
|
960
|
+
# creates an operation instance, yielding a newly fabricated CustomerClientLink
|
961
|
+
# which can be used for setting attributes on the newly created resource
|
962
|
+
# @overload customer_client_link(res)
|
963
|
+
# creates an operation instance, with the resource to be created
|
964
|
+
# set to the passed value (res)
|
965
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomerClientLink]
|
966
|
+
# a resource instance to be used for creation in this operation.
|
967
|
+
#
|
968
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation] instance that will create the resource
|
969
|
+
def self.customer_client_link(res = nil, &blk)
|
970
|
+
require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
|
971
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
|
972
|
+
op["create"] = if !res.nil?
|
973
|
+
res
|
974
|
+
elsif !blk.nil?
|
975
|
+
Factories::V6::Resources.customer_client_link(&blk)
|
976
|
+
else
|
977
|
+
Factories::V6::Resources.customer_client_link
|
978
|
+
end
|
979
|
+
|
980
|
+
op
|
981
|
+
end
|
982
|
+
|
983
|
+
# A convenience method for creating an CustomInterestOperation instance with
|
984
|
+
# its "create" field prepopulated with an CustomInterest instance.
|
985
|
+
#
|
986
|
+
# @overload custom_interest
|
987
|
+
# creates an operation instance, yielding a newly fabricated CustomInterest
|
988
|
+
# which can be used for setting attributes on the newly created resource
|
989
|
+
# @overload custom_interest(res)
|
990
|
+
# creates an operation instance, with the resource to be created
|
991
|
+
# set to the passed value (res)
|
992
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomInterest]
|
993
|
+
# a resource instance to be used for creation in this operation.
|
994
|
+
#
|
995
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomInterestOperation] instance that will create the resource
|
996
|
+
def self.custom_interest(res = nil, &blk)
|
997
|
+
require "google/ads/google_ads/v6/services/custom_interest_service_pb"
|
998
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
|
999
|
+
op["create"] = if !res.nil?
|
1000
|
+
res
|
1001
|
+
elsif !blk.nil?
|
1002
|
+
Factories::V6::Resources.custom_interest(&blk)
|
1003
|
+
else
|
1004
|
+
Factories::V6::Resources.custom_interest
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
op
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
# A convenience method for creating an CustomerNegativeCriterionOperation instance with
|
1011
|
+
# its "create" field prepopulated with an CustomerNegativeCriterion instance.
|
1012
|
+
#
|
1013
|
+
# @overload customer_negative_criterion
|
1014
|
+
# creates an operation instance, yielding a newly fabricated CustomerNegativeCriterion
|
1015
|
+
# which can be used for setting attributes on the newly created resource
|
1016
|
+
# @overload customer_negative_criterion(res)
|
1017
|
+
# creates an operation instance, with the resource to be created
|
1018
|
+
# set to the passed value (res)
|
1019
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomerNegativeCriterion]
|
1020
|
+
# a resource instance to be used for creation in this operation.
|
1021
|
+
#
|
1022
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation] instance that will create the resource
|
1023
|
+
def self.customer_negative_criterion(res = nil, &blk)
|
1024
|
+
require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
|
1025
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
|
1026
|
+
op["create"] = if !res.nil?
|
1027
|
+
res
|
1028
|
+
elsif !blk.nil?
|
1029
|
+
Factories::V6::Resources.customer_negative_criterion(&blk)
|
1030
|
+
else
|
1031
|
+
Factories::V6::Resources.customer_negative_criterion
|
1032
|
+
end
|
1033
|
+
|
1034
|
+
op
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
# A convenience method for creating an SharedCriterionOperation instance with
|
1038
|
+
# its "create" field prepopulated with an SharedCriterion instance.
|
1039
|
+
#
|
1040
|
+
# @overload shared_criterion
|
1041
|
+
# creates an operation instance, yielding a newly fabricated SharedCriterion
|
1042
|
+
# which can be used for setting attributes on the newly created resource
|
1043
|
+
# @overload shared_criterion(res)
|
1044
|
+
# creates an operation instance, with the resource to be created
|
1045
|
+
# set to the passed value (res)
|
1046
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::SharedCriterion]
|
1047
|
+
# a resource instance to be used for creation in this operation.
|
1048
|
+
#
|
1049
|
+
# @return [Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation] instance that will create the resource
|
1050
|
+
def self.shared_criterion(res = nil, &blk)
|
1051
|
+
require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
|
1052
|
+
op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
|
1053
|
+
op["create"] = if !res.nil?
|
1054
|
+
res
|
1055
|
+
elsif !blk.nil?
|
1056
|
+
Factories::V6::Resources.shared_criterion(&blk)
|
1057
|
+
else
|
1058
|
+
Factories::V6::Resources.shared_criterion
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
op
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
# A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
|
1065
|
+
# its "create" field prepopulated with an KeywordPlanAdGroupKeyword instance.
|
1066
|
+
#
|
1067
|
+
# @overload keyword_plan_ad_group_keyword
|
1068
|
+
# creates an operation instance, yielding a newly fabricated KeywordPlanAdGroupKeyword
|
1069
|
+
# which can be used for setting attributes on the newly created resource
|
1070
|
+
# @overload keyword_plan_ad_group_keyword(res)
|
1071
|
+
# creates an operation instance, with the resource to be created
|
1072
|
+
# set to the passed value (res)
|
1073
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword]
|
1074
|
+
# a resource instance to be used for creation in this operation.
|
1075
|
+
#
|
1076
|
+
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation] instance that will create the resource
|
1077
|
+
def self.keyword_plan_ad_group_keyword(res = nil, &blk)
|
1078
|
+
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
|
1079
|
+
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
|
1080
|
+
op["create"] = if !res.nil?
|
1081
|
+
res
|
1082
|
+
elsif !blk.nil?
|
1083
|
+
Factories::V6::Resources.keyword_plan_ad_group_keyword(&blk)
|
1084
|
+
else
|
1085
|
+
Factories::V6::Resources.keyword_plan_ad_group_keyword
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
op
|
1089
|
+
end
|
1090
|
+
|
1091
|
+
# A convenience method for creating an FeedMappingOperation instance with
|
1092
|
+
# its "create" field prepopulated with an FeedMapping instance.
|
1093
|
+
#
|
1094
|
+
# @overload feed_mapping
|
1095
|
+
# creates an operation instance, yielding a newly fabricated FeedMapping
|
1096
|
+
# which can be used for setting attributes on the newly created resource
|
1097
|
+
# @overload feed_mapping(res)
|
1098
|
+
# creates an operation instance, with the resource to be created
|
1099
|
+
# set to the passed value (res)
|
1100
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::FeedMapping]
|
1101
|
+
# a resource instance to be used for creation in this operation.
|
1102
|
+
#
|
1103
|
+
# @return [Google::Ads::GoogleAds::V6::Services::FeedMappingOperation] instance that will create the resource
|
1104
|
+
def self.feed_mapping(res = nil, &blk)
|
1105
|
+
require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
|
1106
|
+
op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
|
1107
|
+
op["create"] = if !res.nil?
|
1108
|
+
res
|
1109
|
+
elsif !blk.nil?
|
1110
|
+
Factories::V6::Resources.feed_mapping(&blk)
|
1111
|
+
else
|
1112
|
+
Factories::V6::Resources.feed_mapping
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
op
|
1116
|
+
end
|
1117
|
+
|
956
1118
|
# A convenience method for creating an FeedItemSetLinkOperation instance with
|
957
1119
|
# its "create" field prepopulated with an FeedItemSetLink instance.
|
958
1120
|
#
|
@@ -980,55 +1142,55 @@ module Google
|
|
980
1142
|
op
|
981
1143
|
end
|
982
1144
|
|
983
|
-
# A convenience method for creating an
|
984
|
-
# its "create" field prepopulated with an
|
1145
|
+
# A convenience method for creating an AdGroupOperation instance with
|
1146
|
+
# its "create" field prepopulated with an AdGroup instance.
|
985
1147
|
#
|
986
|
-
# @overload
|
987
|
-
# creates an operation instance, yielding a newly fabricated
|
1148
|
+
# @overload ad_group
|
1149
|
+
# creates an operation instance, yielding a newly fabricated AdGroup
|
988
1150
|
# which can be used for setting attributes on the newly created resource
|
989
|
-
# @overload
|
1151
|
+
# @overload ad_group(res)
|
990
1152
|
# creates an operation instance, with the resource to be created
|
991
1153
|
# set to the passed value (res)
|
992
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::
|
1154
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::AdGroup]
|
993
1155
|
# a resource instance to be used for creation in this operation.
|
994
1156
|
#
|
995
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
996
|
-
def self.
|
997
|
-
require "google/ads/google_ads/v6/services/
|
998
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
1157
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupOperation] instance that will create the resource
|
1158
|
+
def self.ad_group(res = nil, &blk)
|
1159
|
+
require "google/ads/google_ads/v6/services/ad_group_service_pb"
|
1160
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
|
999
1161
|
op["create"] = if !res.nil?
|
1000
1162
|
res
|
1001
1163
|
elsif !blk.nil?
|
1002
|
-
Factories::V6::Resources.
|
1164
|
+
Factories::V6::Resources.ad_group(&blk)
|
1003
1165
|
else
|
1004
|
-
Factories::V6::Resources.
|
1166
|
+
Factories::V6::Resources.ad_group
|
1005
1167
|
end
|
1006
1168
|
|
1007
1169
|
op
|
1008
1170
|
end
|
1009
1171
|
|
1010
|
-
# A convenience method for creating an
|
1011
|
-
# its "create" field prepopulated with an
|
1172
|
+
# A convenience method for creating an FeedItemSetOperation instance with
|
1173
|
+
# its "create" field prepopulated with an FeedItemSet instance.
|
1012
1174
|
#
|
1013
|
-
# @overload
|
1014
|
-
# creates an operation instance, yielding a newly fabricated
|
1175
|
+
# @overload feed_item_set
|
1176
|
+
# creates an operation instance, yielding a newly fabricated FeedItemSet
|
1015
1177
|
# which can be used for setting attributes on the newly created resource
|
1016
|
-
# @overload
|
1178
|
+
# @overload feed_item_set(res)
|
1017
1179
|
# creates an operation instance, with the resource to be created
|
1018
1180
|
# set to the passed value (res)
|
1019
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::
|
1181
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::FeedItemSet]
|
1020
1182
|
# a resource instance to be used for creation in this operation.
|
1021
1183
|
#
|
1022
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
1023
|
-
def self.
|
1024
|
-
require "google/ads/google_ads/v6/services/
|
1025
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
1184
|
+
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation] instance that will create the resource
|
1185
|
+
def self.feed_item_set(res = nil, &blk)
|
1186
|
+
require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
|
1187
|
+
op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
|
1026
1188
|
op["create"] = if !res.nil?
|
1027
1189
|
res
|
1028
1190
|
elsif !blk.nil?
|
1029
|
-
Factories::V6::Resources.
|
1191
|
+
Factories::V6::Resources.feed_item_set(&blk)
|
1030
1192
|
else
|
1031
|
-
Factories::V6::Resources.
|
1193
|
+
Factories::V6::Resources.feed_item_set
|
1032
1194
|
end
|
1033
1195
|
|
1034
1196
|
op
|
@@ -1061,82 +1223,163 @@ module Google
|
|
1061
1223
|
op
|
1062
1224
|
end
|
1063
1225
|
|
1064
|
-
# A convenience method for creating an
|
1065
|
-
# its "create" field prepopulated with an
|
1226
|
+
# A convenience method for creating an CampaignDraftOperation instance with
|
1227
|
+
# its "create" field prepopulated with an CampaignDraft instance.
|
1066
1228
|
#
|
1067
|
-
# @overload
|
1068
|
-
# creates an operation instance, yielding a newly fabricated
|
1229
|
+
# @overload campaign_draft
|
1230
|
+
# creates an operation instance, yielding a newly fabricated CampaignDraft
|
1069
1231
|
# which can be used for setting attributes on the newly created resource
|
1070
|
-
# @overload
|
1232
|
+
# @overload campaign_draft(res)
|
1071
1233
|
# creates an operation instance, with the resource to be created
|
1072
1234
|
# set to the passed value (res)
|
1073
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::
|
1235
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::CampaignDraft]
|
1074
1236
|
# a resource instance to be used for creation in this operation.
|
1075
1237
|
#
|
1076
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
1077
|
-
def self.
|
1078
|
-
require "google/ads/google_ads/v6/services/
|
1079
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
1238
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation] instance that will create the resource
|
1239
|
+
def self.campaign_draft(res = nil, &blk)
|
1240
|
+
require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
|
1241
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
|
1080
1242
|
op["create"] = if !res.nil?
|
1081
1243
|
res
|
1082
1244
|
elsif !blk.nil?
|
1083
|
-
Factories::V6::Resources.
|
1245
|
+
Factories::V6::Resources.campaign_draft(&blk)
|
1084
1246
|
else
|
1085
|
-
Factories::V6::Resources.
|
1247
|
+
Factories::V6::Resources.campaign_draft
|
1086
1248
|
end
|
1087
1249
|
|
1088
1250
|
op
|
1089
1251
|
end
|
1090
1252
|
|
1091
|
-
# A convenience method for creating an
|
1092
|
-
# its "create" field prepopulated with an
|
1253
|
+
# A convenience method for creating an UserListOperation instance with
|
1254
|
+
# its "create" field prepopulated with an UserList instance.
|
1255
|
+
#
|
1256
|
+
# @overload user_list
|
1257
|
+
# creates an operation instance, yielding a newly fabricated UserList
|
1258
|
+
# which can be used for setting attributes on the newly created resource
|
1259
|
+
# @overload user_list(res)
|
1260
|
+
# creates an operation instance, with the resource to be created
|
1261
|
+
# set to the passed value (res)
|
1262
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::UserList]
|
1263
|
+
# a resource instance to be used for creation in this operation.
|
1264
|
+
#
|
1265
|
+
# @return [Google::Ads::GoogleAds::V6::Services::UserListOperation] instance that will create the resource
|
1266
|
+
def self.user_list(res = nil, &blk)
|
1267
|
+
require "google/ads/google_ads/v6/services/user_list_service_pb"
|
1268
|
+
op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
|
1269
|
+
op["create"] = if !res.nil?
|
1270
|
+
res
|
1271
|
+
elsif !blk.nil?
|
1272
|
+
Factories::V6::Resources.user_list(&blk)
|
1273
|
+
else
|
1274
|
+
Factories::V6::Resources.user_list
|
1275
|
+
end
|
1276
|
+
|
1277
|
+
op
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
# A convenience method for creating an SharedSetOperation instance with
|
1281
|
+
# its "create" field prepopulated with an SharedSet instance.
|
1282
|
+
#
|
1283
|
+
# @overload shared_set
|
1284
|
+
# creates an operation instance, yielding a newly fabricated SharedSet
|
1285
|
+
# which can be used for setting attributes on the newly created resource
|
1286
|
+
# @overload shared_set(res)
|
1287
|
+
# creates an operation instance, with the resource to be created
|
1288
|
+
# set to the passed value (res)
|
1289
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::SharedSet]
|
1290
|
+
# a resource instance to be used for creation in this operation.
|
1291
|
+
#
|
1292
|
+
# @return [Google::Ads::GoogleAds::V6::Services::SharedSetOperation] instance that will create the resource
|
1293
|
+
def self.shared_set(res = nil, &blk)
|
1294
|
+
require "google/ads/google_ads/v6/services/shared_set_service_pb"
|
1295
|
+
op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
|
1296
|
+
op["create"] = if !res.nil?
|
1297
|
+
res
|
1298
|
+
elsif !blk.nil?
|
1299
|
+
Factories::V6::Resources.shared_set(&blk)
|
1300
|
+
else
|
1301
|
+
Factories::V6::Resources.shared_set
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
op
|
1305
|
+
end
|
1306
|
+
|
1307
|
+
# A convenience method for creating an AdGroupCriterionLabelOperation instance with
|
1308
|
+
# its "create" field prepopulated with an AdGroupCriterionLabel instance.
|
1309
|
+
#
|
1310
|
+
# @overload ad_group_criterion_label
|
1311
|
+
# creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
|
1312
|
+
# which can be used for setting attributes on the newly created resource
|
1313
|
+
# @overload ad_group_criterion_label(res)
|
1314
|
+
# creates an operation instance, with the resource to be created
|
1315
|
+
# set to the passed value (res)
|
1316
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::AdGroupCriterionLabel]
|
1317
|
+
# a resource instance to be used for creation in this operation.
|
1318
|
+
#
|
1319
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation] instance that will create the resource
|
1320
|
+
def self.ad_group_criterion_label(res = nil, &blk)
|
1321
|
+
require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
|
1322
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
|
1323
|
+
op["create"] = if !res.nil?
|
1324
|
+
res
|
1325
|
+
elsif !blk.nil?
|
1326
|
+
Factories::V6::Resources.ad_group_criterion_label(&blk)
|
1327
|
+
else
|
1328
|
+
Factories::V6::Resources.ad_group_criterion_label
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
op
|
1332
|
+
end
|
1333
|
+
|
1334
|
+
# A convenience method for creating an LabelOperation instance with
|
1335
|
+
# its "create" field prepopulated with an Label instance.
|
1093
1336
|
#
|
1094
|
-
# @overload
|
1095
|
-
# creates an operation instance, yielding a newly fabricated
|
1337
|
+
# @overload label
|
1338
|
+
# creates an operation instance, yielding a newly fabricated Label
|
1096
1339
|
# which can be used for setting attributes on the newly created resource
|
1097
|
-
# @overload
|
1340
|
+
# @overload label(res)
|
1098
1341
|
# creates an operation instance, with the resource to be created
|
1099
1342
|
# set to the passed value (res)
|
1100
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::
|
1343
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::Label]
|
1101
1344
|
# a resource instance to be used for creation in this operation.
|
1102
1345
|
#
|
1103
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
1104
|
-
def self.
|
1105
|
-
require "google/ads/google_ads/v6/services/
|
1106
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
1346
|
+
# @return [Google::Ads::GoogleAds::V6::Services::LabelOperation] instance that will create the resource
|
1347
|
+
def self.label(res = nil, &blk)
|
1348
|
+
require "google/ads/google_ads/v6/services/label_service_pb"
|
1349
|
+
op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
|
1107
1350
|
op["create"] = if !res.nil?
|
1108
1351
|
res
|
1109
1352
|
elsif !blk.nil?
|
1110
|
-
Factories::V6::Resources.
|
1353
|
+
Factories::V6::Resources.label(&blk)
|
1111
1354
|
else
|
1112
|
-
Factories::V6::Resources.
|
1355
|
+
Factories::V6::Resources.label
|
1113
1356
|
end
|
1114
1357
|
|
1115
1358
|
op
|
1116
1359
|
end
|
1117
1360
|
|
1118
|
-
# A convenience method for creating an
|
1119
|
-
# its "create" field prepopulated with an
|
1361
|
+
# A convenience method for creating an AdGroupAdLabelOperation instance with
|
1362
|
+
# its "create" field prepopulated with an AdGroupAdLabel instance.
|
1120
1363
|
#
|
1121
|
-
# @overload
|
1122
|
-
# creates an operation instance, yielding a newly fabricated
|
1364
|
+
# @overload ad_group_ad_label
|
1365
|
+
# creates an operation instance, yielding a newly fabricated AdGroupAdLabel
|
1123
1366
|
# which can be used for setting attributes on the newly created resource
|
1124
|
-
# @overload
|
1367
|
+
# @overload ad_group_ad_label(res)
|
1125
1368
|
# creates an operation instance, with the resource to be created
|
1126
1369
|
# set to the passed value (res)
|
1127
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::
|
1370
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::AdGroupAdLabel]
|
1128
1371
|
# a resource instance to be used for creation in this operation.
|
1129
1372
|
#
|
1130
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
1131
|
-
def self.
|
1132
|
-
require "google/ads/google_ads/v6/services/
|
1133
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
1373
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation] instance that will create the resource
|
1374
|
+
def self.ad_group_ad_label(res = nil, &blk)
|
1375
|
+
require "google/ads/google_ads/v6/services/ad_group_ad_label_service_pb"
|
1376
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
|
1134
1377
|
op["create"] = if !res.nil?
|
1135
1378
|
res
|
1136
1379
|
elsif !blk.nil?
|
1137
|
-
Factories::V6::Resources.
|
1380
|
+
Factories::V6::Resources.ad_group_ad_label(&blk)
|
1138
1381
|
else
|
1139
|
-
Factories::V6::Resources.
|
1382
|
+
Factories::V6::Resources.ad_group_ad_label
|
1140
1383
|
end
|
1141
1384
|
|
1142
1385
|
op
|
@@ -1196,33 +1439,6 @@ module Google
|
|
1196
1439
|
op
|
1197
1440
|
end
|
1198
1441
|
|
1199
|
-
# A convenience method for creating an AdGroupCriterionLabelOperation instance with
|
1200
|
-
# its "create" field prepopulated with an AdGroupCriterionLabel instance.
|
1201
|
-
#
|
1202
|
-
# @overload ad_group_criterion_label
|
1203
|
-
# creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
|
1204
|
-
# which can be used for setting attributes on the newly created resource
|
1205
|
-
# @overload ad_group_criterion_label(res)
|
1206
|
-
# creates an operation instance, with the resource to be created
|
1207
|
-
# set to the passed value (res)
|
1208
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::AdGroupCriterionLabel]
|
1209
|
-
# a resource instance to be used for creation in this operation.
|
1210
|
-
#
|
1211
|
-
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation] instance that will create the resource
|
1212
|
-
def self.ad_group_criterion_label(res = nil, &blk)
|
1213
|
-
require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
|
1214
|
-
op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
|
1215
|
-
op["create"] = if !res.nil?
|
1216
|
-
res
|
1217
|
-
elsif !blk.nil?
|
1218
|
-
Factories::V6::Resources.ad_group_criterion_label(&blk)
|
1219
|
-
else
|
1220
|
-
Factories::V6::Resources.ad_group_criterion_label
|
1221
|
-
end
|
1222
|
-
|
1223
|
-
op
|
1224
|
-
end
|
1225
|
-
|
1226
1442
|
# A convenience method for creating an AdGroupCriterionOperation instance with
|
1227
1443
|
# its "create" field prepopulated with an AdGroupCriterion instance.
|
1228
1444
|
#
|
@@ -1385,6 +1601,33 @@ module Google
|
|
1385
1601
|
op
|
1386
1602
|
end
|
1387
1603
|
|
1604
|
+
# A convenience method for creating an BiddingStrategyOperation instance with
|
1605
|
+
# its "create" field prepopulated with an BiddingStrategy instance.
|
1606
|
+
#
|
1607
|
+
# @overload bidding_strategy
|
1608
|
+
# creates an operation instance, yielding a newly fabricated BiddingStrategy
|
1609
|
+
# which can be used for setting attributes on the newly created resource
|
1610
|
+
# @overload bidding_strategy(res)
|
1611
|
+
# creates an operation instance, with the resource to be created
|
1612
|
+
# set to the passed value (res)
|
1613
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::BiddingStrategy]
|
1614
|
+
# a resource instance to be used for creation in this operation.
|
1615
|
+
#
|
1616
|
+
# @return [Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation] instance that will create the resource
|
1617
|
+
def self.bidding_strategy(res = nil, &blk)
|
1618
|
+
require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
|
1619
|
+
op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
|
1620
|
+
op["create"] = if !res.nil?
|
1621
|
+
res
|
1622
|
+
elsif !blk.nil?
|
1623
|
+
Factories::V6::Resources.bidding_strategy(&blk)
|
1624
|
+
else
|
1625
|
+
Factories::V6::Resources.bidding_strategy
|
1626
|
+
end
|
1627
|
+
|
1628
|
+
op
|
1629
|
+
end
|
1630
|
+
|
1388
1631
|
# A convenience method for creating an CampaignAssetOperation instance with
|
1389
1632
|
# its "create" field prepopulated with an CampaignAsset instance.
|
1390
1633
|
#
|
@@ -1412,55 +1655,55 @@ module Google
|
|
1412
1655
|
op
|
1413
1656
|
end
|
1414
1657
|
|
1415
|
-
# A convenience method for creating an
|
1416
|
-
# its "create" field prepopulated with an
|
1658
|
+
# A convenience method for creating an CampaignBudgetOperation instance with
|
1659
|
+
# its "create" field prepopulated with an CampaignBudget instance.
|
1417
1660
|
#
|
1418
|
-
# @overload
|
1419
|
-
# creates an operation instance, yielding a newly fabricated
|
1661
|
+
# @overload campaign_budget
|
1662
|
+
# creates an operation instance, yielding a newly fabricated CampaignBudget
|
1420
1663
|
# which can be used for setting attributes on the newly created resource
|
1421
|
-
# @overload
|
1664
|
+
# @overload campaign_budget(res)
|
1422
1665
|
# creates an operation instance, with the resource to be created
|
1423
1666
|
# set to the passed value (res)
|
1424
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::
|
1667
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::CampaignBudget]
|
1425
1668
|
# a resource instance to be used for creation in this operation.
|
1426
1669
|
#
|
1427
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
1428
|
-
def self.
|
1429
|
-
require "google/ads/google_ads/v6/services/
|
1430
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
1670
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation] instance that will create the resource
|
1671
|
+
def self.campaign_budget(res = nil, &blk)
|
1672
|
+
require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
|
1673
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
|
1431
1674
|
op["create"] = if !res.nil?
|
1432
1675
|
res
|
1433
1676
|
elsif !blk.nil?
|
1434
|
-
Factories::V6::Resources.
|
1677
|
+
Factories::V6::Resources.campaign_budget(&blk)
|
1435
1678
|
else
|
1436
|
-
Factories::V6::Resources.
|
1679
|
+
Factories::V6::Resources.campaign_budget
|
1437
1680
|
end
|
1438
1681
|
|
1439
1682
|
op
|
1440
1683
|
end
|
1441
1684
|
|
1442
|
-
# A convenience method for creating an
|
1443
|
-
# its "create" field prepopulated with an
|
1685
|
+
# A convenience method for creating an CampaignCriterionOperation instance with
|
1686
|
+
# its "create" field prepopulated with an CampaignCriterion instance.
|
1444
1687
|
#
|
1445
|
-
# @overload
|
1446
|
-
# creates an operation instance, yielding a newly fabricated
|
1688
|
+
# @overload campaign_criterion
|
1689
|
+
# creates an operation instance, yielding a newly fabricated CampaignCriterion
|
1447
1690
|
# which can be used for setting attributes on the newly created resource
|
1448
|
-
# @overload
|
1691
|
+
# @overload campaign_criterion(res)
|
1449
1692
|
# creates an operation instance, with the resource to be created
|
1450
1693
|
# set to the passed value (res)
|
1451
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::
|
1694
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::CampaignCriterion]
|
1452
1695
|
# a resource instance to be used for creation in this operation.
|
1453
1696
|
#
|
1454
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
1455
|
-
def self.
|
1456
|
-
require "google/ads/google_ads/v6/services/
|
1457
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
1697
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation] instance that will create the resource
|
1698
|
+
def self.campaign_criterion(res = nil, &blk)
|
1699
|
+
require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
|
1700
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
|
1458
1701
|
op["create"] = if !res.nil?
|
1459
1702
|
res
|
1460
1703
|
elsif !blk.nil?
|
1461
|
-
Factories::V6::Resources.
|
1704
|
+
Factories::V6::Resources.campaign_criterion(&blk)
|
1462
1705
|
else
|
1463
|
-
Factories::V6::Resources.
|
1706
|
+
Factories::V6::Resources.campaign_criterion
|
1464
1707
|
end
|
1465
1708
|
|
1466
1709
|
op
|
@@ -1547,6 +1790,33 @@ module Google
|
|
1547
1790
|
op
|
1548
1791
|
end
|
1549
1792
|
|
1793
|
+
# A convenience method for creating an CampaignOperation instance with
|
1794
|
+
# its "create" field prepopulated with an Campaign instance.
|
1795
|
+
#
|
1796
|
+
# @overload campaign
|
1797
|
+
# creates an operation instance, yielding a newly fabricated Campaign
|
1798
|
+
# which can be used for setting attributes on the newly created resource
|
1799
|
+
# @overload campaign(res)
|
1800
|
+
# creates an operation instance, with the resource to be created
|
1801
|
+
# set to the passed value (res)
|
1802
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::Campaign]
|
1803
|
+
# a resource instance to be used for creation in this operation.
|
1804
|
+
#
|
1805
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignOperation] instance that will create the resource
|
1806
|
+
def self.campaign(res = nil, &blk)
|
1807
|
+
require "google/ads/google_ads/v6/services/campaign_service_pb"
|
1808
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
|
1809
|
+
op["create"] = if !res.nil?
|
1810
|
+
res
|
1811
|
+
elsif !blk.nil?
|
1812
|
+
Factories::V6::Resources.campaign(&blk)
|
1813
|
+
else
|
1814
|
+
Factories::V6::Resources.campaign
|
1815
|
+
end
|
1816
|
+
|
1817
|
+
op
|
1818
|
+
end
|
1819
|
+
|
1550
1820
|
# A convenience method for creating an CampaignSharedSetOperation instance with
|
1551
1821
|
# its "create" field prepopulated with an CampaignSharedSet instance.
|
1552
1822
|
#
|
@@ -1682,33 +1952,6 @@ module Google
|
|
1682
1952
|
op
|
1683
1953
|
end
|
1684
1954
|
|
1685
|
-
# A convenience method for creating an CustomerNegativeCriterionOperation instance with
|
1686
|
-
# its "create" field prepopulated with an CustomerNegativeCriterion instance.
|
1687
|
-
#
|
1688
|
-
# @overload customer_negative_criterion
|
1689
|
-
# creates an operation instance, yielding a newly fabricated CustomerNegativeCriterion
|
1690
|
-
# which can be used for setting attributes on the newly created resource
|
1691
|
-
# @overload customer_negative_criterion(res)
|
1692
|
-
# creates an operation instance, with the resource to be created
|
1693
|
-
# set to the passed value (res)
|
1694
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomerNegativeCriterion]
|
1695
|
-
# a resource instance to be used for creation in this operation.
|
1696
|
-
#
|
1697
|
-
# @return [Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation] instance that will create the resource
|
1698
|
-
def self.customer_negative_criterion(res = nil, &blk)
|
1699
|
-
require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
|
1700
|
-
op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
|
1701
|
-
op["create"] = if !res.nil?
|
1702
|
-
res
|
1703
|
-
elsif !blk.nil?
|
1704
|
-
Factories::V6::Resources.customer_negative_criterion(&blk)
|
1705
|
-
else
|
1706
|
-
Factories::V6::Resources.customer_negative_criterion
|
1707
|
-
end
|
1708
|
-
|
1709
|
-
op
|
1710
|
-
end
|
1711
|
-
|
1712
1955
|
# A convenience method for creating an ExtensionFeedItemOperation instance with
|
1713
1956
|
# its "create" field prepopulated with an ExtensionFeedItem instance.
|
1714
1957
|
#
|
@@ -1763,33 +2006,6 @@ module Google
|
|
1763
2006
|
op
|
1764
2007
|
end
|
1765
2008
|
|
1766
|
-
# A convenience method for creating an FeedItemSetOperation instance with
|
1767
|
-
# its "create" field prepopulated with an FeedItemSet instance.
|
1768
|
-
#
|
1769
|
-
# @overload feed_item_set
|
1770
|
-
# creates an operation instance, yielding a newly fabricated FeedItemSet
|
1771
|
-
# which can be used for setting attributes on the newly created resource
|
1772
|
-
# @overload feed_item_set(res)
|
1773
|
-
# creates an operation instance, with the resource to be created
|
1774
|
-
# set to the passed value (res)
|
1775
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::FeedItemSet]
|
1776
|
-
# a resource instance to be used for creation in this operation.
|
1777
|
-
#
|
1778
|
-
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation] instance that will create the resource
|
1779
|
-
def self.feed_item_set(res = nil, &blk)
|
1780
|
-
require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
|
1781
|
-
op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
|
1782
|
-
op["create"] = if !res.nil?
|
1783
|
-
res
|
1784
|
-
elsif !blk.nil?
|
1785
|
-
Factories::V6::Resources.feed_item_set(&blk)
|
1786
|
-
else
|
1787
|
-
Factories::V6::Resources.feed_item_set
|
1788
|
-
end
|
1789
|
-
|
1790
|
-
op
|
1791
|
-
end
|
1792
|
-
|
1793
2009
|
# A convenience method for creating an FeedItemTargetOperation instance with
|
1794
2010
|
# its "create" field prepopulated with an FeedItemTarget instance.
|
1795
2011
|
#
|
@@ -1811,34 +2027,7 @@ module Google
|
|
1811
2027
|
elsif !blk.nil?
|
1812
2028
|
Factories::V6::Resources.feed_item_target(&blk)
|
1813
2029
|
else
|
1814
|
-
Factories::V6::Resources.feed_item_target
|
1815
|
-
end
|
1816
|
-
|
1817
|
-
op
|
1818
|
-
end
|
1819
|
-
|
1820
|
-
# A convenience method for creating an FeedMappingOperation instance with
|
1821
|
-
# its "create" field prepopulated with an FeedMapping instance.
|
1822
|
-
#
|
1823
|
-
# @overload feed_mapping
|
1824
|
-
# creates an operation instance, yielding a newly fabricated FeedMapping
|
1825
|
-
# which can be used for setting attributes on the newly created resource
|
1826
|
-
# @overload feed_mapping(res)
|
1827
|
-
# creates an operation instance, with the resource to be created
|
1828
|
-
# set to the passed value (res)
|
1829
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::FeedMapping]
|
1830
|
-
# a resource instance to be used for creation in this operation.
|
1831
|
-
#
|
1832
|
-
# @return [Google::Ads::GoogleAds::V6::Services::FeedMappingOperation] instance that will create the resource
|
1833
|
-
def self.feed_mapping(res = nil, &blk)
|
1834
|
-
require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
|
1835
|
-
op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
|
1836
|
-
op["create"] = if !res.nil?
|
1837
|
-
res
|
1838
|
-
elsif !blk.nil?
|
1839
|
-
Factories::V6::Resources.feed_mapping(&blk)
|
1840
|
-
else
|
1841
|
-
Factories::V6::Resources.feed_mapping
|
2030
|
+
Factories::V6::Resources.feed_item_target
|
1842
2031
|
end
|
1843
2032
|
|
1844
2033
|
op
|
@@ -1871,33 +2060,6 @@ module Google
|
|
1871
2060
|
op
|
1872
2061
|
end
|
1873
2062
|
|
1874
|
-
# A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
|
1875
|
-
# its "create" field prepopulated with an KeywordPlanAdGroupKeyword instance.
|
1876
|
-
#
|
1877
|
-
# @overload keyword_plan_ad_group_keyword
|
1878
|
-
# creates an operation instance, yielding a newly fabricated KeywordPlanAdGroupKeyword
|
1879
|
-
# which can be used for setting attributes on the newly created resource
|
1880
|
-
# @overload keyword_plan_ad_group_keyword(res)
|
1881
|
-
# creates an operation instance, with the resource to be created
|
1882
|
-
# set to the passed value (res)
|
1883
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword]
|
1884
|
-
# a resource instance to be used for creation in this operation.
|
1885
|
-
#
|
1886
|
-
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation] instance that will create the resource
|
1887
|
-
def self.keyword_plan_ad_group_keyword(res = nil, &blk)
|
1888
|
-
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
|
1889
|
-
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
|
1890
|
-
op["create"] = if !res.nil?
|
1891
|
-
res
|
1892
|
-
elsif !blk.nil?
|
1893
|
-
Factories::V6::Resources.keyword_plan_ad_group_keyword(&blk)
|
1894
|
-
else
|
1895
|
-
Factories::V6::Resources.keyword_plan_ad_group_keyword
|
1896
|
-
end
|
1897
|
-
|
1898
|
-
op
|
1899
|
-
end
|
1900
|
-
|
1901
2063
|
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
1902
2064
|
# its "create" field prepopulated with an KeywordPlanAdGroup instance.
|
1903
2065
|
#
|
@@ -2006,33 +2168,6 @@ module Google
|
|
2006
2168
|
op
|
2007
2169
|
end
|
2008
2170
|
|
2009
|
-
# A convenience method for creating an LabelOperation instance with
|
2010
|
-
# its "create" field prepopulated with an Label instance.
|
2011
|
-
#
|
2012
|
-
# @overload label
|
2013
|
-
# creates an operation instance, yielding a newly fabricated Label
|
2014
|
-
# which can be used for setting attributes on the newly created resource
|
2015
|
-
# @overload label(res)
|
2016
|
-
# creates an operation instance, with the resource to be created
|
2017
|
-
# set to the passed value (res)
|
2018
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::Label]
|
2019
|
-
# a resource instance to be used for creation in this operation.
|
2020
|
-
#
|
2021
|
-
# @return [Google::Ads::GoogleAds::V6::Services::LabelOperation] instance that will create the resource
|
2022
|
-
def self.label(res = nil, &blk)
|
2023
|
-
require "google/ads/google_ads/v6/services/label_service_pb"
|
2024
|
-
op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
|
2025
|
-
op["create"] = if !res.nil?
|
2026
|
-
res
|
2027
|
-
elsif !blk.nil?
|
2028
|
-
Factories::V6::Resources.label(&blk)
|
2029
|
-
else
|
2030
|
-
Factories::V6::Resources.label
|
2031
|
-
end
|
2032
|
-
|
2033
|
-
op
|
2034
|
-
end
|
2035
|
-
|
2036
2171
|
# A convenience method for creating an MediaFileOperation instance with
|
2037
2172
|
# its "create" field prepopulated with an MediaFile instance.
|
2038
2173
|
#
|
@@ -2087,87 +2222,6 @@ module Google
|
|
2087
2222
|
op
|
2088
2223
|
end
|
2089
2224
|
|
2090
|
-
# A convenience method for creating an SharedCriterionOperation instance with
|
2091
|
-
# its "create" field prepopulated with an SharedCriterion instance.
|
2092
|
-
#
|
2093
|
-
# @overload shared_criterion
|
2094
|
-
# creates an operation instance, yielding a newly fabricated SharedCriterion
|
2095
|
-
# which can be used for setting attributes on the newly created resource
|
2096
|
-
# @overload shared_criterion(res)
|
2097
|
-
# creates an operation instance, with the resource to be created
|
2098
|
-
# set to the passed value (res)
|
2099
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::SharedCriterion]
|
2100
|
-
# a resource instance to be used for creation in this operation.
|
2101
|
-
#
|
2102
|
-
# @return [Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation] instance that will create the resource
|
2103
|
-
def self.shared_criterion(res = nil, &blk)
|
2104
|
-
require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
|
2105
|
-
op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
|
2106
|
-
op["create"] = if !res.nil?
|
2107
|
-
res
|
2108
|
-
elsif !blk.nil?
|
2109
|
-
Factories::V6::Resources.shared_criterion(&blk)
|
2110
|
-
else
|
2111
|
-
Factories::V6::Resources.shared_criterion
|
2112
|
-
end
|
2113
|
-
|
2114
|
-
op
|
2115
|
-
end
|
2116
|
-
|
2117
|
-
# A convenience method for creating an SharedSetOperation instance with
|
2118
|
-
# its "create" field prepopulated with an SharedSet instance.
|
2119
|
-
#
|
2120
|
-
# @overload shared_set
|
2121
|
-
# creates an operation instance, yielding a newly fabricated SharedSet
|
2122
|
-
# which can be used for setting attributes on the newly created resource
|
2123
|
-
# @overload shared_set(res)
|
2124
|
-
# creates an operation instance, with the resource to be created
|
2125
|
-
# set to the passed value (res)
|
2126
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::SharedSet]
|
2127
|
-
# a resource instance to be used for creation in this operation.
|
2128
|
-
#
|
2129
|
-
# @return [Google::Ads::GoogleAds::V6::Services::SharedSetOperation] instance that will create the resource
|
2130
|
-
def self.shared_set(res = nil, &blk)
|
2131
|
-
require "google/ads/google_ads/v6/services/shared_set_service_pb"
|
2132
|
-
op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
|
2133
|
-
op["create"] = if !res.nil?
|
2134
|
-
res
|
2135
|
-
elsif !blk.nil?
|
2136
|
-
Factories::V6::Resources.shared_set(&blk)
|
2137
|
-
else
|
2138
|
-
Factories::V6::Resources.shared_set
|
2139
|
-
end
|
2140
|
-
|
2141
|
-
op
|
2142
|
-
end
|
2143
|
-
|
2144
|
-
# A convenience method for creating an UserListOperation instance with
|
2145
|
-
# its "create" field prepopulated with an UserList instance.
|
2146
|
-
#
|
2147
|
-
# @overload user_list
|
2148
|
-
# creates an operation instance, yielding a newly fabricated UserList
|
2149
|
-
# which can be used for setting attributes on the newly created resource
|
2150
|
-
# @overload user_list(res)
|
2151
|
-
# creates an operation instance, with the resource to be created
|
2152
|
-
# set to the passed value (res)
|
2153
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::UserList]
|
2154
|
-
# a resource instance to be used for creation in this operation.
|
2155
|
-
#
|
2156
|
-
# @return [Google::Ads::GoogleAds::V6::Services::UserListOperation] instance that will create the resource
|
2157
|
-
def self.user_list(res = nil, &blk)
|
2158
|
-
require "google/ads/google_ads/v6/services/user_list_service_pb"
|
2159
|
-
op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
|
2160
|
-
op["create"] = if !res.nil?
|
2161
|
-
res
|
2162
|
-
elsif !blk.nil?
|
2163
|
-
Factories::V6::Resources.user_list(&blk)
|
2164
|
-
else
|
2165
|
-
Factories::V6::Resources.user_list
|
2166
|
-
end
|
2167
|
-
|
2168
|
-
op
|
2169
|
-
end
|
2170
|
-
|
2171
2225
|
# A convenience method for creating an BatchJobOperation instance with
|
2172
2226
|
# its "create" field prepopulated with an BatchJob instance.
|
2173
2227
|
#
|
@@ -2195,109 +2249,55 @@ module Google
|
|
2195
2249
|
op
|
2196
2250
|
end
|
2197
2251
|
|
2198
|
-
# A convenience method for creating an
|
2199
|
-
# its "create" field prepopulated with an
|
2200
|
-
#
|
2201
|
-
# @overload offline_user_data_job
|
2202
|
-
# creates an operation instance, yielding a newly fabricated UserData
|
2203
|
-
# which can be used for setting attributes on the newly created resource
|
2204
|
-
# @overload offline_user_data_job(res)
|
2205
|
-
# creates an operation instance, with the resource to be created
|
2206
|
-
# set to the passed value (res)
|
2207
|
-
# @param res [Google::Ads::GoogleAds::V6::Common::UserData]
|
2208
|
-
# a resource instance to be used for creation in this operation.
|
2209
|
-
#
|
2210
|
-
# @return [Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation] instance that will create the resource
|
2211
|
-
def self.offline_user_data_job(res = nil, &blk)
|
2212
|
-
require "google/ads/google_ads/v6/services/offline_user_data_job_service_pb"
|
2213
|
-
op = Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
|
2214
|
-
op["create"] = if !res.nil?
|
2215
|
-
res
|
2216
|
-
elsif !blk.nil?
|
2217
|
-
Factories::V6::Resources.user_data(&blk)
|
2218
|
-
else
|
2219
|
-
Factories::V6::Resources.user_data
|
2220
|
-
end
|
2221
|
-
|
2222
|
-
op
|
2223
|
-
end
|
2224
|
-
|
2225
|
-
# A convenience method for creating an CustomInterestOperation instance with
|
2226
|
-
# its "create" field prepopulated with an CustomInterest instance.
|
2227
|
-
#
|
2228
|
-
# @overload custom_interest
|
2229
|
-
# creates an operation instance, yielding a newly fabricated CustomInterest
|
2230
|
-
# which can be used for setting attributes on the newly created resource
|
2231
|
-
# @overload custom_interest(res)
|
2232
|
-
# creates an operation instance, with the resource to be created
|
2233
|
-
# set to the passed value (res)
|
2234
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomInterest]
|
2235
|
-
# a resource instance to be used for creation in this operation.
|
2236
|
-
#
|
2237
|
-
# @return [Google::Ads::GoogleAds::V6::Services::CustomInterestOperation] instance that will create the resource
|
2238
|
-
def self.custom_interest(res = nil, &blk)
|
2239
|
-
require "google/ads/google_ads/v6/services/custom_interest_service_pb"
|
2240
|
-
op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
|
2241
|
-
op["create"] = if !res.nil?
|
2242
|
-
res
|
2243
|
-
elsif !blk.nil?
|
2244
|
-
Factories::V6::Resources.custom_interest(&blk)
|
2245
|
-
else
|
2246
|
-
Factories::V6::Resources.custom_interest
|
2247
|
-
end
|
2248
|
-
|
2249
|
-
op
|
2250
|
-
end
|
2251
|
-
|
2252
|
-
# A convenience method for creating an CustomerClientLinkOperation instance with
|
2253
|
-
# its "create" field prepopulated with an CustomerClientLink instance.
|
2252
|
+
# A convenience method for creating an CustomerUserAccessInvitationOperation instance with
|
2253
|
+
# its "create" field prepopulated with an CustomerUserAccessInvitation instance.
|
2254
2254
|
#
|
2255
|
-
# @overload
|
2256
|
-
# creates an operation instance, yielding a newly fabricated
|
2255
|
+
# @overload customer_user_access_invitation
|
2256
|
+
# creates an operation instance, yielding a newly fabricated CustomerUserAccessInvitation
|
2257
2257
|
# which can be used for setting attributes on the newly created resource
|
2258
|
-
# @overload
|
2258
|
+
# @overload customer_user_access_invitation(res)
|
2259
2259
|
# creates an operation instance, with the resource to be created
|
2260
2260
|
# set to the passed value (res)
|
2261
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::
|
2261
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomerUserAccessInvitation]
|
2262
2262
|
# a resource instance to be used for creation in this operation.
|
2263
2263
|
#
|
2264
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2265
|
-
def self.
|
2266
|
-
require "google/ads/google_ads/v6/services/
|
2267
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2264
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation] instance that will create the resource
|
2265
|
+
def self.customer_user_access_invitation(res = nil, &blk)
|
2266
|
+
require "google/ads/google_ads/v6/services/customer_user_access_invitation_service_pb"
|
2267
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
|
2268
2268
|
op["create"] = if !res.nil?
|
2269
2269
|
res
|
2270
2270
|
elsif !blk.nil?
|
2271
|
-
Factories::V6::Resources.
|
2271
|
+
Factories::V6::Resources.customer_user_access_invitation(&blk)
|
2272
2272
|
else
|
2273
|
-
Factories::V6::Resources.
|
2273
|
+
Factories::V6::Resources.customer_user_access_invitation
|
2274
2274
|
end
|
2275
2275
|
|
2276
2276
|
op
|
2277
2277
|
end
|
2278
2278
|
|
2279
|
-
# A convenience method for creating an
|
2280
|
-
# its "create" field prepopulated with an
|
2279
|
+
# A convenience method for creating an OfflineUserDataJobOperation instance with
|
2280
|
+
# its "create" field prepopulated with an UserData instance.
|
2281
2281
|
#
|
2282
|
-
# @overload
|
2283
|
-
# creates an operation instance, yielding a newly fabricated
|
2282
|
+
# @overload offline_user_data_job
|
2283
|
+
# creates an operation instance, yielding a newly fabricated UserData
|
2284
2284
|
# which can be used for setting attributes on the newly created resource
|
2285
|
-
# @overload
|
2285
|
+
# @overload offline_user_data_job(res)
|
2286
2286
|
# creates an operation instance, with the resource to be created
|
2287
2287
|
# set to the passed value (res)
|
2288
|
-
# @param res [Google::Ads::GoogleAds::V6::
|
2288
|
+
# @param res [Google::Ads::GoogleAds::V6::Common::UserData]
|
2289
2289
|
# a resource instance to be used for creation in this operation.
|
2290
2290
|
#
|
2291
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2292
|
-
def self.
|
2293
|
-
require "google/ads/google_ads/v6/services/
|
2294
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2291
|
+
# @return [Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation] instance that will create the resource
|
2292
|
+
def self.offline_user_data_job(res = nil, &blk)
|
2293
|
+
require "google/ads/google_ads/v6/services/offline_user_data_job_service_pb"
|
2294
|
+
op = Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
|
2295
2295
|
op["create"] = if !res.nil?
|
2296
2296
|
res
|
2297
2297
|
elsif !blk.nil?
|
2298
|
-
Factories::V6::Resources.
|
2298
|
+
Factories::V6::Resources.user_data(&blk)
|
2299
2299
|
else
|
2300
|
-
Factories::V6::Resources.
|
2300
|
+
Factories::V6::Resources.user_data
|
2301
2301
|
end
|
2302
2302
|
|
2303
2303
|
op
|
@@ -2330,82 +2330,82 @@ module Google
|
|
2330
2330
|
op
|
2331
2331
|
end
|
2332
2332
|
|
2333
|
-
# A convenience method for creating an
|
2334
|
-
# its "create" field prepopulated with an
|
2333
|
+
# A convenience method for creating an AccountBudgetProposalOperation instance with
|
2334
|
+
# its "create" field prepopulated with an AccountBudgetProposal instance.
|
2335
2335
|
#
|
2336
|
-
# @overload
|
2337
|
-
# creates an operation instance, yielding a newly fabricated
|
2336
|
+
# @overload account_budget_proposal
|
2337
|
+
# creates an operation instance, yielding a newly fabricated AccountBudgetProposal
|
2338
2338
|
# which can be used for setting attributes on the newly created resource
|
2339
|
-
# @overload
|
2339
|
+
# @overload account_budget_proposal(res)
|
2340
2340
|
# creates an operation instance, with the resource to be created
|
2341
2341
|
# set to the passed value (res)
|
2342
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::
|
2342
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::AccountBudgetProposal]
|
2343
2343
|
# a resource instance to be used for creation in this operation.
|
2344
2344
|
#
|
2345
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2346
|
-
def self.
|
2347
|
-
require "google/ads/google_ads/v6/services/
|
2348
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2345
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation] instance that will create the resource
|
2346
|
+
def self.account_budget_proposal(res = nil, &blk)
|
2347
|
+
require "google/ads/google_ads/v6/services/account_budget_proposal_service_pb"
|
2348
|
+
op = Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
|
2349
2349
|
op["create"] = if !res.nil?
|
2350
2350
|
res
|
2351
2351
|
elsif !blk.nil?
|
2352
|
-
Factories::V6::Resources.
|
2352
|
+
Factories::V6::Resources.account_budget_proposal(&blk)
|
2353
2353
|
else
|
2354
|
-
Factories::V6::Resources.
|
2354
|
+
Factories::V6::Resources.account_budget_proposal
|
2355
2355
|
end
|
2356
2356
|
|
2357
2357
|
op
|
2358
2358
|
end
|
2359
2359
|
|
2360
|
-
# A convenience method for creating an
|
2361
|
-
# its "create" field prepopulated with an
|
2360
|
+
# A convenience method for creating an CustomAudienceOperation instance with
|
2361
|
+
# its "create" field prepopulated with an CustomAudience instance.
|
2362
2362
|
#
|
2363
|
-
# @overload
|
2364
|
-
# creates an operation instance, yielding a newly fabricated
|
2363
|
+
# @overload custom_audience
|
2364
|
+
# creates an operation instance, yielding a newly fabricated CustomAudience
|
2365
2365
|
# which can be used for setting attributes on the newly created resource
|
2366
|
-
# @overload
|
2366
|
+
# @overload custom_audience(res)
|
2367
2367
|
# creates an operation instance, with the resource to be created
|
2368
2368
|
# set to the passed value (res)
|
2369
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::
|
2369
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomAudience]
|
2370
2370
|
# a resource instance to be used for creation in this operation.
|
2371
2371
|
#
|
2372
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2373
|
-
def self.
|
2374
|
-
require "google/ads/google_ads/v6/services/
|
2375
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2372
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation] instance that will create the resource
|
2373
|
+
def self.custom_audience(res = nil, &blk)
|
2374
|
+
require "google/ads/google_ads/v6/services/custom_audience_service_pb"
|
2375
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.new
|
2376
2376
|
op["create"] = if !res.nil?
|
2377
2377
|
res
|
2378
2378
|
elsif !blk.nil?
|
2379
|
-
Factories::V6::Resources.
|
2379
|
+
Factories::V6::Resources.custom_audience(&blk)
|
2380
2380
|
else
|
2381
|
-
Factories::V6::Resources.
|
2381
|
+
Factories::V6::Resources.custom_audience
|
2382
2382
|
end
|
2383
2383
|
|
2384
2384
|
op
|
2385
2385
|
end
|
2386
2386
|
|
2387
|
-
# A convenience method for creating an
|
2388
|
-
# its "create" field prepopulated with an
|
2387
|
+
# A convenience method for creating an BillingSetupOperation instance with
|
2388
|
+
# its "create" field prepopulated with an BillingSetup instance.
|
2389
2389
|
#
|
2390
|
-
# @overload
|
2391
|
-
# creates an operation instance, yielding a newly fabricated
|
2390
|
+
# @overload billing_setup
|
2391
|
+
# creates an operation instance, yielding a newly fabricated BillingSetup
|
2392
2392
|
# which can be used for setting attributes on the newly created resource
|
2393
|
-
# @overload
|
2393
|
+
# @overload billing_setup(res)
|
2394
2394
|
# creates an operation instance, with the resource to be created
|
2395
2395
|
# set to the passed value (res)
|
2396
|
-
# @param res [Google::Ads::GoogleAds::V6::Resources::
|
2396
|
+
# @param res [Google::Ads::GoogleAds::V6::Resources::BillingSetup]
|
2397
2397
|
# a resource instance to be used for creation in this operation.
|
2398
2398
|
#
|
2399
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2400
|
-
def self.
|
2401
|
-
require "google/ads/google_ads/v6/services/
|
2402
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2399
|
+
# @return [Google::Ads::GoogleAds::V6::Services::BillingSetupOperation] instance that will create the resource
|
2400
|
+
def self.billing_setup(res = nil, &blk)
|
2401
|
+
require "google/ads/google_ads/v6/services/billing_setup_service_pb"
|
2402
|
+
op = Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
|
2403
2403
|
op["create"] = if !res.nil?
|
2404
2404
|
res
|
2405
2405
|
elsif !blk.nil?
|
2406
|
-
Factories::V6::Resources.
|
2406
|
+
Factories::V6::Resources.billing_setup(&blk)
|
2407
2407
|
else
|
2408
|
-
Factories::V6::Resources.
|
2408
|
+
Factories::V6::Resources.billing_setup
|
2409
2409
|
end
|
2410
2410
|
|
2411
2411
|
op
|
@@ -2413,31 +2413,31 @@ module Google
|
|
2413
2413
|
end
|
2414
2414
|
|
2415
2415
|
module UpdateResource
|
2416
|
-
# A convenience method for creating an
|
2417
|
-
# its "update" field prepopulated with an
|
2416
|
+
# A convenience method for creating an CustomerClientLinkOperation instance with
|
2417
|
+
# its "update" field prepopulated with an CustomerClientLink instance, and
|
2418
2418
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2419
2419
|
#
|
2420
|
-
# @overload #
|
2420
|
+
# @overload #customer_client_link(path, &blk)
|
2421
2421
|
# @param path [String] a resource path for the resource to update
|
2422
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2422
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
|
2423
2423
|
# which fields can be set to update
|
2424
2424
|
#
|
2425
|
-
# @overload #
|
2426
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2425
|
+
# @overload #customer_client_link(resource, &blk)
|
2426
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::CustomerClientLink] a resource instance to update
|
2427
2427
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2428
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2429
|
-
def self.
|
2430
|
-
require "google/ads/google_ads/v6/services/
|
2428
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation] the operation instance to update the resource
|
2429
|
+
def self.customer_client_link(resource_or_path, &blk)
|
2430
|
+
require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
|
2431
2431
|
res = case resource_or_path
|
2432
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2432
|
+
when Google::Ads::GoogleAds::V6::Resources::CustomerClientLink
|
2433
2433
|
resource_or_path
|
2434
2434
|
# got a resource path
|
2435
2435
|
when String
|
2436
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2436
|
+
obj = Google::Ads::GoogleAds::V6::Resources::CustomerClientLink.new
|
2437
2437
|
obj.resource_name = resource_or_path
|
2438
2438
|
obj
|
2439
2439
|
else
|
2440
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2440
|
+
unless Google::Ads::GoogleAds::V6::Resources::CustomerClientLink === res
|
2441
2441
|
raise ArgumentError.new(
|
2442
2442
|
"Called #{__method__} with instance of wrong type:"\
|
2443
2443
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2446,37 +2446,37 @@ module Google
|
|
2446
2446
|
end
|
2447
2447
|
end
|
2448
2448
|
|
2449
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2449
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
|
2450
2450
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2451
2451
|
op["update"] = res
|
2452
2452
|
op
|
2453
2453
|
end
|
2454
2454
|
|
2455
|
-
# A convenience method for creating an
|
2456
|
-
# its "update" field prepopulated with an
|
2455
|
+
# A convenience method for creating an CustomInterestOperation instance with
|
2456
|
+
# its "update" field prepopulated with an CustomInterest instance, and
|
2457
2457
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2458
2458
|
#
|
2459
|
-
# @overload #
|
2459
|
+
# @overload #custom_interest(path, &blk)
|
2460
2460
|
# @param path [String] a resource path for the resource to update
|
2461
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2461
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::CustomInterest] a new instance of the resource for this update operation, on
|
2462
2462
|
# which fields can be set to update
|
2463
2463
|
#
|
2464
|
-
# @overload #
|
2465
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2464
|
+
# @overload #custom_interest(resource, &blk)
|
2465
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::CustomInterest] a resource instance to update
|
2466
2466
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2467
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2468
|
-
def self.
|
2469
|
-
require "google/ads/google_ads/v6/services/
|
2467
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomInterestOperation] the operation instance to update the resource
|
2468
|
+
def self.custom_interest(resource_or_path, &blk)
|
2469
|
+
require "google/ads/google_ads/v6/services/custom_interest_service_pb"
|
2470
2470
|
res = case resource_or_path
|
2471
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2471
|
+
when Google::Ads::GoogleAds::V6::Resources::CustomInterest
|
2472
2472
|
resource_or_path
|
2473
2473
|
# got a resource path
|
2474
2474
|
when String
|
2475
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2475
|
+
obj = Google::Ads::GoogleAds::V6::Resources::CustomInterest.new
|
2476
2476
|
obj.resource_name = resource_or_path
|
2477
2477
|
obj
|
2478
2478
|
else
|
2479
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2479
|
+
unless Google::Ads::GoogleAds::V6::Resources::CustomInterest === res
|
2480
2480
|
raise ArgumentError.new(
|
2481
2481
|
"Called #{__method__} with instance of wrong type:"\
|
2482
2482
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2485,37 +2485,37 @@ module Google
|
|
2485
2485
|
end
|
2486
2486
|
end
|
2487
2487
|
|
2488
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2488
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
|
2489
2489
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2490
2490
|
op["update"] = res
|
2491
2491
|
op
|
2492
2492
|
end
|
2493
2493
|
|
2494
|
-
# A convenience method for creating an
|
2495
|
-
# its "update" field prepopulated with an
|
2494
|
+
# A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
|
2495
|
+
# its "update" field prepopulated with an KeywordPlanAdGroupKeyword instance, and
|
2496
2496
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2497
2497
|
#
|
2498
|
-
# @overload #
|
2498
|
+
# @overload #keyword_plan_ad_group_keyword(path, &blk)
|
2499
2499
|
# @param path [String] a resource path for the resource to update
|
2500
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2500
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword] a new instance of the resource for this update operation, on
|
2501
2501
|
# which fields can be set to update
|
2502
2502
|
#
|
2503
|
-
# @overload #
|
2504
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2503
|
+
# @overload #keyword_plan_ad_group_keyword(resource, &blk)
|
2504
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword] a resource instance to update
|
2505
2505
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2506
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2507
|
-
def self.
|
2508
|
-
require "google/ads/google_ads/v6/services/
|
2506
|
+
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation] the operation instance to update the resource
|
2507
|
+
def self.keyword_plan_ad_group_keyword(resource_or_path, &blk)
|
2508
|
+
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
|
2509
2509
|
res = case resource_or_path
|
2510
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2510
|
+
when Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword
|
2511
2511
|
resource_or_path
|
2512
2512
|
# got a resource path
|
2513
2513
|
when String
|
2514
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2514
|
+
obj = Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword.new
|
2515
2515
|
obj.resource_name = resource_or_path
|
2516
2516
|
obj
|
2517
2517
|
else
|
2518
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2518
|
+
unless Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword === res
|
2519
2519
|
raise ArgumentError.new(
|
2520
2520
|
"Called #{__method__} with instance of wrong type:"\
|
2521
2521
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2524,37 +2524,37 @@ module Google
|
|
2524
2524
|
end
|
2525
2525
|
end
|
2526
2526
|
|
2527
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2527
|
+
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
|
2528
2528
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2529
2529
|
op["update"] = res
|
2530
2530
|
op
|
2531
2531
|
end
|
2532
2532
|
|
2533
|
-
# A convenience method for creating an
|
2534
|
-
# its "update" field prepopulated with an
|
2533
|
+
# A convenience method for creating an AdGroupOperation instance with
|
2534
|
+
# its "update" field prepopulated with an AdGroup instance, and
|
2535
2535
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2536
2536
|
#
|
2537
|
-
# @overload #
|
2537
|
+
# @overload #ad_group(path, &blk)
|
2538
2538
|
# @param path [String] a resource path for the resource to update
|
2539
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2539
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::AdGroup] a new instance of the resource for this update operation, on
|
2540
2540
|
# which fields can be set to update
|
2541
2541
|
#
|
2542
|
-
# @overload #
|
2543
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2542
|
+
# @overload #ad_group(resource, &blk)
|
2543
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::AdGroup] a resource instance to update
|
2544
2544
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2545
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2546
|
-
def self.
|
2547
|
-
require "google/ads/google_ads/v6/services/
|
2545
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupOperation] the operation instance to update the resource
|
2546
|
+
def self.ad_group(resource_or_path, &blk)
|
2547
|
+
require "google/ads/google_ads/v6/services/ad_group_service_pb"
|
2548
2548
|
res = case resource_or_path
|
2549
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2549
|
+
when Google::Ads::GoogleAds::V6::Resources::AdGroup
|
2550
2550
|
resource_or_path
|
2551
2551
|
# got a resource path
|
2552
2552
|
when String
|
2553
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2553
|
+
obj = Google::Ads::GoogleAds::V6::Resources::AdGroup.new
|
2554
2554
|
obj.resource_name = resource_or_path
|
2555
2555
|
obj
|
2556
2556
|
else
|
2557
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2557
|
+
unless Google::Ads::GoogleAds::V6::Resources::AdGroup === res
|
2558
2558
|
raise ArgumentError.new(
|
2559
2559
|
"Called #{__method__} with instance of wrong type:"\
|
2560
2560
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2563,37 +2563,37 @@ module Google
|
|
2563
2563
|
end
|
2564
2564
|
end
|
2565
2565
|
|
2566
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2566
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
|
2567
2567
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2568
2568
|
op["update"] = res
|
2569
2569
|
op
|
2570
2570
|
end
|
2571
2571
|
|
2572
|
-
# A convenience method for creating an
|
2573
|
-
# its "update" field prepopulated with an
|
2572
|
+
# A convenience method for creating an FeedItemSetOperation instance with
|
2573
|
+
# its "update" field prepopulated with an FeedItemSet instance, and
|
2574
2574
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2575
2575
|
#
|
2576
|
-
# @overload #
|
2576
|
+
# @overload #feed_item_set(path, &blk)
|
2577
2577
|
# @param path [String] a resource path for the resource to update
|
2578
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2578
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::FeedItemSet] a new instance of the resource for this update operation, on
|
2579
2579
|
# which fields can be set to update
|
2580
2580
|
#
|
2581
|
-
# @overload #
|
2582
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2581
|
+
# @overload #feed_item_set(resource, &blk)
|
2582
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::FeedItemSet] a resource instance to update
|
2583
2583
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2584
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2585
|
-
def self.
|
2586
|
-
require "google/ads/google_ads/v6/services/
|
2584
|
+
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation] the operation instance to update the resource
|
2585
|
+
def self.feed_item_set(resource_or_path, &blk)
|
2586
|
+
require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
|
2587
2587
|
res = case resource_or_path
|
2588
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2588
|
+
when Google::Ads::GoogleAds::V6::Resources::FeedItemSet
|
2589
2589
|
resource_or_path
|
2590
2590
|
# got a resource path
|
2591
2591
|
when String
|
2592
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2592
|
+
obj = Google::Ads::GoogleAds::V6::Resources::FeedItemSet.new
|
2593
2593
|
obj.resource_name = resource_or_path
|
2594
2594
|
obj
|
2595
2595
|
else
|
2596
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2596
|
+
unless Google::Ads::GoogleAds::V6::Resources::FeedItemSet === res
|
2597
2597
|
raise ArgumentError.new(
|
2598
2598
|
"Called #{__method__} with instance of wrong type:"\
|
2599
2599
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2602,37 +2602,37 @@ module Google
|
|
2602
2602
|
end
|
2603
2603
|
end
|
2604
2604
|
|
2605
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2605
|
+
op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
|
2606
2606
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2607
2607
|
op["update"] = res
|
2608
2608
|
op
|
2609
2609
|
end
|
2610
2610
|
|
2611
|
-
# A convenience method for creating an
|
2612
|
-
# its "update" field prepopulated with an
|
2611
|
+
# A convenience method for creating an CampaignBidModifierOperation instance with
|
2612
|
+
# its "update" field prepopulated with an CampaignBidModifier instance, and
|
2613
2613
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2614
2614
|
#
|
2615
|
-
# @overload #
|
2615
|
+
# @overload #campaign_bid_modifier(path, &blk)
|
2616
2616
|
# @param path [String] a resource path for the resource to update
|
2617
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2617
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::CampaignBidModifier] a new instance of the resource for this update operation, on
|
2618
2618
|
# which fields can be set to update
|
2619
2619
|
#
|
2620
|
-
# @overload #
|
2621
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2620
|
+
# @overload #campaign_bid_modifier(resource, &blk)
|
2621
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::CampaignBidModifier] a resource instance to update
|
2622
2622
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2623
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2624
|
-
def self.
|
2625
|
-
require "google/ads/google_ads/v6/services/
|
2623
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation] the operation instance to update the resource
|
2624
|
+
def self.campaign_bid_modifier(resource_or_path, &blk)
|
2625
|
+
require "google/ads/google_ads/v6/services/campaign_bid_modifier_service_pb"
|
2626
2626
|
res = case resource_or_path
|
2627
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2627
|
+
when Google::Ads::GoogleAds::V6::Resources::CampaignBidModifier
|
2628
2628
|
resource_or_path
|
2629
2629
|
# got a resource path
|
2630
2630
|
when String
|
2631
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2631
|
+
obj = Google::Ads::GoogleAds::V6::Resources::CampaignBidModifier.new
|
2632
2632
|
obj.resource_name = resource_or_path
|
2633
2633
|
obj
|
2634
2634
|
else
|
2635
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2635
|
+
unless Google::Ads::GoogleAds::V6::Resources::CampaignBidModifier === res
|
2636
2636
|
raise ArgumentError.new(
|
2637
2637
|
"Called #{__method__} with instance of wrong type:"\
|
2638
2638
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2641,37 +2641,37 @@ module Google
|
|
2641
2641
|
end
|
2642
2642
|
end
|
2643
2643
|
|
2644
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2644
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
|
2645
2645
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2646
2646
|
op["update"] = res
|
2647
2647
|
op
|
2648
2648
|
end
|
2649
2649
|
|
2650
|
-
# A convenience method for creating an
|
2651
|
-
# its "update" field prepopulated with an
|
2650
|
+
# A convenience method for creating an CustomerManagerLinkOperation instance with
|
2651
|
+
# its "update" field prepopulated with an CustomerManagerLink instance, and
|
2652
2652
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2653
2653
|
#
|
2654
|
-
# @overload #
|
2654
|
+
# @overload #customer_manager_link(path, &blk)
|
2655
2655
|
# @param path [String] a resource path for the resource to update
|
2656
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2656
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::CustomerManagerLink] a new instance of the resource for this update operation, on
|
2657
2657
|
# which fields can be set to update
|
2658
2658
|
#
|
2659
|
-
# @overload #
|
2660
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2659
|
+
# @overload #customer_manager_link(resource, &blk)
|
2660
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::CustomerManagerLink] a resource instance to update
|
2661
2661
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2662
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2663
|
-
def self.
|
2664
|
-
require "google/ads/google_ads/v6/services/
|
2662
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation] the operation instance to update the resource
|
2663
|
+
def self.customer_manager_link(resource_or_path, &blk)
|
2664
|
+
require "google/ads/google_ads/v6/services/customer_manager_link_service_pb"
|
2665
2665
|
res = case resource_or_path
|
2666
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2666
|
+
when Google::Ads::GoogleAds::V6::Resources::CustomerManagerLink
|
2667
2667
|
resource_or_path
|
2668
2668
|
# got a resource path
|
2669
2669
|
when String
|
2670
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2670
|
+
obj = Google::Ads::GoogleAds::V6::Resources::CustomerManagerLink.new
|
2671
2671
|
obj.resource_name = resource_or_path
|
2672
2672
|
obj
|
2673
2673
|
else
|
2674
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2674
|
+
unless Google::Ads::GoogleAds::V6::Resources::CustomerManagerLink === res
|
2675
2675
|
raise ArgumentError.new(
|
2676
2676
|
"Called #{__method__} with instance of wrong type:"\
|
2677
2677
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2680,37 +2680,37 @@ module Google
|
|
2680
2680
|
end
|
2681
2681
|
end
|
2682
2682
|
|
2683
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2683
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
|
2684
2684
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2685
2685
|
op["update"] = res
|
2686
2686
|
op
|
2687
2687
|
end
|
2688
2688
|
|
2689
|
-
# A convenience method for creating an
|
2690
|
-
# its "update" field prepopulated with an
|
2689
|
+
# A convenience method for creating an CampaignDraftOperation instance with
|
2690
|
+
# its "update" field prepopulated with an CampaignDraft instance, and
|
2691
2691
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2692
2692
|
#
|
2693
|
-
# @overload #
|
2693
|
+
# @overload #campaign_draft(path, &blk)
|
2694
2694
|
# @param path [String] a resource path for the resource to update
|
2695
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2695
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::CampaignDraft] a new instance of the resource for this update operation, on
|
2696
2696
|
# which fields can be set to update
|
2697
2697
|
#
|
2698
|
-
# @overload #
|
2699
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2698
|
+
# @overload #campaign_draft(resource, &blk)
|
2699
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::CampaignDraft] a resource instance to update
|
2700
2700
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2701
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2702
|
-
def self.
|
2703
|
-
require "google/ads/google_ads/v6/services/
|
2701
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation] the operation instance to update the resource
|
2702
|
+
def self.campaign_draft(resource_or_path, &blk)
|
2703
|
+
require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
|
2704
2704
|
res = case resource_or_path
|
2705
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2705
|
+
when Google::Ads::GoogleAds::V6::Resources::CampaignDraft
|
2706
2706
|
resource_or_path
|
2707
2707
|
# got a resource path
|
2708
2708
|
when String
|
2709
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2709
|
+
obj = Google::Ads::GoogleAds::V6::Resources::CampaignDraft.new
|
2710
2710
|
obj.resource_name = resource_or_path
|
2711
2711
|
obj
|
2712
2712
|
else
|
2713
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2713
|
+
unless Google::Ads::GoogleAds::V6::Resources::CampaignDraft === res
|
2714
2714
|
raise ArgumentError.new(
|
2715
2715
|
"Called #{__method__} with instance of wrong type:"\
|
2716
2716
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2719,37 +2719,37 @@ module Google
|
|
2719
2719
|
end
|
2720
2720
|
end
|
2721
2721
|
|
2722
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2722
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
|
2723
2723
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2724
2724
|
op["update"] = res
|
2725
2725
|
op
|
2726
2726
|
end
|
2727
2727
|
|
2728
|
-
# A convenience method for creating an
|
2729
|
-
# its "update" field prepopulated with an
|
2728
|
+
# A convenience method for creating an UserListOperation instance with
|
2729
|
+
# its "update" field prepopulated with an UserList instance, and
|
2730
2730
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2731
2731
|
#
|
2732
|
-
# @overload #
|
2732
|
+
# @overload #user_list(path, &blk)
|
2733
2733
|
# @param path [String] a resource path for the resource to update
|
2734
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2734
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::UserList] a new instance of the resource for this update operation, on
|
2735
2735
|
# which fields can be set to update
|
2736
2736
|
#
|
2737
|
-
# @overload #
|
2738
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2737
|
+
# @overload #user_list(resource, &blk)
|
2738
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::UserList] a resource instance to update
|
2739
2739
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2740
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2741
|
-
def self.
|
2742
|
-
require "google/ads/google_ads/v6/services/
|
2740
|
+
# @return [Google::Ads::GoogleAds::V6::Services::UserListOperation] the operation instance to update the resource
|
2741
|
+
def self.user_list(resource_or_path, &blk)
|
2742
|
+
require "google/ads/google_ads/v6/services/user_list_service_pb"
|
2743
2743
|
res = case resource_or_path
|
2744
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2744
|
+
when Google::Ads::GoogleAds::V6::Resources::UserList
|
2745
2745
|
resource_or_path
|
2746
2746
|
# got a resource path
|
2747
2747
|
when String
|
2748
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2748
|
+
obj = Google::Ads::GoogleAds::V6::Resources::UserList.new
|
2749
2749
|
obj.resource_name = resource_or_path
|
2750
2750
|
obj
|
2751
2751
|
else
|
2752
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2752
|
+
unless Google::Ads::GoogleAds::V6::Resources::UserList === res
|
2753
2753
|
raise ArgumentError.new(
|
2754
2754
|
"Called #{__method__} with instance of wrong type:"\
|
2755
2755
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2758,37 +2758,37 @@ module Google
|
|
2758
2758
|
end
|
2759
2759
|
end
|
2760
2760
|
|
2761
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2761
|
+
op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
|
2762
2762
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2763
2763
|
op["update"] = res
|
2764
2764
|
op
|
2765
2765
|
end
|
2766
2766
|
|
2767
|
-
# A convenience method for creating an
|
2768
|
-
# its "update" field prepopulated with an
|
2767
|
+
# A convenience method for creating an CustomerOperation instance with
|
2768
|
+
# its "update" field prepopulated with an Customer instance, and
|
2769
2769
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2770
2770
|
#
|
2771
|
-
# @overload #
|
2771
|
+
# @overload #customer(path, &blk)
|
2772
2772
|
# @param path [String] a resource path for the resource to update
|
2773
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2773
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::Customer] a new instance of the resource for this update operation, on
|
2774
2774
|
# which fields can be set to update
|
2775
2775
|
#
|
2776
|
-
# @overload #
|
2777
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2776
|
+
# @overload #customer(resource, &blk)
|
2777
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::Customer] a resource instance to update
|
2778
2778
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2779
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2780
|
-
def self.
|
2781
|
-
require "google/ads/google_ads/v6/services/
|
2779
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerOperation] the operation instance to update the resource
|
2780
|
+
def self.customer(resource_or_path, &blk)
|
2781
|
+
require "google/ads/google_ads/v6/services/customer_service_pb"
|
2782
2782
|
res = case resource_or_path
|
2783
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2783
|
+
when Google::Ads::GoogleAds::V6::Resources::Customer
|
2784
2784
|
resource_or_path
|
2785
2785
|
# got a resource path
|
2786
2786
|
when String
|
2787
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2787
|
+
obj = Google::Ads::GoogleAds::V6::Resources::Customer.new
|
2788
2788
|
obj.resource_name = resource_or_path
|
2789
2789
|
obj
|
2790
2790
|
else
|
2791
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2791
|
+
unless Google::Ads::GoogleAds::V6::Resources::Customer === res
|
2792
2792
|
raise ArgumentError.new(
|
2793
2793
|
"Called #{__method__} with instance of wrong type:"\
|
2794
2794
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2797,37 +2797,37 @@ module Google
|
|
2797
2797
|
end
|
2798
2798
|
end
|
2799
2799
|
|
2800
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2800
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerOperation.new
|
2801
2801
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2802
2802
|
op["update"] = res
|
2803
2803
|
op
|
2804
2804
|
end
|
2805
2805
|
|
2806
|
-
# A convenience method for creating an
|
2807
|
-
# its "update" field prepopulated with an
|
2806
|
+
# A convenience method for creating an SharedSetOperation instance with
|
2807
|
+
# its "update" field prepopulated with an SharedSet instance, and
|
2808
2808
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2809
2809
|
#
|
2810
|
-
# @overload #
|
2810
|
+
# @overload #shared_set(path, &blk)
|
2811
2811
|
# @param path [String] a resource path for the resource to update
|
2812
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2812
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::SharedSet] a new instance of the resource for this update operation, on
|
2813
2813
|
# which fields can be set to update
|
2814
2814
|
#
|
2815
|
-
# @overload #
|
2816
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2815
|
+
# @overload #shared_set(resource, &blk)
|
2816
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::SharedSet] a resource instance to update
|
2817
2817
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2818
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2819
|
-
def self.
|
2820
|
-
require "google/ads/google_ads/v6/services/
|
2818
|
+
# @return [Google::Ads::GoogleAds::V6::Services::SharedSetOperation] the operation instance to update the resource
|
2819
|
+
def self.shared_set(resource_or_path, &blk)
|
2820
|
+
require "google/ads/google_ads/v6/services/shared_set_service_pb"
|
2821
2821
|
res = case resource_or_path
|
2822
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2822
|
+
when Google::Ads::GoogleAds::V6::Resources::SharedSet
|
2823
2823
|
resource_or_path
|
2824
2824
|
# got a resource path
|
2825
2825
|
when String
|
2826
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2826
|
+
obj = Google::Ads::GoogleAds::V6::Resources::SharedSet.new
|
2827
2827
|
obj.resource_name = resource_or_path
|
2828
2828
|
obj
|
2829
2829
|
else
|
2830
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2830
|
+
unless Google::Ads::GoogleAds::V6::Resources::SharedSet === res
|
2831
2831
|
raise ArgumentError.new(
|
2832
2832
|
"Called #{__method__} with instance of wrong type:"\
|
2833
2833
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2836,37 +2836,37 @@ module Google
|
|
2836
2836
|
end
|
2837
2837
|
end
|
2838
2838
|
|
2839
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2839
|
+
op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
|
2840
2840
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2841
2841
|
op["update"] = res
|
2842
2842
|
op
|
2843
2843
|
end
|
2844
2844
|
|
2845
|
-
# A convenience method for creating an
|
2846
|
-
# its "update" field prepopulated with an
|
2845
|
+
# A convenience method for creating an LabelOperation instance with
|
2846
|
+
# its "update" field prepopulated with an Label instance, and
|
2847
2847
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2848
2848
|
#
|
2849
|
-
# @overload #
|
2849
|
+
# @overload #label(path, &blk)
|
2850
2850
|
# @param path [String] a resource path for the resource to update
|
2851
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2851
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::Label] a new instance of the resource for this update operation, on
|
2852
2852
|
# which fields can be set to update
|
2853
2853
|
#
|
2854
|
-
# @overload #
|
2855
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2854
|
+
# @overload #label(resource, &blk)
|
2855
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::Label] a resource instance to update
|
2856
2856
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2857
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2858
|
-
def self.
|
2859
|
-
require "google/ads/google_ads/v6/services/
|
2857
|
+
# @return [Google::Ads::GoogleAds::V6::Services::LabelOperation] the operation instance to update the resource
|
2858
|
+
def self.label(resource_or_path, &blk)
|
2859
|
+
require "google/ads/google_ads/v6/services/label_service_pb"
|
2860
2860
|
res = case resource_or_path
|
2861
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2861
|
+
when Google::Ads::GoogleAds::V6::Resources::Label
|
2862
2862
|
resource_or_path
|
2863
2863
|
# got a resource path
|
2864
2864
|
when String
|
2865
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2865
|
+
obj = Google::Ads::GoogleAds::V6::Resources::Label.new
|
2866
2866
|
obj.resource_name = resource_or_path
|
2867
2867
|
obj
|
2868
2868
|
else
|
2869
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2869
|
+
unless Google::Ads::GoogleAds::V6::Resources::Label === res
|
2870
2870
|
raise ArgumentError.new(
|
2871
2871
|
"Called #{__method__} with instance of wrong type:"\
|
2872
2872
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2875,37 +2875,37 @@ module Google
|
|
2875
2875
|
end
|
2876
2876
|
end
|
2877
2877
|
|
2878
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2878
|
+
op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
|
2879
2879
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2880
2880
|
op["update"] = res
|
2881
2881
|
op
|
2882
2882
|
end
|
2883
2883
|
|
2884
|
-
# A convenience method for creating an
|
2885
|
-
# its "update" field prepopulated with an
|
2884
|
+
# A convenience method for creating an AdGroupAdOperation instance with
|
2885
|
+
# its "update" field prepopulated with an AdGroupAd instance, and
|
2886
2886
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2887
2887
|
#
|
2888
|
-
# @overload #
|
2888
|
+
# @overload #ad_group_ad(path, &blk)
|
2889
2889
|
# @param path [String] a resource path for the resource to update
|
2890
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2890
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::AdGroupAd] a new instance of the resource for this update operation, on
|
2891
2891
|
# which fields can be set to update
|
2892
2892
|
#
|
2893
|
-
# @overload #
|
2894
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2893
|
+
# @overload #ad_group_ad(resource, &blk)
|
2894
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::AdGroupAd] a resource instance to update
|
2895
2895
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2896
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2897
|
-
def self.
|
2898
|
-
require "google/ads/google_ads/v6/services/
|
2896
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupAdOperation] the operation instance to update the resource
|
2897
|
+
def self.ad_group_ad(resource_or_path, &blk)
|
2898
|
+
require "google/ads/google_ads/v6/services/ad_group_ad_service_pb"
|
2899
2899
|
res = case resource_or_path
|
2900
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2900
|
+
when Google::Ads::GoogleAds::V6::Resources::AdGroupAd
|
2901
2901
|
resource_or_path
|
2902
2902
|
# got a resource path
|
2903
2903
|
when String
|
2904
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2904
|
+
obj = Google::Ads::GoogleAds::V6::Resources::AdGroupAd.new
|
2905
2905
|
obj.resource_name = resource_or_path
|
2906
2906
|
obj
|
2907
2907
|
else
|
2908
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2908
|
+
unless Google::Ads::GoogleAds::V6::Resources::AdGroupAd === res
|
2909
2909
|
raise ArgumentError.new(
|
2910
2910
|
"Called #{__method__} with instance of wrong type:"\
|
2911
2911
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2914,37 +2914,37 @@ module Google
|
|
2914
2914
|
end
|
2915
2915
|
end
|
2916
2916
|
|
2917
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2917
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupAdOperation.new
|
2918
2918
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2919
2919
|
op["update"] = res
|
2920
2920
|
op
|
2921
2921
|
end
|
2922
2922
|
|
2923
|
-
# A convenience method for creating an
|
2924
|
-
# its "update" field prepopulated with an
|
2923
|
+
# A convenience method for creating an AdGroupBidModifierOperation instance with
|
2924
|
+
# its "update" field prepopulated with an AdGroupBidModifier instance, and
|
2925
2925
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2926
2926
|
#
|
2927
|
-
# @overload #
|
2927
|
+
# @overload #ad_group_bid_modifier(path, &blk)
|
2928
2928
|
# @param path [String] a resource path for the resource to update
|
2929
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2929
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::AdGroupBidModifier] a new instance of the resource for this update operation, on
|
2930
2930
|
# which fields can be set to update
|
2931
2931
|
#
|
2932
|
-
# @overload #
|
2933
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2932
|
+
# @overload #ad_group_bid_modifier(resource, &blk)
|
2933
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::AdGroupBidModifier] a resource instance to update
|
2934
2934
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2935
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2936
|
-
def self.
|
2937
|
-
require "google/ads/google_ads/v6/services/
|
2935
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupBidModifierOperation] the operation instance to update the resource
|
2936
|
+
def self.ad_group_bid_modifier(resource_or_path, &blk)
|
2937
|
+
require "google/ads/google_ads/v6/services/ad_group_bid_modifier_service_pb"
|
2938
2938
|
res = case resource_or_path
|
2939
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2939
|
+
when Google::Ads::GoogleAds::V6::Resources::AdGroupBidModifier
|
2940
2940
|
resource_or_path
|
2941
2941
|
# got a resource path
|
2942
2942
|
when String
|
2943
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2943
|
+
obj = Google::Ads::GoogleAds::V6::Resources::AdGroupBidModifier.new
|
2944
2944
|
obj.resource_name = resource_or_path
|
2945
2945
|
obj
|
2946
2946
|
else
|
2947
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2947
|
+
unless Google::Ads::GoogleAds::V6::Resources::AdGroupBidModifier === res
|
2948
2948
|
raise ArgumentError.new(
|
2949
2949
|
"Called #{__method__} with instance of wrong type:"\
|
2950
2950
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2953,37 +2953,37 @@ module Google
|
|
2953
2953
|
end
|
2954
2954
|
end
|
2955
2955
|
|
2956
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2956
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupBidModifierOperation.new
|
2957
2957
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2958
2958
|
op["update"] = res
|
2959
2959
|
op
|
2960
2960
|
end
|
2961
2961
|
|
2962
|
-
# A convenience method for creating an
|
2963
|
-
# its "update" field prepopulated with an
|
2962
|
+
# A convenience method for creating an AdGroupCriterionOperation instance with
|
2963
|
+
# its "update" field prepopulated with an AdGroupCriterion instance, and
|
2964
2964
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2965
2965
|
#
|
2966
|
-
# @overload #
|
2966
|
+
# @overload #ad_group_criterion(path, &blk)
|
2967
2967
|
# @param path [String] a resource path for the resource to update
|
2968
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
2968
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::AdGroupCriterion] a new instance of the resource for this update operation, on
|
2969
2969
|
# which fields can be set to update
|
2970
2970
|
#
|
2971
|
-
# @overload #
|
2972
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
2971
|
+
# @overload #ad_group_criterion(resource, &blk)
|
2972
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::AdGroupCriterion] a resource instance to update
|
2973
2973
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2974
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
2975
|
-
def self.
|
2976
|
-
require "google/ads/google_ads/v6/services/
|
2974
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionOperation] the operation instance to update the resource
|
2975
|
+
def self.ad_group_criterion(resource_or_path, &blk)
|
2976
|
+
require "google/ads/google_ads/v6/services/ad_group_criterion_service_pb"
|
2977
2977
|
res = case resource_or_path
|
2978
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
2978
|
+
when Google::Ads::GoogleAds::V6::Resources::AdGroupCriterion
|
2979
2979
|
resource_or_path
|
2980
2980
|
# got a resource path
|
2981
2981
|
when String
|
2982
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
2982
|
+
obj = Google::Ads::GoogleAds::V6::Resources::AdGroupCriterion.new
|
2983
2983
|
obj.resource_name = resource_or_path
|
2984
2984
|
obj
|
2985
2985
|
else
|
2986
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
2986
|
+
unless Google::Ads::GoogleAds::V6::Resources::AdGroupCriterion === res
|
2987
2987
|
raise ArgumentError.new(
|
2988
2988
|
"Called #{__method__} with instance of wrong type:"\
|
2989
2989
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2992,37 +2992,37 @@ module Google
|
|
2992
2992
|
end
|
2993
2993
|
end
|
2994
2994
|
|
2995
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
2995
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionOperation.new
|
2996
2996
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2997
2997
|
op["update"] = res
|
2998
2998
|
op
|
2999
2999
|
end
|
3000
3000
|
|
3001
|
-
# A convenience method for creating an
|
3002
|
-
# its "update" field prepopulated with an
|
3001
|
+
# A convenience method for creating an AdGroupExtensionSettingOperation instance with
|
3002
|
+
# its "update" field prepopulated with an AdGroupExtensionSetting instance, and
|
3003
3003
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3004
3004
|
#
|
3005
|
-
# @overload #
|
3005
|
+
# @overload #ad_group_extension_setting(path, &blk)
|
3006
3006
|
# @param path [String] a resource path for the resource to update
|
3007
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3007
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::AdGroupExtensionSetting] a new instance of the resource for this update operation, on
|
3008
3008
|
# which fields can be set to update
|
3009
3009
|
#
|
3010
|
-
# @overload #
|
3011
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3010
|
+
# @overload #ad_group_extension_setting(resource, &blk)
|
3011
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::AdGroupExtensionSetting] a resource instance to update
|
3012
3012
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3013
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3014
|
-
def self.
|
3015
|
-
require "google/ads/google_ads/v6/services/
|
3013
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupExtensionSettingOperation] the operation instance to update the resource
|
3014
|
+
def self.ad_group_extension_setting(resource_or_path, &blk)
|
3015
|
+
require "google/ads/google_ads/v6/services/ad_group_extension_setting_service_pb"
|
3016
3016
|
res = case resource_or_path
|
3017
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3017
|
+
when Google::Ads::GoogleAds::V6::Resources::AdGroupExtensionSetting
|
3018
3018
|
resource_or_path
|
3019
3019
|
# got a resource path
|
3020
3020
|
when String
|
3021
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3021
|
+
obj = Google::Ads::GoogleAds::V6::Resources::AdGroupExtensionSetting.new
|
3022
3022
|
obj.resource_name = resource_or_path
|
3023
3023
|
obj
|
3024
3024
|
else
|
3025
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3025
|
+
unless Google::Ads::GoogleAds::V6::Resources::AdGroupExtensionSetting === res
|
3026
3026
|
raise ArgumentError.new(
|
3027
3027
|
"Called #{__method__} with instance of wrong type:"\
|
3028
3028
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3031,37 +3031,37 @@ module Google
|
|
3031
3031
|
end
|
3032
3032
|
end
|
3033
3033
|
|
3034
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3034
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupExtensionSettingOperation.new
|
3035
3035
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3036
3036
|
op["update"] = res
|
3037
3037
|
op
|
3038
3038
|
end
|
3039
3039
|
|
3040
|
-
# A convenience method for creating an
|
3041
|
-
# its "update" field prepopulated with an
|
3040
|
+
# A convenience method for creating an AdGroupFeedOperation instance with
|
3041
|
+
# its "update" field prepopulated with an AdGroupFeed instance, and
|
3042
3042
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3043
3043
|
#
|
3044
|
-
# @overload #
|
3044
|
+
# @overload #ad_group_feed(path, &blk)
|
3045
3045
|
# @param path [String] a resource path for the resource to update
|
3046
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3046
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::AdGroupFeed] a new instance of the resource for this update operation, on
|
3047
3047
|
# which fields can be set to update
|
3048
3048
|
#
|
3049
|
-
# @overload #
|
3050
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3049
|
+
# @overload #ad_group_feed(resource, &blk)
|
3050
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::AdGroupFeed] a resource instance to update
|
3051
3051
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3052
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3053
|
-
def self.
|
3054
|
-
require "google/ads/google_ads/v6/services/
|
3052
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupFeedOperation] the operation instance to update the resource
|
3053
|
+
def self.ad_group_feed(resource_or_path, &blk)
|
3054
|
+
require "google/ads/google_ads/v6/services/ad_group_feed_service_pb"
|
3055
3055
|
res = case resource_or_path
|
3056
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3056
|
+
when Google::Ads::GoogleAds::V6::Resources::AdGroupFeed
|
3057
3057
|
resource_or_path
|
3058
3058
|
# got a resource path
|
3059
3059
|
when String
|
3060
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3060
|
+
obj = Google::Ads::GoogleAds::V6::Resources::AdGroupFeed.new
|
3061
3061
|
obj.resource_name = resource_or_path
|
3062
3062
|
obj
|
3063
3063
|
else
|
3064
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3064
|
+
unless Google::Ads::GoogleAds::V6::Resources::AdGroupFeed === res
|
3065
3065
|
raise ArgumentError.new(
|
3066
3066
|
"Called #{__method__} with instance of wrong type:"\
|
3067
3067
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3070,37 +3070,37 @@ module Google
|
|
3070
3070
|
end
|
3071
3071
|
end
|
3072
3072
|
|
3073
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3073
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupFeedOperation.new
|
3074
3074
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3075
3075
|
op["update"] = res
|
3076
3076
|
op
|
3077
3077
|
end
|
3078
3078
|
|
3079
|
-
# A convenience method for creating an
|
3080
|
-
# its "update" field prepopulated with an
|
3079
|
+
# A convenience method for creating an AdParameterOperation instance with
|
3080
|
+
# its "update" field prepopulated with an AdParameter instance, and
|
3081
3081
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3082
3082
|
#
|
3083
|
-
# @overload #
|
3083
|
+
# @overload #ad_parameter(path, &blk)
|
3084
3084
|
# @param path [String] a resource path for the resource to update
|
3085
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3085
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::AdParameter] a new instance of the resource for this update operation, on
|
3086
3086
|
# which fields can be set to update
|
3087
3087
|
#
|
3088
|
-
# @overload #
|
3089
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3090
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3091
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3092
|
-
def self.
|
3093
|
-
require "google/ads/google_ads/v6/services/
|
3088
|
+
# @overload #ad_parameter(resource, &blk)
|
3089
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::AdParameter] a resource instance to update
|
3090
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3091
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdParameterOperation] the operation instance to update the resource
|
3092
|
+
def self.ad_parameter(resource_or_path, &blk)
|
3093
|
+
require "google/ads/google_ads/v6/services/ad_parameter_service_pb"
|
3094
3094
|
res = case resource_or_path
|
3095
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3095
|
+
when Google::Ads::GoogleAds::V6::Resources::AdParameter
|
3096
3096
|
resource_or_path
|
3097
3097
|
# got a resource path
|
3098
3098
|
when String
|
3099
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3099
|
+
obj = Google::Ads::GoogleAds::V6::Resources::AdParameter.new
|
3100
3100
|
obj.resource_name = resource_or_path
|
3101
3101
|
obj
|
3102
3102
|
else
|
3103
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3103
|
+
unless Google::Ads::GoogleAds::V6::Resources::AdParameter === res
|
3104
3104
|
raise ArgumentError.new(
|
3105
3105
|
"Called #{__method__} with instance of wrong type:"\
|
3106
3106
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3109,37 +3109,37 @@ module Google
|
|
3109
3109
|
end
|
3110
3110
|
end
|
3111
3111
|
|
3112
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3112
|
+
op = Google::Ads::GoogleAds::V6::Services::AdParameterOperation.new
|
3113
3113
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3114
3114
|
op["update"] = res
|
3115
3115
|
op
|
3116
3116
|
end
|
3117
3117
|
|
3118
|
-
# A convenience method for creating an
|
3119
|
-
# its "update" field prepopulated with an
|
3118
|
+
# A convenience method for creating an AdOperation instance with
|
3119
|
+
# its "update" field prepopulated with an Ad instance, and
|
3120
3120
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3121
3121
|
#
|
3122
|
-
# @overload #
|
3122
|
+
# @overload #ad(path, &blk)
|
3123
3123
|
# @param path [String] a resource path for the resource to update
|
3124
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3124
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::Ad] a new instance of the resource for this update operation, on
|
3125
3125
|
# which fields can be set to update
|
3126
3126
|
#
|
3127
|
-
# @overload #
|
3128
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3127
|
+
# @overload #ad(resource, &blk)
|
3128
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::Ad] a resource instance to update
|
3129
3129
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3130
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3131
|
-
def self.
|
3132
|
-
require "google/ads/google_ads/v6/services/
|
3130
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AdOperation] the operation instance to update the resource
|
3131
|
+
def self.ad(resource_or_path, &blk)
|
3132
|
+
require "google/ads/google_ads/v6/services/ad_service_pb"
|
3133
3133
|
res = case resource_or_path
|
3134
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3134
|
+
when Google::Ads::GoogleAds::V6::Resources::Ad
|
3135
3135
|
resource_or_path
|
3136
3136
|
# got a resource path
|
3137
3137
|
when String
|
3138
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3138
|
+
obj = Google::Ads::GoogleAds::V6::Resources::Ad.new
|
3139
3139
|
obj.resource_name = resource_or_path
|
3140
3140
|
obj
|
3141
3141
|
else
|
3142
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3142
|
+
unless Google::Ads::GoogleAds::V6::Resources::Ad === res
|
3143
3143
|
raise ArgumentError.new(
|
3144
3144
|
"Called #{__method__} with instance of wrong type:"\
|
3145
3145
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3148,37 +3148,37 @@ module Google
|
|
3148
3148
|
end
|
3149
3149
|
end
|
3150
3150
|
|
3151
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3151
|
+
op = Google::Ads::GoogleAds::V6::Services::AdOperation.new
|
3152
3152
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3153
3153
|
op["update"] = res
|
3154
3154
|
op
|
3155
3155
|
end
|
3156
3156
|
|
3157
|
-
# A convenience method for creating an
|
3158
|
-
# its "update" field prepopulated with an
|
3157
|
+
# A convenience method for creating an AssetOperation instance with
|
3158
|
+
# its "update" field prepopulated with an Asset instance, and
|
3159
3159
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3160
3160
|
#
|
3161
|
-
# @overload #
|
3161
|
+
# @overload #asset(path, &blk)
|
3162
3162
|
# @param path [String] a resource path for the resource to update
|
3163
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3163
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::Asset] a new instance of the resource for this update operation, on
|
3164
3164
|
# which fields can be set to update
|
3165
3165
|
#
|
3166
|
-
# @overload #
|
3167
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3166
|
+
# @overload #asset(resource, &blk)
|
3167
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::Asset] a resource instance to update
|
3168
3168
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3169
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3170
|
-
def self.
|
3171
|
-
require "google/ads/google_ads/v6/services/
|
3169
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AssetOperation] the operation instance to update the resource
|
3170
|
+
def self.asset(resource_or_path, &blk)
|
3171
|
+
require "google/ads/google_ads/v6/services/asset_service_pb"
|
3172
3172
|
res = case resource_or_path
|
3173
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3173
|
+
when Google::Ads::GoogleAds::V6::Resources::Asset
|
3174
3174
|
resource_or_path
|
3175
3175
|
# got a resource path
|
3176
3176
|
when String
|
3177
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3177
|
+
obj = Google::Ads::GoogleAds::V6::Resources::Asset.new
|
3178
3178
|
obj.resource_name = resource_or_path
|
3179
3179
|
obj
|
3180
3180
|
else
|
3181
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3181
|
+
unless Google::Ads::GoogleAds::V6::Resources::Asset === res
|
3182
3182
|
raise ArgumentError.new(
|
3183
3183
|
"Called #{__method__} with instance of wrong type:"\
|
3184
3184
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3187,37 +3187,37 @@ module Google
|
|
3187
3187
|
end
|
3188
3188
|
end
|
3189
3189
|
|
3190
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3190
|
+
op = Google::Ads::GoogleAds::V6::Services::AssetOperation.new
|
3191
3191
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3192
3192
|
op["update"] = res
|
3193
3193
|
op
|
3194
3194
|
end
|
3195
3195
|
|
3196
|
-
# A convenience method for creating an
|
3197
|
-
# its "update" field prepopulated with an
|
3196
|
+
# A convenience method for creating an BiddingStrategyOperation instance with
|
3197
|
+
# its "update" field prepopulated with an BiddingStrategy instance, and
|
3198
3198
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3199
3199
|
#
|
3200
|
-
# @overload #
|
3200
|
+
# @overload #bidding_strategy(path, &blk)
|
3201
3201
|
# @param path [String] a resource path for the resource to update
|
3202
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3202
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::BiddingStrategy] a new instance of the resource for this update operation, on
|
3203
3203
|
# which fields can be set to update
|
3204
3204
|
#
|
3205
|
-
# @overload #
|
3206
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3205
|
+
# @overload #bidding_strategy(resource, &blk)
|
3206
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::BiddingStrategy] a resource instance to update
|
3207
3207
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3208
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3209
|
-
def self.
|
3210
|
-
require "google/ads/google_ads/v6/services/
|
3208
|
+
# @return [Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation] the operation instance to update the resource
|
3209
|
+
def self.bidding_strategy(resource_or_path, &blk)
|
3210
|
+
require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
|
3211
3211
|
res = case resource_or_path
|
3212
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3212
|
+
when Google::Ads::GoogleAds::V6::Resources::BiddingStrategy
|
3213
3213
|
resource_or_path
|
3214
3214
|
# got a resource path
|
3215
3215
|
when String
|
3216
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3216
|
+
obj = Google::Ads::GoogleAds::V6::Resources::BiddingStrategy.new
|
3217
3217
|
obj.resource_name = resource_or_path
|
3218
3218
|
obj
|
3219
3219
|
else
|
3220
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3220
|
+
unless Google::Ads::GoogleAds::V6::Resources::BiddingStrategy === res
|
3221
3221
|
raise ArgumentError.new(
|
3222
3222
|
"Called #{__method__} with instance of wrong type:"\
|
3223
3223
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3226,37 +3226,37 @@ module Google
|
|
3226
3226
|
end
|
3227
3227
|
end
|
3228
3228
|
|
3229
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3229
|
+
op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
|
3230
3230
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3231
3231
|
op["update"] = res
|
3232
3232
|
op
|
3233
3233
|
end
|
3234
3234
|
|
3235
|
-
# A convenience method for creating an
|
3236
|
-
# its "update" field prepopulated with an
|
3235
|
+
# A convenience method for creating an CampaignBudgetOperation instance with
|
3236
|
+
# its "update" field prepopulated with an CampaignBudget instance, and
|
3237
3237
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3238
3238
|
#
|
3239
|
-
# @overload #
|
3239
|
+
# @overload #campaign_budget(path, &blk)
|
3240
3240
|
# @param path [String] a resource path for the resource to update
|
3241
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3241
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::CampaignBudget] a new instance of the resource for this update operation, on
|
3242
3242
|
# which fields can be set to update
|
3243
3243
|
#
|
3244
|
-
# @overload #
|
3245
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3244
|
+
# @overload #campaign_budget(resource, &blk)
|
3245
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::CampaignBudget] a resource instance to update
|
3246
3246
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3247
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3248
|
-
def self.
|
3249
|
-
require "google/ads/google_ads/v6/services/
|
3247
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation] the operation instance to update the resource
|
3248
|
+
def self.campaign_budget(resource_or_path, &blk)
|
3249
|
+
require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
|
3250
3250
|
res = case resource_or_path
|
3251
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3251
|
+
when Google::Ads::GoogleAds::V6::Resources::CampaignBudget
|
3252
3252
|
resource_or_path
|
3253
3253
|
# got a resource path
|
3254
3254
|
when String
|
3255
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3255
|
+
obj = Google::Ads::GoogleAds::V6::Resources::CampaignBudget.new
|
3256
3256
|
obj.resource_name = resource_or_path
|
3257
3257
|
obj
|
3258
3258
|
else
|
3259
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3259
|
+
unless Google::Ads::GoogleAds::V6::Resources::CampaignBudget === res
|
3260
3260
|
raise ArgumentError.new(
|
3261
3261
|
"Called #{__method__} with instance of wrong type:"\
|
3262
3262
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3265,37 +3265,37 @@ module Google
|
|
3265
3265
|
end
|
3266
3266
|
end
|
3267
3267
|
|
3268
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3268
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
|
3269
3269
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3270
3270
|
op["update"] = res
|
3271
3271
|
op
|
3272
3272
|
end
|
3273
3273
|
|
3274
|
-
# A convenience method for creating an
|
3275
|
-
# its "update" field prepopulated with an
|
3274
|
+
# A convenience method for creating an CampaignCriterionOperation instance with
|
3275
|
+
# its "update" field prepopulated with an CampaignCriterion instance, and
|
3276
3276
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3277
3277
|
#
|
3278
|
-
# @overload #
|
3278
|
+
# @overload #campaign_criterion(path, &blk)
|
3279
3279
|
# @param path [String] a resource path for the resource to update
|
3280
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3280
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::CampaignCriterion] a new instance of the resource for this update operation, on
|
3281
3281
|
# which fields can be set to update
|
3282
3282
|
#
|
3283
|
-
# @overload #
|
3284
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3283
|
+
# @overload #campaign_criterion(resource, &blk)
|
3284
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::CampaignCriterion] a resource instance to update
|
3285
3285
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3286
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3287
|
-
def self.
|
3288
|
-
require "google/ads/google_ads/v6/services/
|
3286
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation] the operation instance to update the resource
|
3287
|
+
def self.campaign_criterion(resource_or_path, &blk)
|
3288
|
+
require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
|
3289
3289
|
res = case resource_or_path
|
3290
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3290
|
+
when Google::Ads::GoogleAds::V6::Resources::CampaignCriterion
|
3291
3291
|
resource_or_path
|
3292
3292
|
# got a resource path
|
3293
3293
|
when String
|
3294
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3294
|
+
obj = Google::Ads::GoogleAds::V6::Resources::CampaignCriterion.new
|
3295
3295
|
obj.resource_name = resource_or_path
|
3296
3296
|
obj
|
3297
3297
|
else
|
3298
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3298
|
+
unless Google::Ads::GoogleAds::V6::Resources::CampaignCriterion === res
|
3299
3299
|
raise ArgumentError.new(
|
3300
3300
|
"Called #{__method__} with instance of wrong type:"\
|
3301
3301
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3304,37 +3304,37 @@ module Google
|
|
3304
3304
|
end
|
3305
3305
|
end
|
3306
3306
|
|
3307
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3307
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
|
3308
3308
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3309
3309
|
op["update"] = res
|
3310
3310
|
op
|
3311
3311
|
end
|
3312
3312
|
|
3313
|
-
# A convenience method for creating an
|
3314
|
-
# its "update" field prepopulated with an
|
3313
|
+
# A convenience method for creating an CampaignExperimentOperation instance with
|
3314
|
+
# its "update" field prepopulated with an CampaignExperiment instance, and
|
3315
3315
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3316
3316
|
#
|
3317
|
-
# @overload #
|
3317
|
+
# @overload #campaign_experiment(path, &blk)
|
3318
3318
|
# @param path [String] a resource path for the resource to update
|
3319
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3319
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::CampaignExperiment] a new instance of the resource for this update operation, on
|
3320
3320
|
# which fields can be set to update
|
3321
3321
|
#
|
3322
|
-
# @overload #
|
3323
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3322
|
+
# @overload #campaign_experiment(resource, &blk)
|
3323
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::CampaignExperiment] a resource instance to update
|
3324
3324
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3325
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3326
|
-
def self.
|
3327
|
-
require "google/ads/google_ads/v6/services/
|
3325
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignExperimentOperation] the operation instance to update the resource
|
3326
|
+
def self.campaign_experiment(resource_or_path, &blk)
|
3327
|
+
require "google/ads/google_ads/v6/services/campaign_experiment_service_pb"
|
3328
3328
|
res = case resource_or_path
|
3329
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3329
|
+
when Google::Ads::GoogleAds::V6::Resources::CampaignExperiment
|
3330
3330
|
resource_or_path
|
3331
3331
|
# got a resource path
|
3332
3332
|
when String
|
3333
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3333
|
+
obj = Google::Ads::GoogleAds::V6::Resources::CampaignExperiment.new
|
3334
3334
|
obj.resource_name = resource_or_path
|
3335
3335
|
obj
|
3336
3336
|
else
|
3337
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3337
|
+
unless Google::Ads::GoogleAds::V6::Resources::CampaignExperiment === res
|
3338
3338
|
raise ArgumentError.new(
|
3339
3339
|
"Called #{__method__} with instance of wrong type:"\
|
3340
3340
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3343,37 +3343,37 @@ module Google
|
|
3343
3343
|
end
|
3344
3344
|
end
|
3345
3345
|
|
3346
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3346
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignExperimentOperation.new
|
3347
3347
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3348
3348
|
op["update"] = res
|
3349
3349
|
op
|
3350
3350
|
end
|
3351
3351
|
|
3352
|
-
# A convenience method for creating an
|
3353
|
-
# its "update" field prepopulated with an
|
3352
|
+
# A convenience method for creating an CampaignExtensionSettingOperation instance with
|
3353
|
+
# its "update" field prepopulated with an CampaignExtensionSetting instance, and
|
3354
3354
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3355
3355
|
#
|
3356
|
-
# @overload #
|
3356
|
+
# @overload #campaign_extension_setting(path, &blk)
|
3357
3357
|
# @param path [String] a resource path for the resource to update
|
3358
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3358
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::CampaignExtensionSetting] a new instance of the resource for this update operation, on
|
3359
3359
|
# which fields can be set to update
|
3360
3360
|
#
|
3361
|
-
# @overload #
|
3362
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3361
|
+
# @overload #campaign_extension_setting(resource, &blk)
|
3362
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::CampaignExtensionSetting] a resource instance to update
|
3363
3363
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3364
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3365
|
-
def self.
|
3366
|
-
require "google/ads/google_ads/v6/services/
|
3364
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignExtensionSettingOperation] the operation instance to update the resource
|
3365
|
+
def self.campaign_extension_setting(resource_or_path, &blk)
|
3366
|
+
require "google/ads/google_ads/v6/services/campaign_extension_setting_service_pb"
|
3367
3367
|
res = case resource_or_path
|
3368
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3368
|
+
when Google::Ads::GoogleAds::V6::Resources::CampaignExtensionSetting
|
3369
3369
|
resource_or_path
|
3370
3370
|
# got a resource path
|
3371
3371
|
when String
|
3372
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3372
|
+
obj = Google::Ads::GoogleAds::V6::Resources::CampaignExtensionSetting.new
|
3373
3373
|
obj.resource_name = resource_or_path
|
3374
3374
|
obj
|
3375
3375
|
else
|
3376
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3376
|
+
unless Google::Ads::GoogleAds::V6::Resources::CampaignExtensionSetting === res
|
3377
3377
|
raise ArgumentError.new(
|
3378
3378
|
"Called #{__method__} with instance of wrong type:"\
|
3379
3379
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3382,37 +3382,37 @@ module Google
|
|
3382
3382
|
end
|
3383
3383
|
end
|
3384
3384
|
|
3385
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3385
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignExtensionSettingOperation.new
|
3386
3386
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3387
3387
|
op["update"] = res
|
3388
3388
|
op
|
3389
3389
|
end
|
3390
3390
|
|
3391
|
-
# A convenience method for creating an
|
3392
|
-
# its "update" field prepopulated with an
|
3391
|
+
# A convenience method for creating an CampaignFeedOperation instance with
|
3392
|
+
# its "update" field prepopulated with an CampaignFeed instance, and
|
3393
3393
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3394
3394
|
#
|
3395
|
-
# @overload #
|
3395
|
+
# @overload #campaign_feed(path, &blk)
|
3396
3396
|
# @param path [String] a resource path for the resource to update
|
3397
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3397
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::CampaignFeed] a new instance of the resource for this update operation, on
|
3398
3398
|
# which fields can be set to update
|
3399
3399
|
#
|
3400
|
-
# @overload #
|
3401
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3400
|
+
# @overload #campaign_feed(resource, &blk)
|
3401
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::CampaignFeed] a resource instance to update
|
3402
3402
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3403
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3404
|
-
def self.
|
3405
|
-
require "google/ads/google_ads/v6/services/
|
3403
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignFeedOperation] the operation instance to update the resource
|
3404
|
+
def self.campaign_feed(resource_or_path, &blk)
|
3405
|
+
require "google/ads/google_ads/v6/services/campaign_feed_service_pb"
|
3406
3406
|
res = case resource_or_path
|
3407
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3407
|
+
when Google::Ads::GoogleAds::V6::Resources::CampaignFeed
|
3408
3408
|
resource_or_path
|
3409
3409
|
# got a resource path
|
3410
3410
|
when String
|
3411
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3411
|
+
obj = Google::Ads::GoogleAds::V6::Resources::CampaignFeed.new
|
3412
3412
|
obj.resource_name = resource_or_path
|
3413
3413
|
obj
|
3414
3414
|
else
|
3415
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3415
|
+
unless Google::Ads::GoogleAds::V6::Resources::CampaignFeed === res
|
3416
3416
|
raise ArgumentError.new(
|
3417
3417
|
"Called #{__method__} with instance of wrong type:"\
|
3418
3418
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3421,37 +3421,37 @@ module Google
|
|
3421
3421
|
end
|
3422
3422
|
end
|
3423
3423
|
|
3424
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3424
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignFeedOperation.new
|
3425
3425
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3426
3426
|
op["update"] = res
|
3427
3427
|
op
|
3428
3428
|
end
|
3429
3429
|
|
3430
|
-
# A convenience method for creating an
|
3431
|
-
# its "update" field prepopulated with an
|
3430
|
+
# A convenience method for creating an CampaignOperation instance with
|
3431
|
+
# its "update" field prepopulated with an Campaign instance, and
|
3432
3432
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3433
3433
|
#
|
3434
|
-
# @overload #
|
3434
|
+
# @overload #campaign(path, &blk)
|
3435
3435
|
# @param path [String] a resource path for the resource to update
|
3436
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3436
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::Campaign] a new instance of the resource for this update operation, on
|
3437
3437
|
# which fields can be set to update
|
3438
3438
|
#
|
3439
|
-
# @overload #
|
3440
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3439
|
+
# @overload #campaign(resource, &blk)
|
3440
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::Campaign] a resource instance to update
|
3441
3441
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3442
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3443
|
-
def self.
|
3444
|
-
require "google/ads/google_ads/v6/services/
|
3442
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CampaignOperation] the operation instance to update the resource
|
3443
|
+
def self.campaign(resource_or_path, &blk)
|
3444
|
+
require "google/ads/google_ads/v6/services/campaign_service_pb"
|
3445
3445
|
res = case resource_or_path
|
3446
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3446
|
+
when Google::Ads::GoogleAds::V6::Resources::Campaign
|
3447
3447
|
resource_or_path
|
3448
3448
|
# got a resource path
|
3449
3449
|
when String
|
3450
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3450
|
+
obj = Google::Ads::GoogleAds::V6::Resources::Campaign.new
|
3451
3451
|
obj.resource_name = resource_or_path
|
3452
3452
|
obj
|
3453
3453
|
else
|
3454
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3454
|
+
unless Google::Ads::GoogleAds::V6::Resources::Campaign === res
|
3455
3455
|
raise ArgumentError.new(
|
3456
3456
|
"Called #{__method__} with instance of wrong type:"\
|
3457
3457
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3460,37 +3460,37 @@ module Google
|
|
3460
3460
|
end
|
3461
3461
|
end
|
3462
3462
|
|
3463
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3463
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
|
3464
3464
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3465
3465
|
op["update"] = res
|
3466
3466
|
op
|
3467
3467
|
end
|
3468
3468
|
|
3469
|
-
# A convenience method for creating an
|
3470
|
-
# its "update" field prepopulated with an
|
3469
|
+
# A convenience method for creating an ConversionActionOperation instance with
|
3470
|
+
# its "update" field prepopulated with an ConversionAction instance, and
|
3471
3471
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3472
3472
|
#
|
3473
|
-
# @overload #
|
3473
|
+
# @overload #conversion_action(path, &blk)
|
3474
3474
|
# @param path [String] a resource path for the resource to update
|
3475
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3475
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::ConversionAction] a new instance of the resource for this update operation, on
|
3476
3476
|
# which fields can be set to update
|
3477
3477
|
#
|
3478
|
-
# @overload #
|
3479
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3478
|
+
# @overload #conversion_action(resource, &blk)
|
3479
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::ConversionAction] a resource instance to update
|
3480
3480
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3481
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3482
|
-
def self.
|
3483
|
-
require "google/ads/google_ads/v6/services/
|
3481
|
+
# @return [Google::Ads::GoogleAds::V6::Services::ConversionActionOperation] the operation instance to update the resource
|
3482
|
+
def self.conversion_action(resource_or_path, &blk)
|
3483
|
+
require "google/ads/google_ads/v6/services/conversion_action_service_pb"
|
3484
3484
|
res = case resource_or_path
|
3485
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3485
|
+
when Google::Ads::GoogleAds::V6::Resources::ConversionAction
|
3486
3486
|
resource_or_path
|
3487
3487
|
# got a resource path
|
3488
3488
|
when String
|
3489
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3489
|
+
obj = Google::Ads::GoogleAds::V6::Resources::ConversionAction.new
|
3490
3490
|
obj.resource_name = resource_or_path
|
3491
3491
|
obj
|
3492
3492
|
else
|
3493
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3493
|
+
unless Google::Ads::GoogleAds::V6::Resources::ConversionAction === res
|
3494
3494
|
raise ArgumentError.new(
|
3495
3495
|
"Called #{__method__} with instance of wrong type:"\
|
3496
3496
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3499,37 +3499,37 @@ module Google
|
|
3499
3499
|
end
|
3500
3500
|
end
|
3501
3501
|
|
3502
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3502
|
+
op = Google::Ads::GoogleAds::V6::Services::ConversionActionOperation.new
|
3503
3503
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3504
3504
|
op["update"] = res
|
3505
3505
|
op
|
3506
3506
|
end
|
3507
3507
|
|
3508
|
-
# A convenience method for creating an
|
3509
|
-
# its "update" field prepopulated with an
|
3508
|
+
# A convenience method for creating an CustomerExtensionSettingOperation instance with
|
3509
|
+
# its "update" field prepopulated with an CustomerExtensionSetting instance, and
|
3510
3510
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3511
3511
|
#
|
3512
|
-
# @overload #
|
3512
|
+
# @overload #customer_extension_setting(path, &blk)
|
3513
3513
|
# @param path [String] a resource path for the resource to update
|
3514
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3514
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::CustomerExtensionSetting] a new instance of the resource for this update operation, on
|
3515
3515
|
# which fields can be set to update
|
3516
3516
|
#
|
3517
|
-
# @overload #
|
3518
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3517
|
+
# @overload #customer_extension_setting(resource, &blk)
|
3518
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::CustomerExtensionSetting] a resource instance to update
|
3519
3519
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3520
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3521
|
-
def self.
|
3522
|
-
require "google/ads/google_ads/v6/services/
|
3520
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerExtensionSettingOperation] the operation instance to update the resource
|
3521
|
+
def self.customer_extension_setting(resource_or_path, &blk)
|
3522
|
+
require "google/ads/google_ads/v6/services/customer_extension_setting_service_pb"
|
3523
3523
|
res = case resource_or_path
|
3524
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3524
|
+
when Google::Ads::GoogleAds::V6::Resources::CustomerExtensionSetting
|
3525
3525
|
resource_or_path
|
3526
3526
|
# got a resource path
|
3527
3527
|
when String
|
3528
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3528
|
+
obj = Google::Ads::GoogleAds::V6::Resources::CustomerExtensionSetting.new
|
3529
3529
|
obj.resource_name = resource_or_path
|
3530
3530
|
obj
|
3531
3531
|
else
|
3532
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3532
|
+
unless Google::Ads::GoogleAds::V6::Resources::CustomerExtensionSetting === res
|
3533
3533
|
raise ArgumentError.new(
|
3534
3534
|
"Called #{__method__} with instance of wrong type:"\
|
3535
3535
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3538,37 +3538,37 @@ module Google
|
|
3538
3538
|
end
|
3539
3539
|
end
|
3540
3540
|
|
3541
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3541
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerExtensionSettingOperation.new
|
3542
3542
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3543
3543
|
op["update"] = res
|
3544
3544
|
op
|
3545
3545
|
end
|
3546
3546
|
|
3547
|
-
# A convenience method for creating an
|
3548
|
-
# its "update" field prepopulated with an
|
3547
|
+
# A convenience method for creating an CustomerFeedOperation instance with
|
3548
|
+
# its "update" field prepopulated with an CustomerFeed instance, and
|
3549
3549
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3550
3550
|
#
|
3551
|
-
# @overload #
|
3551
|
+
# @overload #customer_feed(path, &blk)
|
3552
3552
|
# @param path [String] a resource path for the resource to update
|
3553
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3553
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::CustomerFeed] a new instance of the resource for this update operation, on
|
3554
3554
|
# which fields can be set to update
|
3555
3555
|
#
|
3556
|
-
# @overload #
|
3557
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3556
|
+
# @overload #customer_feed(resource, &blk)
|
3557
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::CustomerFeed] a resource instance to update
|
3558
3558
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3559
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3560
|
-
def self.
|
3561
|
-
require "google/ads/google_ads/v6/services/
|
3559
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerFeedOperation] the operation instance to update the resource
|
3560
|
+
def self.customer_feed(resource_or_path, &blk)
|
3561
|
+
require "google/ads/google_ads/v6/services/customer_feed_service_pb"
|
3562
3562
|
res = case resource_or_path
|
3563
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3563
|
+
when Google::Ads::GoogleAds::V6::Resources::CustomerFeed
|
3564
3564
|
resource_or_path
|
3565
3565
|
# got a resource path
|
3566
3566
|
when String
|
3567
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3567
|
+
obj = Google::Ads::GoogleAds::V6::Resources::CustomerFeed.new
|
3568
3568
|
obj.resource_name = resource_or_path
|
3569
3569
|
obj
|
3570
3570
|
else
|
3571
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3571
|
+
unless Google::Ads::GoogleAds::V6::Resources::CustomerFeed === res
|
3572
3572
|
raise ArgumentError.new(
|
3573
3573
|
"Called #{__method__} with instance of wrong type:"\
|
3574
3574
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3577,37 +3577,37 @@ module Google
|
|
3577
3577
|
end
|
3578
3578
|
end
|
3579
3579
|
|
3580
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3580
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerFeedOperation.new
|
3581
3581
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3582
3582
|
op["update"] = res
|
3583
3583
|
op
|
3584
3584
|
end
|
3585
3585
|
|
3586
|
-
# A convenience method for creating an
|
3587
|
-
# its "update" field prepopulated with an
|
3586
|
+
# A convenience method for creating an ExtensionFeedItemOperation instance with
|
3587
|
+
# its "update" field prepopulated with an ExtensionFeedItem instance, and
|
3588
3588
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3589
3589
|
#
|
3590
|
-
# @overload #
|
3590
|
+
# @overload #extension_feed_item(path, &blk)
|
3591
3591
|
# @param path [String] a resource path for the resource to update
|
3592
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3592
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::ExtensionFeedItem] a new instance of the resource for this update operation, on
|
3593
3593
|
# which fields can be set to update
|
3594
3594
|
#
|
3595
|
-
# @overload #
|
3596
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3595
|
+
# @overload #extension_feed_item(resource, &blk)
|
3596
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::ExtensionFeedItem] a resource instance to update
|
3597
3597
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3598
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3599
|
-
def self.
|
3600
|
-
require "google/ads/google_ads/v6/services/
|
3598
|
+
# @return [Google::Ads::GoogleAds::V6::Services::ExtensionFeedItemOperation] the operation instance to update the resource
|
3599
|
+
def self.extension_feed_item(resource_or_path, &blk)
|
3600
|
+
require "google/ads/google_ads/v6/services/extension_feed_item_service_pb"
|
3601
3601
|
res = case resource_or_path
|
3602
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3602
|
+
when Google::Ads::GoogleAds::V6::Resources::ExtensionFeedItem
|
3603
3603
|
resource_or_path
|
3604
3604
|
# got a resource path
|
3605
3605
|
when String
|
3606
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3606
|
+
obj = Google::Ads::GoogleAds::V6::Resources::ExtensionFeedItem.new
|
3607
3607
|
obj.resource_name = resource_or_path
|
3608
3608
|
obj
|
3609
3609
|
else
|
3610
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3610
|
+
unless Google::Ads::GoogleAds::V6::Resources::ExtensionFeedItem === res
|
3611
3611
|
raise ArgumentError.new(
|
3612
3612
|
"Called #{__method__} with instance of wrong type:"\
|
3613
3613
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3616,37 +3616,37 @@ module Google
|
|
3616
3616
|
end
|
3617
3617
|
end
|
3618
3618
|
|
3619
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3619
|
+
op = Google::Ads::GoogleAds::V6::Services::ExtensionFeedItemOperation.new
|
3620
3620
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3621
3621
|
op["update"] = res
|
3622
3622
|
op
|
3623
3623
|
end
|
3624
3624
|
|
3625
|
-
# A convenience method for creating an
|
3626
|
-
# its "update" field prepopulated with an
|
3625
|
+
# A convenience method for creating an FeedItemOperation instance with
|
3626
|
+
# its "update" field prepopulated with an FeedItem instance, and
|
3627
3627
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3628
3628
|
#
|
3629
|
-
# @overload #
|
3629
|
+
# @overload #feed_item(path, &blk)
|
3630
3630
|
# @param path [String] a resource path for the resource to update
|
3631
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3631
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::FeedItem] a new instance of the resource for this update operation, on
|
3632
3632
|
# which fields can be set to update
|
3633
3633
|
#
|
3634
|
-
# @overload #
|
3635
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3634
|
+
# @overload #feed_item(resource, &blk)
|
3635
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::FeedItem] a resource instance to update
|
3636
3636
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3637
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3638
|
-
def self.
|
3639
|
-
require "google/ads/google_ads/v6/services/
|
3637
|
+
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemOperation] the operation instance to update the resource
|
3638
|
+
def self.feed_item(resource_or_path, &blk)
|
3639
|
+
require "google/ads/google_ads/v6/services/feed_item_service_pb"
|
3640
3640
|
res = case resource_or_path
|
3641
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3641
|
+
when Google::Ads::GoogleAds::V6::Resources::FeedItem
|
3642
3642
|
resource_or_path
|
3643
3643
|
# got a resource path
|
3644
3644
|
when String
|
3645
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3645
|
+
obj = Google::Ads::GoogleAds::V6::Resources::FeedItem.new
|
3646
3646
|
obj.resource_name = resource_or_path
|
3647
3647
|
obj
|
3648
3648
|
else
|
3649
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3649
|
+
unless Google::Ads::GoogleAds::V6::Resources::FeedItem === res
|
3650
3650
|
raise ArgumentError.new(
|
3651
3651
|
"Called #{__method__} with instance of wrong type:"\
|
3652
3652
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3655,37 +3655,37 @@ module Google
|
|
3655
3655
|
end
|
3656
3656
|
end
|
3657
3657
|
|
3658
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3658
|
+
op = Google::Ads::GoogleAds::V6::Services::FeedItemOperation.new
|
3659
3659
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3660
3660
|
op["update"] = res
|
3661
3661
|
op
|
3662
3662
|
end
|
3663
3663
|
|
3664
|
-
# A convenience method for creating an
|
3665
|
-
# its "update" field prepopulated with an
|
3664
|
+
# A convenience method for creating an FeedOperation instance with
|
3665
|
+
# its "update" field prepopulated with an Feed instance, and
|
3666
3666
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3667
3667
|
#
|
3668
|
-
# @overload #
|
3668
|
+
# @overload #feed(path, &blk)
|
3669
3669
|
# @param path [String] a resource path for the resource to update
|
3670
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3670
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::Feed] a new instance of the resource for this update operation, on
|
3671
3671
|
# which fields can be set to update
|
3672
3672
|
#
|
3673
|
-
# @overload #
|
3674
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3673
|
+
# @overload #feed(resource, &blk)
|
3674
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::Feed] a resource instance to update
|
3675
3675
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3676
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3677
|
-
def self.
|
3678
|
-
require "google/ads/google_ads/v6/services/
|
3676
|
+
# @return [Google::Ads::GoogleAds::V6::Services::FeedOperation] the operation instance to update the resource
|
3677
|
+
def self.feed(resource_or_path, &blk)
|
3678
|
+
require "google/ads/google_ads/v6/services/feed_service_pb"
|
3679
3679
|
res = case resource_or_path
|
3680
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3680
|
+
when Google::Ads::GoogleAds::V6::Resources::Feed
|
3681
3681
|
resource_or_path
|
3682
3682
|
# got a resource path
|
3683
3683
|
when String
|
3684
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3684
|
+
obj = Google::Ads::GoogleAds::V6::Resources::Feed.new
|
3685
3685
|
obj.resource_name = resource_or_path
|
3686
3686
|
obj
|
3687
3687
|
else
|
3688
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3688
|
+
unless Google::Ads::GoogleAds::V6::Resources::Feed === res
|
3689
3689
|
raise ArgumentError.new(
|
3690
3690
|
"Called #{__method__} with instance of wrong type:"\
|
3691
3691
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3694,37 +3694,37 @@ module Google
|
|
3694
3694
|
end
|
3695
3695
|
end
|
3696
3696
|
|
3697
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3697
|
+
op = Google::Ads::GoogleAds::V6::Services::FeedOperation.new
|
3698
3698
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3699
3699
|
op["update"] = res
|
3700
3700
|
op
|
3701
3701
|
end
|
3702
3702
|
|
3703
|
-
# A convenience method for creating an
|
3704
|
-
# its "update" field prepopulated with an
|
3703
|
+
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
3704
|
+
# its "update" field prepopulated with an KeywordPlanAdGroup instance, and
|
3705
3705
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3706
3706
|
#
|
3707
|
-
# @overload #
|
3707
|
+
# @overload #keyword_plan_ad_group(path, &blk)
|
3708
3708
|
# @param path [String] a resource path for the resource to update
|
3709
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3709
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroup] a new instance of the resource for this update operation, on
|
3710
3710
|
# which fields can be set to update
|
3711
3711
|
#
|
3712
|
-
# @overload #
|
3713
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3712
|
+
# @overload #keyword_plan_ad_group(resource, &blk)
|
3713
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroup] a resource instance to update
|
3714
3714
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3715
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3716
|
-
def self.
|
3717
|
-
require "google/ads/google_ads/v6/services/
|
3715
|
+
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupOperation] the operation instance to update the resource
|
3716
|
+
def self.keyword_plan_ad_group(resource_or_path, &blk)
|
3717
|
+
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_service_pb"
|
3718
3718
|
res = case resource_or_path
|
3719
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3719
|
+
when Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroup
|
3720
3720
|
resource_or_path
|
3721
3721
|
# got a resource path
|
3722
3722
|
when String
|
3723
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3723
|
+
obj = Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroup.new
|
3724
3724
|
obj.resource_name = resource_or_path
|
3725
3725
|
obj
|
3726
3726
|
else
|
3727
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3727
|
+
unless Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroup === res
|
3728
3728
|
raise ArgumentError.new(
|
3729
3729
|
"Called #{__method__} with instance of wrong type:"\
|
3730
3730
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3733,37 +3733,37 @@ module Google
|
|
3733
3733
|
end
|
3734
3734
|
end
|
3735
3735
|
|
3736
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3736
|
+
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupOperation.new
|
3737
3737
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3738
3738
|
op["update"] = res
|
3739
3739
|
op
|
3740
3740
|
end
|
3741
3741
|
|
3742
|
-
# A convenience method for creating an
|
3743
|
-
# its "update" field prepopulated with an
|
3742
|
+
# A convenience method for creating an KeywordPlanCampaignKeywordOperation instance with
|
3743
|
+
# its "update" field prepopulated with an KeywordPlanCampaignKeyword instance, and
|
3744
3744
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3745
3745
|
#
|
3746
|
-
# @overload #
|
3746
|
+
# @overload #keyword_plan_campaign_keyword(path, &blk)
|
3747
3747
|
# @param path [String] a resource path for the resource to update
|
3748
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3748
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::KeywordPlanCampaignKeyword] a new instance of the resource for this update operation, on
|
3749
3749
|
# which fields can be set to update
|
3750
3750
|
#
|
3751
|
-
# @overload #
|
3752
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3751
|
+
# @overload #keyword_plan_campaign_keyword(resource, &blk)
|
3752
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::KeywordPlanCampaignKeyword] a resource instance to update
|
3753
3753
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3754
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3755
|
-
def self.
|
3756
|
-
require "google/ads/google_ads/v6/services/
|
3754
|
+
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignKeywordOperation] the operation instance to update the resource
|
3755
|
+
def self.keyword_plan_campaign_keyword(resource_or_path, &blk)
|
3756
|
+
require "google/ads/google_ads/v6/services/keyword_plan_campaign_keyword_service_pb"
|
3757
3757
|
res = case resource_or_path
|
3758
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3758
|
+
when Google::Ads::GoogleAds::V6::Resources::KeywordPlanCampaignKeyword
|
3759
3759
|
resource_or_path
|
3760
3760
|
# got a resource path
|
3761
3761
|
when String
|
3762
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3762
|
+
obj = Google::Ads::GoogleAds::V6::Resources::KeywordPlanCampaignKeyword.new
|
3763
3763
|
obj.resource_name = resource_or_path
|
3764
3764
|
obj
|
3765
3765
|
else
|
3766
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3766
|
+
unless Google::Ads::GoogleAds::V6::Resources::KeywordPlanCampaignKeyword === res
|
3767
3767
|
raise ArgumentError.new(
|
3768
3768
|
"Called #{__method__} with instance of wrong type:"\
|
3769
3769
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3772,37 +3772,37 @@ module Google
|
|
3772
3772
|
end
|
3773
3773
|
end
|
3774
3774
|
|
3775
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3775
|
+
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignKeywordOperation.new
|
3776
3776
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3777
3777
|
op["update"] = res
|
3778
3778
|
op
|
3779
3779
|
end
|
3780
3780
|
|
3781
|
-
# A convenience method for creating an
|
3782
|
-
# its "update" field prepopulated with an
|
3781
|
+
# A convenience method for creating an KeywordPlanCampaignOperation instance with
|
3782
|
+
# its "update" field prepopulated with an KeywordPlanCampaign instance, and
|
3783
3783
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3784
3784
|
#
|
3785
|
-
# @overload #
|
3785
|
+
# @overload #keyword_plan_campaign(path, &blk)
|
3786
3786
|
# @param path [String] a resource path for the resource to update
|
3787
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3787
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::KeywordPlanCampaign] a new instance of the resource for this update operation, on
|
3788
3788
|
# which fields can be set to update
|
3789
3789
|
#
|
3790
|
-
# @overload #
|
3791
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3790
|
+
# @overload #keyword_plan_campaign(resource, &blk)
|
3791
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::KeywordPlanCampaign] a resource instance to update
|
3792
3792
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3793
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3794
|
-
def self.
|
3795
|
-
require "google/ads/google_ads/v6/services/
|
3793
|
+
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignOperation] the operation instance to update the resource
|
3794
|
+
def self.keyword_plan_campaign(resource_or_path, &blk)
|
3795
|
+
require "google/ads/google_ads/v6/services/keyword_plan_campaign_service_pb"
|
3796
3796
|
res = case resource_or_path
|
3797
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3797
|
+
when Google::Ads::GoogleAds::V6::Resources::KeywordPlanCampaign
|
3798
3798
|
resource_or_path
|
3799
3799
|
# got a resource path
|
3800
3800
|
when String
|
3801
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3801
|
+
obj = Google::Ads::GoogleAds::V6::Resources::KeywordPlanCampaign.new
|
3802
3802
|
obj.resource_name = resource_or_path
|
3803
3803
|
obj
|
3804
3804
|
else
|
3805
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3805
|
+
unless Google::Ads::GoogleAds::V6::Resources::KeywordPlanCampaign === res
|
3806
3806
|
raise ArgumentError.new(
|
3807
3807
|
"Called #{__method__} with instance of wrong type:"\
|
3808
3808
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3811,37 +3811,37 @@ module Google
|
|
3811
3811
|
end
|
3812
3812
|
end
|
3813
3813
|
|
3814
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3814
|
+
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignOperation.new
|
3815
3815
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3816
3816
|
op["update"] = res
|
3817
3817
|
op
|
3818
3818
|
end
|
3819
3819
|
|
3820
|
-
# A convenience method for creating an
|
3821
|
-
# its "update" field prepopulated with an
|
3820
|
+
# A convenience method for creating an KeywordPlanOperation instance with
|
3821
|
+
# its "update" field prepopulated with an KeywordPlan instance, and
|
3822
3822
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3823
3823
|
#
|
3824
|
-
# @overload #
|
3824
|
+
# @overload #keyword_plan(path, &blk)
|
3825
3825
|
# @param path [String] a resource path for the resource to update
|
3826
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3826
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::KeywordPlan] a new instance of the resource for this update operation, on
|
3827
3827
|
# which fields can be set to update
|
3828
3828
|
#
|
3829
|
-
# @overload #
|
3830
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3829
|
+
# @overload #keyword_plan(resource, &blk)
|
3830
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::KeywordPlan] a resource instance to update
|
3831
3831
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3832
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3833
|
-
def self.
|
3834
|
-
require "google/ads/google_ads/v6/services/
|
3832
|
+
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanOperation] the operation instance to update the resource
|
3833
|
+
def self.keyword_plan(resource_or_path, &blk)
|
3834
|
+
require "google/ads/google_ads/v6/services/keyword_plan_service_pb"
|
3835
3835
|
res = case resource_or_path
|
3836
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3836
|
+
when Google::Ads::GoogleAds::V6::Resources::KeywordPlan
|
3837
3837
|
resource_or_path
|
3838
3838
|
# got a resource path
|
3839
3839
|
when String
|
3840
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3840
|
+
obj = Google::Ads::GoogleAds::V6::Resources::KeywordPlan.new
|
3841
3841
|
obj.resource_name = resource_or_path
|
3842
3842
|
obj
|
3843
3843
|
else
|
3844
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3844
|
+
unless Google::Ads::GoogleAds::V6::Resources::KeywordPlan === res
|
3845
3845
|
raise ArgumentError.new(
|
3846
3846
|
"Called #{__method__} with instance of wrong type:"\
|
3847
3847
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3850,37 +3850,37 @@ module Google
|
|
3850
3850
|
end
|
3851
3851
|
end
|
3852
3852
|
|
3853
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3853
|
+
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanOperation.new
|
3854
3854
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3855
3855
|
op["update"] = res
|
3856
3856
|
op
|
3857
3857
|
end
|
3858
3858
|
|
3859
|
-
# A convenience method for creating an
|
3860
|
-
# its "update" field prepopulated with an
|
3859
|
+
# A convenience method for creating an RemarketingActionOperation instance with
|
3860
|
+
# its "update" field prepopulated with an RemarketingAction instance, and
|
3861
3861
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3862
3862
|
#
|
3863
|
-
# @overload #
|
3863
|
+
# @overload #remarketing_action(path, &blk)
|
3864
3864
|
# @param path [String] a resource path for the resource to update
|
3865
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3865
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::RemarketingAction] a new instance of the resource for this update operation, on
|
3866
3866
|
# which fields can be set to update
|
3867
3867
|
#
|
3868
|
-
# @overload #
|
3869
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3868
|
+
# @overload #remarketing_action(resource, &blk)
|
3869
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::RemarketingAction] a resource instance to update
|
3870
3870
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3871
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3872
|
-
def self.
|
3873
|
-
require "google/ads/google_ads/v6/services/
|
3871
|
+
# @return [Google::Ads::GoogleAds::V6::Services::RemarketingActionOperation] the operation instance to update the resource
|
3872
|
+
def self.remarketing_action(resource_or_path, &blk)
|
3873
|
+
require "google/ads/google_ads/v6/services/remarketing_action_service_pb"
|
3874
3874
|
res = case resource_or_path
|
3875
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3875
|
+
when Google::Ads::GoogleAds::V6::Resources::RemarketingAction
|
3876
3876
|
resource_or_path
|
3877
3877
|
# got a resource path
|
3878
3878
|
when String
|
3879
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3879
|
+
obj = Google::Ads::GoogleAds::V6::Resources::RemarketingAction.new
|
3880
3880
|
obj.resource_name = resource_or_path
|
3881
3881
|
obj
|
3882
3882
|
else
|
3883
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3883
|
+
unless Google::Ads::GoogleAds::V6::Resources::RemarketingAction === res
|
3884
3884
|
raise ArgumentError.new(
|
3885
3885
|
"Called #{__method__} with instance of wrong type:"\
|
3886
3886
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3889,37 +3889,37 @@ module Google
|
|
3889
3889
|
end
|
3890
3890
|
end
|
3891
3891
|
|
3892
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3892
|
+
op = Google::Ads::GoogleAds::V6::Services::RemarketingActionOperation.new
|
3893
3893
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3894
3894
|
op["update"] = res
|
3895
3895
|
op
|
3896
3896
|
end
|
3897
3897
|
|
3898
|
-
# A convenience method for creating an
|
3899
|
-
# its "update" field prepopulated with an
|
3898
|
+
# A convenience method for creating an AccountLinkOperation instance with
|
3899
|
+
# its "update" field prepopulated with an AccountLink instance, and
|
3900
3900
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3901
3901
|
#
|
3902
|
-
# @overload #
|
3902
|
+
# @overload #account_link(path, &blk)
|
3903
3903
|
# @param path [String] a resource path for the resource to update
|
3904
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3904
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::AccountLink] a new instance of the resource for this update operation, on
|
3905
3905
|
# which fields can be set to update
|
3906
3906
|
#
|
3907
|
-
# @overload #
|
3908
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3907
|
+
# @overload #account_link(resource, &blk)
|
3908
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::AccountLink] a resource instance to update
|
3909
3909
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3910
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3911
|
-
def self.
|
3912
|
-
require "google/ads/google_ads/v6/services/
|
3910
|
+
# @return [Google::Ads::GoogleAds::V6::Services::AccountLinkOperation] the operation instance to update the resource
|
3911
|
+
def self.account_link(resource_or_path, &blk)
|
3912
|
+
require "google/ads/google_ads/v6/services/account_link_service_pb"
|
3913
3913
|
res = case resource_or_path
|
3914
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3914
|
+
when Google::Ads::GoogleAds::V6::Resources::AccountLink
|
3915
3915
|
resource_or_path
|
3916
3916
|
# got a resource path
|
3917
3917
|
when String
|
3918
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3918
|
+
obj = Google::Ads::GoogleAds::V6::Resources::AccountLink.new
|
3919
3919
|
obj.resource_name = resource_or_path
|
3920
3920
|
obj
|
3921
3921
|
else
|
3922
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
3922
|
+
unless Google::Ads::GoogleAds::V6::Resources::AccountLink === res
|
3923
3923
|
raise ArgumentError.new(
|
3924
3924
|
"Called #{__method__} with instance of wrong type:"\
|
3925
3925
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3928,7 +3928,7 @@ module Google
|
|
3928
3928
|
end
|
3929
3929
|
end
|
3930
3930
|
|
3931
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
3931
|
+
op = Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
|
3932
3932
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3933
3933
|
op["update"] = res
|
3934
3934
|
op
|
@@ -3973,31 +3973,31 @@ module Google
|
|
3973
3973
|
op
|
3974
3974
|
end
|
3975
3975
|
|
3976
|
-
# A convenience method for creating an
|
3977
|
-
# its "update" field prepopulated with an
|
3976
|
+
# A convenience method for creating an CustomerUserAccessOperation instance with
|
3977
|
+
# its "update" field prepopulated with an CustomerUserAccess instance, and
|
3978
3978
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3979
3979
|
#
|
3980
|
-
# @overload #
|
3980
|
+
# @overload #customer_user_access(path, &blk)
|
3981
3981
|
# @param path [String] a resource path for the resource to update
|
3982
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
3982
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::CustomerUserAccess] a new instance of the resource for this update operation, on
|
3983
3983
|
# which fields can be set to update
|
3984
3984
|
#
|
3985
|
-
# @overload #
|
3986
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
3985
|
+
# @overload #customer_user_access(resource, &blk)
|
3986
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::CustomerUserAccess] a resource instance to update
|
3987
3987
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3988
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
3989
|
-
def self.
|
3990
|
-
require "google/ads/google_ads/v6/services/
|
3988
|
+
# @return [Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation] the operation instance to update the resource
|
3989
|
+
def self.customer_user_access(resource_or_path, &blk)
|
3990
|
+
require "google/ads/google_ads/v6/services/customer_user_access_service_pb"
|
3991
3991
|
res = case resource_or_path
|
3992
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
3992
|
+
when Google::Ads::GoogleAds::V6::Resources::CustomerUserAccess
|
3993
3993
|
resource_or_path
|
3994
3994
|
# got a resource path
|
3995
3995
|
when String
|
3996
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
3996
|
+
obj = Google::Ads::GoogleAds::V6::Resources::CustomerUserAccess.new
|
3997
3997
|
obj.resource_name = resource_or_path
|
3998
3998
|
obj
|
3999
3999
|
else
|
4000
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
4000
|
+
unless Google::Ads::GoogleAds::V6::Resources::CustomerUserAccess === res
|
4001
4001
|
raise ArgumentError.new(
|
4002
4002
|
"Called #{__method__} with instance of wrong type:"\
|
4003
4003
|
" #{res.class} want #{operation.update_class}"\
|
@@ -4006,37 +4006,37 @@ module Google
|
|
4006
4006
|
end
|
4007
4007
|
end
|
4008
4008
|
|
4009
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4009
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
|
4010
4010
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
4011
4011
|
op["update"] = res
|
4012
4012
|
op
|
4013
4013
|
end
|
4014
4014
|
|
4015
|
-
# A convenience method for creating an
|
4016
|
-
# its "update" field prepopulated with an
|
4015
|
+
# A convenience method for creating an MerchantCenterLinkOperation instance with
|
4016
|
+
# its "update" field prepopulated with an MerchantCenterLink instance, and
|
4017
4017
|
# its "update_mask" field populated as needed to send the updates to the API.
|
4018
4018
|
#
|
4019
|
-
# @overload #
|
4019
|
+
# @overload #merchant_center_link(path, &blk)
|
4020
4020
|
# @param path [String] a resource path for the resource to update
|
4021
|
-
# @yield [Google::Ads::GoogleAds::V6::Resources::
|
4021
|
+
# @yield [Google::Ads::GoogleAds::V6::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on
|
4022
4022
|
# which fields can be set to update
|
4023
4023
|
#
|
4024
|
-
# @overload #
|
4025
|
-
# @param resource [Google::Ads::GoogleAds::V6::Resources::
|
4024
|
+
# @overload #merchant_center_link(resource, &blk)
|
4025
|
+
# @param resource [Google::Ads::GoogleAds::V6::Resources::MerchantCenterLink] a resource instance to update
|
4026
4026
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4027
|
-
# @return [Google::Ads::GoogleAds::V6::Services::
|
4028
|
-
def self.
|
4029
|
-
require "google/ads/google_ads/v6/services/
|
4027
|
+
# @return [Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation] the operation instance to update the resource
|
4028
|
+
def self.merchant_center_link(resource_or_path, &blk)
|
4029
|
+
require "google/ads/google_ads/v6/services/merchant_center_link_service_pb"
|
4030
4030
|
res = case resource_or_path
|
4031
|
-
when Google::Ads::GoogleAds::V6::Resources::
|
4031
|
+
when Google::Ads::GoogleAds::V6::Resources::MerchantCenterLink
|
4032
4032
|
resource_or_path
|
4033
4033
|
# got a resource path
|
4034
4034
|
when String
|
4035
|
-
obj = Google::Ads::GoogleAds::V6::Resources::
|
4035
|
+
obj = Google::Ads::GoogleAds::V6::Resources::MerchantCenterLink.new
|
4036
4036
|
obj.resource_name = resource_or_path
|
4037
4037
|
obj
|
4038
4038
|
else
|
4039
|
-
unless Google::Ads::GoogleAds::V6::Resources::
|
4039
|
+
unless Google::Ads::GoogleAds::V6::Resources::MerchantCenterLink === res
|
4040
4040
|
raise ArgumentError.new(
|
4041
4041
|
"Called #{__method__} with instance of wrong type:"\
|
4042
4042
|
" #{res.class} want #{operation.update_class}"\
|
@@ -4045,7 +4045,7 @@ module Google
|
|
4045
4045
|
end
|
4046
4046
|
end
|
4047
4047
|
|
4048
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4048
|
+
op = Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
|
4049
4049
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
4050
4050
|
op["update"] = res
|
4051
4051
|
op
|
@@ -4053,6 +4053,17 @@ module Google
|
|
4053
4053
|
end
|
4054
4054
|
|
4055
4055
|
module RemoveResource
|
4056
|
+
# A convenience method for creating an FeedAttributeOperation instance with
|
4057
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4058
|
+
#
|
4059
|
+
# @param path [String] the resource name of the resource to delete.
|
4060
|
+
def self.feed_attribute(path)
|
4061
|
+
require "google/ads/google_ads/v6/resources/feed_pb"
|
4062
|
+
op = Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation.new
|
4063
|
+
op["remove"] = path
|
4064
|
+
op
|
4065
|
+
end
|
4066
|
+
|
4056
4067
|
# A convenience method for creating an TargetRestrictionOperation instance with
|
4057
4068
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4058
4069
|
#
|
@@ -4064,13 +4075,68 @@ module Google
|
|
4064
4075
|
op
|
4065
4076
|
end
|
4066
4077
|
|
4067
|
-
# A convenience method for creating an
|
4078
|
+
# A convenience method for creating an CustomerClientLinkOperation instance with
|
4068
4079
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4069
4080
|
#
|
4070
4081
|
# @param path [String] the resource name of the resource to delete.
|
4071
|
-
def self.
|
4072
|
-
require "google/ads/google_ads/v6/
|
4073
|
-
op = Google::Ads::GoogleAds::V6::
|
4082
|
+
def self.customer_client_link(path)
|
4083
|
+
require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
|
4084
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
|
4085
|
+
op["remove"] = path
|
4086
|
+
op
|
4087
|
+
end
|
4088
|
+
|
4089
|
+
# A convenience method for creating an CustomInterestOperation instance with
|
4090
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4091
|
+
#
|
4092
|
+
# @param path [String] the resource name of the resource to delete.
|
4093
|
+
def self.custom_interest(path)
|
4094
|
+
require "google/ads/google_ads/v6/services/custom_interest_service_pb"
|
4095
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
|
4096
|
+
op["remove"] = path
|
4097
|
+
op
|
4098
|
+
end
|
4099
|
+
|
4100
|
+
# A convenience method for creating an CustomerNegativeCriterionOperation instance with
|
4101
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4102
|
+
#
|
4103
|
+
# @param path [String] the resource name of the resource to delete.
|
4104
|
+
def self.customer_negative_criterion(path)
|
4105
|
+
require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
|
4106
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
|
4107
|
+
op["remove"] = path
|
4108
|
+
op
|
4109
|
+
end
|
4110
|
+
|
4111
|
+
# A convenience method for creating an SharedCriterionOperation instance with
|
4112
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4113
|
+
#
|
4114
|
+
# @param path [String] the resource name of the resource to delete.
|
4115
|
+
def self.shared_criterion(path)
|
4116
|
+
require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
|
4117
|
+
op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
|
4118
|
+
op["remove"] = path
|
4119
|
+
op
|
4120
|
+
end
|
4121
|
+
|
4122
|
+
# A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
|
4123
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4124
|
+
#
|
4125
|
+
# @param path [String] the resource name of the resource to delete.
|
4126
|
+
def self.keyword_plan_ad_group_keyword(path)
|
4127
|
+
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
|
4128
|
+
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
|
4129
|
+
op["remove"] = path
|
4130
|
+
op
|
4131
|
+
end
|
4132
|
+
|
4133
|
+
# A convenience method for creating an FeedMappingOperation instance with
|
4134
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4135
|
+
#
|
4136
|
+
# @param path [String] the resource name of the resource to delete.
|
4137
|
+
def self.feed_mapping(path)
|
4138
|
+
require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
|
4139
|
+
op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
|
4074
4140
|
op["remove"] = path
|
4075
4141
|
op
|
4076
4142
|
end
|
@@ -4086,24 +4152,68 @@ module Google
|
|
4086
4152
|
op
|
4087
4153
|
end
|
4088
4154
|
|
4089
|
-
# A convenience method for creating an
|
4155
|
+
# A convenience method for creating an AdGroupOperation instance with
|
4090
4156
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4091
4157
|
#
|
4092
4158
|
# @param path [String] the resource name of the resource to delete.
|
4093
|
-
def self.
|
4094
|
-
require "google/ads/google_ads/v6/services/
|
4095
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4159
|
+
def self.ad_group(path)
|
4160
|
+
require "google/ads/google_ads/v6/services/ad_group_service_pb"
|
4161
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
|
4096
4162
|
op["remove"] = path
|
4097
4163
|
op
|
4098
4164
|
end
|
4099
4165
|
|
4100
|
-
# A convenience method for creating an
|
4166
|
+
# A convenience method for creating an FeedItemSetOperation instance with
|
4101
4167
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4102
4168
|
#
|
4103
4169
|
# @param path [String] the resource name of the resource to delete.
|
4104
|
-
def self.
|
4105
|
-
require "google/ads/google_ads/v6/services/
|
4106
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4170
|
+
def self.feed_item_set(path)
|
4171
|
+
require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
|
4172
|
+
op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
|
4173
|
+
op["remove"] = path
|
4174
|
+
op
|
4175
|
+
end
|
4176
|
+
|
4177
|
+
# A convenience method for creating an CampaignBidModifierOperation instance with
|
4178
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4179
|
+
#
|
4180
|
+
# @param path [String] the resource name of the resource to delete.
|
4181
|
+
def self.campaign_bid_modifier(path)
|
4182
|
+
require "google/ads/google_ads/v6/services/campaign_bid_modifier_service_pb"
|
4183
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
|
4184
|
+
op["remove"] = path
|
4185
|
+
op
|
4186
|
+
end
|
4187
|
+
|
4188
|
+
# A convenience method for creating an CustomerManagerLinkOperation instance with
|
4189
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4190
|
+
#
|
4191
|
+
# @param path [String] the resource name of the resource to delete.
|
4192
|
+
def self.customer_manager_link(path)
|
4193
|
+
require "google/ads/google_ads/v6/services/customer_manager_link_service_pb"
|
4194
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
|
4195
|
+
op["remove"] = path
|
4196
|
+
op
|
4197
|
+
end
|
4198
|
+
|
4199
|
+
# A convenience method for creating an CampaignDraftOperation instance with
|
4200
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4201
|
+
#
|
4202
|
+
# @param path [String] the resource name of the resource to delete.
|
4203
|
+
def self.campaign_draft(path)
|
4204
|
+
require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
|
4205
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
|
4206
|
+
op["remove"] = path
|
4207
|
+
op
|
4208
|
+
end
|
4209
|
+
|
4210
|
+
# A convenience method for creating an UserListOperation instance with
|
4211
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4212
|
+
#
|
4213
|
+
# @param path [String] the resource name of the resource to delete.
|
4214
|
+
def self.user_list(path)
|
4215
|
+
require "google/ads/google_ads/v6/services/user_list_service_pb"
|
4216
|
+
op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
|
4107
4217
|
op["remove"] = path
|
4108
4218
|
op
|
4109
4219
|
end
|
@@ -4119,46 +4229,46 @@ module Google
|
|
4119
4229
|
op
|
4120
4230
|
end
|
4121
4231
|
|
4122
|
-
# A convenience method for creating an
|
4232
|
+
# A convenience method for creating an SharedSetOperation instance with
|
4123
4233
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4124
4234
|
#
|
4125
4235
|
# @param path [String] the resource name of the resource to delete.
|
4126
|
-
def self.
|
4127
|
-
require "google/ads/google_ads/v6/services/
|
4128
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4236
|
+
def self.shared_set(path)
|
4237
|
+
require "google/ads/google_ads/v6/services/shared_set_service_pb"
|
4238
|
+
op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
|
4129
4239
|
op["remove"] = path
|
4130
4240
|
op
|
4131
4241
|
end
|
4132
4242
|
|
4133
|
-
# A convenience method for creating an
|
4243
|
+
# A convenience method for creating an AdGroupCriterionLabelOperation instance with
|
4134
4244
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4135
4245
|
#
|
4136
4246
|
# @param path [String] the resource name of the resource to delete.
|
4137
|
-
def self.
|
4138
|
-
require "google/ads/google_ads/v6/services/
|
4139
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4247
|
+
def self.ad_group_criterion_label(path)
|
4248
|
+
require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
|
4249
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
|
4140
4250
|
op["remove"] = path
|
4141
4251
|
op
|
4142
4252
|
end
|
4143
4253
|
|
4144
|
-
# A convenience method for creating an
|
4254
|
+
# A convenience method for creating an LabelOperation instance with
|
4145
4255
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4146
4256
|
#
|
4147
4257
|
# @param path [String] the resource name of the resource to delete.
|
4148
|
-
def self.
|
4149
|
-
require "google/ads/google_ads/v6/services/
|
4150
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4258
|
+
def self.label(path)
|
4259
|
+
require "google/ads/google_ads/v6/services/label_service_pb"
|
4260
|
+
op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
|
4151
4261
|
op["remove"] = path
|
4152
4262
|
op
|
4153
4263
|
end
|
4154
4264
|
|
4155
|
-
# A convenience method for creating an
|
4265
|
+
# A convenience method for creating an AdGroupAdLabelOperation instance with
|
4156
4266
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4157
4267
|
#
|
4158
4268
|
# @param path [String] the resource name of the resource to delete.
|
4159
|
-
def self.
|
4160
|
-
require "google/ads/google_ads/v6/services/
|
4161
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4269
|
+
def self.ad_group_ad_label(path)
|
4270
|
+
require "google/ads/google_ads/v6/services/ad_group_ad_label_service_pb"
|
4271
|
+
op = Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
|
4162
4272
|
op["remove"] = path
|
4163
4273
|
op
|
4164
4274
|
end
|
@@ -4185,17 +4295,6 @@ module Google
|
|
4185
4295
|
op
|
4186
4296
|
end
|
4187
4297
|
|
4188
|
-
# A convenience method for creating an AdGroupCriterionLabelOperation instance with
|
4189
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4190
|
-
#
|
4191
|
-
# @param path [String] the resource name of the resource to delete.
|
4192
|
-
def self.ad_group_criterion_label(path)
|
4193
|
-
require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
|
4194
|
-
op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
|
4195
|
-
op["remove"] = path
|
4196
|
-
op
|
4197
|
-
end
|
4198
|
-
|
4199
4298
|
# A convenience method for creating an AdGroupCriterionOperation instance with
|
4200
4299
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4201
4300
|
#
|
@@ -4273,6 +4372,17 @@ module Google
|
|
4273
4372
|
op
|
4274
4373
|
end
|
4275
4374
|
|
4375
|
+
# A convenience method for creating an BiddingStrategyOperation instance with
|
4376
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4377
|
+
#
|
4378
|
+
# @param path [String] the resource name of the resource to delete.
|
4379
|
+
def self.bidding_strategy(path)
|
4380
|
+
require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
|
4381
|
+
op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
|
4382
|
+
op["remove"] = path
|
4383
|
+
op
|
4384
|
+
end
|
4385
|
+
|
4276
4386
|
# A convenience method for creating an CampaignAssetOperation instance with
|
4277
4387
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4278
4388
|
#
|
@@ -4284,24 +4394,24 @@ module Google
|
|
4284
4394
|
op
|
4285
4395
|
end
|
4286
4396
|
|
4287
|
-
# A convenience method for creating an
|
4397
|
+
# A convenience method for creating an CampaignBudgetOperation instance with
|
4288
4398
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4289
4399
|
#
|
4290
4400
|
# @param path [String] the resource name of the resource to delete.
|
4291
|
-
def self.
|
4292
|
-
require "google/ads/google_ads/v6/services/
|
4293
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4401
|
+
def self.campaign_budget(path)
|
4402
|
+
require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
|
4403
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
|
4294
4404
|
op["remove"] = path
|
4295
4405
|
op
|
4296
4406
|
end
|
4297
4407
|
|
4298
|
-
# A convenience method for creating an
|
4408
|
+
# A convenience method for creating an CampaignCriterionOperation instance with
|
4299
4409
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4300
4410
|
#
|
4301
4411
|
# @param path [String] the resource name of the resource to delete.
|
4302
|
-
def self.
|
4303
|
-
require "google/ads/google_ads/v6/services/
|
4304
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4412
|
+
def self.campaign_criterion(path)
|
4413
|
+
require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
|
4414
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
|
4305
4415
|
op["remove"] = path
|
4306
4416
|
op
|
4307
4417
|
end
|
@@ -4350,6 +4460,17 @@ module Google
|
|
4350
4460
|
op
|
4351
4461
|
end
|
4352
4462
|
|
4463
|
+
# A convenience method for creating an CampaignOperation instance with
|
4464
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4465
|
+
#
|
4466
|
+
# @param path [String] the resource name of the resource to delete.
|
4467
|
+
def self.campaign(path)
|
4468
|
+
require "google/ads/google_ads/v6/services/campaign_service_pb"
|
4469
|
+
op = Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
|
4470
|
+
op["remove"] = path
|
4471
|
+
op
|
4472
|
+
end
|
4473
|
+
|
4353
4474
|
# A convenience method for creating an CampaignSharedSetOperation instance with
|
4354
4475
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4355
4476
|
#
|
@@ -4405,17 +4526,6 @@ module Google
|
|
4405
4526
|
op
|
4406
4527
|
end
|
4407
4528
|
|
4408
|
-
# A convenience method for creating an CustomerNegativeCriterionOperation instance with
|
4409
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4410
|
-
#
|
4411
|
-
# @param path [String] the resource name of the resource to delete.
|
4412
|
-
def self.customer_negative_criterion(path)
|
4413
|
-
require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
|
4414
|
-
op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
|
4415
|
-
op["remove"] = path
|
4416
|
-
op
|
4417
|
-
end
|
4418
|
-
|
4419
4529
|
# A convenience method for creating an ExtensionFeedItemOperation instance with
|
4420
4530
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4421
4531
|
#
|
@@ -4438,17 +4548,6 @@ module Google
|
|
4438
4548
|
op
|
4439
4549
|
end
|
4440
4550
|
|
4441
|
-
# A convenience method for creating an FeedItemSetOperation instance with
|
4442
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4443
|
-
#
|
4444
|
-
# @param path [String] the resource name of the resource to delete.
|
4445
|
-
def self.feed_item_set(path)
|
4446
|
-
require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
|
4447
|
-
op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
|
4448
|
-
op["remove"] = path
|
4449
|
-
op
|
4450
|
-
end
|
4451
|
-
|
4452
4551
|
# A convenience method for creating an FeedItemTargetOperation instance with
|
4453
4552
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4454
4553
|
#
|
@@ -4460,17 +4559,6 @@ module Google
|
|
4460
4559
|
op
|
4461
4560
|
end
|
4462
4561
|
|
4463
|
-
# A convenience method for creating an FeedMappingOperation instance with
|
4464
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4465
|
-
#
|
4466
|
-
# @param path [String] the resource name of the resource to delete.
|
4467
|
-
def self.feed_mapping(path)
|
4468
|
-
require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
|
4469
|
-
op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
|
4470
|
-
op["remove"] = path
|
4471
|
-
op
|
4472
|
-
end
|
4473
|
-
|
4474
4562
|
# A convenience method for creating an FeedOperation instance with
|
4475
4563
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4476
4564
|
#
|
@@ -4482,17 +4570,6 @@ module Google
|
|
4482
4570
|
op
|
4483
4571
|
end
|
4484
4572
|
|
4485
|
-
# A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
|
4486
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4487
|
-
#
|
4488
|
-
# @param path [String] the resource name of the resource to delete.
|
4489
|
-
def self.keyword_plan_ad_group_keyword(path)
|
4490
|
-
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
|
4491
|
-
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
|
4492
|
-
op["remove"] = path
|
4493
|
-
op
|
4494
|
-
end
|
4495
|
-
|
4496
4573
|
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
4497
4574
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4498
4575
|
#
|
@@ -4537,17 +4614,6 @@ module Google
|
|
4537
4614
|
op
|
4538
4615
|
end
|
4539
4616
|
|
4540
|
-
# A convenience method for creating an LabelOperation instance with
|
4541
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4542
|
-
#
|
4543
|
-
# @param path [String] the resource name of the resource to delete.
|
4544
|
-
def self.label(path)
|
4545
|
-
require "google/ads/google_ads/v6/services/label_service_pb"
|
4546
|
-
op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
|
4547
|
-
op["remove"] = path
|
4548
|
-
op
|
4549
|
-
end
|
4550
|
-
|
4551
4617
|
# A convenience method for creating an MediaFileOperation instance with
|
4552
4618
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4553
4619
|
#
|
@@ -4570,39 +4636,6 @@ module Google
|
|
4570
4636
|
op
|
4571
4637
|
end
|
4572
4638
|
|
4573
|
-
# A convenience method for creating an SharedCriterionOperation instance with
|
4574
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4575
|
-
#
|
4576
|
-
# @param path [String] the resource name of the resource to delete.
|
4577
|
-
def self.shared_criterion(path)
|
4578
|
-
require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
|
4579
|
-
op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
|
4580
|
-
op["remove"] = path
|
4581
|
-
op
|
4582
|
-
end
|
4583
|
-
|
4584
|
-
# A convenience method for creating an SharedSetOperation instance with
|
4585
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4586
|
-
#
|
4587
|
-
# @param path [String] the resource name of the resource to delete.
|
4588
|
-
def self.shared_set(path)
|
4589
|
-
require "google/ads/google_ads/v6/services/shared_set_service_pb"
|
4590
|
-
op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
|
4591
|
-
op["remove"] = path
|
4592
|
-
op
|
4593
|
-
end
|
4594
|
-
|
4595
|
-
# A convenience method for creating an UserListOperation instance with
|
4596
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4597
|
-
#
|
4598
|
-
# @param path [String] the resource name of the resource to delete.
|
4599
|
-
def self.user_list(path)
|
4600
|
-
require "google/ads/google_ads/v6/services/user_list_service_pb"
|
4601
|
-
op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
|
4602
|
-
op["remove"] = path
|
4603
|
-
op
|
4604
|
-
end
|
4605
|
-
|
4606
4639
|
# A convenience method for creating an MutateOperation instance with
|
4607
4640
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4608
4641
|
#
|
@@ -4625,68 +4658,24 @@ module Google
|
|
4625
4658
|
op
|
4626
4659
|
end
|
4627
4660
|
|
4628
|
-
# A convenience method for creating an
|
4629
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4630
|
-
#
|
4631
|
-
# @param path [String] the resource name of the resource to delete.
|
4632
|
-
def self.offline_user_data_job(path)
|
4633
|
-
require "google/ads/google_ads/v6/services/offline_user_data_job_service_pb"
|
4634
|
-
op = Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
|
4635
|
-
op["remove"] = path
|
4636
|
-
op
|
4637
|
-
end
|
4638
|
-
|
4639
|
-
# A convenience method for creating an CustomInterestOperation instance with
|
4640
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4641
|
-
#
|
4642
|
-
# @param path [String] the resource name of the resource to delete.
|
4643
|
-
def self.custom_interest(path)
|
4644
|
-
require "google/ads/google_ads/v6/services/custom_interest_service_pb"
|
4645
|
-
op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
|
4646
|
-
op["remove"] = path
|
4647
|
-
op
|
4648
|
-
end
|
4649
|
-
|
4650
|
-
# A convenience method for creating an CustomerUserAccessOperation instance with
|
4651
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4652
|
-
#
|
4653
|
-
# @param path [String] the resource name of the resource to delete.
|
4654
|
-
def self.customer_user_access(path)
|
4655
|
-
require "google/ads/google_ads/v6/services/customer_user_access_service_pb"
|
4656
|
-
op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
|
4657
|
-
op["remove"] = path
|
4658
|
-
op
|
4659
|
-
end
|
4660
|
-
|
4661
|
-
# A convenience method for creating an MerchantCenterLinkOperation instance with
|
4662
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4663
|
-
#
|
4664
|
-
# @param path [String] the resource name of the resource to delete.
|
4665
|
-
def self.merchant_center_link(path)
|
4666
|
-
require "google/ads/google_ads/v6/services/merchant_center_link_service_pb"
|
4667
|
-
op = Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
|
4668
|
-
op["remove"] = path
|
4669
|
-
op
|
4670
|
-
end
|
4671
|
-
|
4672
|
-
# A convenience method for creating an CustomerClientLinkOperation instance with
|
4661
|
+
# A convenience method for creating an CustomerUserAccessInvitationOperation instance with
|
4673
4662
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4674
4663
|
#
|
4675
4664
|
# @param path [String] the resource name of the resource to delete.
|
4676
|
-
def self.
|
4677
|
-
require "google/ads/google_ads/v6/services/
|
4678
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4665
|
+
def self.customer_user_access_invitation(path)
|
4666
|
+
require "google/ads/google_ads/v6/services/customer_user_access_invitation_service_pb"
|
4667
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
|
4679
4668
|
op["remove"] = path
|
4680
4669
|
op
|
4681
4670
|
end
|
4682
4671
|
|
4683
|
-
# A convenience method for creating an
|
4672
|
+
# A convenience method for creating an OfflineUserDataJobOperation instance with
|
4684
4673
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4685
4674
|
#
|
4686
4675
|
# @param path [String] the resource name of the resource to delete.
|
4687
|
-
def self.
|
4688
|
-
require "google/ads/google_ads/v6/services/
|
4689
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4676
|
+
def self.offline_user_data_job(path)
|
4677
|
+
require "google/ads/google_ads/v6/services/offline_user_data_job_service_pb"
|
4678
|
+
op = Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
|
4690
4679
|
op["remove"] = path
|
4691
4680
|
op
|
4692
4681
|
end
|
@@ -4702,13 +4691,13 @@ module Google
|
|
4702
4691
|
op
|
4703
4692
|
end
|
4704
4693
|
|
4705
|
-
# A convenience method for creating an
|
4694
|
+
# A convenience method for creating an AccountBudgetProposalOperation instance with
|
4706
4695
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4707
4696
|
#
|
4708
4697
|
# @param path [String] the resource name of the resource to delete.
|
4709
|
-
def self.
|
4710
|
-
require "google/ads/google_ads/v6/services/
|
4711
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4698
|
+
def self.account_budget_proposal(path)
|
4699
|
+
require "google/ads/google_ads/v6/services/account_budget_proposal_service_pb"
|
4700
|
+
op = Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
|
4712
4701
|
op["remove"] = path
|
4713
4702
|
op
|
4714
4703
|
end
|
@@ -4735,46 +4724,57 @@ module Google
|
|
4735
4724
|
op
|
4736
4725
|
end
|
4737
4726
|
|
4738
|
-
# A convenience method for creating an
|
4727
|
+
# A convenience method for creating an AccountLinkOperation instance with
|
4739
4728
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4740
4729
|
#
|
4741
4730
|
# @param path [String] the resource name of the resource to delete.
|
4742
|
-
def self.
|
4743
|
-
require "google/ads/google_ads/v6/services/
|
4744
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4731
|
+
def self.account_link(path)
|
4732
|
+
require "google/ads/google_ads/v6/services/account_link_service_pb"
|
4733
|
+
op = Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
|
4745
4734
|
op["remove"] = path
|
4746
4735
|
op
|
4747
4736
|
end
|
4748
4737
|
|
4749
|
-
# A convenience method for creating an
|
4738
|
+
# A convenience method for creating an CustomAudienceOperation instance with
|
4750
4739
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4751
4740
|
#
|
4752
4741
|
# @param path [String] the resource name of the resource to delete.
|
4753
|
-
def self.
|
4754
|
-
require "google/ads/google_ads/v6/services/
|
4755
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4742
|
+
def self.custom_audience(path)
|
4743
|
+
require "google/ads/google_ads/v6/services/custom_audience_service_pb"
|
4744
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.new
|
4756
4745
|
op["remove"] = path
|
4757
4746
|
op
|
4758
4747
|
end
|
4759
4748
|
|
4760
|
-
# A convenience method for creating an
|
4749
|
+
# A convenience method for creating an CustomerUserAccessOperation instance with
|
4761
4750
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4762
4751
|
#
|
4763
4752
|
# @param path [String] the resource name of the resource to delete.
|
4764
|
-
def self.
|
4765
|
-
require "google/ads/google_ads/v6/services/
|
4766
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4753
|
+
def self.customer_user_access(path)
|
4754
|
+
require "google/ads/google_ads/v6/services/customer_user_access_service_pb"
|
4755
|
+
op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
|
4767
4756
|
op["remove"] = path
|
4768
4757
|
op
|
4769
4758
|
end
|
4770
4759
|
|
4771
|
-
# A convenience method for creating an
|
4760
|
+
# A convenience method for creating an MerchantCenterLinkOperation instance with
|
4772
4761
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4773
4762
|
#
|
4774
4763
|
# @param path [String] the resource name of the resource to delete.
|
4775
|
-
def self.
|
4776
|
-
require "google/ads/google_ads/v6/services/
|
4777
|
-
op = Google::Ads::GoogleAds::V6::Services::
|
4764
|
+
def self.merchant_center_link(path)
|
4765
|
+
require "google/ads/google_ads/v6/services/merchant_center_link_service_pb"
|
4766
|
+
op = Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
|
4767
|
+
op["remove"] = path
|
4768
|
+
op
|
4769
|
+
end
|
4770
|
+
|
4771
|
+
# A convenience method for creating an BillingSetupOperation instance with
|
4772
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4773
|
+
#
|
4774
|
+
# @param path [String] the resource name of the resource to delete.
|
4775
|
+
def self.billing_setup(path)
|
4776
|
+
require "google/ads/google_ads/v6/services/billing_setup_service_pb"
|
4777
|
+
op = Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
|
4778
4778
|
op["remove"] = path
|
4779
4779
|
op
|
4780
4780
|
end
|