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 V4
|
6
6
|
module Operations
|
7
|
+
# Create a new FeedAttributeOperation
|
8
|
+
#
|
9
|
+
# @return [Google::Ads::GoogleAds::V4::Resources::FeedAttributeOperation] the operation
|
10
|
+
def self.feed_attribute
|
11
|
+
require "google/ads/google_ads/v4/resources/feed_pb"
|
12
|
+
if block_given?
|
13
|
+
op = Google::Ads::GoogleAds::V4::Resources::FeedAttributeOperation.new
|
14
|
+
yield op
|
15
|
+
op
|
16
|
+
else
|
17
|
+
Google::Ads::GoogleAds::V4::Resources::FeedAttributeOperation.new
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
7
21
|
# Create a new TargetRestrictionOperation
|
8
22
|
#
|
9
23
|
# @return [Google::Ads::GoogleAds::V4::Common::TargetRestrictionOperation] the operation
|
@@ -18,59 +32,101 @@ 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::V4::
|
24
|
-
def self.
|
25
|
-
require "google/ads/google_ads/v4/
|
37
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CustomerClientLinkOperation] the operation
|
38
|
+
def self.customer_client_link
|
39
|
+
require "google/ads/google_ads/v4/services/customer_client_link_service_pb"
|
26
40
|
if block_given?
|
27
|
-
op = Google::Ads::GoogleAds::V4::
|
41
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomerClientLinkOperation.new
|
28
42
|
yield op
|
29
43
|
op
|
30
44
|
else
|
31
|
-
Google::Ads::GoogleAds::V4::
|
45
|
+
Google::Ads::GoogleAds::V4::Services::CustomerClientLinkOperation.new
|
32
46
|
end
|
33
47
|
end
|
34
48
|
|
35
|
-
# Create a new
|
49
|
+
# Create a new CustomInterestOperation
|
36
50
|
#
|
37
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
38
|
-
def self.
|
39
|
-
require "google/ads/google_ads/v4/services/
|
51
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CustomInterestOperation] the operation
|
52
|
+
def self.custom_interest
|
53
|
+
require "google/ads/google_ads/v4/services/custom_interest_service_pb"
|
40
54
|
if block_given?
|
41
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
55
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomInterestOperation.new
|
42
56
|
yield op
|
43
57
|
op
|
44
58
|
else
|
45
|
-
Google::Ads::GoogleAds::V4::Services::
|
59
|
+
Google::Ads::GoogleAds::V4::Services::CustomInterestOperation.new
|
46
60
|
end
|
47
61
|
end
|
48
62
|
|
49
|
-
# Create a new
|
63
|
+
# Create a new CustomerNegativeCriterionOperation
|
50
64
|
#
|
51
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
52
|
-
def self.
|
53
|
-
require "google/ads/google_ads/v4/services/
|
65
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionOperation] the operation
|
66
|
+
def self.customer_negative_criterion
|
67
|
+
require "google/ads/google_ads/v4/services/customer_negative_criterion_service_pb"
|
54
68
|
if block_given?
|
55
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
69
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionOperation.new
|
56
70
|
yield op
|
57
71
|
op
|
58
72
|
else
|
59
|
-
Google::Ads::GoogleAds::V4::Services::
|
73
|
+
Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionOperation.new
|
60
74
|
end
|
61
75
|
end
|
62
76
|
|
63
|
-
# Create a new
|
77
|
+
# Create a new SharedCriterionOperation
|
64
78
|
#
|
65
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
66
|
-
def self.
|
67
|
-
require "google/ads/google_ads/v4/services/
|
79
|
+
# @return [Google::Ads::GoogleAds::V4::Services::SharedCriterionOperation] the operation
|
80
|
+
def self.shared_criterion
|
81
|
+
require "google/ads/google_ads/v4/services/shared_criterion_service_pb"
|
68
82
|
if block_given?
|
69
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
83
|
+
op = Google::Ads::GoogleAds::V4::Services::SharedCriterionOperation.new
|
70
84
|
yield op
|
71
85
|
op
|
72
86
|
else
|
73
|
-
Google::Ads::GoogleAds::V4::Services::
|
87
|
+
Google::Ads::GoogleAds::V4::Services::SharedCriterionOperation.new
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# Create a new KeywordPlanAdGroupKeywordOperation
|
92
|
+
#
|
93
|
+
# @return [Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation] the operation
|
94
|
+
def self.keyword_plan_ad_group_keyword
|
95
|
+
require "google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_pb"
|
96
|
+
if block_given?
|
97
|
+
op = Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation.new
|
98
|
+
yield op
|
99
|
+
op
|
100
|
+
else
|
101
|
+
Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation.new
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# Create a new FeedMappingOperation
|
106
|
+
#
|
107
|
+
# @return [Google::Ads::GoogleAds::V4::Services::FeedMappingOperation] the operation
|
108
|
+
def self.feed_mapping
|
109
|
+
require "google/ads/google_ads/v4/services/feed_mapping_service_pb"
|
110
|
+
if block_given?
|
111
|
+
op = Google::Ads::GoogleAds::V4::Services::FeedMappingOperation.new
|
112
|
+
yield op
|
113
|
+
op
|
114
|
+
else
|
115
|
+
Google::Ads::GoogleAds::V4::Services::FeedMappingOperation.new
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# Create a new AdGroupOperation
|
120
|
+
#
|
121
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AdGroupOperation] the operation
|
122
|
+
def self.ad_group
|
123
|
+
require "google/ads/google_ads/v4/services/ad_group_service_pb"
|
124
|
+
if block_given?
|
125
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupOperation.new
|
126
|
+
yield op
|
127
|
+
op
|
128
|
+
else
|
129
|
+
Google::Ads::GoogleAds::V4::Services::AdGroupOperation.new
|
74
130
|
end
|
75
131
|
end
|
76
132
|
|
@@ -88,73 +144,73 @@ module Google
|
|
88
144
|
end
|
89
145
|
end
|
90
146
|
|
91
|
-
# Create a new
|
147
|
+
# Create a new CustomerManagerLinkOperation
|
92
148
|
#
|
93
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
94
|
-
def self.
|
95
|
-
require "google/ads/google_ads/v4/services/
|
149
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkOperation] the operation
|
150
|
+
def self.customer_manager_link
|
151
|
+
require "google/ads/google_ads/v4/services/customer_manager_link_service_pb"
|
96
152
|
if block_given?
|
97
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
153
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkOperation.new
|
98
154
|
yield op
|
99
155
|
op
|
100
156
|
else
|
101
|
-
Google::Ads::GoogleAds::V4::Services::
|
157
|
+
Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkOperation.new
|
102
158
|
end
|
103
159
|
end
|
104
160
|
|
105
|
-
# Create a new
|
161
|
+
# Create a new CampaignDraftOperation
|
106
162
|
#
|
107
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
108
|
-
def self.
|
109
|
-
require "google/ads/google_ads/v4/services/
|
163
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignDraftOperation] the operation
|
164
|
+
def self.campaign_draft
|
165
|
+
require "google/ads/google_ads/v4/services/campaign_draft_service_pb"
|
110
166
|
if block_given?
|
111
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
167
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignDraftOperation.new
|
112
168
|
yield op
|
113
169
|
op
|
114
170
|
else
|
115
|
-
Google::Ads::GoogleAds::V4::Services::
|
171
|
+
Google::Ads::GoogleAds::V4::Services::CampaignDraftOperation.new
|
116
172
|
end
|
117
173
|
end
|
118
174
|
|
119
|
-
# Create a new
|
175
|
+
# Create a new UserListOperation
|
120
176
|
#
|
121
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
122
|
-
def self.
|
123
|
-
require "google/ads/google_ads/v4/services/
|
177
|
+
# @return [Google::Ads::GoogleAds::V4::Services::UserListOperation] the operation
|
178
|
+
def self.user_list
|
179
|
+
require "google/ads/google_ads/v4/services/user_list_service_pb"
|
124
180
|
if block_given?
|
125
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
181
|
+
op = Google::Ads::GoogleAds::V4::Services::UserListOperation.new
|
126
182
|
yield op
|
127
183
|
op
|
128
184
|
else
|
129
|
-
Google::Ads::GoogleAds::V4::Services::
|
185
|
+
Google::Ads::GoogleAds::V4::Services::UserListOperation.new
|
130
186
|
end
|
131
187
|
end
|
132
188
|
|
133
|
-
# Create a new
|
189
|
+
# Create a new CustomerOperation
|
134
190
|
#
|
135
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
136
|
-
def self.
|
137
|
-
require "google/ads/google_ads/v4/services/
|
191
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CustomerOperation] the operation
|
192
|
+
def self.customer
|
193
|
+
require "google/ads/google_ads/v4/services/customer_service_pb"
|
138
194
|
if block_given?
|
139
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
195
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomerOperation.new
|
140
196
|
yield op
|
141
197
|
op
|
142
198
|
else
|
143
|
-
Google::Ads::GoogleAds::V4::Services::
|
199
|
+
Google::Ads::GoogleAds::V4::Services::CustomerOperation.new
|
144
200
|
end
|
145
201
|
end
|
146
202
|
|
147
|
-
# Create a new
|
203
|
+
# Create a new SharedSetOperation
|
148
204
|
#
|
149
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
150
|
-
def self.
|
151
|
-
require "google/ads/google_ads/v4/services/
|
205
|
+
# @return [Google::Ads::GoogleAds::V4::Services::SharedSetOperation] the operation
|
206
|
+
def self.shared_set
|
207
|
+
require "google/ads/google_ads/v4/services/shared_set_service_pb"
|
152
208
|
if block_given?
|
153
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
209
|
+
op = Google::Ads::GoogleAds::V4::Services::SharedSetOperation.new
|
154
210
|
yield op
|
155
211
|
op
|
156
212
|
else
|
157
|
-
Google::Ads::GoogleAds::V4::Services::
|
213
|
+
Google::Ads::GoogleAds::V4::Services::SharedSetOperation.new
|
158
214
|
end
|
159
215
|
end
|
160
216
|
|
@@ -172,6 +228,62 @@ module Google
|
|
172
228
|
end
|
173
229
|
end
|
174
230
|
|
231
|
+
# Create a new LabelOperation
|
232
|
+
#
|
233
|
+
# @return [Google::Ads::GoogleAds::V4::Services::LabelOperation] the operation
|
234
|
+
def self.label
|
235
|
+
require "google/ads/google_ads/v4/services/label_service_pb"
|
236
|
+
if block_given?
|
237
|
+
op = Google::Ads::GoogleAds::V4::Services::LabelOperation.new
|
238
|
+
yield op
|
239
|
+
op
|
240
|
+
else
|
241
|
+
Google::Ads::GoogleAds::V4::Services::LabelOperation.new
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# Create a new AdGroupAdLabelOperation
|
246
|
+
#
|
247
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelOperation] the operation
|
248
|
+
def self.ad_group_ad_label
|
249
|
+
require "google/ads/google_ads/v4/services/ad_group_ad_label_service_pb"
|
250
|
+
if block_given?
|
251
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelOperation.new
|
252
|
+
yield op
|
253
|
+
op
|
254
|
+
else
|
255
|
+
Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelOperation.new
|
256
|
+
end
|
257
|
+
end
|
258
|
+
|
259
|
+
# Create a new AdGroupAdOperation
|
260
|
+
#
|
261
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AdGroupAdOperation] the operation
|
262
|
+
def self.ad_group_ad
|
263
|
+
require "google/ads/google_ads/v4/services/ad_group_ad_service_pb"
|
264
|
+
if block_given?
|
265
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupAdOperation.new
|
266
|
+
yield op
|
267
|
+
op
|
268
|
+
else
|
269
|
+
Google::Ads::GoogleAds::V4::Services::AdGroupAdOperation.new
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
# Create a new AdGroupBidModifierOperation
|
274
|
+
#
|
275
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierOperation] the operation
|
276
|
+
def self.ad_group_bid_modifier
|
277
|
+
require "google/ads/google_ads/v4/services/ad_group_bid_modifier_service_pb"
|
278
|
+
if block_given?
|
279
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierOperation.new
|
280
|
+
yield op
|
281
|
+
op
|
282
|
+
else
|
283
|
+
Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierOperation.new
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
175
287
|
# Create a new AdGroupCriterionOperation
|
176
288
|
#
|
177
289
|
# @return [Google::Ads::GoogleAds::V4::Services::AdGroupCriterionOperation] the operation
|
@@ -270,45 +382,59 @@ module Google
|
|
270
382
|
end
|
271
383
|
end
|
272
384
|
|
273
|
-
# Create a new
|
385
|
+
# Create a new BiddingStrategyOperation
|
274
386
|
#
|
275
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
276
|
-
def self.
|
277
|
-
require "google/ads/google_ads/v4/services/
|
387
|
+
# @return [Google::Ads::GoogleAds::V4::Services::BiddingStrategyOperation] the operation
|
388
|
+
def self.bidding_strategy
|
389
|
+
require "google/ads/google_ads/v4/services/bidding_strategy_service_pb"
|
278
390
|
if block_given?
|
279
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
391
|
+
op = Google::Ads::GoogleAds::V4::Services::BiddingStrategyOperation.new
|
280
392
|
yield op
|
281
393
|
op
|
282
394
|
else
|
283
|
-
Google::Ads::GoogleAds::V4::Services::
|
395
|
+
Google::Ads::GoogleAds::V4::Services::BiddingStrategyOperation.new
|
284
396
|
end
|
285
397
|
end
|
286
398
|
|
287
|
-
# Create a new
|
399
|
+
# Create a new CampaignBudgetOperation
|
288
400
|
#
|
289
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
290
|
-
def self.
|
291
|
-
require "google/ads/google_ads/v4/services/
|
401
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignBudgetOperation] the operation
|
402
|
+
def self.campaign_budget
|
403
|
+
require "google/ads/google_ads/v4/services/campaign_budget_service_pb"
|
292
404
|
if block_given?
|
293
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
405
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignBudgetOperation.new
|
294
406
|
yield op
|
295
407
|
op
|
296
408
|
else
|
297
|
-
Google::Ads::GoogleAds::V4::Services::
|
409
|
+
Google::Ads::GoogleAds::V4::Services::CampaignBudgetOperation.new
|
298
410
|
end
|
299
411
|
end
|
300
412
|
|
301
|
-
# Create a new
|
413
|
+
# Create a new CampaignCriterionOperation
|
302
414
|
#
|
303
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
304
|
-
def self.
|
305
|
-
require "google/ads/google_ads/v4/services/
|
415
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignCriterionOperation] the operation
|
416
|
+
def self.campaign_criterion
|
417
|
+
require "google/ads/google_ads/v4/services/campaign_criterion_service_pb"
|
306
418
|
if block_given?
|
307
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
419
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignCriterionOperation.new
|
308
420
|
yield op
|
309
421
|
op
|
310
422
|
else
|
311
|
-
Google::Ads::GoogleAds::V4::Services::
|
423
|
+
Google::Ads::GoogleAds::V4::Services::CampaignCriterionOperation.new
|
424
|
+
end
|
425
|
+
end
|
426
|
+
|
427
|
+
# Create a new CampaignExperimentOperation
|
428
|
+
#
|
429
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignExperimentOperation] the operation
|
430
|
+
def self.campaign_experiment
|
431
|
+
require "google/ads/google_ads/v4/services/campaign_experiment_service_pb"
|
432
|
+
if block_given?
|
433
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignExperimentOperation.new
|
434
|
+
yield op
|
435
|
+
op
|
436
|
+
else
|
437
|
+
Google::Ads::GoogleAds::V4::Services::CampaignExperimentOperation.new
|
312
438
|
end
|
313
439
|
end
|
314
440
|
|
@@ -354,6 +480,20 @@ module Google
|
|
354
480
|
end
|
355
481
|
end
|
356
482
|
|
483
|
+
# Create a new CampaignOperation
|
484
|
+
#
|
485
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignOperation] the operation
|
486
|
+
def self.campaign
|
487
|
+
require "google/ads/google_ads/v4/services/campaign_service_pb"
|
488
|
+
if block_given?
|
489
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignOperation.new
|
490
|
+
yield op
|
491
|
+
op
|
492
|
+
else
|
493
|
+
Google::Ads::GoogleAds::V4::Services::CampaignOperation.new
|
494
|
+
end
|
495
|
+
end
|
496
|
+
|
357
497
|
# Create a new CampaignSharedSetOperation
|
358
498
|
#
|
359
499
|
# @return [Google::Ads::GoogleAds::V4::Services::CampaignSharedSetOperation] the operation
|
@@ -424,20 +564,6 @@ module Google
|
|
424
564
|
end
|
425
565
|
end
|
426
566
|
|
427
|
-
# Create a new CustomerNegativeCriterionOperation
|
428
|
-
#
|
429
|
-
# @return [Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionOperation] the operation
|
430
|
-
def self.customer_negative_criterion
|
431
|
-
require "google/ads/google_ads/v4/services/customer_negative_criterion_service_pb"
|
432
|
-
if block_given?
|
433
|
-
op = Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionOperation.new
|
434
|
-
yield op
|
435
|
-
op
|
436
|
-
else
|
437
|
-
Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionOperation.new
|
438
|
-
end
|
439
|
-
end
|
440
|
-
|
441
567
|
# Create a new ExtensionFeedItemOperation
|
442
568
|
#
|
443
569
|
# @return [Google::Ads::GoogleAds::V4::Services::ExtensionFeedItemOperation] the operation
|
@@ -480,20 +606,6 @@ module Google
|
|
480
606
|
end
|
481
607
|
end
|
482
608
|
|
483
|
-
# Create a new FeedMappingOperation
|
484
|
-
#
|
485
|
-
# @return [Google::Ads::GoogleAds::V4::Services::FeedMappingOperation] the operation
|
486
|
-
def self.feed_mapping
|
487
|
-
require "google/ads/google_ads/v4/services/feed_mapping_service_pb"
|
488
|
-
if block_given?
|
489
|
-
op = Google::Ads::GoogleAds::V4::Services::FeedMappingOperation.new
|
490
|
-
yield op
|
491
|
-
op
|
492
|
-
else
|
493
|
-
Google::Ads::GoogleAds::V4::Services::FeedMappingOperation.new
|
494
|
-
end
|
495
|
-
end
|
496
|
-
|
497
609
|
# Create a new FeedOperation
|
498
610
|
#
|
499
611
|
# @return [Google::Ads::GoogleAds::V4::Services::FeedOperation] the operation
|
@@ -508,20 +620,6 @@ module Google
|
|
508
620
|
end
|
509
621
|
end
|
510
622
|
|
511
|
-
# Create a new KeywordPlanAdGroupKeywordOperation
|
512
|
-
#
|
513
|
-
# @return [Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation] the operation
|
514
|
-
def self.keyword_plan_ad_group_keyword
|
515
|
-
require "google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_pb"
|
516
|
-
if block_given?
|
517
|
-
op = Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation.new
|
518
|
-
yield op
|
519
|
-
op
|
520
|
-
else
|
521
|
-
Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation.new
|
522
|
-
end
|
523
|
-
end
|
524
|
-
|
525
623
|
# Create a new KeywordPlanAdGroupOperation
|
526
624
|
#
|
527
625
|
# @return [Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupOperation] the operation
|
@@ -578,20 +676,6 @@ module Google
|
|
578
676
|
end
|
579
677
|
end
|
580
678
|
|
581
|
-
# Create a new LabelOperation
|
582
|
-
#
|
583
|
-
# @return [Google::Ads::GoogleAds::V4::Services::LabelOperation] the operation
|
584
|
-
def self.label
|
585
|
-
require "google/ads/google_ads/v4/services/label_service_pb"
|
586
|
-
if block_given?
|
587
|
-
op = Google::Ads::GoogleAds::V4::Services::LabelOperation.new
|
588
|
-
yield op
|
589
|
-
op
|
590
|
-
else
|
591
|
-
Google::Ads::GoogleAds::V4::Services::LabelOperation.new
|
592
|
-
end
|
593
|
-
end
|
594
|
-
|
595
679
|
# Create a new MediaFileOperation
|
596
680
|
#
|
597
681
|
# @return [Google::Ads::GoogleAds::V4::Services::MediaFileOperation] the operation
|
@@ -620,48 +704,6 @@ module Google
|
|
620
704
|
end
|
621
705
|
end
|
622
706
|
|
623
|
-
# Create a new SharedCriterionOperation
|
624
|
-
#
|
625
|
-
# @return [Google::Ads::GoogleAds::V4::Services::SharedCriterionOperation] the operation
|
626
|
-
def self.shared_criterion
|
627
|
-
require "google/ads/google_ads/v4/services/shared_criterion_service_pb"
|
628
|
-
if block_given?
|
629
|
-
op = Google::Ads::GoogleAds::V4::Services::SharedCriterionOperation.new
|
630
|
-
yield op
|
631
|
-
op
|
632
|
-
else
|
633
|
-
Google::Ads::GoogleAds::V4::Services::SharedCriterionOperation.new
|
634
|
-
end
|
635
|
-
end
|
636
|
-
|
637
|
-
# Create a new SharedSetOperation
|
638
|
-
#
|
639
|
-
# @return [Google::Ads::GoogleAds::V4::Services::SharedSetOperation] the operation
|
640
|
-
def self.shared_set
|
641
|
-
require "google/ads/google_ads/v4/services/shared_set_service_pb"
|
642
|
-
if block_given?
|
643
|
-
op = Google::Ads::GoogleAds::V4::Services::SharedSetOperation.new
|
644
|
-
yield op
|
645
|
-
op
|
646
|
-
else
|
647
|
-
Google::Ads::GoogleAds::V4::Services::SharedSetOperation.new
|
648
|
-
end
|
649
|
-
end
|
650
|
-
|
651
|
-
# Create a new UserListOperation
|
652
|
-
#
|
653
|
-
# @return [Google::Ads::GoogleAds::V4::Services::UserListOperation] the operation
|
654
|
-
def self.user_list
|
655
|
-
require "google/ads/google_ads/v4/services/user_list_service_pb"
|
656
|
-
if block_given?
|
657
|
-
op = Google::Ads::GoogleAds::V4::Services::UserListOperation.new
|
658
|
-
yield op
|
659
|
-
op
|
660
|
-
else
|
661
|
-
Google::Ads::GoogleAds::V4::Services::UserListOperation.new
|
662
|
-
end
|
663
|
-
end
|
664
|
-
|
665
707
|
# Create a new MutateOperation
|
666
708
|
#
|
667
709
|
# @return [Google::Ads::GoogleAds::V4::Services::MutateOperation] the operation
|
@@ -704,48 +746,6 @@ module Google
|
|
704
746
|
end
|
705
747
|
end
|
706
748
|
|
707
|
-
# Create a new CustomInterestOperation
|
708
|
-
#
|
709
|
-
# @return [Google::Ads::GoogleAds::V4::Services::CustomInterestOperation] the operation
|
710
|
-
def self.custom_interest
|
711
|
-
require "google/ads/google_ads/v4/services/custom_interest_service_pb"
|
712
|
-
if block_given?
|
713
|
-
op = Google::Ads::GoogleAds::V4::Services::CustomInterestOperation.new
|
714
|
-
yield op
|
715
|
-
op
|
716
|
-
else
|
717
|
-
Google::Ads::GoogleAds::V4::Services::CustomInterestOperation.new
|
718
|
-
end
|
719
|
-
end
|
720
|
-
|
721
|
-
# Create a new MerchantCenterLinkOperation
|
722
|
-
#
|
723
|
-
# @return [Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkOperation] the operation
|
724
|
-
def self.merchant_center_link
|
725
|
-
require "google/ads/google_ads/v4/services/merchant_center_link_service_pb"
|
726
|
-
if block_given?
|
727
|
-
op = Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkOperation.new
|
728
|
-
yield op
|
729
|
-
op
|
730
|
-
else
|
731
|
-
Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkOperation.new
|
732
|
-
end
|
733
|
-
end
|
734
|
-
|
735
|
-
# Create a new CustomerClientLinkOperation
|
736
|
-
#
|
737
|
-
# @return [Google::Ads::GoogleAds::V4::Services::CustomerClientLinkOperation] the operation
|
738
|
-
def self.customer_client_link
|
739
|
-
require "google/ads/google_ads/v4/services/customer_client_link_service_pb"
|
740
|
-
if block_given?
|
741
|
-
op = Google::Ads::GoogleAds::V4::Services::CustomerClientLinkOperation.new
|
742
|
-
yield op
|
743
|
-
op
|
744
|
-
else
|
745
|
-
Google::Ads::GoogleAds::V4::Services::CustomerClientLinkOperation.new
|
746
|
-
end
|
747
|
-
end
|
748
|
-
|
749
749
|
# Create a new UserDataOperation
|
750
750
|
#
|
751
751
|
# @return [Google::Ads::GoogleAds::V4::Services::UserDataOperation] the operation
|
@@ -760,17 +760,17 @@ module Google
|
|
760
760
|
end
|
761
761
|
end
|
762
762
|
|
763
|
-
# Create a new
|
763
|
+
# Create a new AccountBudgetProposalOperation
|
764
764
|
#
|
765
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
766
|
-
def self.
|
767
|
-
require "google/ads/google_ads/v4/services/
|
765
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalOperation] the operation
|
766
|
+
def self.account_budget_proposal
|
767
|
+
require "google/ads/google_ads/v4/services/account_budget_proposal_service_pb"
|
768
768
|
if block_given?
|
769
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
769
|
+
op = Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalOperation.new
|
770
770
|
yield op
|
771
771
|
op
|
772
772
|
else
|
773
|
-
Google::Ads::GoogleAds::V4::Services::
|
773
|
+
Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalOperation.new
|
774
774
|
end
|
775
775
|
end
|
776
776
|
|
@@ -802,45 +802,45 @@ module Google
|
|
802
802
|
end
|
803
803
|
end
|
804
804
|
|
805
|
-
# Create a new
|
805
|
+
# Create a new AccountLinkOperation
|
806
806
|
#
|
807
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
808
|
-
def self.
|
809
|
-
require "google/ads/google_ads/v4/services/
|
807
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AccountLinkOperation] the operation
|
808
|
+
def self.account_link
|
809
|
+
require "google/ads/google_ads/v4/services/account_link_service_pb"
|
810
810
|
if block_given?
|
811
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
811
|
+
op = Google::Ads::GoogleAds::V4::Services::AccountLinkOperation.new
|
812
812
|
yield op
|
813
813
|
op
|
814
814
|
else
|
815
|
-
Google::Ads::GoogleAds::V4::Services::
|
815
|
+
Google::Ads::GoogleAds::V4::Services::AccountLinkOperation.new
|
816
816
|
end
|
817
817
|
end
|
818
818
|
|
819
|
-
# Create a new
|
819
|
+
# Create a new MerchantCenterLinkOperation
|
820
820
|
#
|
821
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
822
|
-
def self.
|
823
|
-
require "google/ads/google_ads/v4/services/
|
821
|
+
# @return [Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkOperation] the operation
|
822
|
+
def self.merchant_center_link
|
823
|
+
require "google/ads/google_ads/v4/services/merchant_center_link_service_pb"
|
824
824
|
if block_given?
|
825
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
825
|
+
op = Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkOperation.new
|
826
826
|
yield op
|
827
827
|
op
|
828
828
|
else
|
829
|
-
Google::Ads::GoogleAds::V4::Services::
|
829
|
+
Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkOperation.new
|
830
830
|
end
|
831
831
|
end
|
832
832
|
|
833
|
-
# Create a new
|
833
|
+
# Create a new BillingSetupOperation
|
834
834
|
#
|
835
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
836
|
-
def self.
|
837
|
-
require "google/ads/google_ads/v4/services/
|
835
|
+
# @return [Google::Ads::GoogleAds::V4::Services::BillingSetupOperation] the operation
|
836
|
+
def self.billing_setup
|
837
|
+
require "google/ads/google_ads/v4/services/billing_setup_service_pb"
|
838
838
|
if block_given?
|
839
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
839
|
+
op = Google::Ads::GoogleAds::V4::Services::BillingSetupOperation.new
|
840
840
|
yield op
|
841
841
|
op
|
842
842
|
else
|
843
|
-
Google::Ads::GoogleAds::V4::Services::
|
843
|
+
Google::Ads::GoogleAds::V4::Services::BillingSetupOperation.new
|
844
844
|
end
|
845
845
|
end
|
846
846
|
|
@@ -869,136 +869,163 @@ module Google
|
|
869
869
|
end
|
870
870
|
|
871
871
|
module CreateResource
|
872
|
-
# A convenience method for creating an
|
873
|
-
# its "create" field prepopulated with an
|
872
|
+
# A convenience method for creating an CustomerClientLinkOperation instance with
|
873
|
+
# its "create" field prepopulated with an CustomerClientLink instance.
|
874
874
|
#
|
875
|
-
# @overload
|
876
|
-
# creates an operation instance, yielding a newly fabricated
|
875
|
+
# @overload customer_client_link
|
876
|
+
# creates an operation instance, yielding a newly fabricated CustomerClientLink
|
877
877
|
# which can be used for setting attributes on the newly created resource
|
878
|
-
# @overload
|
878
|
+
# @overload customer_client_link(res)
|
879
879
|
# creates an operation instance, with the resource to be created
|
880
880
|
# set to the passed value (res)
|
881
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
881
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::CustomerClientLink]
|
882
882
|
# a resource instance to be used for creation in this operation.
|
883
883
|
#
|
884
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
885
|
-
def self.
|
886
|
-
require "google/ads/google_ads/v4/services/
|
887
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
884
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CustomerClientLinkOperation] instance that will create the resource
|
885
|
+
def self.customer_client_link(res = nil, &blk)
|
886
|
+
require "google/ads/google_ads/v4/services/customer_client_link_service_pb"
|
887
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomerClientLinkOperation.new
|
888
888
|
op["create"] = if !res.nil?
|
889
889
|
res
|
890
890
|
elsif !blk.nil?
|
891
|
-
Factories::V4::Resources.
|
891
|
+
Factories::V4::Resources.customer_client_link(&blk)
|
892
892
|
else
|
893
|
-
Factories::V4::Resources.
|
893
|
+
Factories::V4::Resources.customer_client_link
|
894
894
|
end
|
895
895
|
|
896
896
|
op
|
897
897
|
end
|
898
898
|
|
899
|
-
# A convenience method for creating an
|
900
|
-
# its "create" field prepopulated with an
|
899
|
+
# A convenience method for creating an CustomInterestOperation instance with
|
900
|
+
# its "create" field prepopulated with an CustomInterest instance.
|
901
901
|
#
|
902
|
-
# @overload
|
903
|
-
# creates an operation instance, yielding a newly fabricated
|
902
|
+
# @overload custom_interest
|
903
|
+
# creates an operation instance, yielding a newly fabricated CustomInterest
|
904
904
|
# which can be used for setting attributes on the newly created resource
|
905
|
-
# @overload
|
905
|
+
# @overload custom_interest(res)
|
906
906
|
# creates an operation instance, with the resource to be created
|
907
907
|
# set to the passed value (res)
|
908
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
908
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::CustomInterest]
|
909
909
|
# a resource instance to be used for creation in this operation.
|
910
910
|
#
|
911
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
912
|
-
def self.
|
913
|
-
require "google/ads/google_ads/v4/services/
|
914
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
911
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CustomInterestOperation] instance that will create the resource
|
912
|
+
def self.custom_interest(res = nil, &blk)
|
913
|
+
require "google/ads/google_ads/v4/services/custom_interest_service_pb"
|
914
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomInterestOperation.new
|
915
915
|
op["create"] = if !res.nil?
|
916
916
|
res
|
917
917
|
elsif !blk.nil?
|
918
|
-
Factories::V4::Resources.
|
918
|
+
Factories::V4::Resources.custom_interest(&blk)
|
919
919
|
else
|
920
|
-
Factories::V4::Resources.
|
920
|
+
Factories::V4::Resources.custom_interest
|
921
921
|
end
|
922
922
|
|
923
923
|
op
|
924
924
|
end
|
925
925
|
|
926
|
-
# A convenience method for creating an
|
927
|
-
# its "create" field prepopulated with an
|
926
|
+
# A convenience method for creating an CustomerNegativeCriterionOperation instance with
|
927
|
+
# its "create" field prepopulated with an CustomerNegativeCriterion instance.
|
928
928
|
#
|
929
|
-
# @overload
|
930
|
-
# creates an operation instance, yielding a newly fabricated
|
929
|
+
# @overload customer_negative_criterion
|
930
|
+
# creates an operation instance, yielding a newly fabricated CustomerNegativeCriterion
|
931
931
|
# which can be used for setting attributes on the newly created resource
|
932
|
-
# @overload
|
932
|
+
# @overload customer_negative_criterion(res)
|
933
933
|
# creates an operation instance, with the resource to be created
|
934
934
|
# set to the passed value (res)
|
935
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
935
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::CustomerNegativeCriterion]
|
936
936
|
# a resource instance to be used for creation in this operation.
|
937
937
|
#
|
938
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
939
|
-
def self.
|
940
|
-
require "google/ads/google_ads/v4/services/
|
941
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
938
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionOperation] instance that will create the resource
|
939
|
+
def self.customer_negative_criterion(res = nil, &blk)
|
940
|
+
require "google/ads/google_ads/v4/services/customer_negative_criterion_service_pb"
|
941
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionOperation.new
|
942
942
|
op["create"] = if !res.nil?
|
943
943
|
res
|
944
944
|
elsif !blk.nil?
|
945
|
-
Factories::V4::Resources.
|
945
|
+
Factories::V4::Resources.customer_negative_criterion(&blk)
|
946
946
|
else
|
947
|
-
Factories::V4::Resources.
|
947
|
+
Factories::V4::Resources.customer_negative_criterion
|
948
948
|
end
|
949
949
|
|
950
950
|
op
|
951
951
|
end
|
952
952
|
|
953
|
-
# A convenience method for creating an
|
954
|
-
# its "create" field prepopulated with an
|
953
|
+
# A convenience method for creating an SharedCriterionOperation instance with
|
954
|
+
# its "create" field prepopulated with an SharedCriterion instance.
|
955
955
|
#
|
956
|
-
# @overload
|
957
|
-
# creates an operation instance, yielding a newly fabricated
|
956
|
+
# @overload shared_criterion
|
957
|
+
# creates an operation instance, yielding a newly fabricated SharedCriterion
|
958
958
|
# which can be used for setting attributes on the newly created resource
|
959
|
-
# @overload
|
959
|
+
# @overload shared_criterion(res)
|
960
960
|
# creates an operation instance, with the resource to be created
|
961
961
|
# set to the passed value (res)
|
962
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
962
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::SharedCriterion]
|
963
963
|
# a resource instance to be used for creation in this operation.
|
964
964
|
#
|
965
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
966
|
-
def self.
|
967
|
-
require "google/ads/google_ads/v4/services/
|
968
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
965
|
+
# @return [Google::Ads::GoogleAds::V4::Services::SharedCriterionOperation] instance that will create the resource
|
966
|
+
def self.shared_criterion(res = nil, &blk)
|
967
|
+
require "google/ads/google_ads/v4/services/shared_criterion_service_pb"
|
968
|
+
op = Google::Ads::GoogleAds::V4::Services::SharedCriterionOperation.new
|
969
969
|
op["create"] = if !res.nil?
|
970
970
|
res
|
971
971
|
elsif !blk.nil?
|
972
|
-
Factories::V4::Resources.
|
972
|
+
Factories::V4::Resources.shared_criterion(&blk)
|
973
973
|
else
|
974
|
-
Factories::V4::Resources.
|
974
|
+
Factories::V4::Resources.shared_criterion
|
975
975
|
end
|
976
976
|
|
977
977
|
op
|
978
978
|
end
|
979
979
|
|
980
|
-
# A convenience method for creating an
|
981
|
-
# its "create" field prepopulated with an
|
980
|
+
# A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
|
981
|
+
# its "create" field prepopulated with an KeywordPlanAdGroupKeyword instance.
|
982
982
|
#
|
983
|
-
# @overload
|
984
|
-
# creates an operation instance, yielding a newly fabricated
|
983
|
+
# @overload keyword_plan_ad_group_keyword
|
984
|
+
# creates an operation instance, yielding a newly fabricated KeywordPlanAdGroupKeyword
|
985
985
|
# which can be used for setting attributes on the newly created resource
|
986
|
-
# @overload
|
986
|
+
# @overload keyword_plan_ad_group_keyword(res)
|
987
987
|
# creates an operation instance, with the resource to be created
|
988
988
|
# set to the passed value (res)
|
989
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
989
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword]
|
990
990
|
# a resource instance to be used for creation in this operation.
|
991
991
|
#
|
992
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
993
|
-
def self.
|
994
|
-
require "google/ads/google_ads/v4/services/
|
995
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
992
|
+
# @return [Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation] instance that will create the resource
|
993
|
+
def self.keyword_plan_ad_group_keyword(res = nil, &blk)
|
994
|
+
require "google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_pb"
|
995
|
+
op = Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation.new
|
996
996
|
op["create"] = if !res.nil?
|
997
997
|
res
|
998
998
|
elsif !blk.nil?
|
999
|
-
Factories::V4::Resources.
|
999
|
+
Factories::V4::Resources.keyword_plan_ad_group_keyword(&blk)
|
1000
1000
|
else
|
1001
|
-
Factories::V4::Resources.
|
1001
|
+
Factories::V4::Resources.keyword_plan_ad_group_keyword
|
1002
|
+
end
|
1003
|
+
|
1004
|
+
op
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
# A convenience method for creating an FeedMappingOperation instance with
|
1008
|
+
# its "create" field prepopulated with an FeedMapping instance.
|
1009
|
+
#
|
1010
|
+
# @overload feed_mapping
|
1011
|
+
# creates an operation instance, yielding a newly fabricated FeedMapping
|
1012
|
+
# which can be used for setting attributes on the newly created resource
|
1013
|
+
# @overload feed_mapping(res)
|
1014
|
+
# creates an operation instance, with the resource to be created
|
1015
|
+
# set to the passed value (res)
|
1016
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::FeedMapping]
|
1017
|
+
# a resource instance to be used for creation in this operation.
|
1018
|
+
#
|
1019
|
+
# @return [Google::Ads::GoogleAds::V4::Services::FeedMappingOperation] instance that will create the resource
|
1020
|
+
def self.feed_mapping(res = nil, &blk)
|
1021
|
+
require "google/ads/google_ads/v4/services/feed_mapping_service_pb"
|
1022
|
+
op = Google::Ads::GoogleAds::V4::Services::FeedMappingOperation.new
|
1023
|
+
op["create"] = if !res.nil?
|
1024
|
+
res
|
1025
|
+
elsif !blk.nil?
|
1026
|
+
Factories::V4::Resources.feed_mapping(&blk)
|
1027
|
+
else
|
1028
|
+
Factories::V4::Resources.feed_mapping
|
1002
1029
|
end
|
1003
1030
|
|
1004
1031
|
op
|
@@ -1031,172 +1058,334 @@ module Google
|
|
1031
1058
|
op
|
1032
1059
|
end
|
1033
1060
|
|
1034
|
-
# A convenience method for creating an
|
1035
|
-
# its "create" field prepopulated with an
|
1061
|
+
# A convenience method for creating an CampaignBidModifierOperation instance with
|
1062
|
+
# its "create" field prepopulated with an CampaignBidModifier instance.
|
1036
1063
|
#
|
1037
|
-
# @overload
|
1038
|
-
# creates an operation instance, yielding a newly fabricated
|
1064
|
+
# @overload campaign_bid_modifier
|
1065
|
+
# creates an operation instance, yielding a newly fabricated CampaignBidModifier
|
1039
1066
|
# which can be used for setting attributes on the newly created resource
|
1040
|
-
# @overload
|
1067
|
+
# @overload campaign_bid_modifier(res)
|
1041
1068
|
# creates an operation instance, with the resource to be created
|
1042
1069
|
# set to the passed value (res)
|
1043
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
1070
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::CampaignBidModifier]
|
1044
1071
|
# a resource instance to be used for creation in this operation.
|
1045
1072
|
#
|
1046
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
1047
|
-
def self.
|
1048
|
-
require "google/ads/google_ads/v4/services/
|
1049
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
1073
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignBidModifierOperation] instance that will create the resource
|
1074
|
+
def self.campaign_bid_modifier(res = nil, &blk)
|
1075
|
+
require "google/ads/google_ads/v4/services/campaign_bid_modifier_service_pb"
|
1076
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignBidModifierOperation.new
|
1050
1077
|
op["create"] = if !res.nil?
|
1051
1078
|
res
|
1052
1079
|
elsif !blk.nil?
|
1053
|
-
Factories::V4::Resources.
|
1080
|
+
Factories::V4::Resources.campaign_bid_modifier(&blk)
|
1054
1081
|
else
|
1055
|
-
Factories::V4::Resources.
|
1082
|
+
Factories::V4::Resources.campaign_bid_modifier
|
1056
1083
|
end
|
1057
1084
|
|
1058
1085
|
op
|
1059
1086
|
end
|
1060
1087
|
|
1061
|
-
# A convenience method for creating an
|
1062
|
-
# its "create" field prepopulated with an
|
1088
|
+
# A convenience method for creating an CampaignDraftOperation instance with
|
1089
|
+
# its "create" field prepopulated with an CampaignDraft instance.
|
1063
1090
|
#
|
1064
|
-
# @overload
|
1065
|
-
# creates an operation instance, yielding a newly fabricated
|
1091
|
+
# @overload campaign_draft
|
1092
|
+
# creates an operation instance, yielding a newly fabricated CampaignDraft
|
1066
1093
|
# which can be used for setting attributes on the newly created resource
|
1067
|
-
# @overload
|
1094
|
+
# @overload campaign_draft(res)
|
1068
1095
|
# creates an operation instance, with the resource to be created
|
1069
1096
|
# set to the passed value (res)
|
1070
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
1097
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::CampaignDraft]
|
1071
1098
|
# a resource instance to be used for creation in this operation.
|
1072
1099
|
#
|
1073
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
1074
|
-
def self.
|
1075
|
-
require "google/ads/google_ads/v4/services/
|
1076
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
1100
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignDraftOperation] instance that will create the resource
|
1101
|
+
def self.campaign_draft(res = nil, &blk)
|
1102
|
+
require "google/ads/google_ads/v4/services/campaign_draft_service_pb"
|
1103
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignDraftOperation.new
|
1077
1104
|
op["create"] = if !res.nil?
|
1078
1105
|
res
|
1079
1106
|
elsif !blk.nil?
|
1080
|
-
Factories::V4::Resources.
|
1107
|
+
Factories::V4::Resources.campaign_draft(&blk)
|
1081
1108
|
else
|
1082
|
-
Factories::V4::Resources.
|
1109
|
+
Factories::V4::Resources.campaign_draft
|
1083
1110
|
end
|
1084
1111
|
|
1085
1112
|
op
|
1086
1113
|
end
|
1087
1114
|
|
1088
|
-
# A convenience method for creating an
|
1089
|
-
# its "create" field prepopulated with an
|
1115
|
+
# A convenience method for creating an UserListOperation instance with
|
1116
|
+
# its "create" field prepopulated with an UserList instance.
|
1090
1117
|
#
|
1091
|
-
# @overload
|
1092
|
-
# creates an operation instance, yielding a newly fabricated
|
1118
|
+
# @overload user_list
|
1119
|
+
# creates an operation instance, yielding a newly fabricated UserList
|
1093
1120
|
# which can be used for setting attributes on the newly created resource
|
1094
|
-
# @overload
|
1121
|
+
# @overload user_list(res)
|
1095
1122
|
# creates an operation instance, with the resource to be created
|
1096
1123
|
# set to the passed value (res)
|
1097
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
1124
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::UserList]
|
1098
1125
|
# a resource instance to be used for creation in this operation.
|
1099
1126
|
#
|
1100
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
1101
|
-
def self.
|
1102
|
-
require "google/ads/google_ads/v4/services/
|
1103
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
1127
|
+
# @return [Google::Ads::GoogleAds::V4::Services::UserListOperation] instance that will create the resource
|
1128
|
+
def self.user_list(res = nil, &blk)
|
1129
|
+
require "google/ads/google_ads/v4/services/user_list_service_pb"
|
1130
|
+
op = Google::Ads::GoogleAds::V4::Services::UserListOperation.new
|
1104
1131
|
op["create"] = if !res.nil?
|
1105
1132
|
res
|
1106
1133
|
elsif !blk.nil?
|
1107
|
-
Factories::V4::Resources.
|
1134
|
+
Factories::V4::Resources.user_list(&blk)
|
1108
1135
|
else
|
1109
|
-
Factories::V4::Resources.
|
1136
|
+
Factories::V4::Resources.user_list
|
1110
1137
|
end
|
1111
1138
|
|
1112
1139
|
op
|
1113
1140
|
end
|
1114
1141
|
|
1115
|
-
# A convenience method for creating an
|
1116
|
-
# its "create" field prepopulated with an
|
1142
|
+
# A convenience method for creating an SharedSetOperation instance with
|
1143
|
+
# its "create" field prepopulated with an SharedSet instance.
|
1117
1144
|
#
|
1118
|
-
# @overload
|
1119
|
-
# creates an operation instance, yielding a newly fabricated
|
1145
|
+
# @overload shared_set
|
1146
|
+
# creates an operation instance, yielding a newly fabricated SharedSet
|
1120
1147
|
# which can be used for setting attributes on the newly created resource
|
1121
|
-
# @overload
|
1148
|
+
# @overload shared_set(res)
|
1122
1149
|
# creates an operation instance, with the resource to be created
|
1123
1150
|
# set to the passed value (res)
|
1124
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
1151
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::SharedSet]
|
1125
1152
|
# a resource instance to be used for creation in this operation.
|
1126
1153
|
#
|
1127
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
1128
|
-
def self.
|
1129
|
-
require "google/ads/google_ads/v4/services/
|
1130
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
1154
|
+
# @return [Google::Ads::GoogleAds::V4::Services::SharedSetOperation] instance that will create the resource
|
1155
|
+
def self.shared_set(res = nil, &blk)
|
1156
|
+
require "google/ads/google_ads/v4/services/shared_set_service_pb"
|
1157
|
+
op = Google::Ads::GoogleAds::V4::Services::SharedSetOperation.new
|
1131
1158
|
op["create"] = if !res.nil?
|
1132
1159
|
res
|
1133
1160
|
elsif !blk.nil?
|
1134
|
-
Factories::V4::Resources.
|
1161
|
+
Factories::V4::Resources.shared_set(&blk)
|
1135
1162
|
else
|
1136
|
-
Factories::V4::Resources.
|
1163
|
+
Factories::V4::Resources.shared_set
|
1137
1164
|
end
|
1138
1165
|
|
1139
1166
|
op
|
1140
1167
|
end
|
1141
1168
|
|
1142
|
-
# A convenience method for creating an
|
1143
|
-
# its "create" field prepopulated with an
|
1169
|
+
# A convenience method for creating an AdGroupCriterionLabelOperation instance with
|
1170
|
+
# its "create" field prepopulated with an AdGroupCriterionLabel instance.
|
1144
1171
|
#
|
1145
|
-
# @overload
|
1146
|
-
# creates an operation instance, yielding a newly fabricated
|
1172
|
+
# @overload ad_group_criterion_label
|
1173
|
+
# creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
|
1147
1174
|
# which can be used for setting attributes on the newly created resource
|
1148
|
-
# @overload
|
1175
|
+
# @overload ad_group_criterion_label(res)
|
1149
1176
|
# creates an operation instance, with the resource to be created
|
1150
1177
|
# set to the passed value (res)
|
1151
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
1178
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::AdGroupCriterionLabel]
|
1152
1179
|
# a resource instance to be used for creation in this operation.
|
1153
1180
|
#
|
1154
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
1155
|
-
def self.
|
1156
|
-
require "google/ads/google_ads/v4/services/
|
1157
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
1181
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AdGroupCriterionLabelOperation] instance that will create the resource
|
1182
|
+
def self.ad_group_criterion_label(res = nil, &blk)
|
1183
|
+
require "google/ads/google_ads/v4/services/ad_group_criterion_label_service_pb"
|
1184
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupCriterionLabelOperation.new
|
1158
1185
|
op["create"] = if !res.nil?
|
1159
1186
|
res
|
1160
1187
|
elsif !blk.nil?
|
1161
|
-
Factories::V4::Resources.
|
1188
|
+
Factories::V4::Resources.ad_group_criterion_label(&blk)
|
1162
1189
|
else
|
1163
|
-
Factories::V4::Resources.
|
1190
|
+
Factories::V4::Resources.ad_group_criterion_label
|
1164
1191
|
end
|
1165
1192
|
|
1166
1193
|
op
|
1167
1194
|
end
|
1168
1195
|
|
1169
|
-
# A convenience method for creating an
|
1170
|
-
# its "create" field prepopulated with an
|
1196
|
+
# A convenience method for creating an LabelOperation instance with
|
1197
|
+
# its "create" field prepopulated with an Label instance.
|
1171
1198
|
#
|
1172
|
-
# @overload
|
1173
|
-
# creates an operation instance, yielding a newly fabricated
|
1199
|
+
# @overload label
|
1200
|
+
# creates an operation instance, yielding a newly fabricated Label
|
1174
1201
|
# which can be used for setting attributes on the newly created resource
|
1175
|
-
# @overload
|
1202
|
+
# @overload label(res)
|
1176
1203
|
# creates an operation instance, with the resource to be created
|
1177
1204
|
# set to the passed value (res)
|
1178
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
1205
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::Label]
|
1179
1206
|
# a resource instance to be used for creation in this operation.
|
1180
1207
|
#
|
1181
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
1182
|
-
def self.
|
1183
|
-
require "google/ads/google_ads/v4/services/
|
1184
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
1208
|
+
# @return [Google::Ads::GoogleAds::V4::Services::LabelOperation] instance that will create the resource
|
1209
|
+
def self.label(res = nil, &blk)
|
1210
|
+
require "google/ads/google_ads/v4/services/label_service_pb"
|
1211
|
+
op = Google::Ads::GoogleAds::V4::Services::LabelOperation.new
|
1185
1212
|
op["create"] = if !res.nil?
|
1186
1213
|
res
|
1187
1214
|
elsif !blk.nil?
|
1188
|
-
Factories::V4::Resources.
|
1215
|
+
Factories::V4::Resources.label(&blk)
|
1189
1216
|
else
|
1190
|
-
Factories::V4::Resources.
|
1217
|
+
Factories::V4::Resources.label
|
1191
1218
|
end
|
1192
1219
|
|
1193
1220
|
op
|
1194
1221
|
end
|
1195
1222
|
|
1196
|
-
# A convenience method for creating an
|
1197
|
-
# its "create" field prepopulated with an
|
1223
|
+
# A convenience method for creating an AdGroupAdLabelOperation instance with
|
1224
|
+
# its "create" field prepopulated with an AdGroupAdLabel instance.
|
1198
1225
|
#
|
1199
|
-
# @overload
|
1226
|
+
# @overload ad_group_ad_label
|
1227
|
+
# creates an operation instance, yielding a newly fabricated AdGroupAdLabel
|
1228
|
+
# which can be used for setting attributes on the newly created resource
|
1229
|
+
# @overload ad_group_ad_label(res)
|
1230
|
+
# creates an operation instance, with the resource to be created
|
1231
|
+
# set to the passed value (res)
|
1232
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::AdGroupAdLabel]
|
1233
|
+
# a resource instance to be used for creation in this operation.
|
1234
|
+
#
|
1235
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelOperation] instance that will create the resource
|
1236
|
+
def self.ad_group_ad_label(res = nil, &blk)
|
1237
|
+
require "google/ads/google_ads/v4/services/ad_group_ad_label_service_pb"
|
1238
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelOperation.new
|
1239
|
+
op["create"] = if !res.nil?
|
1240
|
+
res
|
1241
|
+
elsif !blk.nil?
|
1242
|
+
Factories::V4::Resources.ad_group_ad_label(&blk)
|
1243
|
+
else
|
1244
|
+
Factories::V4::Resources.ad_group_ad_label
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
op
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
# A convenience method for creating an AdGroupAdOperation instance with
|
1251
|
+
# its "create" field prepopulated with an AdGroupAd instance.
|
1252
|
+
#
|
1253
|
+
# @overload ad_group_ad
|
1254
|
+
# creates an operation instance, yielding a newly fabricated AdGroupAd
|
1255
|
+
# which can be used for setting attributes on the newly created resource
|
1256
|
+
# @overload ad_group_ad(res)
|
1257
|
+
# creates an operation instance, with the resource to be created
|
1258
|
+
# set to the passed value (res)
|
1259
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::AdGroupAd]
|
1260
|
+
# a resource instance to be used for creation in this operation.
|
1261
|
+
#
|
1262
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AdGroupAdOperation] instance that will create the resource
|
1263
|
+
def self.ad_group_ad(res = nil, &blk)
|
1264
|
+
require "google/ads/google_ads/v4/services/ad_group_ad_service_pb"
|
1265
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupAdOperation.new
|
1266
|
+
op["create"] = if !res.nil?
|
1267
|
+
res
|
1268
|
+
elsif !blk.nil?
|
1269
|
+
Factories::V4::Resources.ad_group_ad(&blk)
|
1270
|
+
else
|
1271
|
+
Factories::V4::Resources.ad_group_ad
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
op
|
1275
|
+
end
|
1276
|
+
|
1277
|
+
# A convenience method for creating an AdGroupBidModifierOperation instance with
|
1278
|
+
# its "create" field prepopulated with an AdGroupBidModifier instance.
|
1279
|
+
#
|
1280
|
+
# @overload ad_group_bid_modifier
|
1281
|
+
# creates an operation instance, yielding a newly fabricated AdGroupBidModifier
|
1282
|
+
# which can be used for setting attributes on the newly created resource
|
1283
|
+
# @overload ad_group_bid_modifier(res)
|
1284
|
+
# creates an operation instance, with the resource to be created
|
1285
|
+
# set to the passed value (res)
|
1286
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::AdGroupBidModifier]
|
1287
|
+
# a resource instance to be used for creation in this operation.
|
1288
|
+
#
|
1289
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierOperation] instance that will create the resource
|
1290
|
+
def self.ad_group_bid_modifier(res = nil, &blk)
|
1291
|
+
require "google/ads/google_ads/v4/services/ad_group_bid_modifier_service_pb"
|
1292
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupBidModifierOperation.new
|
1293
|
+
op["create"] = if !res.nil?
|
1294
|
+
res
|
1295
|
+
elsif !blk.nil?
|
1296
|
+
Factories::V4::Resources.ad_group_bid_modifier(&blk)
|
1297
|
+
else
|
1298
|
+
Factories::V4::Resources.ad_group_bid_modifier
|
1299
|
+
end
|
1300
|
+
|
1301
|
+
op
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
# A convenience method for creating an AdGroupCriterionOperation instance with
|
1305
|
+
# its "create" field prepopulated with an AdGroupCriterion instance.
|
1306
|
+
#
|
1307
|
+
# @overload ad_group_criterion
|
1308
|
+
# creates an operation instance, yielding a newly fabricated AdGroupCriterion
|
1309
|
+
# which can be used for setting attributes on the newly created resource
|
1310
|
+
# @overload ad_group_criterion(res)
|
1311
|
+
# creates an operation instance, with the resource to be created
|
1312
|
+
# set to the passed value (res)
|
1313
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::AdGroupCriterion]
|
1314
|
+
# a resource instance to be used for creation in this operation.
|
1315
|
+
#
|
1316
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AdGroupCriterionOperation] instance that will create the resource
|
1317
|
+
def self.ad_group_criterion(res = nil, &blk)
|
1318
|
+
require "google/ads/google_ads/v4/services/ad_group_criterion_service_pb"
|
1319
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupCriterionOperation.new
|
1320
|
+
op["create"] = if !res.nil?
|
1321
|
+
res
|
1322
|
+
elsif !blk.nil?
|
1323
|
+
Factories::V4::Resources.ad_group_criterion(&blk)
|
1324
|
+
else
|
1325
|
+
Factories::V4::Resources.ad_group_criterion
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
op
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
# A convenience method for creating an AdGroupExtensionSettingOperation instance with
|
1332
|
+
# its "create" field prepopulated with an AdGroupExtensionSetting instance.
|
1333
|
+
#
|
1334
|
+
# @overload ad_group_extension_setting
|
1335
|
+
# creates an operation instance, yielding a newly fabricated AdGroupExtensionSetting
|
1336
|
+
# which can be used for setting attributes on the newly created resource
|
1337
|
+
# @overload ad_group_extension_setting(res)
|
1338
|
+
# creates an operation instance, with the resource to be created
|
1339
|
+
# set to the passed value (res)
|
1340
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::AdGroupExtensionSetting]
|
1341
|
+
# a resource instance to be used for creation in this operation.
|
1342
|
+
#
|
1343
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AdGroupExtensionSettingOperation] instance that will create the resource
|
1344
|
+
def self.ad_group_extension_setting(res = nil, &blk)
|
1345
|
+
require "google/ads/google_ads/v4/services/ad_group_extension_setting_service_pb"
|
1346
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupExtensionSettingOperation.new
|
1347
|
+
op["create"] = if !res.nil?
|
1348
|
+
res
|
1349
|
+
elsif !blk.nil?
|
1350
|
+
Factories::V4::Resources.ad_group_extension_setting(&blk)
|
1351
|
+
else
|
1352
|
+
Factories::V4::Resources.ad_group_extension_setting
|
1353
|
+
end
|
1354
|
+
|
1355
|
+
op
|
1356
|
+
end
|
1357
|
+
|
1358
|
+
# A convenience method for creating an AdGroupFeedOperation instance with
|
1359
|
+
# its "create" field prepopulated with an AdGroupFeed instance.
|
1360
|
+
#
|
1361
|
+
# @overload ad_group_feed
|
1362
|
+
# creates an operation instance, yielding a newly fabricated AdGroupFeed
|
1363
|
+
# which can be used for setting attributes on the newly created resource
|
1364
|
+
# @overload ad_group_feed(res)
|
1365
|
+
# creates an operation instance, with the resource to be created
|
1366
|
+
# set to the passed value (res)
|
1367
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::AdGroupFeed]
|
1368
|
+
# a resource instance to be used for creation in this operation.
|
1369
|
+
#
|
1370
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AdGroupFeedOperation] instance that will create the resource
|
1371
|
+
def self.ad_group_feed(res = nil, &blk)
|
1372
|
+
require "google/ads/google_ads/v4/services/ad_group_feed_service_pb"
|
1373
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupFeedOperation.new
|
1374
|
+
op["create"] = if !res.nil?
|
1375
|
+
res
|
1376
|
+
elsif !blk.nil?
|
1377
|
+
Factories::V4::Resources.ad_group_feed(&blk)
|
1378
|
+
else
|
1379
|
+
Factories::V4::Resources.ad_group_feed
|
1380
|
+
end
|
1381
|
+
|
1382
|
+
op
|
1383
|
+
end
|
1384
|
+
|
1385
|
+
# A convenience method for creating an AdGroupLabelOperation instance with
|
1386
|
+
# its "create" field prepopulated with an AdGroupLabel instance.
|
1387
|
+
#
|
1388
|
+
# @overload ad_group_label
|
1200
1389
|
# creates an operation instance, yielding a newly fabricated AdGroupLabel
|
1201
1390
|
# which can be used for setting attributes on the newly created resource
|
1202
1391
|
# @overload ad_group_label(res)
|
@@ -1274,55 +1463,82 @@ module Google
|
|
1274
1463
|
op
|
1275
1464
|
end
|
1276
1465
|
|
1277
|
-
# A convenience method for creating an
|
1278
|
-
# its "create" field prepopulated with an
|
1466
|
+
# A convenience method for creating an BiddingStrategyOperation instance with
|
1467
|
+
# its "create" field prepopulated with an BiddingStrategy instance.
|
1279
1468
|
#
|
1280
|
-
# @overload
|
1281
|
-
# creates an operation instance, yielding a newly fabricated
|
1469
|
+
# @overload bidding_strategy
|
1470
|
+
# creates an operation instance, yielding a newly fabricated BiddingStrategy
|
1282
1471
|
# which can be used for setting attributes on the newly created resource
|
1283
|
-
# @overload
|
1472
|
+
# @overload bidding_strategy(res)
|
1284
1473
|
# creates an operation instance, with the resource to be created
|
1285
1474
|
# set to the passed value (res)
|
1286
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
1475
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::BiddingStrategy]
|
1287
1476
|
# a resource instance to be used for creation in this operation.
|
1288
1477
|
#
|
1289
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
1290
|
-
def self.
|
1291
|
-
require "google/ads/google_ads/v4/services/
|
1292
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
1478
|
+
# @return [Google::Ads::GoogleAds::V4::Services::BiddingStrategyOperation] instance that will create the resource
|
1479
|
+
def self.bidding_strategy(res = nil, &blk)
|
1480
|
+
require "google/ads/google_ads/v4/services/bidding_strategy_service_pb"
|
1481
|
+
op = Google::Ads::GoogleAds::V4::Services::BiddingStrategyOperation.new
|
1293
1482
|
op["create"] = if !res.nil?
|
1294
1483
|
res
|
1295
1484
|
elsif !blk.nil?
|
1296
|
-
Factories::V4::Resources.
|
1485
|
+
Factories::V4::Resources.bidding_strategy(&blk)
|
1297
1486
|
else
|
1298
|
-
Factories::V4::Resources.
|
1487
|
+
Factories::V4::Resources.bidding_strategy
|
1299
1488
|
end
|
1300
1489
|
|
1301
1490
|
op
|
1302
1491
|
end
|
1303
1492
|
|
1304
|
-
# A convenience method for creating an
|
1305
|
-
# its "create" field prepopulated with an
|
1493
|
+
# A convenience method for creating an CampaignBudgetOperation instance with
|
1494
|
+
# its "create" field prepopulated with an CampaignBudget instance.
|
1306
1495
|
#
|
1307
|
-
# @overload
|
1308
|
-
# creates an operation instance, yielding a newly fabricated
|
1496
|
+
# @overload campaign_budget
|
1497
|
+
# creates an operation instance, yielding a newly fabricated CampaignBudget
|
1309
1498
|
# which can be used for setting attributes on the newly created resource
|
1310
|
-
# @overload
|
1499
|
+
# @overload campaign_budget(res)
|
1311
1500
|
# creates an operation instance, with the resource to be created
|
1312
1501
|
# set to the passed value (res)
|
1313
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
1502
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::CampaignBudget]
|
1314
1503
|
# a resource instance to be used for creation in this operation.
|
1315
1504
|
#
|
1316
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
1317
|
-
def self.
|
1318
|
-
require "google/ads/google_ads/v4/services/
|
1319
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
1505
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignBudgetOperation] instance that will create the resource
|
1506
|
+
def self.campaign_budget(res = nil, &blk)
|
1507
|
+
require "google/ads/google_ads/v4/services/campaign_budget_service_pb"
|
1508
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignBudgetOperation.new
|
1320
1509
|
op["create"] = if !res.nil?
|
1321
1510
|
res
|
1322
1511
|
elsif !blk.nil?
|
1323
|
-
Factories::V4::Resources.
|
1512
|
+
Factories::V4::Resources.campaign_budget(&blk)
|
1324
1513
|
else
|
1325
|
-
Factories::V4::Resources.
|
1514
|
+
Factories::V4::Resources.campaign_budget
|
1515
|
+
end
|
1516
|
+
|
1517
|
+
op
|
1518
|
+
end
|
1519
|
+
|
1520
|
+
# A convenience method for creating an CampaignCriterionOperation instance with
|
1521
|
+
# its "create" field prepopulated with an CampaignCriterion instance.
|
1522
|
+
#
|
1523
|
+
# @overload campaign_criterion
|
1524
|
+
# creates an operation instance, yielding a newly fabricated CampaignCriterion
|
1525
|
+
# which can be used for setting attributes on the newly created resource
|
1526
|
+
# @overload campaign_criterion(res)
|
1527
|
+
# creates an operation instance, with the resource to be created
|
1528
|
+
# set to the passed value (res)
|
1529
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::CampaignCriterion]
|
1530
|
+
# a resource instance to be used for creation in this operation.
|
1531
|
+
#
|
1532
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignCriterionOperation] instance that will create the resource
|
1533
|
+
def self.campaign_criterion(res = nil, &blk)
|
1534
|
+
require "google/ads/google_ads/v4/services/campaign_criterion_service_pb"
|
1535
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignCriterionOperation.new
|
1536
|
+
op["create"] = if !res.nil?
|
1537
|
+
res
|
1538
|
+
elsif !blk.nil?
|
1539
|
+
Factories::V4::Resources.campaign_criterion(&blk)
|
1540
|
+
else
|
1541
|
+
Factories::V4::Resources.campaign_criterion
|
1326
1542
|
end
|
1327
1543
|
|
1328
1544
|
op
|
@@ -1409,24 +1625,51 @@ module Google
|
|
1409
1625
|
op
|
1410
1626
|
end
|
1411
1627
|
|
1412
|
-
# A convenience method for creating an
|
1413
|
-
# its "create" field prepopulated with an
|
1628
|
+
# A convenience method for creating an CampaignOperation instance with
|
1629
|
+
# its "create" field prepopulated with an Campaign instance.
|
1414
1630
|
#
|
1415
|
-
# @overload
|
1416
|
-
# creates an operation instance, yielding a newly fabricated
|
1631
|
+
# @overload campaign
|
1632
|
+
# creates an operation instance, yielding a newly fabricated Campaign
|
1417
1633
|
# which can be used for setting attributes on the newly created resource
|
1418
|
-
# @overload
|
1634
|
+
# @overload campaign(res)
|
1419
1635
|
# creates an operation instance, with the resource to be created
|
1420
1636
|
# set to the passed value (res)
|
1421
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
1637
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::Campaign]
|
1422
1638
|
# a resource instance to be used for creation in this operation.
|
1423
1639
|
#
|
1424
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
1425
|
-
def self.
|
1426
|
-
require "google/ads/google_ads/v4/services/
|
1427
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
1428
|
-
op["create"] = if !res.nil?
|
1429
|
-
res
|
1640
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignOperation] instance that will create the resource
|
1641
|
+
def self.campaign(res = nil, &blk)
|
1642
|
+
require "google/ads/google_ads/v4/services/campaign_service_pb"
|
1643
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignOperation.new
|
1644
|
+
op["create"] = if !res.nil?
|
1645
|
+
res
|
1646
|
+
elsif !blk.nil?
|
1647
|
+
Factories::V4::Resources.campaign(&blk)
|
1648
|
+
else
|
1649
|
+
Factories::V4::Resources.campaign
|
1650
|
+
end
|
1651
|
+
|
1652
|
+
op
|
1653
|
+
end
|
1654
|
+
|
1655
|
+
# A convenience method for creating an CampaignSharedSetOperation instance with
|
1656
|
+
# its "create" field prepopulated with an CampaignSharedSet instance.
|
1657
|
+
#
|
1658
|
+
# @overload campaign_shared_set
|
1659
|
+
# creates an operation instance, yielding a newly fabricated CampaignSharedSet
|
1660
|
+
# which can be used for setting attributes on the newly created resource
|
1661
|
+
# @overload campaign_shared_set(res)
|
1662
|
+
# creates an operation instance, with the resource to be created
|
1663
|
+
# set to the passed value (res)
|
1664
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::CampaignSharedSet]
|
1665
|
+
# a resource instance to be used for creation in this operation.
|
1666
|
+
#
|
1667
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignSharedSetOperation] instance that will create the resource
|
1668
|
+
def self.campaign_shared_set(res = nil, &blk)
|
1669
|
+
require "google/ads/google_ads/v4/services/campaign_shared_set_service_pb"
|
1670
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignSharedSetOperation.new
|
1671
|
+
op["create"] = if !res.nil?
|
1672
|
+
res
|
1430
1673
|
elsif !blk.nil?
|
1431
1674
|
Factories::V4::Resources.campaign_shared_set(&blk)
|
1432
1675
|
else
|
@@ -1544,33 +1787,6 @@ module Google
|
|
1544
1787
|
op
|
1545
1788
|
end
|
1546
1789
|
|
1547
|
-
# A convenience method for creating an CustomerNegativeCriterionOperation instance with
|
1548
|
-
# its "create" field prepopulated with an CustomerNegativeCriterion instance.
|
1549
|
-
#
|
1550
|
-
# @overload customer_negative_criterion
|
1551
|
-
# creates an operation instance, yielding a newly fabricated CustomerNegativeCriterion
|
1552
|
-
# which can be used for setting attributes on the newly created resource
|
1553
|
-
# @overload customer_negative_criterion(res)
|
1554
|
-
# creates an operation instance, with the resource to be created
|
1555
|
-
# set to the passed value (res)
|
1556
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::CustomerNegativeCriterion]
|
1557
|
-
# a resource instance to be used for creation in this operation.
|
1558
|
-
#
|
1559
|
-
# @return [Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionOperation] instance that will create the resource
|
1560
|
-
def self.customer_negative_criterion(res = nil, &blk)
|
1561
|
-
require "google/ads/google_ads/v4/services/customer_negative_criterion_service_pb"
|
1562
|
-
op = Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionOperation.new
|
1563
|
-
op["create"] = if !res.nil?
|
1564
|
-
res
|
1565
|
-
elsif !blk.nil?
|
1566
|
-
Factories::V4::Resources.customer_negative_criterion(&blk)
|
1567
|
-
else
|
1568
|
-
Factories::V4::Resources.customer_negative_criterion
|
1569
|
-
end
|
1570
|
-
|
1571
|
-
op
|
1572
|
-
end
|
1573
|
-
|
1574
1790
|
# A convenience method for creating an ExtensionFeedItemOperation instance with
|
1575
1791
|
# its "create" field prepopulated with an ExtensionFeedItem instance.
|
1576
1792
|
#
|
@@ -1652,33 +1868,6 @@ module Google
|
|
1652
1868
|
op
|
1653
1869
|
end
|
1654
1870
|
|
1655
|
-
# A convenience method for creating an FeedMappingOperation instance with
|
1656
|
-
# its "create" field prepopulated with an FeedMapping instance.
|
1657
|
-
#
|
1658
|
-
# @overload feed_mapping
|
1659
|
-
# creates an operation instance, yielding a newly fabricated FeedMapping
|
1660
|
-
# which can be used for setting attributes on the newly created resource
|
1661
|
-
# @overload feed_mapping(res)
|
1662
|
-
# creates an operation instance, with the resource to be created
|
1663
|
-
# set to the passed value (res)
|
1664
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::FeedMapping]
|
1665
|
-
# a resource instance to be used for creation in this operation.
|
1666
|
-
#
|
1667
|
-
# @return [Google::Ads::GoogleAds::V4::Services::FeedMappingOperation] instance that will create the resource
|
1668
|
-
def self.feed_mapping(res = nil, &blk)
|
1669
|
-
require "google/ads/google_ads/v4/services/feed_mapping_service_pb"
|
1670
|
-
op = Google::Ads::GoogleAds::V4::Services::FeedMappingOperation.new
|
1671
|
-
op["create"] = if !res.nil?
|
1672
|
-
res
|
1673
|
-
elsif !blk.nil?
|
1674
|
-
Factories::V4::Resources.feed_mapping(&blk)
|
1675
|
-
else
|
1676
|
-
Factories::V4::Resources.feed_mapping
|
1677
|
-
end
|
1678
|
-
|
1679
|
-
op
|
1680
|
-
end
|
1681
|
-
|
1682
1871
|
# A convenience method for creating an FeedOperation instance with
|
1683
1872
|
# its "create" field prepopulated with an Feed instance.
|
1684
1873
|
#
|
@@ -1706,33 +1895,6 @@ module Google
|
|
1706
1895
|
op
|
1707
1896
|
end
|
1708
1897
|
|
1709
|
-
# A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
|
1710
|
-
# its "create" field prepopulated with an KeywordPlanAdGroupKeyword instance.
|
1711
|
-
#
|
1712
|
-
# @overload keyword_plan_ad_group_keyword
|
1713
|
-
# creates an operation instance, yielding a newly fabricated KeywordPlanAdGroupKeyword
|
1714
|
-
# which can be used for setting attributes on the newly created resource
|
1715
|
-
# @overload keyword_plan_ad_group_keyword(res)
|
1716
|
-
# creates an operation instance, with the resource to be created
|
1717
|
-
# set to the passed value (res)
|
1718
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword]
|
1719
|
-
# a resource instance to be used for creation in this operation.
|
1720
|
-
#
|
1721
|
-
# @return [Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation] instance that will create the resource
|
1722
|
-
def self.keyword_plan_ad_group_keyword(res = nil, &blk)
|
1723
|
-
require "google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_pb"
|
1724
|
-
op = Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation.new
|
1725
|
-
op["create"] = if !res.nil?
|
1726
|
-
res
|
1727
|
-
elsif !blk.nil?
|
1728
|
-
Factories::V4::Resources.keyword_plan_ad_group_keyword(&blk)
|
1729
|
-
else
|
1730
|
-
Factories::V4::Resources.keyword_plan_ad_group_keyword
|
1731
|
-
end
|
1732
|
-
|
1733
|
-
op
|
1734
|
-
end
|
1735
|
-
|
1736
1898
|
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
1737
1899
|
# its "create" field prepopulated with an KeywordPlanAdGroup instance.
|
1738
1900
|
#
|
@@ -1841,33 +2003,6 @@ module Google
|
|
1841
2003
|
op
|
1842
2004
|
end
|
1843
2005
|
|
1844
|
-
# A convenience method for creating an LabelOperation instance with
|
1845
|
-
# its "create" field prepopulated with an Label instance.
|
1846
|
-
#
|
1847
|
-
# @overload label
|
1848
|
-
# creates an operation instance, yielding a newly fabricated Label
|
1849
|
-
# which can be used for setting attributes on the newly created resource
|
1850
|
-
# @overload label(res)
|
1851
|
-
# creates an operation instance, with the resource to be created
|
1852
|
-
# set to the passed value (res)
|
1853
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::Label]
|
1854
|
-
# a resource instance to be used for creation in this operation.
|
1855
|
-
#
|
1856
|
-
# @return [Google::Ads::GoogleAds::V4::Services::LabelOperation] instance that will create the resource
|
1857
|
-
def self.label(res = nil, &blk)
|
1858
|
-
require "google/ads/google_ads/v4/services/label_service_pb"
|
1859
|
-
op = Google::Ads::GoogleAds::V4::Services::LabelOperation.new
|
1860
|
-
op["create"] = if !res.nil?
|
1861
|
-
res
|
1862
|
-
elsif !blk.nil?
|
1863
|
-
Factories::V4::Resources.label(&blk)
|
1864
|
-
else
|
1865
|
-
Factories::V4::Resources.label
|
1866
|
-
end
|
1867
|
-
|
1868
|
-
op
|
1869
|
-
end
|
1870
|
-
|
1871
2006
|
# A convenience method for creating an MediaFileOperation instance with
|
1872
2007
|
# its "create" field prepopulated with an MediaFile instance.
|
1873
2008
|
#
|
@@ -1922,87 +2057,6 @@ module Google
|
|
1922
2057
|
op
|
1923
2058
|
end
|
1924
2059
|
|
1925
|
-
# A convenience method for creating an SharedCriterionOperation instance with
|
1926
|
-
# its "create" field prepopulated with an SharedCriterion instance.
|
1927
|
-
#
|
1928
|
-
# @overload shared_criterion
|
1929
|
-
# creates an operation instance, yielding a newly fabricated SharedCriterion
|
1930
|
-
# which can be used for setting attributes on the newly created resource
|
1931
|
-
# @overload shared_criterion(res)
|
1932
|
-
# creates an operation instance, with the resource to be created
|
1933
|
-
# set to the passed value (res)
|
1934
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::SharedCriterion]
|
1935
|
-
# a resource instance to be used for creation in this operation.
|
1936
|
-
#
|
1937
|
-
# @return [Google::Ads::GoogleAds::V4::Services::SharedCriterionOperation] instance that will create the resource
|
1938
|
-
def self.shared_criterion(res = nil, &blk)
|
1939
|
-
require "google/ads/google_ads/v4/services/shared_criterion_service_pb"
|
1940
|
-
op = Google::Ads::GoogleAds::V4::Services::SharedCriterionOperation.new
|
1941
|
-
op["create"] = if !res.nil?
|
1942
|
-
res
|
1943
|
-
elsif !blk.nil?
|
1944
|
-
Factories::V4::Resources.shared_criterion(&blk)
|
1945
|
-
else
|
1946
|
-
Factories::V4::Resources.shared_criterion
|
1947
|
-
end
|
1948
|
-
|
1949
|
-
op
|
1950
|
-
end
|
1951
|
-
|
1952
|
-
# A convenience method for creating an SharedSetOperation instance with
|
1953
|
-
# its "create" field prepopulated with an SharedSet instance.
|
1954
|
-
#
|
1955
|
-
# @overload shared_set
|
1956
|
-
# creates an operation instance, yielding a newly fabricated SharedSet
|
1957
|
-
# which can be used for setting attributes on the newly created resource
|
1958
|
-
# @overload shared_set(res)
|
1959
|
-
# creates an operation instance, with the resource to be created
|
1960
|
-
# set to the passed value (res)
|
1961
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::SharedSet]
|
1962
|
-
# a resource instance to be used for creation in this operation.
|
1963
|
-
#
|
1964
|
-
# @return [Google::Ads::GoogleAds::V4::Services::SharedSetOperation] instance that will create the resource
|
1965
|
-
def self.shared_set(res = nil, &blk)
|
1966
|
-
require "google/ads/google_ads/v4/services/shared_set_service_pb"
|
1967
|
-
op = Google::Ads::GoogleAds::V4::Services::SharedSetOperation.new
|
1968
|
-
op["create"] = if !res.nil?
|
1969
|
-
res
|
1970
|
-
elsif !blk.nil?
|
1971
|
-
Factories::V4::Resources.shared_set(&blk)
|
1972
|
-
else
|
1973
|
-
Factories::V4::Resources.shared_set
|
1974
|
-
end
|
1975
|
-
|
1976
|
-
op
|
1977
|
-
end
|
1978
|
-
|
1979
|
-
# A convenience method for creating an UserListOperation instance with
|
1980
|
-
# its "create" field prepopulated with an UserList instance.
|
1981
|
-
#
|
1982
|
-
# @overload user_list
|
1983
|
-
# creates an operation instance, yielding a newly fabricated UserList
|
1984
|
-
# which can be used for setting attributes on the newly created resource
|
1985
|
-
# @overload user_list(res)
|
1986
|
-
# creates an operation instance, with the resource to be created
|
1987
|
-
# set to the passed value (res)
|
1988
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::UserList]
|
1989
|
-
# a resource instance to be used for creation in this operation.
|
1990
|
-
#
|
1991
|
-
# @return [Google::Ads::GoogleAds::V4::Services::UserListOperation] instance that will create the resource
|
1992
|
-
def self.user_list(res = nil, &blk)
|
1993
|
-
require "google/ads/google_ads/v4/services/user_list_service_pb"
|
1994
|
-
op = Google::Ads::GoogleAds::V4::Services::UserListOperation.new
|
1995
|
-
op["create"] = if !res.nil?
|
1996
|
-
res
|
1997
|
-
elsif !blk.nil?
|
1998
|
-
Factories::V4::Resources.user_list(&blk)
|
1999
|
-
else
|
2000
|
-
Factories::V4::Resources.user_list
|
2001
|
-
end
|
2002
|
-
|
2003
|
-
op
|
2004
|
-
end
|
2005
|
-
|
2006
2060
|
# A convenience method for creating an BatchJobOperation instance with
|
2007
2061
|
# its "create" field prepopulated with an BatchJob instance.
|
2008
2062
|
#
|
@@ -2057,82 +2111,82 @@ module Google
|
|
2057
2111
|
op
|
2058
2112
|
end
|
2059
2113
|
|
2060
|
-
# A convenience method for creating an
|
2061
|
-
# its "create" field prepopulated with an
|
2114
|
+
# A convenience method for creating an UserDataOperation instance with
|
2115
|
+
# its "create" field prepopulated with an UserData instance.
|
2062
2116
|
#
|
2063
|
-
# @overload
|
2064
|
-
# creates an operation instance, yielding a newly fabricated
|
2117
|
+
# @overload user_data
|
2118
|
+
# creates an operation instance, yielding a newly fabricated UserData
|
2065
2119
|
# which can be used for setting attributes on the newly created resource
|
2066
|
-
# @overload
|
2120
|
+
# @overload user_data(res)
|
2067
2121
|
# creates an operation instance, with the resource to be created
|
2068
2122
|
# set to the passed value (res)
|
2069
|
-
# @param res [Google::Ads::GoogleAds::V4::
|
2123
|
+
# @param res [Google::Ads::GoogleAds::V4::Common::UserData]
|
2070
2124
|
# a resource instance to be used for creation in this operation.
|
2071
2125
|
#
|
2072
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
2073
|
-
def self.
|
2074
|
-
require "google/ads/google_ads/v4/services/
|
2075
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
2126
|
+
# @return [Google::Ads::GoogleAds::V4::Services::UserDataOperation] instance that will create the resource
|
2127
|
+
def self.user_data(res = nil, &blk)
|
2128
|
+
require "google/ads/google_ads/v4/services/user_data_service_pb"
|
2129
|
+
op = Google::Ads::GoogleAds::V4::Services::UserDataOperation.new
|
2076
2130
|
op["create"] = if !res.nil?
|
2077
2131
|
res
|
2078
2132
|
elsif !blk.nil?
|
2079
|
-
Factories::V4::Resources.
|
2133
|
+
Factories::V4::Resources.user_data(&blk)
|
2080
2134
|
else
|
2081
|
-
Factories::V4::Resources.
|
2135
|
+
Factories::V4::Resources.user_data
|
2082
2136
|
end
|
2083
2137
|
|
2084
2138
|
op
|
2085
2139
|
end
|
2086
2140
|
|
2087
|
-
# A convenience method for creating an
|
2088
|
-
# its "create" field prepopulated with an
|
2141
|
+
# A convenience method for creating an AccountBudgetProposalOperation instance with
|
2142
|
+
# its "create" field prepopulated with an AccountBudgetProposal instance.
|
2089
2143
|
#
|
2090
|
-
# @overload
|
2091
|
-
# creates an operation instance, yielding a newly fabricated
|
2144
|
+
# @overload account_budget_proposal
|
2145
|
+
# creates an operation instance, yielding a newly fabricated AccountBudgetProposal
|
2092
2146
|
# which can be used for setting attributes on the newly created resource
|
2093
|
-
# @overload
|
2147
|
+
# @overload account_budget_proposal(res)
|
2094
2148
|
# creates an operation instance, with the resource to be created
|
2095
2149
|
# set to the passed value (res)
|
2096
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::
|
2150
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::AccountBudgetProposal]
|
2097
2151
|
# a resource instance to be used for creation in this operation.
|
2098
2152
|
#
|
2099
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
2100
|
-
def self.
|
2101
|
-
require "google/ads/google_ads/v4/services/
|
2102
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
2153
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalOperation] instance that will create the resource
|
2154
|
+
def self.account_budget_proposal(res = nil, &blk)
|
2155
|
+
require "google/ads/google_ads/v4/services/account_budget_proposal_service_pb"
|
2156
|
+
op = Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalOperation.new
|
2103
2157
|
op["create"] = if !res.nil?
|
2104
2158
|
res
|
2105
2159
|
elsif !blk.nil?
|
2106
|
-
Factories::V4::Resources.
|
2160
|
+
Factories::V4::Resources.account_budget_proposal(&blk)
|
2107
2161
|
else
|
2108
|
-
Factories::V4::Resources.
|
2162
|
+
Factories::V4::Resources.account_budget_proposal
|
2109
2163
|
end
|
2110
2164
|
|
2111
2165
|
op
|
2112
2166
|
end
|
2113
2167
|
|
2114
|
-
# A convenience method for creating an
|
2115
|
-
# its "create" field prepopulated with an
|
2168
|
+
# A convenience method for creating an AccountLinkOperation instance with
|
2169
|
+
# its "create" field prepopulated with an AccountLink instance.
|
2116
2170
|
#
|
2117
|
-
# @overload
|
2118
|
-
# creates an operation instance, yielding a newly fabricated
|
2171
|
+
# @overload account_link
|
2172
|
+
# creates an operation instance, yielding a newly fabricated AccountLink
|
2119
2173
|
# which can be used for setting attributes on the newly created resource
|
2120
|
-
# @overload
|
2174
|
+
# @overload account_link(res)
|
2121
2175
|
# creates an operation instance, with the resource to be created
|
2122
2176
|
# set to the passed value (res)
|
2123
|
-
# @param res [Google::Ads::GoogleAds::V4::
|
2177
|
+
# @param res [Google::Ads::GoogleAds::V4::Resources::AccountLink]
|
2124
2178
|
# a resource instance to be used for creation in this operation.
|
2125
2179
|
#
|
2126
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
2127
|
-
def self.
|
2128
|
-
require "google/ads/google_ads/v4/services/
|
2129
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
2180
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AccountLinkOperation] instance that will create the resource
|
2181
|
+
def self.account_link(res = nil, &blk)
|
2182
|
+
require "google/ads/google_ads/v4/services/account_link_service_pb"
|
2183
|
+
op = Google::Ads::GoogleAds::V4::Services::AccountLinkOperation.new
|
2130
2184
|
op["create"] = if !res.nil?
|
2131
2185
|
res
|
2132
2186
|
elsif !blk.nil?
|
2133
|
-
Factories::V4::Resources.
|
2187
|
+
Factories::V4::Resources.account_link(&blk)
|
2134
2188
|
else
|
2135
|
-
Factories::V4::Resources.
|
2189
|
+
Factories::V4::Resources.account_link
|
2136
2190
|
end
|
2137
2191
|
|
2138
2192
|
op
|
@@ -2164,88 +2218,112 @@ module Google
|
|
2164
2218
|
|
2165
2219
|
op
|
2166
2220
|
end
|
2221
|
+
end
|
2167
2222
|
|
2168
|
-
|
2169
|
-
#
|
2223
|
+
module UpdateResource
|
2224
|
+
# A convenience method for creating an CustomerClientLinkOperation instance with
|
2225
|
+
# its "update" field prepopulated with an CustomerClientLink instance, and
|
2226
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2170
2227
|
#
|
2171
|
-
# @overload
|
2172
|
-
#
|
2173
|
-
#
|
2174
|
-
#
|
2175
|
-
# creates an operation instance, with the resource to be created
|
2176
|
-
# set to the passed value (res)
|
2177
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::AccountLink]
|
2178
|
-
# a resource instance to be used for creation in this operation.
|
2228
|
+
# @overload #customer_client_link(path, &blk)
|
2229
|
+
# @param path [String] a resource path for the resource to update
|
2230
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
|
2231
|
+
# which fields can be set to update
|
2179
2232
|
#
|
2180
|
-
# @
|
2181
|
-
|
2182
|
-
|
2183
|
-
|
2184
|
-
|
2185
|
-
|
2186
|
-
|
2187
|
-
|
2233
|
+
# @overload #customer_client_link(resource, &blk)
|
2234
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::CustomerClientLink] a resource instance to update
|
2235
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2236
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CustomerClientLinkOperation] the operation instance to update the resource
|
2237
|
+
def self.customer_client_link(resource_or_path, &blk)
|
2238
|
+
require "google/ads/google_ads/v4/services/customer_client_link_service_pb"
|
2239
|
+
res = case resource_or_path
|
2240
|
+
when Google::Ads::GoogleAds::V4::Resources::CustomerClientLink
|
2241
|
+
resource_or_path
|
2242
|
+
# got a resource path
|
2243
|
+
when String
|
2244
|
+
obj = Google::Ads::GoogleAds::V4::Resources::CustomerClientLink.new
|
2245
|
+
obj.resource_name = resource_or_path
|
2246
|
+
obj
|
2188
2247
|
else
|
2189
|
-
|
2248
|
+
unless Google::Ads::GoogleAds::V4::Resources::CustomerClientLink === res
|
2249
|
+
raise ArgumentError.new(
|
2250
|
+
"Called #{__method__} with instance of wrong type:"\
|
2251
|
+
" #{res.class} want #{operation.update_class}"\
|
2252
|
+
" or String representing resource name"
|
2253
|
+
)
|
2254
|
+
end
|
2190
2255
|
end
|
2191
2256
|
|
2257
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomerClientLinkOperation.new
|
2258
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2259
|
+
op["update"] = res
|
2192
2260
|
op
|
2193
2261
|
end
|
2194
2262
|
|
2195
|
-
# A convenience method for creating an
|
2196
|
-
# its "
|
2263
|
+
# A convenience method for creating an CustomInterestOperation instance with
|
2264
|
+
# its "update" field prepopulated with an CustomInterest instance, and
|
2265
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2197
2266
|
#
|
2198
|
-
# @overload
|
2199
|
-
#
|
2200
|
-
#
|
2201
|
-
#
|
2202
|
-
# creates an operation instance, with the resource to be created
|
2203
|
-
# set to the passed value (res)
|
2204
|
-
# @param res [Google::Ads::GoogleAds::V4::Resources::AccountBudgetProposal]
|
2205
|
-
# a resource instance to be used for creation in this operation.
|
2267
|
+
# @overload #custom_interest(path, &blk)
|
2268
|
+
# @param path [String] a resource path for the resource to update
|
2269
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::CustomInterest] a new instance of the resource for this update operation, on
|
2270
|
+
# which fields can be set to update
|
2206
2271
|
#
|
2207
|
-
# @
|
2208
|
-
|
2209
|
-
|
2210
|
-
|
2211
|
-
|
2212
|
-
|
2213
|
-
|
2214
|
-
|
2272
|
+
# @overload #custom_interest(resource, &blk)
|
2273
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::CustomInterest] a resource instance to update
|
2274
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2275
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CustomInterestOperation] the operation instance to update the resource
|
2276
|
+
def self.custom_interest(resource_or_path, &blk)
|
2277
|
+
require "google/ads/google_ads/v4/services/custom_interest_service_pb"
|
2278
|
+
res = case resource_or_path
|
2279
|
+
when Google::Ads::GoogleAds::V4::Resources::CustomInterest
|
2280
|
+
resource_or_path
|
2281
|
+
# got a resource path
|
2282
|
+
when String
|
2283
|
+
obj = Google::Ads::GoogleAds::V4::Resources::CustomInterest.new
|
2284
|
+
obj.resource_name = resource_or_path
|
2285
|
+
obj
|
2215
2286
|
else
|
2216
|
-
|
2287
|
+
unless Google::Ads::GoogleAds::V4::Resources::CustomInterest === res
|
2288
|
+
raise ArgumentError.new(
|
2289
|
+
"Called #{__method__} with instance of wrong type:"\
|
2290
|
+
" #{res.class} want #{operation.update_class}"\
|
2291
|
+
" or String representing resource name"
|
2292
|
+
)
|
2293
|
+
end
|
2217
2294
|
end
|
2218
2295
|
|
2296
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomInterestOperation.new
|
2297
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2298
|
+
op["update"] = res
|
2219
2299
|
op
|
2220
2300
|
end
|
2221
|
-
end
|
2222
2301
|
|
2223
|
-
|
2224
|
-
#
|
2225
|
-
# its "update" field prepopulated with an CampaignBudget instance, and
|
2302
|
+
# A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
|
2303
|
+
# its "update" field prepopulated with an KeywordPlanAdGroupKeyword instance, and
|
2226
2304
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2227
2305
|
#
|
2228
|
-
# @overload #
|
2306
|
+
# @overload #keyword_plan_ad_group_keyword(path, &blk)
|
2229
2307
|
# @param path [String] a resource path for the resource to update
|
2230
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::
|
2308
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword] a new instance of the resource for this update operation, on
|
2231
2309
|
# which fields can be set to update
|
2232
2310
|
#
|
2233
|
-
# @overload #
|
2234
|
-
# @param resource [Google::Ads::GoogleAds::V4::Resources::
|
2311
|
+
# @overload #keyword_plan_ad_group_keyword(resource, &blk)
|
2312
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword] a resource instance to update
|
2235
2313
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2236
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
2237
|
-
def self.
|
2238
|
-
require "google/ads/google_ads/v4/services/
|
2314
|
+
# @return [Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation] the operation instance to update the resource
|
2315
|
+
def self.keyword_plan_ad_group_keyword(resource_or_path, &blk)
|
2316
|
+
require "google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_pb"
|
2239
2317
|
res = case resource_or_path
|
2240
|
-
when Google::Ads::GoogleAds::V4::Resources::
|
2318
|
+
when Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword
|
2241
2319
|
resource_or_path
|
2242
2320
|
# got a resource path
|
2243
2321
|
when String
|
2244
|
-
obj = Google::Ads::GoogleAds::V4::Resources::
|
2322
|
+
obj = Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword.new
|
2245
2323
|
obj.resource_name = resource_or_path
|
2246
2324
|
obj
|
2247
2325
|
else
|
2248
|
-
unless Google::Ads::GoogleAds::V4::Resources::
|
2326
|
+
unless Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword === res
|
2249
2327
|
raise ArgumentError.new(
|
2250
2328
|
"Called #{__method__} with instance of wrong type:"\
|
2251
2329
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2254,37 +2332,37 @@ module Google
|
|
2254
2332
|
end
|
2255
2333
|
end
|
2256
2334
|
|
2257
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
2335
|
+
op = Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation.new
|
2258
2336
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2259
2337
|
op["update"] = res
|
2260
2338
|
op
|
2261
2339
|
end
|
2262
2340
|
|
2263
|
-
# A convenience method for creating an
|
2264
|
-
# its "update" field prepopulated with an
|
2341
|
+
# A convenience method for creating an AdGroupOperation instance with
|
2342
|
+
# its "update" field prepopulated with an AdGroup instance, and
|
2265
2343
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2266
2344
|
#
|
2267
|
-
# @overload #
|
2345
|
+
# @overload #ad_group(path, &blk)
|
2268
2346
|
# @param path [String] a resource path for the resource to update
|
2269
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::
|
2347
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::AdGroup] a new instance of the resource for this update operation, on
|
2270
2348
|
# which fields can be set to update
|
2271
2349
|
#
|
2272
|
-
# @overload #
|
2273
|
-
# @param resource [Google::Ads::GoogleAds::V4::Resources::
|
2350
|
+
# @overload #ad_group(resource, &blk)
|
2351
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::AdGroup] a resource instance to update
|
2274
2352
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2275
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
2276
|
-
def self.
|
2277
|
-
require "google/ads/google_ads/v4/services/
|
2353
|
+
# @return [Google::Ads::GoogleAds::V4::Services::AdGroupOperation] the operation instance to update the resource
|
2354
|
+
def self.ad_group(resource_or_path, &blk)
|
2355
|
+
require "google/ads/google_ads/v4/services/ad_group_service_pb"
|
2278
2356
|
res = case resource_or_path
|
2279
|
-
when Google::Ads::GoogleAds::V4::Resources::
|
2357
|
+
when Google::Ads::GoogleAds::V4::Resources::AdGroup
|
2280
2358
|
resource_or_path
|
2281
2359
|
# got a resource path
|
2282
2360
|
when String
|
2283
|
-
obj = Google::Ads::GoogleAds::V4::Resources::
|
2361
|
+
obj = Google::Ads::GoogleAds::V4::Resources::AdGroup.new
|
2284
2362
|
obj.resource_name = resource_or_path
|
2285
2363
|
obj
|
2286
2364
|
else
|
2287
|
-
unless Google::Ads::GoogleAds::V4::Resources::
|
2365
|
+
unless Google::Ads::GoogleAds::V4::Resources::AdGroup === res
|
2288
2366
|
raise ArgumentError.new(
|
2289
2367
|
"Called #{__method__} with instance of wrong type:"\
|
2290
2368
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2293,7 +2371,7 @@ module Google
|
|
2293
2371
|
end
|
2294
2372
|
end
|
2295
2373
|
|
2296
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
2374
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupOperation.new
|
2297
2375
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2298
2376
|
op["update"] = res
|
2299
2377
|
op
|
@@ -2338,31 +2416,31 @@ module Google
|
|
2338
2416
|
op
|
2339
2417
|
end
|
2340
2418
|
|
2341
|
-
# A convenience method for creating an
|
2342
|
-
# its "update" field prepopulated with an
|
2419
|
+
# A convenience method for creating an CustomerManagerLinkOperation instance with
|
2420
|
+
# its "update" field prepopulated with an CustomerManagerLink instance, and
|
2343
2421
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2344
2422
|
#
|
2345
|
-
# @overload #
|
2423
|
+
# @overload #customer_manager_link(path, &blk)
|
2346
2424
|
# @param path [String] a resource path for the resource to update
|
2347
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::
|
2425
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::CustomerManagerLink] a new instance of the resource for this update operation, on
|
2348
2426
|
# which fields can be set to update
|
2349
2427
|
#
|
2350
|
-
# @overload #
|
2351
|
-
# @param resource [Google::Ads::GoogleAds::V4::Resources::
|
2428
|
+
# @overload #customer_manager_link(resource, &blk)
|
2429
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::CustomerManagerLink] a resource instance to update
|
2352
2430
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2353
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
2354
|
-
def self.
|
2355
|
-
require "google/ads/google_ads/v4/services/
|
2431
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkOperation] the operation instance to update the resource
|
2432
|
+
def self.customer_manager_link(resource_or_path, &blk)
|
2433
|
+
require "google/ads/google_ads/v4/services/customer_manager_link_service_pb"
|
2356
2434
|
res = case resource_or_path
|
2357
|
-
when Google::Ads::GoogleAds::V4::Resources::
|
2435
|
+
when Google::Ads::GoogleAds::V4::Resources::CustomerManagerLink
|
2358
2436
|
resource_or_path
|
2359
2437
|
# got a resource path
|
2360
2438
|
when String
|
2361
|
-
obj = Google::Ads::GoogleAds::V4::Resources::
|
2439
|
+
obj = Google::Ads::GoogleAds::V4::Resources::CustomerManagerLink.new
|
2362
2440
|
obj.resource_name = resource_or_path
|
2363
2441
|
obj
|
2364
2442
|
else
|
2365
|
-
unless Google::Ads::GoogleAds::V4::Resources::
|
2443
|
+
unless Google::Ads::GoogleAds::V4::Resources::CustomerManagerLink === res
|
2366
2444
|
raise ArgumentError.new(
|
2367
2445
|
"Called #{__method__} with instance of wrong type:"\
|
2368
2446
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2371,37 +2449,37 @@ module Google
|
|
2371
2449
|
end
|
2372
2450
|
end
|
2373
2451
|
|
2374
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
2452
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkOperation.new
|
2375
2453
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2376
2454
|
op["update"] = res
|
2377
2455
|
op
|
2378
2456
|
end
|
2379
2457
|
|
2380
|
-
# A convenience method for creating an
|
2381
|
-
# its "update" field prepopulated with an
|
2458
|
+
# A convenience method for creating an CampaignDraftOperation instance with
|
2459
|
+
# its "update" field prepopulated with an CampaignDraft instance, and
|
2382
2460
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2383
2461
|
#
|
2384
|
-
# @overload #
|
2462
|
+
# @overload #campaign_draft(path, &blk)
|
2385
2463
|
# @param path [String] a resource path for the resource to update
|
2386
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::
|
2464
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::CampaignDraft] a new instance of the resource for this update operation, on
|
2387
2465
|
# which fields can be set to update
|
2388
2466
|
#
|
2389
|
-
# @overload #
|
2390
|
-
# @param resource [Google::Ads::GoogleAds::V4::Resources::
|
2467
|
+
# @overload #campaign_draft(resource, &blk)
|
2468
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::CampaignDraft] a resource instance to update
|
2391
2469
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2392
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
2393
|
-
def self.
|
2394
|
-
require "google/ads/google_ads/v4/services/
|
2470
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignDraftOperation] the operation instance to update the resource
|
2471
|
+
def self.campaign_draft(resource_or_path, &blk)
|
2472
|
+
require "google/ads/google_ads/v4/services/campaign_draft_service_pb"
|
2395
2473
|
res = case resource_or_path
|
2396
|
-
when Google::Ads::GoogleAds::V4::Resources::
|
2474
|
+
when Google::Ads::GoogleAds::V4::Resources::CampaignDraft
|
2397
2475
|
resource_or_path
|
2398
2476
|
# got a resource path
|
2399
2477
|
when String
|
2400
|
-
obj = Google::Ads::GoogleAds::V4::Resources::
|
2478
|
+
obj = Google::Ads::GoogleAds::V4::Resources::CampaignDraft.new
|
2401
2479
|
obj.resource_name = resource_or_path
|
2402
2480
|
obj
|
2403
2481
|
else
|
2404
|
-
unless Google::Ads::GoogleAds::V4::Resources::
|
2482
|
+
unless Google::Ads::GoogleAds::V4::Resources::CampaignDraft === res
|
2405
2483
|
raise ArgumentError.new(
|
2406
2484
|
"Called #{__method__} with instance of wrong type:"\
|
2407
2485
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2410,37 +2488,37 @@ module Google
|
|
2410
2488
|
end
|
2411
2489
|
end
|
2412
2490
|
|
2413
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
2491
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignDraftOperation.new
|
2414
2492
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2415
2493
|
op["update"] = res
|
2416
2494
|
op
|
2417
2495
|
end
|
2418
2496
|
|
2419
|
-
# A convenience method for creating an
|
2420
|
-
# its "update" field prepopulated with an
|
2497
|
+
# A convenience method for creating an UserListOperation instance with
|
2498
|
+
# its "update" field prepopulated with an UserList instance, and
|
2421
2499
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2422
2500
|
#
|
2423
|
-
# @overload #
|
2501
|
+
# @overload #user_list(path, &blk)
|
2424
2502
|
# @param path [String] a resource path for the resource to update
|
2425
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::
|
2503
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::UserList] a new instance of the resource for this update operation, on
|
2426
2504
|
# which fields can be set to update
|
2427
2505
|
#
|
2428
|
-
# @overload #
|
2429
|
-
# @param resource [Google::Ads::GoogleAds::V4::Resources::
|
2506
|
+
# @overload #user_list(resource, &blk)
|
2507
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::UserList] a resource instance to update
|
2430
2508
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2431
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
2432
|
-
def self.
|
2433
|
-
require "google/ads/google_ads/v4/services/
|
2509
|
+
# @return [Google::Ads::GoogleAds::V4::Services::UserListOperation] the operation instance to update the resource
|
2510
|
+
def self.user_list(resource_or_path, &blk)
|
2511
|
+
require "google/ads/google_ads/v4/services/user_list_service_pb"
|
2434
2512
|
res = case resource_or_path
|
2435
|
-
when Google::Ads::GoogleAds::V4::Resources::
|
2513
|
+
when Google::Ads::GoogleAds::V4::Resources::UserList
|
2436
2514
|
resource_or_path
|
2437
2515
|
# got a resource path
|
2438
2516
|
when String
|
2439
|
-
obj = Google::Ads::GoogleAds::V4::Resources::
|
2517
|
+
obj = Google::Ads::GoogleAds::V4::Resources::UserList.new
|
2440
2518
|
obj.resource_name = resource_or_path
|
2441
2519
|
obj
|
2442
2520
|
else
|
2443
|
-
unless Google::Ads::GoogleAds::V4::Resources::
|
2521
|
+
unless Google::Ads::GoogleAds::V4::Resources::UserList === res
|
2444
2522
|
raise ArgumentError.new(
|
2445
2523
|
"Called #{__method__} with instance of wrong type:"\
|
2446
2524
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2449,7 +2527,124 @@ module Google
|
|
2449
2527
|
end
|
2450
2528
|
end
|
2451
2529
|
|
2452
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
2530
|
+
op = Google::Ads::GoogleAds::V4::Services::UserListOperation.new
|
2531
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2532
|
+
op["update"] = res
|
2533
|
+
op
|
2534
|
+
end
|
2535
|
+
|
2536
|
+
# A convenience method for creating an CustomerOperation instance with
|
2537
|
+
# its "update" field prepopulated with an Customer instance, and
|
2538
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2539
|
+
#
|
2540
|
+
# @overload #customer(path, &blk)
|
2541
|
+
# @param path [String] a resource path for the resource to update
|
2542
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::Customer] a new instance of the resource for this update operation, on
|
2543
|
+
# which fields can be set to update
|
2544
|
+
#
|
2545
|
+
# @overload #customer(resource, &blk)
|
2546
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::Customer] a resource instance to update
|
2547
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2548
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CustomerOperation] the operation instance to update the resource
|
2549
|
+
def self.customer(resource_or_path, &blk)
|
2550
|
+
require "google/ads/google_ads/v4/services/customer_service_pb"
|
2551
|
+
res = case resource_or_path
|
2552
|
+
when Google::Ads::GoogleAds::V4::Resources::Customer
|
2553
|
+
resource_or_path
|
2554
|
+
# got a resource path
|
2555
|
+
when String
|
2556
|
+
obj = Google::Ads::GoogleAds::V4::Resources::Customer.new
|
2557
|
+
obj.resource_name = resource_or_path
|
2558
|
+
obj
|
2559
|
+
else
|
2560
|
+
unless Google::Ads::GoogleAds::V4::Resources::Customer === res
|
2561
|
+
raise ArgumentError.new(
|
2562
|
+
"Called #{__method__} with instance of wrong type:"\
|
2563
|
+
" #{res.class} want #{operation.update_class}"\
|
2564
|
+
" or String representing resource name"
|
2565
|
+
)
|
2566
|
+
end
|
2567
|
+
end
|
2568
|
+
|
2569
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomerOperation.new
|
2570
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2571
|
+
op["update"] = res
|
2572
|
+
op
|
2573
|
+
end
|
2574
|
+
|
2575
|
+
# A convenience method for creating an SharedSetOperation instance with
|
2576
|
+
# its "update" field prepopulated with an SharedSet instance, and
|
2577
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2578
|
+
#
|
2579
|
+
# @overload #shared_set(path, &blk)
|
2580
|
+
# @param path [String] a resource path for the resource to update
|
2581
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::SharedSet] a new instance of the resource for this update operation, on
|
2582
|
+
# which fields can be set to update
|
2583
|
+
#
|
2584
|
+
# @overload #shared_set(resource, &blk)
|
2585
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::SharedSet] a resource instance to update
|
2586
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2587
|
+
# @return [Google::Ads::GoogleAds::V4::Services::SharedSetOperation] the operation instance to update the resource
|
2588
|
+
def self.shared_set(resource_or_path, &blk)
|
2589
|
+
require "google/ads/google_ads/v4/services/shared_set_service_pb"
|
2590
|
+
res = case resource_or_path
|
2591
|
+
when Google::Ads::GoogleAds::V4::Resources::SharedSet
|
2592
|
+
resource_or_path
|
2593
|
+
# got a resource path
|
2594
|
+
when String
|
2595
|
+
obj = Google::Ads::GoogleAds::V4::Resources::SharedSet.new
|
2596
|
+
obj.resource_name = resource_or_path
|
2597
|
+
obj
|
2598
|
+
else
|
2599
|
+
unless Google::Ads::GoogleAds::V4::Resources::SharedSet === res
|
2600
|
+
raise ArgumentError.new(
|
2601
|
+
"Called #{__method__} with instance of wrong type:"\
|
2602
|
+
" #{res.class} want #{operation.update_class}"\
|
2603
|
+
" or String representing resource name"
|
2604
|
+
)
|
2605
|
+
end
|
2606
|
+
end
|
2607
|
+
|
2608
|
+
op = Google::Ads::GoogleAds::V4::Services::SharedSetOperation.new
|
2609
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2610
|
+
op["update"] = res
|
2611
|
+
op
|
2612
|
+
end
|
2613
|
+
|
2614
|
+
# A convenience method for creating an LabelOperation instance with
|
2615
|
+
# its "update" field prepopulated with an Label instance, and
|
2616
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2617
|
+
#
|
2618
|
+
# @overload #label(path, &blk)
|
2619
|
+
# @param path [String] a resource path for the resource to update
|
2620
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::Label] a new instance of the resource for this update operation, on
|
2621
|
+
# which fields can be set to update
|
2622
|
+
#
|
2623
|
+
# @overload #label(resource, &blk)
|
2624
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::Label] a resource instance to update
|
2625
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2626
|
+
# @return [Google::Ads::GoogleAds::V4::Services::LabelOperation] the operation instance to update the resource
|
2627
|
+
def self.label(resource_or_path, &blk)
|
2628
|
+
require "google/ads/google_ads/v4/services/label_service_pb"
|
2629
|
+
res = case resource_or_path
|
2630
|
+
when Google::Ads::GoogleAds::V4::Resources::Label
|
2631
|
+
resource_or_path
|
2632
|
+
# got a resource path
|
2633
|
+
when String
|
2634
|
+
obj = Google::Ads::GoogleAds::V4::Resources::Label.new
|
2635
|
+
obj.resource_name = resource_or_path
|
2636
|
+
obj
|
2637
|
+
else
|
2638
|
+
unless Google::Ads::GoogleAds::V4::Resources::Label === res
|
2639
|
+
raise ArgumentError.new(
|
2640
|
+
"Called #{__method__} with instance of wrong type:"\
|
2641
|
+
" #{res.class} want #{operation.update_class}"\
|
2642
|
+
" or String representing resource name"
|
2643
|
+
)
|
2644
|
+
end
|
2645
|
+
end
|
2646
|
+
|
2647
|
+
op = Google::Ads::GoogleAds::V4::Services::LabelOperation.new
|
2453
2648
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2454
2649
|
op["update"] = res
|
2455
2650
|
op
|
@@ -2728,31 +2923,31 @@ module Google
|
|
2728
2923
|
op
|
2729
2924
|
end
|
2730
2925
|
|
2731
|
-
# A convenience method for creating an
|
2732
|
-
# its "update" field prepopulated with an
|
2926
|
+
# A convenience method for creating an BiddingStrategyOperation instance with
|
2927
|
+
# its "update" field prepopulated with an BiddingStrategy instance, and
|
2733
2928
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2734
2929
|
#
|
2735
|
-
# @overload #
|
2930
|
+
# @overload #bidding_strategy(path, &blk)
|
2736
2931
|
# @param path [String] a resource path for the resource to update
|
2737
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::
|
2932
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::BiddingStrategy] a new instance of the resource for this update operation, on
|
2738
2933
|
# which fields can be set to update
|
2739
2934
|
#
|
2740
|
-
# @overload #
|
2741
|
-
# @param resource [Google::Ads::GoogleAds::V4::Resources::
|
2935
|
+
# @overload #bidding_strategy(resource, &blk)
|
2936
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::BiddingStrategy] a resource instance to update
|
2742
2937
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2743
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
2744
|
-
def self.
|
2745
|
-
require "google/ads/google_ads/v4/services/
|
2938
|
+
# @return [Google::Ads::GoogleAds::V4::Services::BiddingStrategyOperation] the operation instance to update the resource
|
2939
|
+
def self.bidding_strategy(resource_or_path, &blk)
|
2940
|
+
require "google/ads/google_ads/v4/services/bidding_strategy_service_pb"
|
2746
2941
|
res = case resource_or_path
|
2747
|
-
when Google::Ads::GoogleAds::V4::Resources::
|
2942
|
+
when Google::Ads::GoogleAds::V4::Resources::BiddingStrategy
|
2748
2943
|
resource_or_path
|
2749
2944
|
# got a resource path
|
2750
2945
|
when String
|
2751
|
-
obj = Google::Ads::GoogleAds::V4::Resources::
|
2946
|
+
obj = Google::Ads::GoogleAds::V4::Resources::BiddingStrategy.new
|
2752
2947
|
obj.resource_name = resource_or_path
|
2753
2948
|
obj
|
2754
2949
|
else
|
2755
|
-
unless Google::Ads::GoogleAds::V4::Resources::
|
2950
|
+
unless Google::Ads::GoogleAds::V4::Resources::BiddingStrategy === res
|
2756
2951
|
raise ArgumentError.new(
|
2757
2952
|
"Called #{__method__} with instance of wrong type:"\
|
2758
2953
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2761,37 +2956,37 @@ module Google
|
|
2761
2956
|
end
|
2762
2957
|
end
|
2763
2958
|
|
2764
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
2959
|
+
op = Google::Ads::GoogleAds::V4::Services::BiddingStrategyOperation.new
|
2765
2960
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2766
2961
|
op["update"] = res
|
2767
2962
|
op
|
2768
2963
|
end
|
2769
2964
|
|
2770
|
-
# A convenience method for creating an
|
2771
|
-
# its "update" field prepopulated with an
|
2965
|
+
# A convenience method for creating an CampaignBudgetOperation instance with
|
2966
|
+
# its "update" field prepopulated with an CampaignBudget instance, and
|
2772
2967
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2773
2968
|
#
|
2774
|
-
# @overload #
|
2969
|
+
# @overload #campaign_budget(path, &blk)
|
2775
2970
|
# @param path [String] a resource path for the resource to update
|
2776
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::
|
2971
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::CampaignBudget] a new instance of the resource for this update operation, on
|
2777
2972
|
# which fields can be set to update
|
2778
2973
|
#
|
2779
|
-
# @overload #
|
2780
|
-
# @param resource [Google::Ads::GoogleAds::V4::Resources::
|
2974
|
+
# @overload #campaign_budget(resource, &blk)
|
2975
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::CampaignBudget] a resource instance to update
|
2781
2976
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2782
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
2783
|
-
def self.
|
2784
|
-
require "google/ads/google_ads/v4/services/
|
2977
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignBudgetOperation] the operation instance to update the resource
|
2978
|
+
def self.campaign_budget(resource_or_path, &blk)
|
2979
|
+
require "google/ads/google_ads/v4/services/campaign_budget_service_pb"
|
2785
2980
|
res = case resource_or_path
|
2786
|
-
when Google::Ads::GoogleAds::V4::Resources::
|
2981
|
+
when Google::Ads::GoogleAds::V4::Resources::CampaignBudget
|
2787
2982
|
resource_or_path
|
2788
2983
|
# got a resource path
|
2789
2984
|
when String
|
2790
|
-
obj = Google::Ads::GoogleAds::V4::Resources::
|
2985
|
+
obj = Google::Ads::GoogleAds::V4::Resources::CampaignBudget.new
|
2791
2986
|
obj.resource_name = resource_or_path
|
2792
2987
|
obj
|
2793
2988
|
else
|
2794
|
-
unless Google::Ads::GoogleAds::V4::Resources::
|
2989
|
+
unless Google::Ads::GoogleAds::V4::Resources::CampaignBudget === res
|
2795
2990
|
raise ArgumentError.new(
|
2796
2991
|
"Called #{__method__} with instance of wrong type:"\
|
2797
2992
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2800,7 +2995,46 @@ module Google
|
|
2800
2995
|
end
|
2801
2996
|
end
|
2802
2997
|
|
2803
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
2998
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignBudgetOperation.new
|
2999
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3000
|
+
op["update"] = res
|
3001
|
+
op
|
3002
|
+
end
|
3003
|
+
|
3004
|
+
# A convenience method for creating an CampaignCriterionOperation instance with
|
3005
|
+
# its "update" field prepopulated with an CampaignCriterion instance, and
|
3006
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
3007
|
+
#
|
3008
|
+
# @overload #campaign_criterion(path, &blk)
|
3009
|
+
# @param path [String] a resource path for the resource to update
|
3010
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::CampaignCriterion] a new instance of the resource for this update operation, on
|
3011
|
+
# which fields can be set to update
|
3012
|
+
#
|
3013
|
+
# @overload #campaign_criterion(resource, &blk)
|
3014
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::CampaignCriterion] a resource instance to update
|
3015
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3016
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignCriterionOperation] the operation instance to update the resource
|
3017
|
+
def self.campaign_criterion(resource_or_path, &blk)
|
3018
|
+
require "google/ads/google_ads/v4/services/campaign_criterion_service_pb"
|
3019
|
+
res = case resource_or_path
|
3020
|
+
when Google::Ads::GoogleAds::V4::Resources::CampaignCriterion
|
3021
|
+
resource_or_path
|
3022
|
+
# got a resource path
|
3023
|
+
when String
|
3024
|
+
obj = Google::Ads::GoogleAds::V4::Resources::CampaignCriterion.new
|
3025
|
+
obj.resource_name = resource_or_path
|
3026
|
+
obj
|
3027
|
+
else
|
3028
|
+
unless Google::Ads::GoogleAds::V4::Resources::CampaignCriterion === res
|
3029
|
+
raise ArgumentError.new(
|
3030
|
+
"Called #{__method__} with instance of wrong type:"\
|
3031
|
+
" #{res.class} want #{operation.update_class}"\
|
3032
|
+
" or String representing resource name"
|
3033
|
+
)
|
3034
|
+
end
|
3035
|
+
end
|
3036
|
+
|
3037
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignCriterionOperation.new
|
2804
3038
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2805
3039
|
op["update"] = res
|
2806
3040
|
op
|
@@ -2923,31 +3157,31 @@ module Google
|
|
2923
3157
|
op
|
2924
3158
|
end
|
2925
3159
|
|
2926
|
-
# A convenience method for creating an
|
2927
|
-
# its "update" field prepopulated with an
|
3160
|
+
# A convenience method for creating an CampaignOperation instance with
|
3161
|
+
# its "update" field prepopulated with an Campaign instance, and
|
2928
3162
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2929
3163
|
#
|
2930
|
-
# @overload #
|
3164
|
+
# @overload #campaign(path, &blk)
|
2931
3165
|
# @param path [String] a resource path for the resource to update
|
2932
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::
|
3166
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::Campaign] a new instance of the resource for this update operation, on
|
2933
3167
|
# which fields can be set to update
|
2934
3168
|
#
|
2935
|
-
# @overload #
|
2936
|
-
# @param resource [Google::Ads::GoogleAds::V4::Resources::
|
3169
|
+
# @overload #campaign(resource, &blk)
|
3170
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::Campaign] a resource instance to update
|
2937
3171
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2938
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
2939
|
-
def self.
|
2940
|
-
require "google/ads/google_ads/v4/services/
|
3172
|
+
# @return [Google::Ads::GoogleAds::V4::Services::CampaignOperation] the operation instance to update the resource
|
3173
|
+
def self.campaign(resource_or_path, &blk)
|
3174
|
+
require "google/ads/google_ads/v4/services/campaign_service_pb"
|
2941
3175
|
res = case resource_or_path
|
2942
|
-
when Google::Ads::GoogleAds::V4::Resources::
|
3176
|
+
when Google::Ads::GoogleAds::V4::Resources::Campaign
|
2943
3177
|
resource_or_path
|
2944
3178
|
# got a resource path
|
2945
3179
|
when String
|
2946
|
-
obj = Google::Ads::GoogleAds::V4::Resources::
|
3180
|
+
obj = Google::Ads::GoogleAds::V4::Resources::Campaign.new
|
2947
3181
|
obj.resource_name = resource_or_path
|
2948
3182
|
obj
|
2949
3183
|
else
|
2950
|
-
unless Google::Ads::GoogleAds::V4::Resources::
|
3184
|
+
unless Google::Ads::GoogleAds::V4::Resources::Campaign === res
|
2951
3185
|
raise ArgumentError.new(
|
2952
3186
|
"Called #{__method__} with instance of wrong type:"\
|
2953
3187
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2956,17 +3190,56 @@ module Google
|
|
2956
3190
|
end
|
2957
3191
|
end
|
2958
3192
|
|
2959
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
3193
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignOperation.new
|
2960
3194
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2961
3195
|
op["update"] = res
|
2962
3196
|
op
|
2963
3197
|
end
|
2964
3198
|
|
2965
|
-
# A convenience method for creating an
|
2966
|
-
# its "update" field prepopulated with an
|
3199
|
+
# A convenience method for creating an ConversionActionOperation instance with
|
3200
|
+
# its "update" field prepopulated with an ConversionAction instance, and
|
2967
3201
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2968
3202
|
#
|
2969
|
-
# @overload #
|
3203
|
+
# @overload #conversion_action(path, &blk)
|
3204
|
+
# @param path [String] a resource path for the resource to update
|
3205
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::ConversionAction] a new instance of the resource for this update operation, on
|
3206
|
+
# which fields can be set to update
|
3207
|
+
#
|
3208
|
+
# @overload #conversion_action(resource, &blk)
|
3209
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::ConversionAction] a resource instance to update
|
3210
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3211
|
+
# @return [Google::Ads::GoogleAds::V4::Services::ConversionActionOperation] the operation instance to update the resource
|
3212
|
+
def self.conversion_action(resource_or_path, &blk)
|
3213
|
+
require "google/ads/google_ads/v4/services/conversion_action_service_pb"
|
3214
|
+
res = case resource_or_path
|
3215
|
+
when Google::Ads::GoogleAds::V4::Resources::ConversionAction
|
3216
|
+
resource_or_path
|
3217
|
+
# got a resource path
|
3218
|
+
when String
|
3219
|
+
obj = Google::Ads::GoogleAds::V4::Resources::ConversionAction.new
|
3220
|
+
obj.resource_name = resource_or_path
|
3221
|
+
obj
|
3222
|
+
else
|
3223
|
+
unless Google::Ads::GoogleAds::V4::Resources::ConversionAction === res
|
3224
|
+
raise ArgumentError.new(
|
3225
|
+
"Called #{__method__} with instance of wrong type:"\
|
3226
|
+
" #{res.class} want #{operation.update_class}"\
|
3227
|
+
" or String representing resource name"
|
3228
|
+
)
|
3229
|
+
end
|
3230
|
+
end
|
3231
|
+
|
3232
|
+
op = Google::Ads::GoogleAds::V4::Services::ConversionActionOperation.new
|
3233
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3234
|
+
op["update"] = res
|
3235
|
+
op
|
3236
|
+
end
|
3237
|
+
|
3238
|
+
# A convenience method for creating an CustomerExtensionSettingOperation instance with
|
3239
|
+
# its "update" field prepopulated with an CustomerExtensionSetting instance, and
|
3240
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
3241
|
+
#
|
3242
|
+
# @overload #customer_extension_setting(path, &blk)
|
2970
3243
|
# @param path [String] a resource path for the resource to update
|
2971
3244
|
# @yield [Google::Ads::GoogleAds::V4::Resources::CustomerExtensionSetting] a new instance of the resource for this update operation, on
|
2972
3245
|
# which fields can be set to update
|
@@ -3157,45 +3430,6 @@ module Google
|
|
3157
3430
|
op
|
3158
3431
|
end
|
3159
3432
|
|
3160
|
-
# A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
|
3161
|
-
# its "update" field prepopulated with an KeywordPlanAdGroupKeyword instance, and
|
3162
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
3163
|
-
#
|
3164
|
-
# @overload #keyword_plan_ad_group_keyword(path, &blk)
|
3165
|
-
# @param path [String] a resource path for the resource to update
|
3166
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword] a new instance of the resource for this update operation, on
|
3167
|
-
# which fields can be set to update
|
3168
|
-
#
|
3169
|
-
# @overload #keyword_plan_ad_group_keyword(resource, &blk)
|
3170
|
-
# @param resource [Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword] a resource instance to update
|
3171
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3172
|
-
# @return [Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation] the operation instance to update the resource
|
3173
|
-
def self.keyword_plan_ad_group_keyword(resource_or_path, &blk)
|
3174
|
-
require "google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_pb"
|
3175
|
-
res = case resource_or_path
|
3176
|
-
when Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword
|
3177
|
-
resource_or_path
|
3178
|
-
# got a resource path
|
3179
|
-
when String
|
3180
|
-
obj = Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword.new
|
3181
|
-
obj.resource_name = resource_or_path
|
3182
|
-
obj
|
3183
|
-
else
|
3184
|
-
unless Google::Ads::GoogleAds::V4::Resources::KeywordPlanAdGroupKeyword === res
|
3185
|
-
raise ArgumentError.new(
|
3186
|
-
"Called #{__method__} with instance of wrong type:"\
|
3187
|
-
" #{res.class} want #{operation.update_class}"\
|
3188
|
-
" or String representing resource name"
|
3189
|
-
)
|
3190
|
-
end
|
3191
|
-
end
|
3192
|
-
|
3193
|
-
op = Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation.new
|
3194
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3195
|
-
op["update"] = res
|
3196
|
-
op
|
3197
|
-
end
|
3198
|
-
|
3199
3433
|
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
3200
3434
|
# its "update" field prepopulated with an KeywordPlanAdGroup instance, and
|
3201
3435
|
# its "update_mask" field populated as needed to send the updates to the API.
|
@@ -3352,45 +3586,6 @@ module Google
|
|
3352
3586
|
op
|
3353
3587
|
end
|
3354
3588
|
|
3355
|
-
# A convenience method for creating an LabelOperation instance with
|
3356
|
-
# its "update" field prepopulated with an Label instance, and
|
3357
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
3358
|
-
#
|
3359
|
-
# @overload #label(path, &blk)
|
3360
|
-
# @param path [String] a resource path for the resource to update
|
3361
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::Label] a new instance of the resource for this update operation, on
|
3362
|
-
# which fields can be set to update
|
3363
|
-
#
|
3364
|
-
# @overload #label(resource, &blk)
|
3365
|
-
# @param resource [Google::Ads::GoogleAds::V4::Resources::Label] a resource instance to update
|
3366
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3367
|
-
# @return [Google::Ads::GoogleAds::V4::Services::LabelOperation] the operation instance to update the resource
|
3368
|
-
def self.label(resource_or_path, &blk)
|
3369
|
-
require "google/ads/google_ads/v4/services/label_service_pb"
|
3370
|
-
res = case resource_or_path
|
3371
|
-
when Google::Ads::GoogleAds::V4::Resources::Label
|
3372
|
-
resource_or_path
|
3373
|
-
# got a resource path
|
3374
|
-
when String
|
3375
|
-
obj = Google::Ads::GoogleAds::V4::Resources::Label.new
|
3376
|
-
obj.resource_name = resource_or_path
|
3377
|
-
obj
|
3378
|
-
else
|
3379
|
-
unless Google::Ads::GoogleAds::V4::Resources::Label === res
|
3380
|
-
raise ArgumentError.new(
|
3381
|
-
"Called #{__method__} with instance of wrong type:"\
|
3382
|
-
" #{res.class} want #{operation.update_class}"\
|
3383
|
-
" or String representing resource name"
|
3384
|
-
)
|
3385
|
-
end
|
3386
|
-
end
|
3387
|
-
|
3388
|
-
op = Google::Ads::GoogleAds::V4::Services::LabelOperation.new
|
3389
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3390
|
-
op["update"] = res
|
3391
|
-
op
|
3392
|
-
end
|
3393
|
-
|
3394
3589
|
# A convenience method for creating an RemarketingActionOperation instance with
|
3395
3590
|
# its "update" field prepopulated with an RemarketingAction instance, and
|
3396
3591
|
# its "update_mask" field populated as needed to send the updates to the API.
|
@@ -3430,31 +3625,31 @@ module Google
|
|
3430
3625
|
op
|
3431
3626
|
end
|
3432
3627
|
|
3433
|
-
# A convenience method for creating an
|
3434
|
-
# its "update" field prepopulated with an
|
3628
|
+
# A convenience method for creating an MerchantCenterLinkOperation instance with
|
3629
|
+
# its "update" field prepopulated with an MerchantCenterLink instance, and
|
3435
3630
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3436
3631
|
#
|
3437
|
-
# @overload #
|
3632
|
+
# @overload #merchant_center_link(path, &blk)
|
3438
3633
|
# @param path [String] a resource path for the resource to update
|
3439
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::
|
3634
|
+
# @yield [Google::Ads::GoogleAds::V4::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on
|
3440
3635
|
# which fields can be set to update
|
3441
3636
|
#
|
3442
|
-
# @overload #
|
3443
|
-
# @param resource [Google::Ads::GoogleAds::V4::Resources::
|
3637
|
+
# @overload #merchant_center_link(resource, &blk)
|
3638
|
+
# @param resource [Google::Ads::GoogleAds::V4::Resources::MerchantCenterLink] a resource instance to update
|
3444
3639
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3445
|
-
# @return [Google::Ads::GoogleAds::V4::Services::
|
3446
|
-
def self.
|
3447
|
-
require "google/ads/google_ads/v4/services/
|
3640
|
+
# @return [Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkOperation] the operation instance to update the resource
|
3641
|
+
def self.merchant_center_link(resource_or_path, &blk)
|
3642
|
+
require "google/ads/google_ads/v4/services/merchant_center_link_service_pb"
|
3448
3643
|
res = case resource_or_path
|
3449
|
-
when Google::Ads::GoogleAds::V4::Resources::
|
3644
|
+
when Google::Ads::GoogleAds::V4::Resources::MerchantCenterLink
|
3450
3645
|
resource_or_path
|
3451
3646
|
# got a resource path
|
3452
3647
|
when String
|
3453
|
-
obj = Google::Ads::GoogleAds::V4::Resources::
|
3648
|
+
obj = Google::Ads::GoogleAds::V4::Resources::MerchantCenterLink.new
|
3454
3649
|
obj.resource_name = resource_or_path
|
3455
3650
|
obj
|
3456
3651
|
else
|
3457
|
-
unless Google::Ads::GoogleAds::V4::Resources::
|
3652
|
+
unless Google::Ads::GoogleAds::V4::Resources::MerchantCenterLink === res
|
3458
3653
|
raise ArgumentError.new(
|
3459
3654
|
"Called #{__method__} with instance of wrong type:"\
|
3460
3655
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3463,249 +3658,153 @@ module Google
|
|
3463
3658
|
end
|
3464
3659
|
end
|
3465
3660
|
|
3466
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
3661
|
+
op = Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkOperation.new
|
3467
3662
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3468
3663
|
op["update"] = res
|
3469
3664
|
op
|
3470
3665
|
end
|
3666
|
+
end
|
3471
3667
|
|
3472
|
-
|
3473
|
-
#
|
3474
|
-
# its "
|
3668
|
+
module RemoveResource
|
3669
|
+
# A convenience method for creating an FeedAttributeOperation instance with
|
3670
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3475
3671
|
#
|
3476
|
-
# @
|
3477
|
-
|
3478
|
-
|
3479
|
-
|
3672
|
+
# @param path [String] the resource name of the resource to delete.
|
3673
|
+
def self.feed_attribute(path)
|
3674
|
+
require "google/ads/google_ads/v4/resources/feed_pb"
|
3675
|
+
op = Google::Ads::GoogleAds::V4::Resources::FeedAttributeOperation.new
|
3676
|
+
op["remove"] = path
|
3677
|
+
op
|
3678
|
+
end
|
3679
|
+
|
3680
|
+
# A convenience method for creating an TargetRestrictionOperation instance with
|
3681
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3480
3682
|
#
|
3481
|
-
# @
|
3482
|
-
|
3483
|
-
|
3484
|
-
|
3485
|
-
|
3486
|
-
|
3487
|
-
|
3488
|
-
when Google::Ads::GoogleAds::V4::Resources::UserList
|
3489
|
-
resource_or_path
|
3490
|
-
# got a resource path
|
3491
|
-
when String
|
3492
|
-
obj = Google::Ads::GoogleAds::V4::Resources::UserList.new
|
3493
|
-
obj.resource_name = resource_or_path
|
3494
|
-
obj
|
3495
|
-
else
|
3496
|
-
unless Google::Ads::GoogleAds::V4::Resources::UserList === res
|
3497
|
-
raise ArgumentError.new(
|
3498
|
-
"Called #{__method__} with instance of wrong type:"\
|
3499
|
-
" #{res.class} want #{operation.update_class}"\
|
3500
|
-
" or String representing resource name"
|
3501
|
-
)
|
3502
|
-
end
|
3503
|
-
end
|
3683
|
+
# @param path [String] the resource name of the resource to delete.
|
3684
|
+
def self.target_restriction(path)
|
3685
|
+
require "google/ads/google_ads/v4/common/targeting_setting_pb"
|
3686
|
+
op = Google::Ads::GoogleAds::V4::Common::TargetRestrictionOperation.new
|
3687
|
+
op["remove"] = path
|
3688
|
+
op
|
3689
|
+
end
|
3504
3690
|
|
3505
|
-
|
3506
|
-
|
3507
|
-
|
3691
|
+
# A convenience method for creating an CustomerClientLinkOperation instance with
|
3692
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3693
|
+
#
|
3694
|
+
# @param path [String] the resource name of the resource to delete.
|
3695
|
+
def self.customer_client_link(path)
|
3696
|
+
require "google/ads/google_ads/v4/services/customer_client_link_service_pb"
|
3697
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomerClientLinkOperation.new
|
3698
|
+
op["remove"] = path
|
3508
3699
|
op
|
3509
3700
|
end
|
3510
3701
|
|
3511
3702
|
# A convenience method for creating an CustomInterestOperation instance with
|
3512
|
-
# its "
|
3513
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
3514
|
-
#
|
3515
|
-
# @overload #custom_interest(path, &blk)
|
3516
|
-
# @param path [String] a resource path for the resource to update
|
3517
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::CustomInterest] a new instance of the resource for this update operation, on
|
3518
|
-
# which fields can be set to update
|
3703
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3519
3704
|
#
|
3520
|
-
# @
|
3521
|
-
|
3522
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3523
|
-
# @return [Google::Ads::GoogleAds::V4::Services::CustomInterestOperation] the operation instance to update the resource
|
3524
|
-
def self.custom_interest(resource_or_path, &blk)
|
3705
|
+
# @param path [String] the resource name of the resource to delete.
|
3706
|
+
def self.custom_interest(path)
|
3525
3707
|
require "google/ads/google_ads/v4/services/custom_interest_service_pb"
|
3526
|
-
res = case resource_or_path
|
3527
|
-
when Google::Ads::GoogleAds::V4::Resources::CustomInterest
|
3528
|
-
resource_or_path
|
3529
|
-
# got a resource path
|
3530
|
-
when String
|
3531
|
-
obj = Google::Ads::GoogleAds::V4::Resources::CustomInterest.new
|
3532
|
-
obj.resource_name = resource_or_path
|
3533
|
-
obj
|
3534
|
-
else
|
3535
|
-
unless Google::Ads::GoogleAds::V4::Resources::CustomInterest === res
|
3536
|
-
raise ArgumentError.new(
|
3537
|
-
"Called #{__method__} with instance of wrong type:"\
|
3538
|
-
" #{res.class} want #{operation.update_class}"\
|
3539
|
-
" or String representing resource name"
|
3540
|
-
)
|
3541
|
-
end
|
3542
|
-
end
|
3543
|
-
|
3544
3708
|
op = Google::Ads::GoogleAds::V4::Services::CustomInterestOperation.new
|
3545
|
-
op["
|
3546
|
-
op["update"] = res
|
3709
|
+
op["remove"] = path
|
3547
3710
|
op
|
3548
3711
|
end
|
3549
3712
|
|
3550
|
-
# A convenience method for creating an
|
3551
|
-
# its "
|
3552
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
3553
|
-
#
|
3554
|
-
# @overload #merchant_center_link(path, &blk)
|
3555
|
-
# @param path [String] a resource path for the resource to update
|
3556
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on
|
3557
|
-
# which fields can be set to update
|
3713
|
+
# A convenience method for creating an CustomerNegativeCriterionOperation instance with
|
3714
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3558
3715
|
#
|
3559
|
-
# @
|
3560
|
-
|
3561
|
-
|
3562
|
-
|
3563
|
-
|
3564
|
-
require "google/ads/google_ads/v4/services/merchant_center_link_service_pb"
|
3565
|
-
res = case resource_or_path
|
3566
|
-
when Google::Ads::GoogleAds::V4::Resources::MerchantCenterLink
|
3567
|
-
resource_or_path
|
3568
|
-
# got a resource path
|
3569
|
-
when String
|
3570
|
-
obj = Google::Ads::GoogleAds::V4::Resources::MerchantCenterLink.new
|
3571
|
-
obj.resource_name = resource_or_path
|
3572
|
-
obj
|
3573
|
-
else
|
3574
|
-
unless Google::Ads::GoogleAds::V4::Resources::MerchantCenterLink === res
|
3575
|
-
raise ArgumentError.new(
|
3576
|
-
"Called #{__method__} with instance of wrong type:"\
|
3577
|
-
" #{res.class} want #{operation.update_class}"\
|
3578
|
-
" or String representing resource name"
|
3579
|
-
)
|
3580
|
-
end
|
3581
|
-
end
|
3582
|
-
|
3583
|
-
op = Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkOperation.new
|
3584
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3585
|
-
op["update"] = res
|
3716
|
+
# @param path [String] the resource name of the resource to delete.
|
3717
|
+
def self.customer_negative_criterion(path)
|
3718
|
+
require "google/ads/google_ads/v4/services/customer_negative_criterion_service_pb"
|
3719
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionOperation.new
|
3720
|
+
op["remove"] = path
|
3586
3721
|
op
|
3587
3722
|
end
|
3588
3723
|
|
3589
|
-
# A convenience method for creating an
|
3590
|
-
# its "
|
3591
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
3592
|
-
#
|
3593
|
-
# @overload #customer_client_link(path, &blk)
|
3594
|
-
# @param path [String] a resource path for the resource to update
|
3595
|
-
# @yield [Google::Ads::GoogleAds::V4::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
|
3596
|
-
# which fields can be set to update
|
3724
|
+
# A convenience method for creating an SharedCriterionOperation instance with
|
3725
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3597
3726
|
#
|
3598
|
-
# @
|
3599
|
-
|
3600
|
-
|
3601
|
-
|
3602
|
-
|
3603
|
-
require "google/ads/google_ads/v4/services/customer_client_link_service_pb"
|
3604
|
-
res = case resource_or_path
|
3605
|
-
when Google::Ads::GoogleAds::V4::Resources::CustomerClientLink
|
3606
|
-
resource_or_path
|
3607
|
-
# got a resource path
|
3608
|
-
when String
|
3609
|
-
obj = Google::Ads::GoogleAds::V4::Resources::CustomerClientLink.new
|
3610
|
-
obj.resource_name = resource_or_path
|
3611
|
-
obj
|
3612
|
-
else
|
3613
|
-
unless Google::Ads::GoogleAds::V4::Resources::CustomerClientLink === res
|
3614
|
-
raise ArgumentError.new(
|
3615
|
-
"Called #{__method__} with instance of wrong type:"\
|
3616
|
-
" #{res.class} want #{operation.update_class}"\
|
3617
|
-
" or String representing resource name"
|
3618
|
-
)
|
3619
|
-
end
|
3620
|
-
end
|
3621
|
-
|
3622
|
-
op = Google::Ads::GoogleAds::V4::Services::CustomerClientLinkOperation.new
|
3623
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3624
|
-
op["update"] = res
|
3727
|
+
# @param path [String] the resource name of the resource to delete.
|
3728
|
+
def self.shared_criterion(path)
|
3729
|
+
require "google/ads/google_ads/v4/services/shared_criterion_service_pb"
|
3730
|
+
op = Google::Ads::GoogleAds::V4::Services::SharedCriterionOperation.new
|
3731
|
+
op["remove"] = path
|
3625
3732
|
op
|
3626
3733
|
end
|
3627
3734
|
|
3628
|
-
# A convenience method for creating an
|
3629
|
-
# its "
|
3630
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
3735
|
+
# A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
|
3736
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3631
3737
|
#
|
3632
|
-
# @
|
3633
|
-
|
3634
|
-
|
3635
|
-
|
3738
|
+
# @param path [String] the resource name of the resource to delete.
|
3739
|
+
def self.keyword_plan_ad_group_keyword(path)
|
3740
|
+
require "google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_pb"
|
3741
|
+
op = Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation.new
|
3742
|
+
op["remove"] = path
|
3743
|
+
op
|
3744
|
+
end
|
3745
|
+
|
3746
|
+
# A convenience method for creating an FeedMappingOperation instance with
|
3747
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3636
3748
|
#
|
3637
|
-
# @
|
3638
|
-
|
3639
|
-
|
3640
|
-
|
3641
|
-
|
3642
|
-
|
3643
|
-
|
3644
|
-
when Google::Ads::GoogleAds::V4::Resources::CustomerManagerLink
|
3645
|
-
resource_or_path
|
3646
|
-
# got a resource path
|
3647
|
-
when String
|
3648
|
-
obj = Google::Ads::GoogleAds::V4::Resources::CustomerManagerLink.new
|
3649
|
-
obj.resource_name = resource_or_path
|
3650
|
-
obj
|
3651
|
-
else
|
3652
|
-
unless Google::Ads::GoogleAds::V4::Resources::CustomerManagerLink === res
|
3653
|
-
raise ArgumentError.new(
|
3654
|
-
"Called #{__method__} with instance of wrong type:"\
|
3655
|
-
" #{res.class} want #{operation.update_class}"\
|
3656
|
-
" or String representing resource name"
|
3657
|
-
)
|
3658
|
-
end
|
3659
|
-
end
|
3749
|
+
# @param path [String] the resource name of the resource to delete.
|
3750
|
+
def self.feed_mapping(path)
|
3751
|
+
require "google/ads/google_ads/v4/services/feed_mapping_service_pb"
|
3752
|
+
op = Google::Ads::GoogleAds::V4::Services::FeedMappingOperation.new
|
3753
|
+
op["remove"] = path
|
3754
|
+
op
|
3755
|
+
end
|
3660
3756
|
|
3661
|
-
|
3662
|
-
|
3663
|
-
|
3757
|
+
# A convenience method for creating an AdGroupOperation instance with
|
3758
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3759
|
+
#
|
3760
|
+
# @param path [String] the resource name of the resource to delete.
|
3761
|
+
def self.ad_group(path)
|
3762
|
+
require "google/ads/google_ads/v4/services/ad_group_service_pb"
|
3763
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupOperation.new
|
3764
|
+
op["remove"] = path
|
3664
3765
|
op
|
3665
3766
|
end
|
3666
|
-
end
|
3667
3767
|
|
3668
|
-
|
3669
|
-
# A convenience method for creating an TargetRestrictionOperation instance with
|
3768
|
+
# A convenience method for creating an CampaignBidModifierOperation instance with
|
3670
3769
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3671
3770
|
#
|
3672
3771
|
# @param path [String] the resource name of the resource to delete.
|
3673
|
-
def self.
|
3674
|
-
require "google/ads/google_ads/v4/
|
3675
|
-
op = Google::Ads::GoogleAds::V4::
|
3772
|
+
def self.campaign_bid_modifier(path)
|
3773
|
+
require "google/ads/google_ads/v4/services/campaign_bid_modifier_service_pb"
|
3774
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignBidModifierOperation.new
|
3676
3775
|
op["remove"] = path
|
3677
3776
|
op
|
3678
3777
|
end
|
3679
3778
|
|
3680
|
-
# A convenience method for creating an
|
3779
|
+
# A convenience method for creating an CustomerManagerLinkOperation instance with
|
3681
3780
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3682
3781
|
#
|
3683
3782
|
# @param path [String] the resource name of the resource to delete.
|
3684
|
-
def self.
|
3685
|
-
require "google/ads/google_ads/v4/
|
3686
|
-
op = Google::Ads::GoogleAds::V4::
|
3783
|
+
def self.customer_manager_link(path)
|
3784
|
+
require "google/ads/google_ads/v4/services/customer_manager_link_service_pb"
|
3785
|
+
op = Google::Ads::GoogleAds::V4::Services::CustomerManagerLinkOperation.new
|
3687
3786
|
op["remove"] = path
|
3688
3787
|
op
|
3689
3788
|
end
|
3690
3789
|
|
3691
|
-
# A convenience method for creating an
|
3790
|
+
# A convenience method for creating an CampaignDraftOperation instance with
|
3692
3791
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3693
3792
|
#
|
3694
3793
|
# @param path [String] the resource name of the resource to delete.
|
3695
|
-
def self.
|
3696
|
-
require "google/ads/google_ads/v4/services/
|
3697
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
3794
|
+
def self.campaign_draft(path)
|
3795
|
+
require "google/ads/google_ads/v4/services/campaign_draft_service_pb"
|
3796
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignDraftOperation.new
|
3698
3797
|
op["remove"] = path
|
3699
3798
|
op
|
3700
3799
|
end
|
3701
3800
|
|
3702
|
-
# A convenience method for creating an
|
3801
|
+
# A convenience method for creating an UserListOperation instance with
|
3703
3802
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3704
3803
|
#
|
3705
3804
|
# @param path [String] the resource name of the resource to delete.
|
3706
|
-
def self.
|
3707
|
-
require "google/ads/google_ads/v4/services/
|
3708
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
3805
|
+
def self.user_list(path)
|
3806
|
+
require "google/ads/google_ads/v4/services/user_list_service_pb"
|
3807
|
+
op = Google::Ads::GoogleAds::V4::Services::UserListOperation.new
|
3709
3808
|
op["remove"] = path
|
3710
3809
|
op
|
3711
3810
|
end
|
@@ -3721,46 +3820,46 @@ module Google
|
|
3721
3820
|
op
|
3722
3821
|
end
|
3723
3822
|
|
3724
|
-
# A convenience method for creating an
|
3823
|
+
# A convenience method for creating an SharedSetOperation instance with
|
3725
3824
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3726
3825
|
#
|
3727
3826
|
# @param path [String] the resource name of the resource to delete.
|
3728
|
-
def self.
|
3729
|
-
require "google/ads/google_ads/v4/services/
|
3730
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
3827
|
+
def self.shared_set(path)
|
3828
|
+
require "google/ads/google_ads/v4/services/shared_set_service_pb"
|
3829
|
+
op = Google::Ads::GoogleAds::V4::Services::SharedSetOperation.new
|
3731
3830
|
op["remove"] = path
|
3732
3831
|
op
|
3733
3832
|
end
|
3734
3833
|
|
3735
|
-
# A convenience method for creating an
|
3834
|
+
# A convenience method for creating an AdGroupCriterionLabelOperation instance with
|
3736
3835
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3737
3836
|
#
|
3738
3837
|
# @param path [String] the resource name of the resource to delete.
|
3739
|
-
def self.
|
3740
|
-
require "google/ads/google_ads/v4/services/
|
3741
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
3838
|
+
def self.ad_group_criterion_label(path)
|
3839
|
+
require "google/ads/google_ads/v4/services/ad_group_criterion_label_service_pb"
|
3840
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupCriterionLabelOperation.new
|
3742
3841
|
op["remove"] = path
|
3743
3842
|
op
|
3744
3843
|
end
|
3745
3844
|
|
3746
|
-
# A convenience method for creating an
|
3845
|
+
# A convenience method for creating an LabelOperation instance with
|
3747
3846
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3748
3847
|
#
|
3749
3848
|
# @param path [String] the resource name of the resource to delete.
|
3750
|
-
def self.
|
3751
|
-
require "google/ads/google_ads/v4/services/
|
3752
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
3849
|
+
def self.label(path)
|
3850
|
+
require "google/ads/google_ads/v4/services/label_service_pb"
|
3851
|
+
op = Google::Ads::GoogleAds::V4::Services::LabelOperation.new
|
3753
3852
|
op["remove"] = path
|
3754
3853
|
op
|
3755
3854
|
end
|
3756
3855
|
|
3757
|
-
# A convenience method for creating an
|
3856
|
+
# A convenience method for creating an AdGroupAdLabelOperation instance with
|
3758
3857
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3759
3858
|
#
|
3760
3859
|
# @param path [String] the resource name of the resource to delete.
|
3761
|
-
def self.
|
3762
|
-
require "google/ads/google_ads/v4/services/
|
3763
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
3860
|
+
def self.ad_group_ad_label(path)
|
3861
|
+
require "google/ads/google_ads/v4/services/ad_group_ad_label_service_pb"
|
3862
|
+
op = Google::Ads::GoogleAds::V4::Services::AdGroupAdLabelOperation.new
|
3764
3863
|
op["remove"] = path
|
3765
3864
|
op
|
3766
3865
|
end
|
@@ -3787,17 +3886,6 @@ module Google
|
|
3787
3886
|
op
|
3788
3887
|
end
|
3789
3888
|
|
3790
|
-
# A convenience method for creating an AdGroupCriterionLabelOperation instance with
|
3791
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3792
|
-
#
|
3793
|
-
# @param path [String] the resource name of the resource to delete.
|
3794
|
-
def self.ad_group_criterion_label(path)
|
3795
|
-
require "google/ads/google_ads/v4/services/ad_group_criterion_label_service_pb"
|
3796
|
-
op = Google::Ads::GoogleAds::V4::Services::AdGroupCriterionLabelOperation.new
|
3797
|
-
op["remove"] = path
|
3798
|
-
op
|
3799
|
-
end
|
3800
|
-
|
3801
3889
|
# A convenience method for creating an AdGroupCriterionOperation instance with
|
3802
3890
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3803
3891
|
#
|
@@ -3875,24 +3963,35 @@ module Google
|
|
3875
3963
|
op
|
3876
3964
|
end
|
3877
3965
|
|
3878
|
-
# A convenience method for creating an
|
3966
|
+
# A convenience method for creating an BiddingStrategyOperation instance with
|
3879
3967
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3880
3968
|
#
|
3881
3969
|
# @param path [String] the resource name of the resource to delete.
|
3882
|
-
def self.
|
3883
|
-
require "google/ads/google_ads/v4/services/
|
3884
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
3970
|
+
def self.bidding_strategy(path)
|
3971
|
+
require "google/ads/google_ads/v4/services/bidding_strategy_service_pb"
|
3972
|
+
op = Google::Ads::GoogleAds::V4::Services::BiddingStrategyOperation.new
|
3885
3973
|
op["remove"] = path
|
3886
3974
|
op
|
3887
3975
|
end
|
3888
3976
|
|
3889
|
-
# A convenience method for creating an
|
3977
|
+
# A convenience method for creating an CampaignBudgetOperation instance with
|
3890
3978
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3891
3979
|
#
|
3892
3980
|
# @param path [String] the resource name of the resource to delete.
|
3893
|
-
def self.
|
3894
|
-
require "google/ads/google_ads/v4/services/
|
3895
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
3981
|
+
def self.campaign_budget(path)
|
3982
|
+
require "google/ads/google_ads/v4/services/campaign_budget_service_pb"
|
3983
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignBudgetOperation.new
|
3984
|
+
op["remove"] = path
|
3985
|
+
op
|
3986
|
+
end
|
3987
|
+
|
3988
|
+
# A convenience method for creating an CampaignCriterionOperation instance with
|
3989
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3990
|
+
#
|
3991
|
+
# @param path [String] the resource name of the resource to delete.
|
3992
|
+
def self.campaign_criterion(path)
|
3993
|
+
require "google/ads/google_ads/v4/services/campaign_criterion_service_pb"
|
3994
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignCriterionOperation.new
|
3896
3995
|
op["remove"] = path
|
3897
3996
|
op
|
3898
3997
|
end
|
@@ -3941,6 +4040,17 @@ module Google
|
|
3941
4040
|
op
|
3942
4041
|
end
|
3943
4042
|
|
4043
|
+
# A convenience method for creating an CampaignOperation instance with
|
4044
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4045
|
+
#
|
4046
|
+
# @param path [String] the resource name of the resource to delete.
|
4047
|
+
def self.campaign(path)
|
4048
|
+
require "google/ads/google_ads/v4/services/campaign_service_pb"
|
4049
|
+
op = Google::Ads::GoogleAds::V4::Services::CampaignOperation.new
|
4050
|
+
op["remove"] = path
|
4051
|
+
op
|
4052
|
+
end
|
4053
|
+
|
3944
4054
|
# A convenience method for creating an CampaignSharedSetOperation instance with
|
3945
4055
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3946
4056
|
#
|
@@ -3996,17 +4106,6 @@ module Google
|
|
3996
4106
|
op
|
3997
4107
|
end
|
3998
4108
|
|
3999
|
-
# A convenience method for creating an CustomerNegativeCriterionOperation instance with
|
4000
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4001
|
-
#
|
4002
|
-
# @param path [String] the resource name of the resource to delete.
|
4003
|
-
def self.customer_negative_criterion(path)
|
4004
|
-
require "google/ads/google_ads/v4/services/customer_negative_criterion_service_pb"
|
4005
|
-
op = Google::Ads::GoogleAds::V4::Services::CustomerNegativeCriterionOperation.new
|
4006
|
-
op["remove"] = path
|
4007
|
-
op
|
4008
|
-
end
|
4009
|
-
|
4010
4109
|
# A convenience method for creating an ExtensionFeedItemOperation instance with
|
4011
4110
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4012
4111
|
#
|
@@ -4040,17 +4139,6 @@ module Google
|
|
4040
4139
|
op
|
4041
4140
|
end
|
4042
4141
|
|
4043
|
-
# A convenience method for creating an FeedMappingOperation instance with
|
4044
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4045
|
-
#
|
4046
|
-
# @param path [String] the resource name of the resource to delete.
|
4047
|
-
def self.feed_mapping(path)
|
4048
|
-
require "google/ads/google_ads/v4/services/feed_mapping_service_pb"
|
4049
|
-
op = Google::Ads::GoogleAds::V4::Services::FeedMappingOperation.new
|
4050
|
-
op["remove"] = path
|
4051
|
-
op
|
4052
|
-
end
|
4053
|
-
|
4054
4142
|
# A convenience method for creating an FeedOperation instance with
|
4055
4143
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4056
4144
|
#
|
@@ -4062,17 +4150,6 @@ module Google
|
|
4062
4150
|
op
|
4063
4151
|
end
|
4064
4152
|
|
4065
|
-
# A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
|
4066
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4067
|
-
#
|
4068
|
-
# @param path [String] the resource name of the resource to delete.
|
4069
|
-
def self.keyword_plan_ad_group_keyword(path)
|
4070
|
-
require "google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_pb"
|
4071
|
-
op = Google::Ads::GoogleAds::V4::Services::KeywordPlanAdGroupKeywordOperation.new
|
4072
|
-
op["remove"] = path
|
4073
|
-
op
|
4074
|
-
end
|
4075
|
-
|
4076
4153
|
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
4077
4154
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4078
4155
|
#
|
@@ -4117,17 +4194,6 @@ module Google
|
|
4117
4194
|
op
|
4118
4195
|
end
|
4119
4196
|
|
4120
|
-
# A convenience method for creating an LabelOperation instance with
|
4121
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4122
|
-
#
|
4123
|
-
# @param path [String] the resource name of the resource to delete.
|
4124
|
-
def self.label(path)
|
4125
|
-
require "google/ads/google_ads/v4/services/label_service_pb"
|
4126
|
-
op = Google::Ads::GoogleAds::V4::Services::LabelOperation.new
|
4127
|
-
op["remove"] = path
|
4128
|
-
op
|
4129
|
-
end
|
4130
|
-
|
4131
4197
|
# A convenience method for creating an MediaFileOperation instance with
|
4132
4198
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4133
4199
|
#
|
@@ -4150,39 +4216,6 @@ module Google
|
|
4150
4216
|
op
|
4151
4217
|
end
|
4152
4218
|
|
4153
|
-
# A convenience method for creating an SharedCriterionOperation instance with
|
4154
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4155
|
-
#
|
4156
|
-
# @param path [String] the resource name of the resource to delete.
|
4157
|
-
def self.shared_criterion(path)
|
4158
|
-
require "google/ads/google_ads/v4/services/shared_criterion_service_pb"
|
4159
|
-
op = Google::Ads::GoogleAds::V4::Services::SharedCriterionOperation.new
|
4160
|
-
op["remove"] = path
|
4161
|
-
op
|
4162
|
-
end
|
4163
|
-
|
4164
|
-
# A convenience method for creating an SharedSetOperation instance with
|
4165
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4166
|
-
#
|
4167
|
-
# @param path [String] the resource name of the resource to delete.
|
4168
|
-
def self.shared_set(path)
|
4169
|
-
require "google/ads/google_ads/v4/services/shared_set_service_pb"
|
4170
|
-
op = Google::Ads::GoogleAds::V4::Services::SharedSetOperation.new
|
4171
|
-
op["remove"] = path
|
4172
|
-
op
|
4173
|
-
end
|
4174
|
-
|
4175
|
-
# A convenience method for creating an UserListOperation instance with
|
4176
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4177
|
-
#
|
4178
|
-
# @param path [String] the resource name of the resource to delete.
|
4179
|
-
def self.user_list(path)
|
4180
|
-
require "google/ads/google_ads/v4/services/user_list_service_pb"
|
4181
|
-
op = Google::Ads::GoogleAds::V4::Services::UserListOperation.new
|
4182
|
-
op["remove"] = path
|
4183
|
-
op
|
4184
|
-
end
|
4185
|
-
|
4186
4219
|
# A convenience method for creating an MutateOperation instance with
|
4187
4220
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4188
4221
|
#
|
@@ -4216,39 +4249,6 @@ module Google
|
|
4216
4249
|
op
|
4217
4250
|
end
|
4218
4251
|
|
4219
|
-
# A convenience method for creating an CustomInterestOperation instance with
|
4220
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4221
|
-
#
|
4222
|
-
# @param path [String] the resource name of the resource to delete.
|
4223
|
-
def self.custom_interest(path)
|
4224
|
-
require "google/ads/google_ads/v4/services/custom_interest_service_pb"
|
4225
|
-
op = Google::Ads::GoogleAds::V4::Services::CustomInterestOperation.new
|
4226
|
-
op["remove"] = path
|
4227
|
-
op
|
4228
|
-
end
|
4229
|
-
|
4230
|
-
# A convenience method for creating an MerchantCenterLinkOperation instance with
|
4231
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4232
|
-
#
|
4233
|
-
# @param path [String] the resource name of the resource to delete.
|
4234
|
-
def self.merchant_center_link(path)
|
4235
|
-
require "google/ads/google_ads/v4/services/merchant_center_link_service_pb"
|
4236
|
-
op = Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkOperation.new
|
4237
|
-
op["remove"] = path
|
4238
|
-
op
|
4239
|
-
end
|
4240
|
-
|
4241
|
-
# A convenience method for creating an CustomerClientLinkOperation instance with
|
4242
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4243
|
-
#
|
4244
|
-
# @param path [String] the resource name of the resource to delete.
|
4245
|
-
def self.customer_client_link(path)
|
4246
|
-
require "google/ads/google_ads/v4/services/customer_client_link_service_pb"
|
4247
|
-
op = Google::Ads::GoogleAds::V4::Services::CustomerClientLinkOperation.new
|
4248
|
-
op["remove"] = path
|
4249
|
-
op
|
4250
|
-
end
|
4251
|
-
|
4252
4252
|
# A convenience method for creating an UserDataOperation instance with
|
4253
4253
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4254
4254
|
#
|
@@ -4260,13 +4260,13 @@ module Google
|
|
4260
4260
|
op
|
4261
4261
|
end
|
4262
4262
|
|
4263
|
-
# A convenience method for creating an
|
4263
|
+
# A convenience method for creating an AccountBudgetProposalOperation instance with
|
4264
4264
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4265
4265
|
#
|
4266
4266
|
# @param path [String] the resource name of the resource to delete.
|
4267
|
-
def self.
|
4268
|
-
require "google/ads/google_ads/v4/services/
|
4269
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
4267
|
+
def self.account_budget_proposal(path)
|
4268
|
+
require "google/ads/google_ads/v4/services/account_budget_proposal_service_pb"
|
4269
|
+
op = Google::Ads::GoogleAds::V4::Services::AccountBudgetProposalOperation.new
|
4270
4270
|
op["remove"] = path
|
4271
4271
|
op
|
4272
4272
|
end
|
@@ -4293,35 +4293,35 @@ module Google
|
|
4293
4293
|
op
|
4294
4294
|
end
|
4295
4295
|
|
4296
|
-
# A convenience method for creating an
|
4296
|
+
# A convenience method for creating an AccountLinkOperation instance with
|
4297
4297
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4298
4298
|
#
|
4299
4299
|
# @param path [String] the resource name of the resource to delete.
|
4300
|
-
def self.
|
4301
|
-
require "google/ads/google_ads/v4/services/
|
4302
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
4300
|
+
def self.account_link(path)
|
4301
|
+
require "google/ads/google_ads/v4/services/account_link_service_pb"
|
4302
|
+
op = Google::Ads::GoogleAds::V4::Services::AccountLinkOperation.new
|
4303
4303
|
op["remove"] = path
|
4304
4304
|
op
|
4305
4305
|
end
|
4306
4306
|
|
4307
|
-
# A convenience method for creating an
|
4307
|
+
# A convenience method for creating an MerchantCenterLinkOperation instance with
|
4308
4308
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4309
4309
|
#
|
4310
4310
|
# @param path [String] the resource name of the resource to delete.
|
4311
|
-
def self.
|
4312
|
-
require "google/ads/google_ads/v4/services/
|
4313
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
4311
|
+
def self.merchant_center_link(path)
|
4312
|
+
require "google/ads/google_ads/v4/services/merchant_center_link_service_pb"
|
4313
|
+
op = Google::Ads::GoogleAds::V4::Services::MerchantCenterLinkOperation.new
|
4314
4314
|
op["remove"] = path
|
4315
4315
|
op
|
4316
4316
|
end
|
4317
4317
|
|
4318
|
-
# A convenience method for creating an
|
4318
|
+
# A convenience method for creating an BillingSetupOperation instance with
|
4319
4319
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
4320
4320
|
#
|
4321
4321
|
# @param path [String] the resource name of the resource to delete.
|
4322
|
-
def self.
|
4323
|
-
require "google/ads/google_ads/v4/services/
|
4324
|
-
op = Google::Ads::GoogleAds::V4::Services::
|
4322
|
+
def self.billing_setup(path)
|
4323
|
+
require "google/ads/google_ads/v4/services/billing_setup_service_pb"
|
4324
|
+
op = Google::Ads::GoogleAds::V4::Services::BillingSetupOperation.new
|
4325
4325
|
op["remove"] = path
|
4326
4326
|
op
|
4327
4327
|
end
|