google-ads-googleads 3.2.0 → 4.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 +2 -0
- data/README.md +9 -2
- data/lib/google/ads/google_ads/config.rb +0 -1
- data/lib/google/ads/google_ads/errors.rb +4 -0
- data/lib/google/ads/google_ads/factories/v1/enums.rb +1004 -1004
- data/lib/google/ads/google_ads/factories/v1/operations.rb +1029 -1029
- data/lib/google/ads/google_ads/factories/v1/resources.rb +2088 -2088
- data/lib/google/ads/google_ads/factories/v1/services.rb +301 -301
- data/lib/google/ads/google_ads/factories/v2/enums.rb +1084 -1084
- data/lib/google/ads/google_ads/factories/v2/operations.rb +1064 -1064
- data/lib/google/ads/google_ads/factories/v2/resources.rb +2156 -2156
- data/lib/google/ads/google_ads/factories/v2/services.rb +319 -319
- data/lib/google/ads/google_ads/version.rb +1 -1
- metadata +4 -5
@@ -12,108 +12,124 @@ module Google
|
|
12
12
|
Google::Ads::GoogleAds::V2::Resources::FeedAttributeOperation.new
|
13
13
|
end
|
14
14
|
|
15
|
-
# Create a new
|
15
|
+
# Create a new AdGroupCriterionLabelOperation
|
16
16
|
#
|
17
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
18
|
-
def self.
|
19
|
-
require "google/ads/google_ads/v2/services/
|
20
|
-
Google::Ads::GoogleAds::V2::Services::
|
17
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation] the operation
|
18
|
+
def self.ad_group_criterion_label
|
19
|
+
require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
|
20
|
+
Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
|
21
21
|
end
|
22
22
|
|
23
|
-
# Create a new
|
23
|
+
# Create a new CustomerManagerLinkOperation
|
24
24
|
#
|
25
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
26
|
-
def self.
|
27
|
-
require "google/ads/google_ads/v2/services/
|
28
|
-
Google::Ads::GoogleAds::V2::Services::
|
25
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation] the operation
|
26
|
+
def self.customer_manager_link
|
27
|
+
require "google/ads/google_ads/v2/services/customer_manager_link_service_pb.rb"
|
28
|
+
Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation.new
|
29
29
|
end
|
30
30
|
|
31
|
-
# Create a new
|
31
|
+
# Create a new KeywordPlanCampaignOperation
|
32
32
|
#
|
33
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
34
|
-
def self.
|
35
|
-
require "google/ads/google_ads/v2/services/
|
36
|
-
Google::Ads::GoogleAds::V2::Services::
|
33
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] the operation
|
34
|
+
def self.keyword_plan_campaign
|
35
|
+
require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
|
36
|
+
Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
|
37
37
|
end
|
38
38
|
|
39
|
-
# Create a new
|
39
|
+
# Create a new SharedSetOperation
|
40
40
|
#
|
41
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
42
|
-
def self.
|
43
|
-
require "google/ads/google_ads/v2/services/
|
44
|
-
Google::Ads::GoogleAds::V2::Services::
|
41
|
+
# @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] the operation
|
42
|
+
def self.shared_set
|
43
|
+
require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
|
44
|
+
Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
|
45
45
|
end
|
46
46
|
|
47
|
-
# Create a new
|
47
|
+
# Create a new FeedOperation
|
48
48
|
#
|
49
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
50
|
-
def self.
|
51
|
-
require "google/ads/google_ads/v2/services/
|
52
|
-
Google::Ads::GoogleAds::V2::Services::
|
49
|
+
# @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation
|
50
|
+
def self.feed
|
51
|
+
require "google/ads/google_ads/v2/services/feed_service_pb.rb"
|
52
|
+
Google::Ads::GoogleAds::V2::Services::FeedOperation.new
|
53
53
|
end
|
54
54
|
|
55
|
-
# Create a new
|
55
|
+
# Create a new AdGroupAdLabelOperation
|
56
56
|
#
|
57
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
58
|
-
def self.
|
59
|
-
require "google/ads/google_ads/v2/services/
|
60
|
-
Google::Ads::GoogleAds::V2::Services::
|
57
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] the operation
|
58
|
+
def self.ad_group_ad_label
|
59
|
+
require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
|
60
|
+
Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
|
61
61
|
end
|
62
62
|
|
63
|
-
# Create a new
|
63
|
+
# Create a new CustomerClientLinkOperation
|
64
64
|
#
|
65
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
66
|
-
def self.
|
67
|
-
require "google/ads/google_ads/v2/services/
|
68
|
-
Google::Ads::GoogleAds::V2::Services::
|
65
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] the operation
|
66
|
+
def self.customer_client_link
|
67
|
+
require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
|
68
|
+
Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
|
69
69
|
end
|
70
70
|
|
71
|
-
# Create a new
|
71
|
+
# Create a new CampaignSharedSetOperation
|
72
72
|
#
|
73
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
74
|
-
def self.
|
75
|
-
require "google/ads/google_ads/v2/services/
|
76
|
-
Google::Ads::GoogleAds::V2::Services::
|
73
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation] the operation
|
74
|
+
def self.campaign_shared_set
|
75
|
+
require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
|
76
|
+
Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
|
77
77
|
end
|
78
78
|
|
79
|
-
# Create a new
|
79
|
+
# Create a new MerchantCenterLinkOperation
|
80
80
|
#
|
81
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
82
|
-
def self.
|
83
|
-
require "google/ads/google_ads/v2/services/
|
84
|
-
Google::Ads::GoogleAds::V2::Services::
|
81
|
+
# @return [Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation] the operation
|
82
|
+
def self.merchant_center_link
|
83
|
+
require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
|
84
|
+
Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
|
85
85
|
end
|
86
86
|
|
87
|
-
# Create a new
|
87
|
+
# Create a new AdGroupBidModifierOperation
|
88
88
|
#
|
89
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
90
|
-
def self.
|
91
|
-
require "google/ads/google_ads/v2/services/
|
92
|
-
Google::Ads::GoogleAds::V2::Services::
|
89
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] the operation
|
90
|
+
def self.ad_group_bid_modifier
|
91
|
+
require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
|
92
|
+
Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
|
93
93
|
end
|
94
94
|
|
95
|
-
# Create a new
|
95
|
+
# Create a new CampaignFeedOperation
|
96
96
|
#
|
97
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
98
|
-
def self.
|
99
|
-
require "google/ads/google_ads/v2/services/
|
100
|
-
Google::Ads::GoogleAds::V2::Services::
|
97
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] the operation
|
98
|
+
def self.campaign_feed
|
99
|
+
require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
|
100
|
+
Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
|
101
101
|
end
|
102
102
|
|
103
|
-
# Create a new
|
103
|
+
# Create a new SharedCriterionOperation
|
104
104
|
#
|
105
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
106
|
-
def self.
|
107
|
-
require "google/ads/google_ads/v2/services/
|
108
|
-
Google::Ads::GoogleAds::V2::Services::
|
105
|
+
# @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] the operation
|
106
|
+
def self.shared_criterion
|
107
|
+
require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
|
108
|
+
Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
|
109
109
|
end
|
110
110
|
|
111
|
-
# Create a new
|
111
|
+
# Create a new RemarketingActionOperation
|
112
112
|
#
|
113
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
114
|
-
def self.
|
115
|
-
require "google/ads/google_ads/v2/services/
|
116
|
-
Google::Ads::GoogleAds::V2::Services::
|
113
|
+
# @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation
|
114
|
+
def self.remarketing_action
|
115
|
+
require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
|
116
|
+
Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
|
117
|
+
end
|
118
|
+
|
119
|
+
# Create a new AdGroupLabelOperation
|
120
|
+
#
|
121
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation] the operation
|
122
|
+
def self.ad_group_label
|
123
|
+
require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
|
124
|
+
Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
|
125
|
+
end
|
126
|
+
|
127
|
+
# Create a new CustomerLabelOperation
|
128
|
+
#
|
129
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation] the operation
|
130
|
+
def self.customer_label
|
131
|
+
require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
|
132
|
+
Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
|
117
133
|
end
|
118
134
|
|
119
135
|
# Create a new AdGroupAdOperation
|
@@ -124,14 +140,6 @@ module Google
|
|
124
140
|
Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
|
125
141
|
end
|
126
142
|
|
127
|
-
# Create a new AdGroupBidModifierOperation
|
128
|
-
#
|
129
|
-
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] the operation
|
130
|
-
def self.ad_group_bid_modifier
|
131
|
-
require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
|
132
|
-
Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
|
133
|
-
end
|
134
|
-
|
135
143
|
# Create a new AdGroupCriterionOperation
|
136
144
|
#
|
137
145
|
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation] the operation
|
@@ -156,14 +164,6 @@ module Google
|
|
156
164
|
Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation.new
|
157
165
|
end
|
158
166
|
|
159
|
-
# Create a new AdGroupLabelOperation
|
160
|
-
#
|
161
|
-
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation] the operation
|
162
|
-
def self.ad_group_label
|
163
|
-
require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
|
164
|
-
Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
|
165
|
-
end
|
166
|
-
|
167
167
|
# Create a new AdGroupOperation
|
168
168
|
#
|
169
169
|
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupOperation] the operation
|
@@ -180,6 +180,14 @@ module Google
|
|
180
180
|
Google::Ads::GoogleAds::V2::Services::AdParameterOperation.new
|
181
181
|
end
|
182
182
|
|
183
|
+
# Create a new AssetOperation
|
184
|
+
#
|
185
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AssetOperation] the operation
|
186
|
+
def self.asset
|
187
|
+
require "google/ads/google_ads/v2/services/asset_service_pb.rb"
|
188
|
+
Google::Ads::GoogleAds::V2::Services::AssetOperation.new
|
189
|
+
end
|
190
|
+
|
183
191
|
# Create a new BiddingStrategyOperation
|
184
192
|
#
|
185
193
|
# @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] the operation
|
@@ -204,6 +212,14 @@ module Google
|
|
204
212
|
Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
|
205
213
|
end
|
206
214
|
|
215
|
+
# Create a new CampaignCriterionOperation
|
216
|
+
#
|
217
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation] the operation
|
218
|
+
def self.campaign_criterion
|
219
|
+
require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
|
220
|
+
Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
|
221
|
+
end
|
222
|
+
|
207
223
|
# Create a new CampaignDraftOperation
|
208
224
|
#
|
209
225
|
# @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] the operation
|
@@ -212,6 +228,14 @@ module Google
|
|
212
228
|
Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
|
213
229
|
end
|
214
230
|
|
231
|
+
# Create a new CampaignExperimentOperation
|
232
|
+
#
|
233
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation] the operation
|
234
|
+
def self.campaign_experiment
|
235
|
+
require "google/ads/google_ads/v2/services/campaign_experiment_service_pb.rb"
|
236
|
+
Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation.new
|
237
|
+
end
|
238
|
+
|
215
239
|
# Create a new CampaignExtensionSettingOperation
|
216
240
|
#
|
217
241
|
# @return [Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation] the operation
|
@@ -220,12 +244,12 @@ module Google
|
|
220
244
|
Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation.new
|
221
245
|
end
|
222
246
|
|
223
|
-
# Create a new
|
247
|
+
# Create a new CampaignLabelOperation
|
224
248
|
#
|
225
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
226
|
-
def self.
|
227
|
-
require "google/ads/google_ads/v2/services/
|
228
|
-
Google::Ads::GoogleAds::V2::Services::
|
249
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation] the operation
|
250
|
+
def self.campaign_label
|
251
|
+
require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
|
252
|
+
Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
|
229
253
|
end
|
230
254
|
|
231
255
|
# Create a new CampaignOperation
|
@@ -236,14 +260,6 @@ module Google
|
|
236
260
|
Google::Ads::GoogleAds::V2::Services::CampaignOperation.new
|
237
261
|
end
|
238
262
|
|
239
|
-
# Create a new CampaignSharedSetOperation
|
240
|
-
#
|
241
|
-
# @return [Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation] the operation
|
242
|
-
def self.campaign_shared_set
|
243
|
-
require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
|
244
|
-
Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
|
245
|
-
end
|
246
|
-
|
247
263
|
# Create a new ConversionActionOperation
|
248
264
|
#
|
249
265
|
# @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] the operation
|
@@ -268,14 +284,6 @@ module Google
|
|
268
284
|
Google::Ads::GoogleAds::V2::Services::CustomerFeedOperation.new
|
269
285
|
end
|
270
286
|
|
271
|
-
# Create a new CustomerLabelOperation
|
272
|
-
#
|
273
|
-
# @return [Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation] the operation
|
274
|
-
def self.customer_label
|
275
|
-
require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
|
276
|
-
Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
|
277
|
-
end
|
278
|
-
|
279
287
|
# Create a new CustomerNegativeCriterionOperation
|
280
288
|
#
|
281
289
|
# @return [Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation] the operation
|
@@ -316,12 +324,20 @@ module Google
|
|
316
324
|
Google::Ads::GoogleAds::V2::Services::FeedItemTargetOperation.new
|
317
325
|
end
|
318
326
|
|
319
|
-
# Create a new
|
327
|
+
# Create a new FeedMappingOperation
|
320
328
|
#
|
321
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
322
|
-
def self.
|
323
|
-
require "google/ads/google_ads/v2/services/
|
324
|
-
Google::Ads::GoogleAds::V2::Services::
|
329
|
+
# @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] the operation
|
330
|
+
def self.feed_mapping
|
331
|
+
require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
|
332
|
+
Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
|
333
|
+
end
|
334
|
+
|
335
|
+
# Create a new LabelOperation
|
336
|
+
#
|
337
|
+
# @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] the operation
|
338
|
+
def self.label
|
339
|
+
require "google/ads/google_ads/v2/services/label_service_pb.rb"
|
340
|
+
Google::Ads::GoogleAds::V2::Services::LabelOperation.new
|
325
341
|
end
|
326
342
|
|
327
343
|
# Create a new MediaFileOperation
|
@@ -332,30 +348,6 @@ module Google
|
|
332
348
|
Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
|
333
349
|
end
|
334
350
|
|
335
|
-
# Create a new RemarketingActionOperation
|
336
|
-
#
|
337
|
-
# @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation
|
338
|
-
def self.remarketing_action
|
339
|
-
require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
|
340
|
-
Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
|
341
|
-
end
|
342
|
-
|
343
|
-
# Create a new SharedCriterionOperation
|
344
|
-
#
|
345
|
-
# @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] the operation
|
346
|
-
def self.shared_criterion
|
347
|
-
require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
|
348
|
-
Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
|
349
|
-
end
|
350
|
-
|
351
|
-
# Create a new SharedSetOperation
|
352
|
-
#
|
353
|
-
# @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] the operation
|
354
|
-
def self.shared_set
|
355
|
-
require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
|
356
|
-
Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
|
357
|
-
end
|
358
|
-
|
359
351
|
# Create a new UserListOperation
|
360
352
|
#
|
361
353
|
# @return [Google::Ads::GoogleAds::V2::Services::UserListOperation] the operation
|
@@ -372,20 +364,20 @@ module Google
|
|
372
364
|
Google::Ads::GoogleAds::V2::Services::MutateOperation.new
|
373
365
|
end
|
374
366
|
|
375
|
-
# Create a new
|
367
|
+
# Create a new KeywordPlanKeywordOperation
|
376
368
|
#
|
377
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
378
|
-
def self.
|
379
|
-
require "google/ads/google_ads/v2/services/
|
380
|
-
Google::Ads::GoogleAds::V2::Services::
|
369
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation
|
370
|
+
def self.keyword_plan_keyword
|
371
|
+
require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
|
372
|
+
Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
|
381
373
|
end
|
382
374
|
|
383
|
-
# Create a new
|
375
|
+
# Create a new KeywordPlanAdGroupOperation
|
384
376
|
#
|
385
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
386
|
-
def self.
|
387
|
-
require "google/ads/google_ads/v2/services/
|
388
|
-
Google::Ads::GoogleAds::V2::Services::
|
377
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] the operation
|
378
|
+
def self.keyword_plan_ad_group
|
379
|
+
require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
|
380
|
+
Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
|
389
381
|
end
|
390
382
|
|
391
383
|
# Create a new BillingSetupOperation
|
@@ -396,52 +388,60 @@ module Google
|
|
396
388
|
Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
|
397
389
|
end
|
398
390
|
|
399
|
-
# Create a new
|
391
|
+
# Create a new CustomInterestOperation
|
400
392
|
#
|
401
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
402
|
-
def self.
|
403
|
-
require "google/ads/google_ads/v2/services/
|
404
|
-
Google::Ads::GoogleAds::V2::Services::
|
393
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation
|
394
|
+
def self.custom_interest
|
395
|
+
require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
|
396
|
+
Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
|
405
397
|
end
|
406
398
|
|
407
|
-
# Create a new
|
399
|
+
# Create a new KeywordPlanNegativeKeywordOperation
|
408
400
|
#
|
409
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
410
|
-
def self.
|
411
|
-
require "google/ads/google_ads/v2/services/
|
412
|
-
Google::Ads::GoogleAds::V2::Services::
|
401
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] the operation
|
402
|
+
def self.keyword_plan_negative_keyword
|
403
|
+
require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
|
404
|
+
Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
|
413
405
|
end
|
414
406
|
|
415
|
-
# Create a new
|
407
|
+
# Create a new AdOperation
|
416
408
|
#
|
417
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
418
|
-
def self.
|
419
|
-
require "google/ads/google_ads/v2/services/
|
420
|
-
Google::Ads::GoogleAds::V2::Services::
|
409
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdOperation] the operation
|
410
|
+
def self.ad
|
411
|
+
require "google/ads/google_ads/v2/services/ad_service_pb.rb"
|
412
|
+
Google::Ads::GoogleAds::V2::Services::AdOperation.new
|
421
413
|
end
|
422
414
|
|
423
|
-
# Create a new
|
415
|
+
# Create a new KeywordPlanOperation
|
424
416
|
#
|
425
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
426
|
-
def self.
|
427
|
-
require "google/ads/google_ads/v2/services/
|
428
|
-
Google::Ads::GoogleAds::V2::Services::
|
417
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] the operation
|
418
|
+
def self.keyword_plan
|
419
|
+
require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
|
420
|
+
Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
|
429
421
|
end
|
430
422
|
|
431
|
-
# Create a new
|
423
|
+
# Create a new ApplyRecommendationOperation
|
432
424
|
#
|
433
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
434
|
-
def self.
|
435
|
-
require "google/ads/google_ads/v2/services/
|
436
|
-
Google::Ads::GoogleAds::V2::Services::
|
425
|
+
# @return [Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation] the operation
|
426
|
+
def self.apply_recommendation
|
427
|
+
require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
|
428
|
+
Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation.new
|
437
429
|
end
|
438
430
|
|
439
|
-
# Create a new
|
431
|
+
# Create a new DismissRecommendationOperation
|
440
432
|
#
|
441
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
442
|
-
def self.
|
443
|
-
require "google/ads/google_ads/v2/services/
|
444
|
-
Google::Ads::GoogleAds::V2::Services::
|
433
|
+
# @return [Google::Ads::GoogleAds::V2::Services::DismissRecommendationRequest::DismissRecommendationOperation] the operation
|
434
|
+
def self.dismiss_recommendation
|
435
|
+
require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
|
436
|
+
Google::Ads::GoogleAds::V2::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
|
437
|
+
end
|
438
|
+
|
439
|
+
# Create a new AccountBudgetProposalOperation
|
440
|
+
#
|
441
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation] the operation
|
442
|
+
def self.account_budget_proposal
|
443
|
+
require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
|
444
|
+
Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
|
445
445
|
end
|
446
446
|
|
447
447
|
# Get a reference module containing convenience methods for creating
|
@@ -469,251 +469,326 @@ module Google
|
|
469
469
|
end
|
470
470
|
|
471
471
|
module CreateResource
|
472
|
-
# A convenience method for creating an
|
473
|
-
# its "create" field prepopulated with an
|
472
|
+
# A convenience method for creating an AdGroupCriterionLabelOperation instance with
|
473
|
+
# its "create" field prepopulated with an AdGroupCriterionLabel instance.
|
474
474
|
#
|
475
|
-
# @overload
|
476
|
-
# creates an operation instance, yielding a newly fabricated
|
475
|
+
# @overload ad_group_criterion_label
|
476
|
+
# creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
|
477
477
|
# which can be used for setting attributes on the newly created resource
|
478
|
-
# @overload
|
478
|
+
# @overload ad_group_criterion_label(res)
|
479
479
|
# creates an operation instance, with the resource to be created
|
480
480
|
# set to the passed value (res)
|
481
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
481
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterionLabel]
|
482
482
|
# a resource instance to be used for creation in this operation.
|
483
483
|
#
|
484
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
485
|
-
def self.
|
486
|
-
require "google/ads/google_ads/v2/services/
|
487
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
484
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation] instance that will create the resource
|
485
|
+
def self.ad_group_criterion_label(res = nil, &blk)
|
486
|
+
require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
|
487
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
|
488
488
|
if !res.nil?
|
489
489
|
op["create"] = res
|
490
490
|
elsif !blk.nil?
|
491
|
-
op["create"] = Factories::V2::Resources.
|
491
|
+
op["create"] = Factories::V2::Resources.ad_group_criterion_label(&blk)
|
492
492
|
end
|
493
493
|
|
494
494
|
op
|
495
495
|
end
|
496
496
|
|
497
|
-
# A convenience method for creating an
|
498
|
-
# its "create" field prepopulated with an
|
497
|
+
# A convenience method for creating an KeywordPlanCampaignOperation instance with
|
498
|
+
# its "create" field prepopulated with an KeywordPlanCampaign instance.
|
499
499
|
#
|
500
|
-
# @overload
|
501
|
-
# creates an operation instance, yielding a newly fabricated
|
500
|
+
# @overload keyword_plan_campaign
|
501
|
+
# creates an operation instance, yielding a newly fabricated KeywordPlanCampaign
|
502
502
|
# which can be used for setting attributes on the newly created resource
|
503
|
-
# @overload
|
503
|
+
# @overload keyword_plan_campaign(res)
|
504
504
|
# creates an operation instance, with the resource to be created
|
505
505
|
# set to the passed value (res)
|
506
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
506
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign]
|
507
507
|
# a resource instance to be used for creation in this operation.
|
508
508
|
#
|
509
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
510
|
-
def self.
|
511
|
-
require "google/ads/google_ads/v2/services/
|
512
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
509
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] instance that will create the resource
|
510
|
+
def self.keyword_plan_campaign(res = nil, &blk)
|
511
|
+
require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
|
512
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
|
513
513
|
if !res.nil?
|
514
514
|
op["create"] = res
|
515
515
|
elsif !blk.nil?
|
516
|
-
op["create"] = Factories::V2::Resources.
|
516
|
+
op["create"] = Factories::V2::Resources.keyword_plan_campaign(&blk)
|
517
517
|
end
|
518
518
|
|
519
519
|
op
|
520
520
|
end
|
521
521
|
|
522
|
-
# A convenience method for creating an
|
523
|
-
# its "create" field prepopulated with an
|
522
|
+
# A convenience method for creating an SharedSetOperation instance with
|
523
|
+
# its "create" field prepopulated with an SharedSet instance.
|
524
524
|
#
|
525
|
-
# @overload
|
526
|
-
# creates an operation instance, yielding a newly fabricated
|
525
|
+
# @overload shared_set
|
526
|
+
# creates an operation instance, yielding a newly fabricated SharedSet
|
527
527
|
# which can be used for setting attributes on the newly created resource
|
528
|
-
# @overload
|
528
|
+
# @overload shared_set(res)
|
529
529
|
# creates an operation instance, with the resource to be created
|
530
530
|
# set to the passed value (res)
|
531
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
531
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::SharedSet]
|
532
532
|
# a resource instance to be used for creation in this operation.
|
533
533
|
#
|
534
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
535
|
-
def self.
|
536
|
-
require "google/ads/google_ads/v2/services/
|
537
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
534
|
+
# @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] instance that will create the resource
|
535
|
+
def self.shared_set(res = nil, &blk)
|
536
|
+
require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
|
537
|
+
op = Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
|
538
538
|
if !res.nil?
|
539
539
|
op["create"] = res
|
540
540
|
elsif !blk.nil?
|
541
|
-
op["create"] = Factories::V2::Resources.
|
541
|
+
op["create"] = Factories::V2::Resources.shared_set(&blk)
|
542
542
|
end
|
543
543
|
|
544
544
|
op
|
545
545
|
end
|
546
546
|
|
547
|
-
# A convenience method for creating an
|
548
|
-
# its "create" field prepopulated with an
|
547
|
+
# A convenience method for creating an FeedOperation instance with
|
548
|
+
# its "create" field prepopulated with an Feed instance.
|
549
549
|
#
|
550
|
-
# @overload
|
551
|
-
# creates an operation instance, yielding a newly fabricated
|
550
|
+
# @overload feed
|
551
|
+
# creates an operation instance, yielding a newly fabricated Feed
|
552
552
|
# which can be used for setting attributes on the newly created resource
|
553
|
-
# @overload
|
553
|
+
# @overload feed(res)
|
554
554
|
# creates an operation instance, with the resource to be created
|
555
555
|
# set to the passed value (res)
|
556
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
556
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::Feed]
|
557
557
|
# a resource instance to be used for creation in this operation.
|
558
558
|
#
|
559
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
560
|
-
def self.
|
561
|
-
require "google/ads/google_ads/v2/services/
|
562
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
559
|
+
# @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] instance that will create the resource
|
560
|
+
def self.feed(res = nil, &blk)
|
561
|
+
require "google/ads/google_ads/v2/services/feed_service_pb.rb"
|
562
|
+
op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
|
563
563
|
if !res.nil?
|
564
564
|
op["create"] = res
|
565
565
|
elsif !blk.nil?
|
566
|
-
op["create"] = Factories::V2::Resources.
|
566
|
+
op["create"] = Factories::V2::Resources.feed(&blk)
|
567
567
|
end
|
568
568
|
|
569
569
|
op
|
570
570
|
end
|
571
571
|
|
572
|
-
# A convenience method for creating an
|
573
|
-
# its "create" field prepopulated with an
|
572
|
+
# A convenience method for creating an AdGroupAdLabelOperation instance with
|
573
|
+
# its "create" field prepopulated with an AdGroupAdLabel instance.
|
574
574
|
#
|
575
|
-
# @overload
|
576
|
-
# creates an operation instance, yielding a newly fabricated
|
575
|
+
# @overload ad_group_ad_label
|
576
|
+
# creates an operation instance, yielding a newly fabricated AdGroupAdLabel
|
577
577
|
# which can be used for setting attributes on the newly created resource
|
578
|
-
# @overload
|
578
|
+
# @overload ad_group_ad_label(res)
|
579
579
|
# creates an operation instance, with the resource to be created
|
580
580
|
# set to the passed value (res)
|
581
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
581
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupAdLabel]
|
582
582
|
# a resource instance to be used for creation in this operation.
|
583
583
|
#
|
584
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
585
|
-
def self.
|
586
|
-
require "google/ads/google_ads/v2/services/
|
587
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
584
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] instance that will create the resource
|
585
|
+
def self.ad_group_ad_label(res = nil, &blk)
|
586
|
+
require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
|
587
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
|
588
588
|
if !res.nil?
|
589
589
|
op["create"] = res
|
590
590
|
elsif !blk.nil?
|
591
|
-
op["create"] = Factories::V2::Resources.
|
591
|
+
op["create"] = Factories::V2::Resources.ad_group_ad_label(&blk)
|
592
592
|
end
|
593
593
|
|
594
594
|
op
|
595
595
|
end
|
596
596
|
|
597
|
-
# A convenience method for creating an
|
598
|
-
# its "create" field prepopulated with an
|
597
|
+
# A convenience method for creating an CustomerClientLinkOperation instance with
|
598
|
+
# its "create" field prepopulated with an CustomerClientLink instance.
|
599
599
|
#
|
600
|
-
# @overload
|
601
|
-
# creates an operation instance, yielding a newly fabricated
|
600
|
+
# @overload customer_client_link
|
601
|
+
# creates an operation instance, yielding a newly fabricated CustomerClientLink
|
602
602
|
# which can be used for setting attributes on the newly created resource
|
603
|
-
# @overload
|
603
|
+
# @overload customer_client_link(res)
|
604
604
|
# creates an operation instance, with the resource to be created
|
605
605
|
# set to the passed value (res)
|
606
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
606
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink]
|
607
607
|
# a resource instance to be used for creation in this operation.
|
608
608
|
#
|
609
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
610
|
-
def self.
|
611
|
-
require "google/ads/google_ads/v2/services/
|
612
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
609
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] instance that will create the resource
|
610
|
+
def self.customer_client_link(res = nil, &blk)
|
611
|
+
require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
|
612
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
|
613
613
|
if !res.nil?
|
614
614
|
op["create"] = res
|
615
615
|
elsif !blk.nil?
|
616
|
-
op["create"] = Factories::V2::Resources.
|
616
|
+
op["create"] = Factories::V2::Resources.customer_client_link(&blk)
|
617
617
|
end
|
618
618
|
|
619
619
|
op
|
620
620
|
end
|
621
621
|
|
622
|
-
# A convenience method for creating an
|
623
|
-
# its "create" field prepopulated with an
|
622
|
+
# A convenience method for creating an CampaignSharedSetOperation instance with
|
623
|
+
# its "create" field prepopulated with an CampaignSharedSet instance.
|
624
624
|
#
|
625
|
-
# @overload
|
626
|
-
# creates an operation instance, yielding a newly fabricated
|
625
|
+
# @overload campaign_shared_set
|
626
|
+
# creates an operation instance, yielding a newly fabricated CampaignSharedSet
|
627
627
|
# which can be used for setting attributes on the newly created resource
|
628
|
-
# @overload
|
628
|
+
# @overload campaign_shared_set(res)
|
629
629
|
# creates an operation instance, with the resource to be created
|
630
630
|
# set to the passed value (res)
|
631
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
631
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CampaignSharedSet]
|
632
632
|
# a resource instance to be used for creation in this operation.
|
633
633
|
#
|
634
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
635
|
-
def self.
|
636
|
-
require "google/ads/google_ads/v2/services/
|
637
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
634
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation] instance that will create the resource
|
635
|
+
def self.campaign_shared_set(res = nil, &blk)
|
636
|
+
require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
|
637
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
|
638
638
|
if !res.nil?
|
639
639
|
op["create"] = res
|
640
640
|
elsif !blk.nil?
|
641
|
-
op["create"] = Factories::V2::Resources.
|
641
|
+
op["create"] = Factories::V2::Resources.campaign_shared_set(&blk)
|
642
642
|
end
|
643
643
|
|
644
644
|
op
|
645
645
|
end
|
646
646
|
|
647
|
-
# A convenience method for creating an
|
648
|
-
# its "create" field prepopulated with an
|
647
|
+
# A convenience method for creating an AdGroupBidModifierOperation instance with
|
648
|
+
# its "create" field prepopulated with an AdGroupBidModifier instance.
|
649
649
|
#
|
650
|
-
# @overload
|
651
|
-
# creates an operation instance, yielding a newly fabricated
|
650
|
+
# @overload ad_group_bid_modifier
|
651
|
+
# creates an operation instance, yielding a newly fabricated AdGroupBidModifier
|
652
652
|
# which can be used for setting attributes on the newly created resource
|
653
|
-
# @overload
|
653
|
+
# @overload ad_group_bid_modifier(res)
|
654
654
|
# creates an operation instance, with the resource to be created
|
655
655
|
# set to the passed value (res)
|
656
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
656
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier]
|
657
657
|
# a resource instance to be used for creation in this operation.
|
658
658
|
#
|
659
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
660
|
-
def self.
|
661
|
-
require "google/ads/google_ads/v2/services/
|
662
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
659
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] instance that will create the resource
|
660
|
+
def self.ad_group_bid_modifier(res = nil, &blk)
|
661
|
+
require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
|
662
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
|
663
663
|
if !res.nil?
|
664
664
|
op["create"] = res
|
665
665
|
elsif !blk.nil?
|
666
|
-
op["create"] = Factories::V2::Resources.
|
666
|
+
op["create"] = Factories::V2::Resources.ad_group_bid_modifier(&blk)
|
667
|
+
end
|
668
|
+
|
669
|
+
op
|
670
|
+
end
|
671
|
+
|
672
|
+
# A convenience method for creating an CampaignFeedOperation instance with
|
673
|
+
# its "create" field prepopulated with an CampaignFeed instance.
|
674
|
+
#
|
675
|
+
# @overload campaign_feed
|
676
|
+
# creates an operation instance, yielding a newly fabricated CampaignFeed
|
677
|
+
# which can be used for setting attributes on the newly created resource
|
678
|
+
# @overload campaign_feed(res)
|
679
|
+
# creates an operation instance, with the resource to be created
|
680
|
+
# set to the passed value (res)
|
681
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CampaignFeed]
|
682
|
+
# a resource instance to be used for creation in this operation.
|
683
|
+
#
|
684
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] instance that will create the resource
|
685
|
+
def self.campaign_feed(res = nil, &blk)
|
686
|
+
require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
|
687
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
|
688
|
+
if !res.nil?
|
689
|
+
op["create"] = res
|
690
|
+
elsif !blk.nil?
|
691
|
+
op["create"] = Factories::V2::Resources.campaign_feed(&blk)
|
692
|
+
end
|
693
|
+
|
694
|
+
op
|
695
|
+
end
|
696
|
+
|
697
|
+
# A convenience method for creating an SharedCriterionOperation instance with
|
698
|
+
# its "create" field prepopulated with an SharedCriterion instance.
|
699
|
+
#
|
700
|
+
# @overload shared_criterion
|
701
|
+
# creates an operation instance, yielding a newly fabricated SharedCriterion
|
702
|
+
# which can be used for setting attributes on the newly created resource
|
703
|
+
# @overload shared_criterion(res)
|
704
|
+
# creates an operation instance, with the resource to be created
|
705
|
+
# set to the passed value (res)
|
706
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::SharedCriterion]
|
707
|
+
# a resource instance to be used for creation in this operation.
|
708
|
+
#
|
709
|
+
# @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] instance that will create the resource
|
710
|
+
def self.shared_criterion(res = nil, &blk)
|
711
|
+
require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
|
712
|
+
op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
|
713
|
+
if !res.nil?
|
714
|
+
op["create"] = res
|
715
|
+
elsif !blk.nil?
|
716
|
+
op["create"] = Factories::V2::Resources.shared_criterion(&blk)
|
717
|
+
end
|
718
|
+
|
719
|
+
op
|
720
|
+
end
|
721
|
+
|
722
|
+
# A convenience method for creating an RemarketingActionOperation instance with
|
723
|
+
# its "create" field prepopulated with an RemarketingAction instance.
|
724
|
+
#
|
725
|
+
# @overload remarketing_action
|
726
|
+
# creates an operation instance, yielding a newly fabricated RemarketingAction
|
727
|
+
# which can be used for setting attributes on the newly created resource
|
728
|
+
# @overload remarketing_action(res)
|
729
|
+
# creates an operation instance, with the resource to be created
|
730
|
+
# set to the passed value (res)
|
731
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::RemarketingAction]
|
732
|
+
# a resource instance to be used for creation in this operation.
|
733
|
+
#
|
734
|
+
# @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] instance that will create the resource
|
735
|
+
def self.remarketing_action(res = nil, &blk)
|
736
|
+
require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
|
737
|
+
op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
|
738
|
+
if !res.nil?
|
739
|
+
op["create"] = res
|
740
|
+
elsif !blk.nil?
|
741
|
+
op["create"] = Factories::V2::Resources.remarketing_action(&blk)
|
667
742
|
end
|
668
743
|
|
669
744
|
op
|
670
745
|
end
|
671
746
|
|
672
|
-
# A convenience method for creating an
|
673
|
-
# its "create" field prepopulated with an
|
747
|
+
# A convenience method for creating an AdGroupLabelOperation instance with
|
748
|
+
# its "create" field prepopulated with an AdGroupLabel instance.
|
674
749
|
#
|
675
|
-
# @overload
|
676
|
-
# creates an operation instance, yielding a newly fabricated
|
750
|
+
# @overload ad_group_label
|
751
|
+
# creates an operation instance, yielding a newly fabricated AdGroupLabel
|
677
752
|
# which can be used for setting attributes on the newly created resource
|
678
|
-
# @overload
|
753
|
+
# @overload ad_group_label(res)
|
679
754
|
# creates an operation instance, with the resource to be created
|
680
755
|
# set to the passed value (res)
|
681
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
756
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupLabel]
|
682
757
|
# a resource instance to be used for creation in this operation.
|
683
758
|
#
|
684
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
685
|
-
def self.
|
686
|
-
require "google/ads/google_ads/v2/services/
|
687
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
759
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation] instance that will create the resource
|
760
|
+
def self.ad_group_label(res = nil, &blk)
|
761
|
+
require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
|
762
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
|
688
763
|
if !res.nil?
|
689
764
|
op["create"] = res
|
690
765
|
elsif !blk.nil?
|
691
|
-
op["create"] = Factories::V2::Resources.
|
766
|
+
op["create"] = Factories::V2::Resources.ad_group_label(&blk)
|
692
767
|
end
|
693
768
|
|
694
769
|
op
|
695
770
|
end
|
696
771
|
|
697
|
-
# A convenience method for creating an
|
698
|
-
# its "create" field prepopulated with an
|
772
|
+
# A convenience method for creating an CustomerLabelOperation instance with
|
773
|
+
# its "create" field prepopulated with an CustomerLabel instance.
|
699
774
|
#
|
700
|
-
# @overload
|
701
|
-
# creates an operation instance, yielding a newly fabricated
|
775
|
+
# @overload customer_label
|
776
|
+
# creates an operation instance, yielding a newly fabricated CustomerLabel
|
702
777
|
# which can be used for setting attributes on the newly created resource
|
703
|
-
# @overload
|
778
|
+
# @overload customer_label(res)
|
704
779
|
# creates an operation instance, with the resource to be created
|
705
780
|
# set to the passed value (res)
|
706
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
781
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CustomerLabel]
|
707
782
|
# a resource instance to be used for creation in this operation.
|
708
783
|
#
|
709
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
710
|
-
def self.
|
711
|
-
require "google/ads/google_ads/v2/services/
|
712
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
784
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation] instance that will create the resource
|
785
|
+
def self.customer_label(res = nil, &blk)
|
786
|
+
require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
|
787
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
|
713
788
|
if !res.nil?
|
714
789
|
op["create"] = res
|
715
790
|
elsif !blk.nil?
|
716
|
-
op["create"] = Factories::V2::Resources.
|
791
|
+
op["create"] = Factories::V2::Resources.customer_label(&blk)
|
717
792
|
end
|
718
793
|
|
719
794
|
op
|
@@ -744,31 +819,6 @@ module Google
|
|
744
819
|
op
|
745
820
|
end
|
746
821
|
|
747
|
-
# A convenience method for creating an AdGroupBidModifierOperation instance with
|
748
|
-
# its "create" field prepopulated with an AdGroupBidModifier instance.
|
749
|
-
#
|
750
|
-
# @overload ad_group_bid_modifier
|
751
|
-
# creates an operation instance, yielding a newly fabricated AdGroupBidModifier
|
752
|
-
# which can be used for setting attributes on the newly created resource
|
753
|
-
# @overload ad_group_bid_modifier(res)
|
754
|
-
# creates an operation instance, with the resource to be created
|
755
|
-
# set to the passed value (res)
|
756
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier]
|
757
|
-
# a resource instance to be used for creation in this operation.
|
758
|
-
#
|
759
|
-
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] instance that will create the resource
|
760
|
-
def self.ad_group_bid_modifier(res = nil, &blk)
|
761
|
-
require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
|
762
|
-
op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
|
763
|
-
if !res.nil?
|
764
|
-
op["create"] = res
|
765
|
-
elsif !blk.nil?
|
766
|
-
op["create"] = Factories::V2::Resources.ad_group_bid_modifier(&blk)
|
767
|
-
end
|
768
|
-
|
769
|
-
op
|
770
|
-
end
|
771
|
-
|
772
822
|
# A convenience method for creating an AdGroupCriterionOperation instance with
|
773
823
|
# its "create" field prepopulated with an AdGroupCriterion instance.
|
774
824
|
#
|
@@ -844,31 +894,6 @@ module Google
|
|
844
894
|
op
|
845
895
|
end
|
846
896
|
|
847
|
-
# A convenience method for creating an AdGroupLabelOperation instance with
|
848
|
-
# its "create" field prepopulated with an AdGroupLabel instance.
|
849
|
-
#
|
850
|
-
# @overload ad_group_label
|
851
|
-
# creates an operation instance, yielding a newly fabricated AdGroupLabel
|
852
|
-
# which can be used for setting attributes on the newly created resource
|
853
|
-
# @overload ad_group_label(res)
|
854
|
-
# creates an operation instance, with the resource to be created
|
855
|
-
# set to the passed value (res)
|
856
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupLabel]
|
857
|
-
# a resource instance to be used for creation in this operation.
|
858
|
-
#
|
859
|
-
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation] instance that will create the resource
|
860
|
-
def self.ad_group_label(res = nil, &blk)
|
861
|
-
require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
|
862
|
-
op = Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
|
863
|
-
if !res.nil?
|
864
|
-
op["create"] = res
|
865
|
-
elsif !blk.nil?
|
866
|
-
op["create"] = Factories::V2::Resources.ad_group_label(&blk)
|
867
|
-
end
|
868
|
-
|
869
|
-
op
|
870
|
-
end
|
871
|
-
|
872
897
|
# A convenience method for creating an AdGroupOperation instance with
|
873
898
|
# its "create" field prepopulated with an AdGroup instance.
|
874
899
|
#
|
@@ -919,6 +944,31 @@ module Google
|
|
919
944
|
op
|
920
945
|
end
|
921
946
|
|
947
|
+
# A convenience method for creating an AssetOperation instance with
|
948
|
+
# its "create" field prepopulated with an Asset instance.
|
949
|
+
#
|
950
|
+
# @overload asset
|
951
|
+
# creates an operation instance, yielding a newly fabricated Asset
|
952
|
+
# which can be used for setting attributes on the newly created resource
|
953
|
+
# @overload asset(res)
|
954
|
+
# creates an operation instance, with the resource to be created
|
955
|
+
# set to the passed value (res)
|
956
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::Asset]
|
957
|
+
# a resource instance to be used for creation in this operation.
|
958
|
+
#
|
959
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AssetOperation] instance that will create the resource
|
960
|
+
def self.asset(res = nil, &blk)
|
961
|
+
require "google/ads/google_ads/v2/services/asset_service_pb.rb"
|
962
|
+
op = Google::Ads::GoogleAds::V2::Services::AssetOperation.new
|
963
|
+
if !res.nil?
|
964
|
+
op["create"] = res
|
965
|
+
elsif !blk.nil?
|
966
|
+
op["create"] = Factories::V2::Resources.asset(&blk)
|
967
|
+
end
|
968
|
+
|
969
|
+
op
|
970
|
+
end
|
971
|
+
|
922
972
|
# A convenience method for creating an BiddingStrategyOperation instance with
|
923
973
|
# its "create" field prepopulated with an BiddingStrategy instance.
|
924
974
|
#
|
@@ -994,6 +1044,31 @@ module Google
|
|
994
1044
|
op
|
995
1045
|
end
|
996
1046
|
|
1047
|
+
# A convenience method for creating an CampaignCriterionOperation instance with
|
1048
|
+
# its "create" field prepopulated with an CampaignCriterion instance.
|
1049
|
+
#
|
1050
|
+
# @overload campaign_criterion
|
1051
|
+
# creates an operation instance, yielding a newly fabricated CampaignCriterion
|
1052
|
+
# which can be used for setting attributes on the newly created resource
|
1053
|
+
# @overload campaign_criterion(res)
|
1054
|
+
# creates an operation instance, with the resource to be created
|
1055
|
+
# set to the passed value (res)
|
1056
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CampaignCriterion]
|
1057
|
+
# a resource instance to be used for creation in this operation.
|
1058
|
+
#
|
1059
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation] instance that will create the resource
|
1060
|
+
def self.campaign_criterion(res = nil, &blk)
|
1061
|
+
require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
|
1062
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
|
1063
|
+
if !res.nil?
|
1064
|
+
op["create"] = res
|
1065
|
+
elsif !blk.nil?
|
1066
|
+
op["create"] = Factories::V2::Resources.campaign_criterion(&blk)
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
op
|
1070
|
+
end
|
1071
|
+
|
997
1072
|
# A convenience method for creating an CampaignDraftOperation instance with
|
998
1073
|
# its "create" field prepopulated with an CampaignDraft instance.
|
999
1074
|
#
|
@@ -1044,26 +1119,26 @@ module Google
|
|
1044
1119
|
op
|
1045
1120
|
end
|
1046
1121
|
|
1047
|
-
# A convenience method for creating an
|
1048
|
-
# its "create" field prepopulated with an
|
1122
|
+
# A convenience method for creating an CampaignLabelOperation instance with
|
1123
|
+
# its "create" field prepopulated with an CampaignLabel instance.
|
1049
1124
|
#
|
1050
|
-
# @overload
|
1051
|
-
# creates an operation instance, yielding a newly fabricated
|
1125
|
+
# @overload campaign_label
|
1126
|
+
# creates an operation instance, yielding a newly fabricated CampaignLabel
|
1052
1127
|
# which can be used for setting attributes on the newly created resource
|
1053
|
-
# @overload
|
1128
|
+
# @overload campaign_label(res)
|
1054
1129
|
# creates an operation instance, with the resource to be created
|
1055
1130
|
# set to the passed value (res)
|
1056
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1131
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CampaignLabel]
|
1057
1132
|
# a resource instance to be used for creation in this operation.
|
1058
1133
|
#
|
1059
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1060
|
-
def self.
|
1061
|
-
require "google/ads/google_ads/v2/services/
|
1062
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1134
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation] instance that will create the resource
|
1135
|
+
def self.campaign_label(res = nil, &blk)
|
1136
|
+
require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
|
1137
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
|
1063
1138
|
if !res.nil?
|
1064
1139
|
op["create"] = res
|
1065
1140
|
elsif !blk.nil?
|
1066
|
-
op["create"] = Factories::V2::Resources.
|
1141
|
+
op["create"] = Factories::V2::Resources.campaign_label(&blk)
|
1067
1142
|
end
|
1068
1143
|
|
1069
1144
|
op
|
@@ -1094,31 +1169,6 @@ module Google
|
|
1094
1169
|
op
|
1095
1170
|
end
|
1096
1171
|
|
1097
|
-
# A convenience method for creating an CampaignSharedSetOperation instance with
|
1098
|
-
# its "create" field prepopulated with an CampaignSharedSet instance.
|
1099
|
-
#
|
1100
|
-
# @overload campaign_shared_set
|
1101
|
-
# creates an operation instance, yielding a newly fabricated CampaignSharedSet
|
1102
|
-
# which can be used for setting attributes on the newly created resource
|
1103
|
-
# @overload campaign_shared_set(res)
|
1104
|
-
# creates an operation instance, with the resource to be created
|
1105
|
-
# set to the passed value (res)
|
1106
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::CampaignSharedSet]
|
1107
|
-
# a resource instance to be used for creation in this operation.
|
1108
|
-
#
|
1109
|
-
# @return [Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation] instance that will create the resource
|
1110
|
-
def self.campaign_shared_set(res = nil, &blk)
|
1111
|
-
require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
|
1112
|
-
op = Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
|
1113
|
-
if !res.nil?
|
1114
|
-
op["create"] = res
|
1115
|
-
elsif !blk.nil?
|
1116
|
-
op["create"] = Factories::V2::Resources.campaign_shared_set(&blk)
|
1117
|
-
end
|
1118
|
-
|
1119
|
-
op
|
1120
|
-
end
|
1121
|
-
|
1122
1172
|
# A convenience method for creating an ConversionActionOperation instance with
|
1123
1173
|
# its "create" field prepopulated with an ConversionAction instance.
|
1124
1174
|
#
|
@@ -1194,31 +1244,6 @@ module Google
|
|
1194
1244
|
op
|
1195
1245
|
end
|
1196
1246
|
|
1197
|
-
# A convenience method for creating an CustomerLabelOperation instance with
|
1198
|
-
# its "create" field prepopulated with an CustomerLabel instance.
|
1199
|
-
#
|
1200
|
-
# @overload customer_label
|
1201
|
-
# creates an operation instance, yielding a newly fabricated CustomerLabel
|
1202
|
-
# which can be used for setting attributes on the newly created resource
|
1203
|
-
# @overload customer_label(res)
|
1204
|
-
# creates an operation instance, with the resource to be created
|
1205
|
-
# set to the passed value (res)
|
1206
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::CustomerLabel]
|
1207
|
-
# a resource instance to be used for creation in this operation.
|
1208
|
-
#
|
1209
|
-
# @return [Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation] instance that will create the resource
|
1210
|
-
def self.customer_label(res = nil, &blk)
|
1211
|
-
require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
|
1212
|
-
op = Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
|
1213
|
-
if !res.nil?
|
1214
|
-
op["create"] = res
|
1215
|
-
elsif !blk.nil?
|
1216
|
-
op["create"] = Factories::V2::Resources.customer_label(&blk)
|
1217
|
-
end
|
1218
|
-
|
1219
|
-
op
|
1220
|
-
end
|
1221
|
-
|
1222
1247
|
# A convenience method for creating an CustomerNegativeCriterionOperation instance with
|
1223
1248
|
# its "create" field prepopulated with an CustomerNegativeCriterion instance.
|
1224
1249
|
#
|
@@ -1319,26 +1344,51 @@ module Google
|
|
1319
1344
|
op
|
1320
1345
|
end
|
1321
1346
|
|
1322
|
-
# A convenience method for creating an
|
1323
|
-
# its "create" field prepopulated with an
|
1347
|
+
# A convenience method for creating an FeedMappingOperation instance with
|
1348
|
+
# its "create" field prepopulated with an FeedMapping instance.
|
1324
1349
|
#
|
1325
|
-
# @overload
|
1326
|
-
# creates an operation instance, yielding a newly fabricated
|
1350
|
+
# @overload feed_mapping
|
1351
|
+
# creates an operation instance, yielding a newly fabricated FeedMapping
|
1327
1352
|
# which can be used for setting attributes on the newly created resource
|
1328
|
-
# @overload
|
1353
|
+
# @overload feed_mapping(res)
|
1329
1354
|
# creates an operation instance, with the resource to be created
|
1330
1355
|
# set to the passed value (res)
|
1331
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1356
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::FeedMapping]
|
1332
1357
|
# a resource instance to be used for creation in this operation.
|
1333
1358
|
#
|
1334
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1335
|
-
def self.
|
1336
|
-
require "google/ads/google_ads/v2/services/
|
1337
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1359
|
+
# @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] instance that will create the resource
|
1360
|
+
def self.feed_mapping(res = nil, &blk)
|
1361
|
+
require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
|
1362
|
+
op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
|
1363
|
+
if !res.nil?
|
1364
|
+
op["create"] = res
|
1365
|
+
elsif !blk.nil?
|
1366
|
+
op["create"] = Factories::V2::Resources.feed_mapping(&blk)
|
1367
|
+
end
|
1368
|
+
|
1369
|
+
op
|
1370
|
+
end
|
1371
|
+
|
1372
|
+
# A convenience method for creating an LabelOperation instance with
|
1373
|
+
# its "create" field prepopulated with an Label instance.
|
1374
|
+
#
|
1375
|
+
# @overload label
|
1376
|
+
# creates an operation instance, yielding a newly fabricated Label
|
1377
|
+
# which can be used for setting attributes on the newly created resource
|
1378
|
+
# @overload label(res)
|
1379
|
+
# creates an operation instance, with the resource to be created
|
1380
|
+
# set to the passed value (res)
|
1381
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::Label]
|
1382
|
+
# a resource instance to be used for creation in this operation.
|
1383
|
+
#
|
1384
|
+
# @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] instance that will create the resource
|
1385
|
+
def self.label(res = nil, &blk)
|
1386
|
+
require "google/ads/google_ads/v2/services/label_service_pb.rb"
|
1387
|
+
op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
|
1338
1388
|
if !res.nil?
|
1339
1389
|
op["create"] = res
|
1340
1390
|
elsif !blk.nil?
|
1341
|
-
op["create"] = Factories::V2::Resources.
|
1391
|
+
op["create"] = Factories::V2::Resources.label(&blk)
|
1342
1392
|
end
|
1343
1393
|
|
1344
1394
|
op
|
@@ -1369,176 +1419,176 @@ module Google
|
|
1369
1419
|
op
|
1370
1420
|
end
|
1371
1421
|
|
1372
|
-
# A convenience method for creating an
|
1373
|
-
# its "create" field prepopulated with an
|
1422
|
+
# A convenience method for creating an UserListOperation instance with
|
1423
|
+
# its "create" field prepopulated with an UserList instance.
|
1374
1424
|
#
|
1375
|
-
# @overload
|
1376
|
-
# creates an operation instance, yielding a newly fabricated
|
1425
|
+
# @overload user_list
|
1426
|
+
# creates an operation instance, yielding a newly fabricated UserList
|
1377
1427
|
# which can be used for setting attributes on the newly created resource
|
1378
|
-
# @overload
|
1428
|
+
# @overload user_list(res)
|
1379
1429
|
# creates an operation instance, with the resource to be created
|
1380
1430
|
# set to the passed value (res)
|
1381
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1431
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::UserList]
|
1382
1432
|
# a resource instance to be used for creation in this operation.
|
1383
1433
|
#
|
1384
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1385
|
-
def self.
|
1386
|
-
require "google/ads/google_ads/v2/services/
|
1387
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1434
|
+
# @return [Google::Ads::GoogleAds::V2::Services::UserListOperation] instance that will create the resource
|
1435
|
+
def self.user_list(res = nil, &blk)
|
1436
|
+
require "google/ads/google_ads/v2/services/user_list_service_pb.rb"
|
1437
|
+
op = Google::Ads::GoogleAds::V2::Services::UserListOperation.new
|
1388
1438
|
if !res.nil?
|
1389
1439
|
op["create"] = res
|
1390
1440
|
elsif !blk.nil?
|
1391
|
-
op["create"] = Factories::V2::Resources.
|
1441
|
+
op["create"] = Factories::V2::Resources.user_list(&blk)
|
1392
1442
|
end
|
1393
1443
|
|
1394
1444
|
op
|
1395
1445
|
end
|
1396
1446
|
|
1397
|
-
# A convenience method for creating an
|
1398
|
-
# its "create" field prepopulated with an
|
1447
|
+
# A convenience method for creating an KeywordPlanKeywordOperation instance with
|
1448
|
+
# its "create" field prepopulated with an KeywordPlanKeyword instance.
|
1399
1449
|
#
|
1400
|
-
# @overload
|
1401
|
-
# creates an operation instance, yielding a newly fabricated
|
1450
|
+
# @overload keyword_plan_keyword
|
1451
|
+
# creates an operation instance, yielding a newly fabricated KeywordPlanKeyword
|
1402
1452
|
# which can be used for setting attributes on the newly created resource
|
1403
|
-
# @overload
|
1453
|
+
# @overload keyword_plan_keyword(res)
|
1404
1454
|
# creates an operation instance, with the resource to be created
|
1405
1455
|
# set to the passed value (res)
|
1406
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1456
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword]
|
1407
1457
|
# a resource instance to be used for creation in this operation.
|
1408
1458
|
#
|
1409
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1410
|
-
def self.
|
1411
|
-
require "google/ads/google_ads/v2/services/
|
1412
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1459
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] instance that will create the resource
|
1460
|
+
def self.keyword_plan_keyword(res = nil, &blk)
|
1461
|
+
require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
|
1462
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
|
1413
1463
|
if !res.nil?
|
1414
1464
|
op["create"] = res
|
1415
1465
|
elsif !blk.nil?
|
1416
|
-
op["create"] = Factories::V2::Resources.
|
1466
|
+
op["create"] = Factories::V2::Resources.keyword_plan_keyword(&blk)
|
1417
1467
|
end
|
1418
1468
|
|
1419
1469
|
op
|
1420
1470
|
end
|
1421
1471
|
|
1422
|
-
# A convenience method for creating an
|
1423
|
-
# its "create" field prepopulated with an
|
1472
|
+
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
1473
|
+
# its "create" field prepopulated with an KeywordPlanAdGroup instance.
|
1424
1474
|
#
|
1425
|
-
# @overload
|
1426
|
-
# creates an operation instance, yielding a newly fabricated
|
1475
|
+
# @overload keyword_plan_ad_group
|
1476
|
+
# creates an operation instance, yielding a newly fabricated KeywordPlanAdGroup
|
1427
1477
|
# which can be used for setting attributes on the newly created resource
|
1428
|
-
# @overload
|
1478
|
+
# @overload keyword_plan_ad_group(res)
|
1429
1479
|
# creates an operation instance, with the resource to be created
|
1430
1480
|
# set to the passed value (res)
|
1431
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1481
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup]
|
1432
1482
|
# a resource instance to be used for creation in this operation.
|
1433
1483
|
#
|
1434
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1435
|
-
def self.
|
1436
|
-
require "google/ads/google_ads/v2/services/
|
1437
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1484
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] instance that will create the resource
|
1485
|
+
def self.keyword_plan_ad_group(res = nil, &blk)
|
1486
|
+
require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
|
1487
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
|
1438
1488
|
if !res.nil?
|
1439
1489
|
op["create"] = res
|
1440
1490
|
elsif !blk.nil?
|
1441
|
-
op["create"] = Factories::V2::Resources.
|
1491
|
+
op["create"] = Factories::V2::Resources.keyword_plan_ad_group(&blk)
|
1442
1492
|
end
|
1443
1493
|
|
1444
1494
|
op
|
1445
1495
|
end
|
1446
1496
|
|
1447
|
-
# A convenience method for creating an
|
1448
|
-
# its "create" field prepopulated with an
|
1497
|
+
# A convenience method for creating an BillingSetupOperation instance with
|
1498
|
+
# its "create" field prepopulated with an BillingSetup instance.
|
1449
1499
|
#
|
1450
|
-
# @overload
|
1451
|
-
# creates an operation instance, yielding a newly fabricated
|
1500
|
+
# @overload billing_setup
|
1501
|
+
# creates an operation instance, yielding a newly fabricated BillingSetup
|
1452
1502
|
# which can be used for setting attributes on the newly created resource
|
1453
|
-
# @overload
|
1503
|
+
# @overload billing_setup(res)
|
1454
1504
|
# creates an operation instance, with the resource to be created
|
1455
1505
|
# set to the passed value (res)
|
1456
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1506
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::BillingSetup]
|
1457
1507
|
# a resource instance to be used for creation in this operation.
|
1458
1508
|
#
|
1459
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1460
|
-
def self.
|
1461
|
-
require "google/ads/google_ads/v2/services/
|
1462
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1509
|
+
# @return [Google::Ads::GoogleAds::V2::Services::BillingSetupOperation] instance that will create the resource
|
1510
|
+
def self.billing_setup(res = nil, &blk)
|
1511
|
+
require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
|
1512
|
+
op = Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
|
1463
1513
|
if !res.nil?
|
1464
1514
|
op["create"] = res
|
1465
1515
|
elsif !blk.nil?
|
1466
|
-
op["create"] = Factories::V2::Resources.
|
1516
|
+
op["create"] = Factories::V2::Resources.billing_setup(&blk)
|
1467
1517
|
end
|
1468
1518
|
|
1469
1519
|
op
|
1470
1520
|
end
|
1471
1521
|
|
1472
|
-
# A convenience method for creating an
|
1473
|
-
# its "create" field prepopulated with an
|
1522
|
+
# A convenience method for creating an CustomInterestOperation instance with
|
1523
|
+
# its "create" field prepopulated with an CustomInterest instance.
|
1474
1524
|
#
|
1475
|
-
# @overload
|
1476
|
-
# creates an operation instance, yielding a newly fabricated
|
1525
|
+
# @overload custom_interest
|
1526
|
+
# creates an operation instance, yielding a newly fabricated CustomInterest
|
1477
1527
|
# which can be used for setting attributes on the newly created resource
|
1478
|
-
# @overload
|
1528
|
+
# @overload custom_interest(res)
|
1479
1529
|
# creates an operation instance, with the resource to be created
|
1480
1530
|
# set to the passed value (res)
|
1481
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1531
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CustomInterest]
|
1482
1532
|
# a resource instance to be used for creation in this operation.
|
1483
1533
|
#
|
1484
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1485
|
-
def self.
|
1486
|
-
require "google/ads/google_ads/v2/services/
|
1487
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1534
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] instance that will create the resource
|
1535
|
+
def self.custom_interest(res = nil, &blk)
|
1536
|
+
require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
|
1537
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
|
1488
1538
|
if !res.nil?
|
1489
1539
|
op["create"] = res
|
1490
1540
|
elsif !blk.nil?
|
1491
|
-
op["create"] = Factories::V2::Resources.
|
1541
|
+
op["create"] = Factories::V2::Resources.custom_interest(&blk)
|
1492
1542
|
end
|
1493
1543
|
|
1494
1544
|
op
|
1495
1545
|
end
|
1496
1546
|
|
1497
|
-
# A convenience method for creating an
|
1498
|
-
# its "create" field prepopulated with an
|
1547
|
+
# A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with
|
1548
|
+
# its "create" field prepopulated with an KeywordPlanNegativeKeyword instance.
|
1499
1549
|
#
|
1500
|
-
# @overload
|
1501
|
-
# creates an operation instance, yielding a newly fabricated
|
1550
|
+
# @overload keyword_plan_negative_keyword
|
1551
|
+
# creates an operation instance, yielding a newly fabricated KeywordPlanNegativeKeyword
|
1502
1552
|
# which can be used for setting attributes on the newly created resource
|
1503
|
-
# @overload
|
1553
|
+
# @overload keyword_plan_negative_keyword(res)
|
1504
1554
|
# creates an operation instance, with the resource to be created
|
1505
1555
|
# set to the passed value (res)
|
1506
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1556
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword]
|
1507
1557
|
# a resource instance to be used for creation in this operation.
|
1508
1558
|
#
|
1509
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1510
|
-
def self.
|
1511
|
-
require "google/ads/google_ads/v2/services/
|
1512
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1559
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] instance that will create the resource
|
1560
|
+
def self.keyword_plan_negative_keyword(res = nil, &blk)
|
1561
|
+
require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
|
1562
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
|
1513
1563
|
if !res.nil?
|
1514
1564
|
op["create"] = res
|
1515
1565
|
elsif !blk.nil?
|
1516
|
-
op["create"] = Factories::V2::Resources.
|
1566
|
+
op["create"] = Factories::V2::Resources.keyword_plan_negative_keyword(&blk)
|
1517
1567
|
end
|
1518
1568
|
|
1519
1569
|
op
|
1520
1570
|
end
|
1521
1571
|
|
1522
|
-
# A convenience method for creating an
|
1523
|
-
# its "create" field prepopulated with an
|
1572
|
+
# A convenience method for creating an KeywordPlanOperation instance with
|
1573
|
+
# its "create" field prepopulated with an KeywordPlan instance.
|
1524
1574
|
#
|
1525
|
-
# @overload
|
1526
|
-
# creates an operation instance, yielding a newly fabricated
|
1575
|
+
# @overload keyword_plan
|
1576
|
+
# creates an operation instance, yielding a newly fabricated KeywordPlan
|
1527
1577
|
# which can be used for setting attributes on the newly created resource
|
1528
|
-
# @overload
|
1578
|
+
# @overload keyword_plan(res)
|
1529
1579
|
# creates an operation instance, with the resource to be created
|
1530
1580
|
# set to the passed value (res)
|
1531
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1581
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlan]
|
1532
1582
|
# a resource instance to be used for creation in this operation.
|
1533
1583
|
#
|
1534
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1535
|
-
def self.
|
1536
|
-
require "google/ads/google_ads/v2/services/
|
1537
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1584
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] instance that will create the resource
|
1585
|
+
def self.keyword_plan(res = nil, &blk)
|
1586
|
+
require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
|
1587
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
|
1538
1588
|
if !res.nil?
|
1539
1589
|
op["create"] = res
|
1540
1590
|
elsif !blk.nil?
|
1541
|
-
op["create"] = Factories::V2::Resources.
|
1591
|
+
op["create"] = Factories::V2::Resources.keyword_plan(&blk)
|
1542
1592
|
end
|
1543
1593
|
|
1544
1594
|
op
|
@@ -1568,84 +1618,112 @@ module Google
|
|
1568
1618
|
|
1569
1619
|
op
|
1570
1620
|
end
|
1621
|
+
end
|
1571
1622
|
|
1572
|
-
|
1573
|
-
#
|
1623
|
+
module UpdateResource
|
1624
|
+
# A convenience method for creating an CustomerManagerLinkOperation instance with
|
1625
|
+
# its "update" field prepopulated with an CustomerManagerLink instance, and
|
1626
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
1574
1627
|
#
|
1575
|
-
# @overload
|
1576
|
-
#
|
1577
|
-
#
|
1578
|
-
#
|
1579
|
-
# creates an operation instance, with the resource to be created
|
1580
|
-
# set to the passed value (res)
|
1581
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword]
|
1582
|
-
# a resource instance to be used for creation in this operation.
|
1628
|
+
# @overload #customer_manager_link(path, &blk)
|
1629
|
+
# @param path [String] a resource path for the resource to update
|
1630
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink] a new instance of the resource for this update operation, on
|
1631
|
+
# which fields can be set to update
|
1583
1632
|
#
|
1584
|
-
# @
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1633
|
+
# @overload #customer_manager_link(resource, &blk)
|
1634
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink] a resource instance to update
|
1635
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1636
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation] the operation instance to update the resource
|
1637
|
+
def self.customer_manager_link(resource_or_path, &blk)
|
1638
|
+
require "google/ads/google_ads/v2/services/customer_manager_link_service_pb.rb"
|
1639
|
+
res = case resource_or_path
|
1640
|
+
when Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink
|
1641
|
+
resource_or_path
|
1642
|
+
# got a resource path
|
1643
|
+
when String
|
1644
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink.new
|
1645
|
+
obj.resource_name = resource_or_path
|
1646
|
+
obj
|
1647
|
+
else
|
1648
|
+
unless Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink === res
|
1649
|
+
raise ArgumentError.new(
|
1650
|
+
"Called #{__method__} with instance of wrong type:"\
|
1651
|
+
" #{res.class} want #{operation.update_class}"\
|
1652
|
+
" or String representing resource name"
|
1653
|
+
)
|
1654
|
+
end
|
1592
1655
|
end
|
1593
1656
|
|
1657
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation.new
|
1658
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1659
|
+
op["update"] = res
|
1594
1660
|
op
|
1595
1661
|
end
|
1596
1662
|
|
1597
|
-
# A convenience method for creating an
|
1598
|
-
# its "
|
1663
|
+
# A convenience method for creating an KeywordPlanCampaignOperation instance with
|
1664
|
+
# its "update" field prepopulated with an KeywordPlanCampaign instance, and
|
1665
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
1599
1666
|
#
|
1600
|
-
# @overload
|
1601
|
-
#
|
1602
|
-
#
|
1603
|
-
#
|
1604
|
-
# creates an operation instance, with the resource to be created
|
1605
|
-
# set to the passed value (res)
|
1606
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup]
|
1607
|
-
# a resource instance to be used for creation in this operation.
|
1667
|
+
# @overload #keyword_plan_campaign(path, &blk)
|
1668
|
+
# @param path [String] a resource path for the resource to update
|
1669
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign] a new instance of the resource for this update operation, on
|
1670
|
+
# which fields can be set to update
|
1608
1671
|
#
|
1609
|
-
# @
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1672
|
+
# @overload #keyword_plan_campaign(resource, &blk)
|
1673
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign] a resource instance to update
|
1674
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1675
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] the operation instance to update the resource
|
1676
|
+
def self.keyword_plan_campaign(resource_or_path, &blk)
|
1677
|
+
require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
|
1678
|
+
res = case resource_or_path
|
1679
|
+
when Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign
|
1680
|
+
resource_or_path
|
1681
|
+
# got a resource path
|
1682
|
+
when String
|
1683
|
+
obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign.new
|
1684
|
+
obj.resource_name = resource_or_path
|
1685
|
+
obj
|
1686
|
+
else
|
1687
|
+
unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign === res
|
1688
|
+
raise ArgumentError.new(
|
1689
|
+
"Called #{__method__} with instance of wrong type:"\
|
1690
|
+
" #{res.class} want #{operation.update_class}"\
|
1691
|
+
" or String representing resource name"
|
1692
|
+
)
|
1693
|
+
end
|
1617
1694
|
end
|
1618
1695
|
|
1696
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
|
1697
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1698
|
+
op["update"] = res
|
1619
1699
|
op
|
1620
1700
|
end
|
1621
|
-
end
|
1622
1701
|
|
1623
|
-
|
1624
|
-
#
|
1625
|
-
# its "update" field prepopulated with an CampaignExperiment instance, and
|
1702
|
+
# A convenience method for creating an SharedSetOperation instance with
|
1703
|
+
# its "update" field prepopulated with an SharedSet instance, and
|
1626
1704
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1627
1705
|
#
|
1628
|
-
# @overload #
|
1706
|
+
# @overload #shared_set(path, &blk)
|
1629
1707
|
# @param path [String] a resource path for the resource to update
|
1630
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1708
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::SharedSet] a new instance of the resource for this update operation, on
|
1631
1709
|
# which fields can be set to update
|
1632
1710
|
#
|
1633
|
-
# @overload #
|
1634
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1711
|
+
# @overload #shared_set(resource, &blk)
|
1712
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::SharedSet] a resource instance to update
|
1635
1713
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1636
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1637
|
-
def self.
|
1638
|
-
require "google/ads/google_ads/v2/services/
|
1714
|
+
# @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] the operation instance to update the resource
|
1715
|
+
def self.shared_set(resource_or_path, &blk)
|
1716
|
+
require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
|
1639
1717
|
res = case resource_or_path
|
1640
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1718
|
+
when Google::Ads::GoogleAds::V2::Resources::SharedSet
|
1641
1719
|
resource_or_path
|
1642
1720
|
# got a resource path
|
1643
1721
|
when String
|
1644
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1722
|
+
obj = Google::Ads::GoogleAds::V2::Resources::SharedSet.new
|
1645
1723
|
obj.resource_name = resource_or_path
|
1646
1724
|
obj
|
1647
1725
|
else
|
1648
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1726
|
+
unless Google::Ads::GoogleAds::V2::Resources::SharedSet === res
|
1649
1727
|
raise ArgumentError.new(
|
1650
1728
|
"Called #{__method__} with instance of wrong type:"\
|
1651
1729
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1654,37 +1732,37 @@ module Google
|
|
1654
1732
|
end
|
1655
1733
|
end
|
1656
1734
|
|
1657
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1735
|
+
op = Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
|
1658
1736
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1659
1737
|
op["update"] = res
|
1660
1738
|
op
|
1661
1739
|
end
|
1662
1740
|
|
1663
|
-
# A convenience method for creating an
|
1664
|
-
# its "update" field prepopulated with an
|
1741
|
+
# A convenience method for creating an FeedOperation instance with
|
1742
|
+
# its "update" field prepopulated with an Feed instance, and
|
1665
1743
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1666
1744
|
#
|
1667
|
-
# @overload #
|
1745
|
+
# @overload #feed(path, &blk)
|
1668
1746
|
# @param path [String] a resource path for the resource to update
|
1669
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1747
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::Feed] a new instance of the resource for this update operation, on
|
1670
1748
|
# which fields can be set to update
|
1671
1749
|
#
|
1672
|
-
# @overload #
|
1673
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1750
|
+
# @overload #feed(resource, &blk)
|
1751
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::Feed] a resource instance to update
|
1674
1752
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1675
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1676
|
-
def self.
|
1677
|
-
require "google/ads/google_ads/v2/services/
|
1753
|
+
# @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation instance to update the resource
|
1754
|
+
def self.feed(resource_or_path, &blk)
|
1755
|
+
require "google/ads/google_ads/v2/services/feed_service_pb.rb"
|
1678
1756
|
res = case resource_or_path
|
1679
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1757
|
+
when Google::Ads::GoogleAds::V2::Resources::Feed
|
1680
1758
|
resource_or_path
|
1681
1759
|
# got a resource path
|
1682
1760
|
when String
|
1683
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1761
|
+
obj = Google::Ads::GoogleAds::V2::Resources::Feed.new
|
1684
1762
|
obj.resource_name = resource_or_path
|
1685
1763
|
obj
|
1686
1764
|
else
|
1687
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1765
|
+
unless Google::Ads::GoogleAds::V2::Resources::Feed === res
|
1688
1766
|
raise ArgumentError.new(
|
1689
1767
|
"Called #{__method__} with instance of wrong type:"\
|
1690
1768
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1693,37 +1771,37 @@ module Google
|
|
1693
1771
|
end
|
1694
1772
|
end
|
1695
1773
|
|
1696
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1774
|
+
op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
|
1697
1775
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1698
1776
|
op["update"] = res
|
1699
1777
|
op
|
1700
1778
|
end
|
1701
1779
|
|
1702
|
-
# A convenience method for creating an
|
1703
|
-
# its "update" field prepopulated with an
|
1780
|
+
# A convenience method for creating an CustomerClientLinkOperation instance with
|
1781
|
+
# its "update" field prepopulated with an CustomerClientLink instance, and
|
1704
1782
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1705
1783
|
#
|
1706
|
-
# @overload #
|
1784
|
+
# @overload #customer_client_link(path, &blk)
|
1707
1785
|
# @param path [String] a resource path for the resource to update
|
1708
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1786
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
|
1709
1787
|
# which fields can be set to update
|
1710
1788
|
#
|
1711
|
-
# @overload #
|
1712
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1789
|
+
# @overload #customer_client_link(resource, &blk)
|
1790
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink] a resource instance to update
|
1713
1791
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1714
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1715
|
-
def self.
|
1716
|
-
require "google/ads/google_ads/v2/services/
|
1792
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] the operation instance to update the resource
|
1793
|
+
def self.customer_client_link(resource_or_path, &blk)
|
1794
|
+
require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
|
1717
1795
|
res = case resource_or_path
|
1718
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1796
|
+
when Google::Ads::GoogleAds::V2::Resources::CustomerClientLink
|
1719
1797
|
resource_or_path
|
1720
1798
|
# got a resource path
|
1721
1799
|
when String
|
1722
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1800
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CustomerClientLink.new
|
1723
1801
|
obj.resource_name = resource_or_path
|
1724
1802
|
obj
|
1725
1803
|
else
|
1726
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1804
|
+
unless Google::Ads::GoogleAds::V2::Resources::CustomerClientLink === res
|
1727
1805
|
raise ArgumentError.new(
|
1728
1806
|
"Called #{__method__} with instance of wrong type:"\
|
1729
1807
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1732,37 +1810,37 @@ module Google
|
|
1732
1810
|
end
|
1733
1811
|
end
|
1734
1812
|
|
1735
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1813
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
|
1736
1814
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1737
1815
|
op["update"] = res
|
1738
1816
|
op
|
1739
1817
|
end
|
1740
1818
|
|
1741
|
-
# A convenience method for creating an
|
1742
|
-
# its "update" field prepopulated with an
|
1819
|
+
# A convenience method for creating an MerchantCenterLinkOperation instance with
|
1820
|
+
# its "update" field prepopulated with an MerchantCenterLink instance, and
|
1743
1821
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1744
1822
|
#
|
1745
|
-
# @overload #
|
1823
|
+
# @overload #merchant_center_link(path, &blk)
|
1746
1824
|
# @param path [String] a resource path for the resource to update
|
1747
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1825
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on
|
1748
1826
|
# which fields can be set to update
|
1749
1827
|
#
|
1750
|
-
# @overload #
|
1751
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1828
|
+
# @overload #merchant_center_link(resource, &blk)
|
1829
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink] a resource instance to update
|
1752
1830
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1753
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1754
|
-
def self.
|
1755
|
-
require "google/ads/google_ads/v2/services/
|
1831
|
+
# @return [Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation] the operation instance to update the resource
|
1832
|
+
def self.merchant_center_link(resource_or_path, &blk)
|
1833
|
+
require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
|
1756
1834
|
res = case resource_or_path
|
1757
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1835
|
+
when Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink
|
1758
1836
|
resource_or_path
|
1759
1837
|
# got a resource path
|
1760
1838
|
when String
|
1761
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1839
|
+
obj = Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink.new
|
1762
1840
|
obj.resource_name = resource_or_path
|
1763
1841
|
obj
|
1764
1842
|
else
|
1765
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1843
|
+
unless Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink === res
|
1766
1844
|
raise ArgumentError.new(
|
1767
1845
|
"Called #{__method__} with instance of wrong type:"\
|
1768
1846
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1771,37 +1849,37 @@ module Google
|
|
1771
1849
|
end
|
1772
1850
|
end
|
1773
1851
|
|
1774
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1852
|
+
op = Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
|
1775
1853
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1776
1854
|
op["update"] = res
|
1777
1855
|
op
|
1778
1856
|
end
|
1779
1857
|
|
1780
|
-
# A convenience method for creating an
|
1781
|
-
# its "update" field prepopulated with an
|
1858
|
+
# A convenience method for creating an AdGroupBidModifierOperation instance with
|
1859
|
+
# its "update" field prepopulated with an AdGroupBidModifier instance, and
|
1782
1860
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1783
1861
|
#
|
1784
|
-
# @overload #
|
1862
|
+
# @overload #ad_group_bid_modifier(path, &blk)
|
1785
1863
|
# @param path [String] a resource path for the resource to update
|
1786
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1864
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a new instance of the resource for this update operation, on
|
1787
1865
|
# which fields can be set to update
|
1788
1866
|
#
|
1789
|
-
# @overload #
|
1790
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1867
|
+
# @overload #ad_group_bid_modifier(resource, &blk)
|
1868
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a resource instance to update
|
1791
1869
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1792
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1793
|
-
def self.
|
1794
|
-
require "google/ads/google_ads/v2/services/
|
1870
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] the operation instance to update the resource
|
1871
|
+
def self.ad_group_bid_modifier(resource_or_path, &blk)
|
1872
|
+
require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
|
1795
1873
|
res = case resource_or_path
|
1796
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1874
|
+
when Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier
|
1797
1875
|
resource_or_path
|
1798
1876
|
# got a resource path
|
1799
1877
|
when String
|
1800
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1878
|
+
obj = Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier.new
|
1801
1879
|
obj.resource_name = resource_or_path
|
1802
1880
|
obj
|
1803
1881
|
else
|
1804
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1882
|
+
unless Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier === res
|
1805
1883
|
raise ArgumentError.new(
|
1806
1884
|
"Called #{__method__} with instance of wrong type:"\
|
1807
1885
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1810,37 +1888,37 @@ module Google
|
|
1810
1888
|
end
|
1811
1889
|
end
|
1812
1890
|
|
1813
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1891
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
|
1814
1892
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1815
1893
|
op["update"] = res
|
1816
1894
|
op
|
1817
1895
|
end
|
1818
1896
|
|
1819
|
-
# A convenience method for creating an
|
1820
|
-
# its "update" field prepopulated with an
|
1897
|
+
# A convenience method for creating an CampaignFeedOperation instance with
|
1898
|
+
# its "update" field prepopulated with an CampaignFeed instance, and
|
1821
1899
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1822
1900
|
#
|
1823
|
-
# @overload #
|
1901
|
+
# @overload #campaign_feed(path, &blk)
|
1824
1902
|
# @param path [String] a resource path for the resource to update
|
1825
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1903
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CampaignFeed] a new instance of the resource for this update operation, on
|
1826
1904
|
# which fields can be set to update
|
1827
1905
|
#
|
1828
|
-
# @overload #
|
1829
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1906
|
+
# @overload #campaign_feed(resource, &blk)
|
1907
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignFeed] a resource instance to update
|
1830
1908
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1831
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1832
|
-
def self.
|
1833
|
-
require "google/ads/google_ads/v2/services/
|
1909
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] the operation instance to update the resource
|
1910
|
+
def self.campaign_feed(resource_or_path, &blk)
|
1911
|
+
require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
|
1834
1912
|
res = case resource_or_path
|
1835
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1913
|
+
when Google::Ads::GoogleAds::V2::Resources::CampaignFeed
|
1836
1914
|
resource_or_path
|
1837
1915
|
# got a resource path
|
1838
1916
|
when String
|
1839
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1917
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CampaignFeed.new
|
1840
1918
|
obj.resource_name = resource_or_path
|
1841
1919
|
obj
|
1842
1920
|
else
|
1843
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1921
|
+
unless Google::Ads::GoogleAds::V2::Resources::CampaignFeed === res
|
1844
1922
|
raise ArgumentError.new(
|
1845
1923
|
"Called #{__method__} with instance of wrong type:"\
|
1846
1924
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1849,37 +1927,37 @@ module Google
|
|
1849
1927
|
end
|
1850
1928
|
end
|
1851
1929
|
|
1852
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1930
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
|
1853
1931
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1854
1932
|
op["update"] = res
|
1855
1933
|
op
|
1856
1934
|
end
|
1857
1935
|
|
1858
|
-
# A convenience method for creating an
|
1859
|
-
# its "update" field prepopulated with an
|
1936
|
+
# A convenience method for creating an RemarketingActionOperation instance with
|
1937
|
+
# its "update" field prepopulated with an RemarketingAction instance, and
|
1860
1938
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1861
1939
|
#
|
1862
|
-
# @overload #
|
1940
|
+
# @overload #remarketing_action(path, &blk)
|
1863
1941
|
# @param path [String] a resource path for the resource to update
|
1864
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1942
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::RemarketingAction] a new instance of the resource for this update operation, on
|
1865
1943
|
# which fields can be set to update
|
1866
1944
|
#
|
1867
|
-
# @overload #
|
1868
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1945
|
+
# @overload #remarketing_action(resource, &blk)
|
1946
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::RemarketingAction] a resource instance to update
|
1869
1947
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1870
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1871
|
-
def self.
|
1872
|
-
require "google/ads/google_ads/v2/services/
|
1948
|
+
# @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation instance to update the resource
|
1949
|
+
def self.remarketing_action(resource_or_path, &blk)
|
1950
|
+
require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
|
1873
1951
|
res = case resource_or_path
|
1874
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1952
|
+
when Google::Ads::GoogleAds::V2::Resources::RemarketingAction
|
1875
1953
|
resource_or_path
|
1876
1954
|
# got a resource path
|
1877
1955
|
when String
|
1878
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1956
|
+
obj = Google::Ads::GoogleAds::V2::Resources::RemarketingAction.new
|
1879
1957
|
obj.resource_name = resource_or_path
|
1880
1958
|
obj
|
1881
1959
|
else
|
1882
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1960
|
+
unless Google::Ads::GoogleAds::V2::Resources::RemarketingAction === res
|
1883
1961
|
raise ArgumentError.new(
|
1884
1962
|
"Called #{__method__} with instance of wrong type:"\
|
1885
1963
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1888,37 +1966,37 @@ module Google
|
|
1888
1966
|
end
|
1889
1967
|
end
|
1890
1968
|
|
1891
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1969
|
+
op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
|
1892
1970
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1893
1971
|
op["update"] = res
|
1894
1972
|
op
|
1895
1973
|
end
|
1896
1974
|
|
1897
|
-
# A convenience method for creating an
|
1898
|
-
# its "update" field prepopulated with an
|
1975
|
+
# A convenience method for creating an AdGroupAdOperation instance with
|
1976
|
+
# its "update" field prepopulated with an AdGroupAd instance, and
|
1899
1977
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1900
1978
|
#
|
1901
|
-
# @overload #
|
1979
|
+
# @overload #ad_group_ad(path, &blk)
|
1902
1980
|
# @param path [String] a resource path for the resource to update
|
1903
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1981
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupAd] a new instance of the resource for this update operation, on
|
1904
1982
|
# which fields can be set to update
|
1905
1983
|
#
|
1906
|
-
# @overload #
|
1907
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1984
|
+
# @overload #ad_group_ad(resource, &blk)
|
1985
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupAd] a resource instance to update
|
1908
1986
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1909
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1910
|
-
def self.
|
1911
|
-
require "google/ads/google_ads/v2/services/
|
1987
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] the operation instance to update the resource
|
1988
|
+
def self.ad_group_ad(resource_or_path, &blk)
|
1989
|
+
require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
|
1912
1990
|
res = case resource_or_path
|
1913
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1991
|
+
when Google::Ads::GoogleAds::V2::Resources::AdGroupAd
|
1914
1992
|
resource_or_path
|
1915
1993
|
# got a resource path
|
1916
1994
|
when String
|
1917
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1995
|
+
obj = Google::Ads::GoogleAds::V2::Resources::AdGroupAd.new
|
1918
1996
|
obj.resource_name = resource_or_path
|
1919
1997
|
obj
|
1920
1998
|
else
|
1921
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1999
|
+
unless Google::Ads::GoogleAds::V2::Resources::AdGroupAd === res
|
1922
2000
|
raise ArgumentError.new(
|
1923
2001
|
"Called #{__method__} with instance of wrong type:"\
|
1924
2002
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1927,7 +2005,7 @@ module Google
|
|
1927
2005
|
end
|
1928
2006
|
end
|
1929
2007
|
|
1930
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2008
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
|
1931
2009
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1932
2010
|
op["update"] = res
|
1933
2011
|
op
|
@@ -2187,11 +2265,50 @@ module Google
|
|
2187
2265
|
resource_or_path
|
2188
2266
|
# got a resource path
|
2189
2267
|
when String
|
2190
|
-
obj = Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier.new
|
2268
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier.new
|
2269
|
+
obj.resource_name = resource_or_path
|
2270
|
+
obj
|
2271
|
+
else
|
2272
|
+
unless Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier === res
|
2273
|
+
raise ArgumentError.new(
|
2274
|
+
"Called #{__method__} with instance of wrong type:"\
|
2275
|
+
" #{res.class} want #{operation.update_class}"\
|
2276
|
+
" or String representing resource name"
|
2277
|
+
)
|
2278
|
+
end
|
2279
|
+
end
|
2280
|
+
|
2281
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
|
2282
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2283
|
+
op["update"] = res
|
2284
|
+
op
|
2285
|
+
end
|
2286
|
+
|
2287
|
+
# A convenience method for creating an CampaignBudgetOperation instance with
|
2288
|
+
# its "update" field prepopulated with an CampaignBudget instance, and
|
2289
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2290
|
+
#
|
2291
|
+
# @overload #campaign_budget(path, &blk)
|
2292
|
+
# @param path [String] a resource path for the resource to update
|
2293
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CampaignBudget] a new instance of the resource for this update operation, on
|
2294
|
+
# which fields can be set to update
|
2295
|
+
#
|
2296
|
+
# @overload #campaign_budget(resource, &blk)
|
2297
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignBudget] a resource instance to update
|
2298
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2299
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] the operation instance to update the resource
|
2300
|
+
def self.campaign_budget(resource_or_path, &blk)
|
2301
|
+
require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
|
2302
|
+
res = case resource_or_path
|
2303
|
+
when Google::Ads::GoogleAds::V2::Resources::CampaignBudget
|
2304
|
+
resource_or_path
|
2305
|
+
# got a resource path
|
2306
|
+
when String
|
2307
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CampaignBudget.new
|
2191
2308
|
obj.resource_name = resource_or_path
|
2192
2309
|
obj
|
2193
2310
|
else
|
2194
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2311
|
+
unless Google::Ads::GoogleAds::V2::Resources::CampaignBudget === res
|
2195
2312
|
raise ArgumentError.new(
|
2196
2313
|
"Called #{__method__} with instance of wrong type:"\
|
2197
2314
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2200,37 +2317,37 @@ module Google
|
|
2200
2317
|
end
|
2201
2318
|
end
|
2202
2319
|
|
2203
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2320
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
|
2204
2321
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2205
2322
|
op["update"] = res
|
2206
2323
|
op
|
2207
2324
|
end
|
2208
2325
|
|
2209
|
-
# A convenience method for creating an
|
2210
|
-
# its "update" field prepopulated with an
|
2326
|
+
# A convenience method for creating an CampaignCriterionOperation instance with
|
2327
|
+
# its "update" field prepopulated with an CampaignCriterion instance, and
|
2211
2328
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2212
2329
|
#
|
2213
|
-
# @overload #
|
2330
|
+
# @overload #campaign_criterion(path, &blk)
|
2214
2331
|
# @param path [String] a resource path for the resource to update
|
2215
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2332
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CampaignCriterion] a new instance of the resource for this update operation, on
|
2216
2333
|
# which fields can be set to update
|
2217
2334
|
#
|
2218
|
-
# @overload #
|
2219
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2335
|
+
# @overload #campaign_criterion(resource, &blk)
|
2336
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignCriterion] a resource instance to update
|
2220
2337
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2221
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2222
|
-
def self.
|
2223
|
-
require "google/ads/google_ads/v2/services/
|
2338
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation] the operation instance to update the resource
|
2339
|
+
def self.campaign_criterion(resource_or_path, &blk)
|
2340
|
+
require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
|
2224
2341
|
res = case resource_or_path
|
2225
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2342
|
+
when Google::Ads::GoogleAds::V2::Resources::CampaignCriterion
|
2226
2343
|
resource_or_path
|
2227
2344
|
# got a resource path
|
2228
2345
|
when String
|
2229
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2346
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CampaignCriterion.new
|
2230
2347
|
obj.resource_name = resource_or_path
|
2231
2348
|
obj
|
2232
2349
|
else
|
2233
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2350
|
+
unless Google::Ads::GoogleAds::V2::Resources::CampaignCriterion === res
|
2234
2351
|
raise ArgumentError.new(
|
2235
2352
|
"Called #{__method__} with instance of wrong type:"\
|
2236
2353
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2239,7 +2356,7 @@ module Google
|
|
2239
2356
|
end
|
2240
2357
|
end
|
2241
2358
|
|
2242
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2359
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
|
2243
2360
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2244
2361
|
op["update"] = res
|
2245
2362
|
op
|
@@ -2284,31 +2401,31 @@ module Google
|
|
2284
2401
|
op
|
2285
2402
|
end
|
2286
2403
|
|
2287
|
-
# A convenience method for creating an
|
2288
|
-
# its "update" field prepopulated with an
|
2404
|
+
# A convenience method for creating an CampaignExperimentOperation instance with
|
2405
|
+
# its "update" field prepopulated with an CampaignExperiment instance, and
|
2289
2406
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2290
2407
|
#
|
2291
|
-
# @overload #
|
2408
|
+
# @overload #campaign_experiment(path, &blk)
|
2292
2409
|
# @param path [String] a resource path for the resource to update
|
2293
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2410
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CampaignExperiment] a new instance of the resource for this update operation, on
|
2294
2411
|
# which fields can be set to update
|
2295
2412
|
#
|
2296
|
-
# @overload #
|
2297
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2413
|
+
# @overload #campaign_experiment(resource, &blk)
|
2414
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignExperiment] a resource instance to update
|
2298
2415
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2299
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2300
|
-
def self.
|
2301
|
-
require "google/ads/google_ads/v2/services/
|
2416
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation] the operation instance to update the resource
|
2417
|
+
def self.campaign_experiment(resource_or_path, &blk)
|
2418
|
+
require "google/ads/google_ads/v2/services/campaign_experiment_service_pb.rb"
|
2302
2419
|
res = case resource_or_path
|
2303
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2420
|
+
when Google::Ads::GoogleAds::V2::Resources::CampaignExperiment
|
2304
2421
|
resource_or_path
|
2305
2422
|
# got a resource path
|
2306
2423
|
when String
|
2307
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2424
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CampaignExperiment.new
|
2308
2425
|
obj.resource_name = resource_or_path
|
2309
2426
|
obj
|
2310
2427
|
else
|
2311
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2428
|
+
unless Google::Ads::GoogleAds::V2::Resources::CampaignExperiment === res
|
2312
2429
|
raise ArgumentError.new(
|
2313
2430
|
"Called #{__method__} with instance of wrong type:"\
|
2314
2431
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2317,37 +2434,37 @@ module Google
|
|
2317
2434
|
end
|
2318
2435
|
end
|
2319
2436
|
|
2320
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2437
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation.new
|
2321
2438
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2322
2439
|
op["update"] = res
|
2323
2440
|
op
|
2324
2441
|
end
|
2325
2442
|
|
2326
|
-
# A convenience method for creating an
|
2327
|
-
# its "update" field prepopulated with an
|
2443
|
+
# A convenience method for creating an CampaignExtensionSettingOperation instance with
|
2444
|
+
# its "update" field prepopulated with an CampaignExtensionSetting instance, and
|
2328
2445
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2329
2446
|
#
|
2330
|
-
# @overload #
|
2447
|
+
# @overload #campaign_extension_setting(path, &blk)
|
2331
2448
|
# @param path [String] a resource path for the resource to update
|
2332
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2449
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CampaignExtensionSetting] a new instance of the resource for this update operation, on
|
2333
2450
|
# which fields can be set to update
|
2334
2451
|
#
|
2335
|
-
# @overload #
|
2336
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2452
|
+
# @overload #campaign_extension_setting(resource, &blk)
|
2453
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignExtensionSetting] a resource instance to update
|
2337
2454
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2338
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2339
|
-
def self.
|
2340
|
-
require "google/ads/google_ads/v2/services/
|
2455
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation] the operation instance to update the resource
|
2456
|
+
def self.campaign_extension_setting(resource_or_path, &blk)
|
2457
|
+
require "google/ads/google_ads/v2/services/campaign_extension_setting_service_pb.rb"
|
2341
2458
|
res = case resource_or_path
|
2342
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2459
|
+
when Google::Ads::GoogleAds::V2::Resources::CampaignExtensionSetting
|
2343
2460
|
resource_or_path
|
2344
2461
|
# got a resource path
|
2345
2462
|
when String
|
2346
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2463
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CampaignExtensionSetting.new
|
2347
2464
|
obj.resource_name = resource_or_path
|
2348
2465
|
obj
|
2349
2466
|
else
|
2350
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2467
|
+
unless Google::Ads::GoogleAds::V2::Resources::CampaignExtensionSetting === res
|
2351
2468
|
raise ArgumentError.new(
|
2352
2469
|
"Called #{__method__} with instance of wrong type:"\
|
2353
2470
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2356,7 +2473,7 @@ module Google
|
|
2356
2473
|
end
|
2357
2474
|
end
|
2358
2475
|
|
2359
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2476
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation.new
|
2360
2477
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2361
2478
|
op["update"] = res
|
2362
2479
|
op
|
@@ -2635,187 +2752,31 @@ module Google
|
|
2635
2752
|
op
|
2636
2753
|
end
|
2637
2754
|
|
2638
|
-
# A convenience method for creating an
|
2639
|
-
# its "update" field prepopulated with an
|
2640
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
2641
|
-
#
|
2642
|
-
# @overload #feed(path, &blk)
|
2643
|
-
# @param path [String] a resource path for the resource to update
|
2644
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::Feed] a new instance of the resource for this update operation, on
|
2645
|
-
# which fields can be set to update
|
2646
|
-
#
|
2647
|
-
# @overload #feed(resource, &blk)
|
2648
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::Feed] a resource instance to update
|
2649
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2650
|
-
# @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation instance to update the resource
|
2651
|
-
def self.feed(resource_or_path, &blk)
|
2652
|
-
require "google/ads/google_ads/v2/services/feed_service_pb.rb"
|
2653
|
-
res = case resource_or_path
|
2654
|
-
when Google::Ads::GoogleAds::V2::Resources::Feed
|
2655
|
-
resource_or_path
|
2656
|
-
# got a resource path
|
2657
|
-
when String
|
2658
|
-
obj = Google::Ads::GoogleAds::V2::Resources::Feed.new
|
2659
|
-
obj.resource_name = resource_or_path
|
2660
|
-
obj
|
2661
|
-
else
|
2662
|
-
unless Google::Ads::GoogleAds::V2::Resources::Feed === res
|
2663
|
-
raise ArgumentError.new(
|
2664
|
-
"Called #{__method__} with instance of wrong type:"\
|
2665
|
-
" #{res.class} want #{operation.update_class}"\
|
2666
|
-
" or String representing resource name"
|
2667
|
-
)
|
2668
|
-
end
|
2669
|
-
end
|
2670
|
-
|
2671
|
-
op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
|
2672
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2673
|
-
op["update"] = res
|
2674
|
-
op
|
2675
|
-
end
|
2676
|
-
|
2677
|
-
# A convenience method for creating an RemarketingActionOperation instance with
|
2678
|
-
# its "update" field prepopulated with an RemarketingAction instance, and
|
2679
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
2680
|
-
#
|
2681
|
-
# @overload #remarketing_action(path, &blk)
|
2682
|
-
# @param path [String] a resource path for the resource to update
|
2683
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::RemarketingAction] a new instance of the resource for this update operation, on
|
2684
|
-
# which fields can be set to update
|
2685
|
-
#
|
2686
|
-
# @overload #remarketing_action(resource, &blk)
|
2687
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::RemarketingAction] a resource instance to update
|
2688
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2689
|
-
# @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation instance to update the resource
|
2690
|
-
def self.remarketing_action(resource_or_path, &blk)
|
2691
|
-
require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
|
2692
|
-
res = case resource_or_path
|
2693
|
-
when Google::Ads::GoogleAds::V2::Resources::RemarketingAction
|
2694
|
-
resource_or_path
|
2695
|
-
# got a resource path
|
2696
|
-
when String
|
2697
|
-
obj = Google::Ads::GoogleAds::V2::Resources::RemarketingAction.new
|
2698
|
-
obj.resource_name = resource_or_path
|
2699
|
-
obj
|
2700
|
-
else
|
2701
|
-
unless Google::Ads::GoogleAds::V2::Resources::RemarketingAction === res
|
2702
|
-
raise ArgumentError.new(
|
2703
|
-
"Called #{__method__} with instance of wrong type:"\
|
2704
|
-
" #{res.class} want #{operation.update_class}"\
|
2705
|
-
" or String representing resource name"
|
2706
|
-
)
|
2707
|
-
end
|
2708
|
-
end
|
2709
|
-
|
2710
|
-
op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
|
2711
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2712
|
-
op["update"] = res
|
2713
|
-
op
|
2714
|
-
end
|
2715
|
-
|
2716
|
-
# A convenience method for creating an SharedSetOperation instance with
|
2717
|
-
# its "update" field prepopulated with an SharedSet instance, and
|
2718
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
2719
|
-
#
|
2720
|
-
# @overload #shared_set(path, &blk)
|
2721
|
-
# @param path [String] a resource path for the resource to update
|
2722
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::SharedSet] a new instance of the resource for this update operation, on
|
2723
|
-
# which fields can be set to update
|
2724
|
-
#
|
2725
|
-
# @overload #shared_set(resource, &blk)
|
2726
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::SharedSet] a resource instance to update
|
2727
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2728
|
-
# @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] the operation instance to update the resource
|
2729
|
-
def self.shared_set(resource_or_path, &blk)
|
2730
|
-
require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
|
2731
|
-
res = case resource_or_path
|
2732
|
-
when Google::Ads::GoogleAds::V2::Resources::SharedSet
|
2733
|
-
resource_or_path
|
2734
|
-
# got a resource path
|
2735
|
-
when String
|
2736
|
-
obj = Google::Ads::GoogleAds::V2::Resources::SharedSet.new
|
2737
|
-
obj.resource_name = resource_or_path
|
2738
|
-
obj
|
2739
|
-
else
|
2740
|
-
unless Google::Ads::GoogleAds::V2::Resources::SharedSet === res
|
2741
|
-
raise ArgumentError.new(
|
2742
|
-
"Called #{__method__} with instance of wrong type:"\
|
2743
|
-
" #{res.class} want #{operation.update_class}"\
|
2744
|
-
" or String representing resource name"
|
2745
|
-
)
|
2746
|
-
end
|
2747
|
-
end
|
2748
|
-
|
2749
|
-
op = Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
|
2750
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2751
|
-
op["update"] = res
|
2752
|
-
op
|
2753
|
-
end
|
2754
|
-
|
2755
|
-
# A convenience method for creating an UserListOperation instance with
|
2756
|
-
# its "update" field prepopulated with an UserList instance, and
|
2757
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
2758
|
-
#
|
2759
|
-
# @overload #user_list(path, &blk)
|
2760
|
-
# @param path [String] a resource path for the resource to update
|
2761
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::UserList] a new instance of the resource for this update operation, on
|
2762
|
-
# which fields can be set to update
|
2763
|
-
#
|
2764
|
-
# @overload #user_list(resource, &blk)
|
2765
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::UserList] a resource instance to update
|
2766
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2767
|
-
# @return [Google::Ads::GoogleAds::V2::Services::UserListOperation] the operation instance to update the resource
|
2768
|
-
def self.user_list(resource_or_path, &blk)
|
2769
|
-
require "google/ads/google_ads/v2/services/user_list_service_pb.rb"
|
2770
|
-
res = case resource_or_path
|
2771
|
-
when Google::Ads::GoogleAds::V2::Resources::UserList
|
2772
|
-
resource_or_path
|
2773
|
-
# got a resource path
|
2774
|
-
when String
|
2775
|
-
obj = Google::Ads::GoogleAds::V2::Resources::UserList.new
|
2776
|
-
obj.resource_name = resource_or_path
|
2777
|
-
obj
|
2778
|
-
else
|
2779
|
-
unless Google::Ads::GoogleAds::V2::Resources::UserList === res
|
2780
|
-
raise ArgumentError.new(
|
2781
|
-
"Called #{__method__} with instance of wrong type:"\
|
2782
|
-
" #{res.class} want #{operation.update_class}"\
|
2783
|
-
" or String representing resource name"
|
2784
|
-
)
|
2785
|
-
end
|
2786
|
-
end
|
2787
|
-
|
2788
|
-
op = Google::Ads::GoogleAds::V2::Services::UserListOperation.new
|
2789
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2790
|
-
op["update"] = res
|
2791
|
-
op
|
2792
|
-
end
|
2793
|
-
|
2794
|
-
# A convenience method for creating an KeywordPlanCampaignOperation instance with
|
2795
|
-
# its "update" field prepopulated with an KeywordPlanCampaign instance, and
|
2755
|
+
# A convenience method for creating an LabelOperation instance with
|
2756
|
+
# its "update" field prepopulated with an Label instance, and
|
2796
2757
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2797
2758
|
#
|
2798
|
-
# @overload #
|
2759
|
+
# @overload #label(path, &blk)
|
2799
2760
|
# @param path [String] a resource path for the resource to update
|
2800
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2761
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::Label] a new instance of the resource for this update operation, on
|
2801
2762
|
# which fields can be set to update
|
2802
2763
|
#
|
2803
|
-
# @overload #
|
2804
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2764
|
+
# @overload #label(resource, &blk)
|
2765
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::Label] a resource instance to update
|
2805
2766
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2806
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2807
|
-
def self.
|
2808
|
-
require "google/ads/google_ads/v2/services/
|
2767
|
+
# @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] the operation instance to update the resource
|
2768
|
+
def self.label(resource_or_path, &blk)
|
2769
|
+
require "google/ads/google_ads/v2/services/label_service_pb.rb"
|
2809
2770
|
res = case resource_or_path
|
2810
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2771
|
+
when Google::Ads::GoogleAds::V2::Resources::Label
|
2811
2772
|
resource_or_path
|
2812
2773
|
# got a resource path
|
2813
2774
|
when String
|
2814
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2775
|
+
obj = Google::Ads::GoogleAds::V2::Resources::Label.new
|
2815
2776
|
obj.resource_name = resource_or_path
|
2816
2777
|
obj
|
2817
2778
|
else
|
2818
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2779
|
+
unless Google::Ads::GoogleAds::V2::Resources::Label === res
|
2819
2780
|
raise ArgumentError.new(
|
2820
2781
|
"Called #{__method__} with instance of wrong type:"\
|
2821
2782
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2824,37 +2785,37 @@ module Google
|
|
2824
2785
|
end
|
2825
2786
|
end
|
2826
2787
|
|
2827
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2788
|
+
op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
|
2828
2789
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2829
2790
|
op["update"] = res
|
2830
2791
|
op
|
2831
2792
|
end
|
2832
2793
|
|
2833
|
-
# A convenience method for creating an
|
2834
|
-
# its "update" field prepopulated with an
|
2794
|
+
# A convenience method for creating an UserListOperation instance with
|
2795
|
+
# its "update" field prepopulated with an UserList instance, and
|
2835
2796
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2836
2797
|
#
|
2837
|
-
# @overload #
|
2798
|
+
# @overload #user_list(path, &blk)
|
2838
2799
|
# @param path [String] a resource path for the resource to update
|
2839
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2800
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::UserList] a new instance of the resource for this update operation, on
|
2840
2801
|
# which fields can be set to update
|
2841
2802
|
#
|
2842
|
-
# @overload #
|
2843
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2803
|
+
# @overload #user_list(resource, &blk)
|
2804
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::UserList] a resource instance to update
|
2844
2805
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2845
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2846
|
-
def self.
|
2847
|
-
require "google/ads/google_ads/v2/services/
|
2806
|
+
# @return [Google::Ads::GoogleAds::V2::Services::UserListOperation] the operation instance to update the resource
|
2807
|
+
def self.user_list(resource_or_path, &blk)
|
2808
|
+
require "google/ads/google_ads/v2/services/user_list_service_pb.rb"
|
2848
2809
|
res = case resource_or_path
|
2849
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2810
|
+
when Google::Ads::GoogleAds::V2::Resources::UserList
|
2850
2811
|
resource_or_path
|
2851
2812
|
# got a resource path
|
2852
2813
|
when String
|
2853
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2814
|
+
obj = Google::Ads::GoogleAds::V2::Resources::UserList.new
|
2854
2815
|
obj.resource_name = resource_or_path
|
2855
2816
|
obj
|
2856
2817
|
else
|
2857
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2818
|
+
unless Google::Ads::GoogleAds::V2::Resources::UserList === res
|
2858
2819
|
raise ArgumentError.new(
|
2859
2820
|
"Called #{__method__} with instance of wrong type:"\
|
2860
2821
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2863,37 +2824,37 @@ module Google
|
|
2863
2824
|
end
|
2864
2825
|
end
|
2865
2826
|
|
2866
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2827
|
+
op = Google::Ads::GoogleAds::V2::Services::UserListOperation.new
|
2867
2828
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2868
2829
|
op["update"] = res
|
2869
2830
|
op
|
2870
2831
|
end
|
2871
2832
|
|
2872
|
-
# A convenience method for creating an
|
2873
|
-
# its "update" field prepopulated with an
|
2833
|
+
# A convenience method for creating an KeywordPlanKeywordOperation instance with
|
2834
|
+
# its "update" field prepopulated with an KeywordPlanKeyword instance, and
|
2874
2835
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2875
2836
|
#
|
2876
|
-
# @overload #
|
2837
|
+
# @overload #keyword_plan_keyword(path, &blk)
|
2877
2838
|
# @param path [String] a resource path for the resource to update
|
2878
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2839
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a new instance of the resource for this update operation, on
|
2879
2840
|
# which fields can be set to update
|
2880
2841
|
#
|
2881
|
-
# @overload #
|
2882
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2842
|
+
# @overload #keyword_plan_keyword(resource, &blk)
|
2843
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a resource instance to update
|
2883
2844
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2884
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2885
|
-
def self.
|
2886
|
-
require "google/ads/google_ads/v2/services/
|
2845
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation instance to update the resource
|
2846
|
+
def self.keyword_plan_keyword(resource_or_path, &blk)
|
2847
|
+
require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
|
2887
2848
|
res = case resource_or_path
|
2888
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2849
|
+
when Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword
|
2889
2850
|
resource_or_path
|
2890
2851
|
# got a resource path
|
2891
2852
|
when String
|
2892
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2853
|
+
obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword.new
|
2893
2854
|
obj.resource_name = resource_or_path
|
2894
2855
|
obj
|
2895
2856
|
else
|
2896
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2857
|
+
unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword === res
|
2897
2858
|
raise ArgumentError.new(
|
2898
2859
|
"Called #{__method__} with instance of wrong type:"\
|
2899
2860
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2902,37 +2863,37 @@ module Google
|
|
2902
2863
|
end
|
2903
2864
|
end
|
2904
2865
|
|
2905
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2866
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
|
2906
2867
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2907
2868
|
op["update"] = res
|
2908
2869
|
op
|
2909
2870
|
end
|
2910
2871
|
|
2911
|
-
# A convenience method for creating an
|
2912
|
-
# its "update" field prepopulated with an
|
2872
|
+
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
2873
|
+
# its "update" field prepopulated with an KeywordPlanAdGroup instance, and
|
2913
2874
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2914
2875
|
#
|
2915
|
-
# @overload #
|
2876
|
+
# @overload #keyword_plan_ad_group(path, &blk)
|
2916
2877
|
# @param path [String] a resource path for the resource to update
|
2917
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2878
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup] a new instance of the resource for this update operation, on
|
2918
2879
|
# which fields can be set to update
|
2919
2880
|
#
|
2920
|
-
# @overload #
|
2921
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2881
|
+
# @overload #keyword_plan_ad_group(resource, &blk)
|
2882
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup] a resource instance to update
|
2922
2883
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2923
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2924
|
-
def self.
|
2925
|
-
require "google/ads/google_ads/v2/services/
|
2884
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] the operation instance to update the resource
|
2885
|
+
def self.keyword_plan_ad_group(resource_or_path, &blk)
|
2886
|
+
require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
|
2926
2887
|
res = case resource_or_path
|
2927
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2888
|
+
when Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup
|
2928
2889
|
resource_or_path
|
2929
2890
|
# got a resource path
|
2930
2891
|
when String
|
2931
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2892
|
+
obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup.new
|
2932
2893
|
obj.resource_name = resource_or_path
|
2933
2894
|
obj
|
2934
2895
|
else
|
2935
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2896
|
+
unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup === res
|
2936
2897
|
raise ArgumentError.new(
|
2937
2898
|
"Called #{__method__} with instance of wrong type:"\
|
2938
2899
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2941,37 +2902,37 @@ module Google
|
|
2941
2902
|
end
|
2942
2903
|
end
|
2943
2904
|
|
2944
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2905
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
|
2945
2906
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2946
2907
|
op["update"] = res
|
2947
2908
|
op
|
2948
2909
|
end
|
2949
2910
|
|
2950
|
-
# A convenience method for creating an
|
2951
|
-
# its "update" field prepopulated with an
|
2911
|
+
# A convenience method for creating an CustomInterestOperation instance with
|
2912
|
+
# its "update" field prepopulated with an CustomInterest instance, and
|
2952
2913
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2953
2914
|
#
|
2954
|
-
# @overload #
|
2915
|
+
# @overload #custom_interest(path, &blk)
|
2955
2916
|
# @param path [String] a resource path for the resource to update
|
2956
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2917
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CustomInterest] a new instance of the resource for this update operation, on
|
2957
2918
|
# which fields can be set to update
|
2958
2919
|
#
|
2959
|
-
# @overload #
|
2960
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2920
|
+
# @overload #custom_interest(resource, &blk)
|
2921
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CustomInterest] a resource instance to update
|
2961
2922
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2962
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2963
|
-
def self.
|
2964
|
-
require "google/ads/google_ads/v2/services/
|
2923
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation instance to update the resource
|
2924
|
+
def self.custom_interest(resource_or_path, &blk)
|
2925
|
+
require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
|
2965
2926
|
res = case resource_or_path
|
2966
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2927
|
+
when Google::Ads::GoogleAds::V2::Resources::CustomInterest
|
2967
2928
|
resource_or_path
|
2968
2929
|
# got a resource path
|
2969
2930
|
when String
|
2970
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2931
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CustomInterest.new
|
2971
2932
|
obj.resource_name = resource_or_path
|
2972
2933
|
obj
|
2973
2934
|
else
|
2974
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2935
|
+
unless Google::Ads::GoogleAds::V2::Resources::CustomInterest === res
|
2975
2936
|
raise ArgumentError.new(
|
2976
2937
|
"Called #{__method__} with instance of wrong type:"\
|
2977
2938
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2980,7 +2941,7 @@ module Google
|
|
2980
2941
|
end
|
2981
2942
|
end
|
2982
2943
|
|
2983
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2944
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
|
2984
2945
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2985
2946
|
op["update"] = res
|
2986
2947
|
op
|
@@ -3025,31 +2986,31 @@ module Google
|
|
3025
2986
|
op
|
3026
2987
|
end
|
3027
2988
|
|
3028
|
-
# A convenience method for creating an
|
3029
|
-
# its "update" field prepopulated with an
|
2989
|
+
# A convenience method for creating an AdOperation instance with
|
2990
|
+
# its "update" field prepopulated with an Ad instance, and
|
3030
2991
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3031
2992
|
#
|
3032
|
-
# @overload #
|
2993
|
+
# @overload #ad(path, &blk)
|
3033
2994
|
# @param path [String] a resource path for the resource to update
|
3034
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2995
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::Ad] a new instance of the resource for this update operation, on
|
3035
2996
|
# which fields can be set to update
|
3036
2997
|
#
|
3037
|
-
# @overload #
|
3038
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2998
|
+
# @overload #ad(resource, &blk)
|
2999
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::Ad] a resource instance to update
|
3039
3000
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3040
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
3041
|
-
def self.
|
3042
|
-
require "google/ads/google_ads/v2/services/
|
3001
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdOperation] the operation instance to update the resource
|
3002
|
+
def self.ad(resource_or_path, &blk)
|
3003
|
+
require "google/ads/google_ads/v2/services/ad_service_pb.rb"
|
3043
3004
|
res = case resource_or_path
|
3044
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
3005
|
+
when Google::Ads::GoogleAds::V2::Resources::Ad
|
3045
3006
|
resource_or_path
|
3046
3007
|
# got a resource path
|
3047
3008
|
when String
|
3048
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
3009
|
+
obj = Google::Ads::GoogleAds::V2::Resources::Ad.new
|
3049
3010
|
obj.resource_name = resource_or_path
|
3050
3011
|
obj
|
3051
3012
|
else
|
3052
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
3013
|
+
unless Google::Ads::GoogleAds::V2::Resources::Ad === res
|
3053
3014
|
raise ArgumentError.new(
|
3054
3015
|
"Called #{__method__} with instance of wrong type:"\
|
3055
3016
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3058,7 +3019,46 @@ module Google
|
|
3058
3019
|
end
|
3059
3020
|
end
|
3060
3021
|
|
3061
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3022
|
+
op = Google::Ads::GoogleAds::V2::Services::AdOperation.new
|
3023
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3024
|
+
op["update"] = res
|
3025
|
+
op
|
3026
|
+
end
|
3027
|
+
|
3028
|
+
# A convenience method for creating an KeywordPlanOperation instance with
|
3029
|
+
# its "update" field prepopulated with an KeywordPlan instance, and
|
3030
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
3031
|
+
#
|
3032
|
+
# @overload #keyword_plan(path, &blk)
|
3033
|
+
# @param path [String] a resource path for the resource to update
|
3034
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] a new instance of the resource for this update operation, on
|
3035
|
+
# which fields can be set to update
|
3036
|
+
#
|
3037
|
+
# @overload #keyword_plan(resource, &blk)
|
3038
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] a resource instance to update
|
3039
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3040
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] the operation instance to update the resource
|
3041
|
+
def self.keyword_plan(resource_or_path, &blk)
|
3042
|
+
require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
|
3043
|
+
res = case resource_or_path
|
3044
|
+
when Google::Ads::GoogleAds::V2::Resources::KeywordPlan
|
3045
|
+
resource_or_path
|
3046
|
+
# got a resource path
|
3047
|
+
when String
|
3048
|
+
obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlan.new
|
3049
|
+
obj.resource_name = resource_or_path
|
3050
|
+
obj
|
3051
|
+
else
|
3052
|
+
unless Google::Ads::GoogleAds::V2::Resources::KeywordPlan === res
|
3053
|
+
raise ArgumentError.new(
|
3054
|
+
"Called #{__method__} with instance of wrong type:"\
|
3055
|
+
" #{res.class} want #{operation.update_class}"\
|
3056
|
+
" or String representing resource name"
|
3057
|
+
)
|
3058
|
+
end
|
3059
|
+
end
|
3060
|
+
|
3061
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
|
3062
3062
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3063
3063
|
op["update"] = res
|
3064
3064
|
op
|
@@ -3077,145 +3077,167 @@ module Google
|
|
3077
3077
|
op
|
3078
3078
|
end
|
3079
3079
|
|
3080
|
-
# A convenience method for creationg an
|
3080
|
+
# A convenience method for creationg an AdGroupCriterionLabelOperation instance with
|
3081
3081
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3082
3082
|
#
|
3083
3083
|
# @param path [String] the resource name of the resource to delete.
|
3084
|
-
def self.
|
3085
|
-
require "google/ads/google_ads/v2/services/
|
3086
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3084
|
+
def self.ad_group_criterion_label(path)
|
3085
|
+
require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
|
3086
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
|
3087
3087
|
op["remove"] = path
|
3088
3088
|
op
|
3089
3089
|
end
|
3090
3090
|
|
3091
|
-
# A convenience method for creationg an
|
3091
|
+
# A convenience method for creationg an CustomerManagerLinkOperation instance with
|
3092
3092
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3093
3093
|
#
|
3094
3094
|
# @param path [String] the resource name of the resource to delete.
|
3095
|
-
def self.
|
3096
|
-
require "google/ads/google_ads/v2/services/
|
3097
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3095
|
+
def self.customer_manager_link(path)
|
3096
|
+
require "google/ads/google_ads/v2/services/customer_manager_link_service_pb.rb"
|
3097
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation.new
|
3098
3098
|
op["remove"] = path
|
3099
3099
|
op
|
3100
3100
|
end
|
3101
3101
|
|
3102
|
-
# A convenience method for creationg an
|
3102
|
+
# A convenience method for creationg an KeywordPlanCampaignOperation instance with
|
3103
3103
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3104
3104
|
#
|
3105
3105
|
# @param path [String] the resource name of the resource to delete.
|
3106
|
-
def self.
|
3107
|
-
require "google/ads/google_ads/v2/services/
|
3108
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3106
|
+
def self.keyword_plan_campaign(path)
|
3107
|
+
require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
|
3108
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
|
3109
3109
|
op["remove"] = path
|
3110
3110
|
op
|
3111
3111
|
end
|
3112
3112
|
|
3113
|
-
# A convenience method for creationg an
|
3113
|
+
# A convenience method for creationg an SharedSetOperation instance with
|
3114
3114
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3115
3115
|
#
|
3116
3116
|
# @param path [String] the resource name of the resource to delete.
|
3117
|
-
def self.
|
3118
|
-
require "google/ads/google_ads/v2/services/
|
3119
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3117
|
+
def self.shared_set(path)
|
3118
|
+
require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
|
3119
|
+
op = Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
|
3120
3120
|
op["remove"] = path
|
3121
3121
|
op
|
3122
3122
|
end
|
3123
3123
|
|
3124
|
-
# A convenience method for creationg an
|
3124
|
+
# A convenience method for creationg an FeedOperation instance with
|
3125
3125
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3126
3126
|
#
|
3127
3127
|
# @param path [String] the resource name of the resource to delete.
|
3128
|
-
def self.
|
3129
|
-
require "google/ads/google_ads/v2/services/
|
3130
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3128
|
+
def self.feed(path)
|
3129
|
+
require "google/ads/google_ads/v2/services/feed_service_pb.rb"
|
3130
|
+
op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
|
3131
3131
|
op["remove"] = path
|
3132
3132
|
op
|
3133
3133
|
end
|
3134
3134
|
|
3135
|
-
# A convenience method for creationg an
|
3135
|
+
# A convenience method for creationg an AdGroupAdLabelOperation instance with
|
3136
3136
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3137
3137
|
#
|
3138
3138
|
# @param path [String] the resource name of the resource to delete.
|
3139
|
-
def self.
|
3140
|
-
require "google/ads/google_ads/v2/services/
|
3141
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3139
|
+
def self.ad_group_ad_label(path)
|
3140
|
+
require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
|
3141
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
|
3142
3142
|
op["remove"] = path
|
3143
3143
|
op
|
3144
3144
|
end
|
3145
3145
|
|
3146
|
-
# A convenience method for creationg an
|
3146
|
+
# A convenience method for creationg an CustomerClientLinkOperation instance with
|
3147
3147
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3148
3148
|
#
|
3149
3149
|
# @param path [String] the resource name of the resource to delete.
|
3150
|
-
def self.
|
3151
|
-
require "google/ads/google_ads/v2/services/
|
3152
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3150
|
+
def self.customer_client_link(path)
|
3151
|
+
require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
|
3152
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
|
3153
|
+
op["remove"] = path
|
3154
|
+
op
|
3155
|
+
end
|
3156
|
+
|
3157
|
+
# A convenience method for creationg an CampaignSharedSetOperation instance with
|
3158
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3159
|
+
#
|
3160
|
+
# @param path [String] the resource name of the resource to delete.
|
3161
|
+
def self.campaign_shared_set(path)
|
3162
|
+
require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
|
3163
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
|
3164
|
+
op["remove"] = path
|
3165
|
+
op
|
3166
|
+
end
|
3167
|
+
|
3168
|
+
# A convenience method for creationg an MerchantCenterLinkOperation instance with
|
3169
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3170
|
+
#
|
3171
|
+
# @param path [String] the resource name of the resource to delete.
|
3172
|
+
def self.merchant_center_link(path)
|
3173
|
+
require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
|
3174
|
+
op = Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
|
3153
3175
|
op["remove"] = path
|
3154
3176
|
op
|
3155
3177
|
end
|
3156
3178
|
|
3157
|
-
# A convenience method for creationg an
|
3179
|
+
# A convenience method for creationg an AdGroupBidModifierOperation instance with
|
3158
3180
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3159
3181
|
#
|
3160
3182
|
# @param path [String] the resource name of the resource to delete.
|
3161
|
-
def self.
|
3162
|
-
require "google/ads/google_ads/v2/services/
|
3163
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3183
|
+
def self.ad_group_bid_modifier(path)
|
3184
|
+
require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
|
3185
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
|
3164
3186
|
op["remove"] = path
|
3165
3187
|
op
|
3166
3188
|
end
|
3167
3189
|
|
3168
|
-
# A convenience method for creationg an
|
3190
|
+
# A convenience method for creationg an CampaignFeedOperation instance with
|
3169
3191
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3170
3192
|
#
|
3171
3193
|
# @param path [String] the resource name of the resource to delete.
|
3172
|
-
def self.
|
3173
|
-
require "google/ads/google_ads/v2/services/
|
3174
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3194
|
+
def self.campaign_feed(path)
|
3195
|
+
require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
|
3196
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
|
3175
3197
|
op["remove"] = path
|
3176
3198
|
op
|
3177
3199
|
end
|
3178
3200
|
|
3179
|
-
# A convenience method for creationg an
|
3201
|
+
# A convenience method for creationg an SharedCriterionOperation instance with
|
3180
3202
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3181
3203
|
#
|
3182
3204
|
# @param path [String] the resource name of the resource to delete.
|
3183
|
-
def self.
|
3184
|
-
require "google/ads/google_ads/v2/services/
|
3185
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3205
|
+
def self.shared_criterion(path)
|
3206
|
+
require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
|
3207
|
+
op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
|
3186
3208
|
op["remove"] = path
|
3187
3209
|
op
|
3188
3210
|
end
|
3189
3211
|
|
3190
|
-
# A convenience method for creationg an
|
3212
|
+
# A convenience method for creationg an RemarketingActionOperation instance with
|
3191
3213
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3192
3214
|
#
|
3193
3215
|
# @param path [String] the resource name of the resource to delete.
|
3194
|
-
def self.
|
3195
|
-
require "google/ads/google_ads/v2/services/
|
3196
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3216
|
+
def self.remarketing_action(path)
|
3217
|
+
require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
|
3218
|
+
op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
|
3197
3219
|
op["remove"] = path
|
3198
3220
|
op
|
3199
3221
|
end
|
3200
3222
|
|
3201
|
-
# A convenience method for creationg an
|
3223
|
+
# A convenience method for creationg an AdGroupLabelOperation instance with
|
3202
3224
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3203
3225
|
#
|
3204
3226
|
# @param path [String] the resource name of the resource to delete.
|
3205
|
-
def self.
|
3206
|
-
require "google/ads/google_ads/v2/services/
|
3207
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3227
|
+
def self.ad_group_label(path)
|
3228
|
+
require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
|
3229
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
|
3208
3230
|
op["remove"] = path
|
3209
3231
|
op
|
3210
3232
|
end
|
3211
3233
|
|
3212
|
-
# A convenience method for creationg an
|
3234
|
+
# A convenience method for creationg an CustomerLabelOperation instance with
|
3213
3235
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3214
3236
|
#
|
3215
3237
|
# @param path [String] the resource name of the resource to delete.
|
3216
|
-
def self.
|
3217
|
-
require "google/ads/google_ads/v2/services/
|
3218
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3238
|
+
def self.customer_label(path)
|
3239
|
+
require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
|
3240
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
|
3219
3241
|
op["remove"] = path
|
3220
3242
|
op
|
3221
3243
|
end
|
@@ -3231,17 +3253,6 @@ module Google
|
|
3231
3253
|
op
|
3232
3254
|
end
|
3233
3255
|
|
3234
|
-
# A convenience method for creationg an AdGroupBidModifierOperation instance with
|
3235
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3236
|
-
#
|
3237
|
-
# @param path [String] the resource name of the resource to delete.
|
3238
|
-
def self.ad_group_bid_modifier(path)
|
3239
|
-
require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
|
3240
|
-
op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
|
3241
|
-
op["remove"] = path
|
3242
|
-
op
|
3243
|
-
end
|
3244
|
-
|
3245
3256
|
# A convenience method for creationg an AdGroupCriterionOperation instance with
|
3246
3257
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3247
3258
|
#
|
@@ -3275,17 +3286,6 @@ module Google
|
|
3275
3286
|
op
|
3276
3287
|
end
|
3277
3288
|
|
3278
|
-
# A convenience method for creationg an AdGroupLabelOperation instance with
|
3279
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3280
|
-
#
|
3281
|
-
# @param path [String] the resource name of the resource to delete.
|
3282
|
-
def self.ad_group_label(path)
|
3283
|
-
require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
|
3284
|
-
op = Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
|
3285
|
-
op["remove"] = path
|
3286
|
-
op
|
3287
|
-
end
|
3288
|
-
|
3289
3289
|
# A convenience method for creationg an AdGroupOperation instance with
|
3290
3290
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3291
3291
|
#
|
@@ -3308,6 +3308,17 @@ module Google
|
|
3308
3308
|
op
|
3309
3309
|
end
|
3310
3310
|
|
3311
|
+
# A convenience method for creationg an AssetOperation instance with
|
3312
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3313
|
+
#
|
3314
|
+
# @param path [String] the resource name of the resource to delete.
|
3315
|
+
def self.asset(path)
|
3316
|
+
require "google/ads/google_ads/v2/services/asset_service_pb.rb"
|
3317
|
+
op = Google::Ads::GoogleAds::V2::Services::AssetOperation.new
|
3318
|
+
op["remove"] = path
|
3319
|
+
op
|
3320
|
+
end
|
3321
|
+
|
3311
3322
|
# A convenience method for creationg an BiddingStrategyOperation instance with
|
3312
3323
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3313
3324
|
#
|
@@ -3341,6 +3352,17 @@ module Google
|
|
3341
3352
|
op
|
3342
3353
|
end
|
3343
3354
|
|
3355
|
+
# A convenience method for creationg an CampaignCriterionOperation instance with
|
3356
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3357
|
+
#
|
3358
|
+
# @param path [String] the resource name of the resource to delete.
|
3359
|
+
def self.campaign_criterion(path)
|
3360
|
+
require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
|
3361
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
|
3362
|
+
op["remove"] = path
|
3363
|
+
op
|
3364
|
+
end
|
3365
|
+
|
3344
3366
|
# A convenience method for creationg an CampaignDraftOperation instance with
|
3345
3367
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3346
3368
|
#
|
@@ -3352,6 +3374,17 @@ module Google
|
|
3352
3374
|
op
|
3353
3375
|
end
|
3354
3376
|
|
3377
|
+
# A convenience method for creationg an CampaignExperimentOperation instance with
|
3378
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3379
|
+
#
|
3380
|
+
# @param path [String] the resource name of the resource to delete.
|
3381
|
+
def self.campaign_experiment(path)
|
3382
|
+
require "google/ads/google_ads/v2/services/campaign_experiment_service_pb.rb"
|
3383
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation.new
|
3384
|
+
op["remove"] = path
|
3385
|
+
op
|
3386
|
+
end
|
3387
|
+
|
3355
3388
|
# A convenience method for creationg an CampaignExtensionSettingOperation instance with
|
3356
3389
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3357
3390
|
#
|
@@ -3363,13 +3396,13 @@ module Google
|
|
3363
3396
|
op
|
3364
3397
|
end
|
3365
3398
|
|
3366
|
-
# A convenience method for creationg an
|
3399
|
+
# A convenience method for creationg an CampaignLabelOperation instance with
|
3367
3400
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3368
3401
|
#
|
3369
3402
|
# @param path [String] the resource name of the resource to delete.
|
3370
|
-
def self.
|
3371
|
-
require "google/ads/google_ads/v2/services/
|
3372
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3403
|
+
def self.campaign_label(path)
|
3404
|
+
require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
|
3405
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
|
3373
3406
|
op["remove"] = path
|
3374
3407
|
op
|
3375
3408
|
end
|
@@ -3385,17 +3418,6 @@ module Google
|
|
3385
3418
|
op
|
3386
3419
|
end
|
3387
3420
|
|
3388
|
-
# A convenience method for creationg an CampaignSharedSetOperation instance with
|
3389
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3390
|
-
#
|
3391
|
-
# @param path [String] the resource name of the resource to delete.
|
3392
|
-
def self.campaign_shared_set(path)
|
3393
|
-
require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
|
3394
|
-
op = Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
|
3395
|
-
op["remove"] = path
|
3396
|
-
op
|
3397
|
-
end
|
3398
|
-
|
3399
3421
|
# A convenience method for creationg an ConversionActionOperation instance with
|
3400
3422
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3401
3423
|
#
|
@@ -3429,17 +3451,6 @@ module Google
|
|
3429
3451
|
op
|
3430
3452
|
end
|
3431
3453
|
|
3432
|
-
# A convenience method for creationg an CustomerLabelOperation instance with
|
3433
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3434
|
-
#
|
3435
|
-
# @param path [String] the resource name of the resource to delete.
|
3436
|
-
def self.customer_label(path)
|
3437
|
-
require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
|
3438
|
-
op = Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
|
3439
|
-
op["remove"] = path
|
3440
|
-
op
|
3441
|
-
end
|
3442
|
-
|
3443
3454
|
# A convenience method for creationg an CustomerNegativeCriterionOperation instance with
|
3444
3455
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3445
3456
|
#
|
@@ -3495,57 +3506,35 @@ module Google
|
|
3495
3506
|
op
|
3496
3507
|
end
|
3497
3508
|
|
3498
|
-
# A convenience method for creationg an
|
3499
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3500
|
-
#
|
3501
|
-
# @param path [String] the resource name of the resource to delete.
|
3502
|
-
def self.feed(path)
|
3503
|
-
require "google/ads/google_ads/v2/services/feed_service_pb.rb"
|
3504
|
-
op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
|
3505
|
-
op["remove"] = path
|
3506
|
-
op
|
3507
|
-
end
|
3508
|
-
|
3509
|
-
# A convenience method for creationg an MediaFileOperation instance with
|
3510
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3511
|
-
#
|
3512
|
-
# @param path [String] the resource name of the resource to delete.
|
3513
|
-
def self.media_file(path)
|
3514
|
-
require "google/ads/google_ads/v2/services/media_file_service_pb.rb"
|
3515
|
-
op = Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
|
3516
|
-
op["remove"] = path
|
3517
|
-
op
|
3518
|
-
end
|
3519
|
-
|
3520
|
-
# A convenience method for creationg an RemarketingActionOperation instance with
|
3509
|
+
# A convenience method for creationg an FeedMappingOperation instance with
|
3521
3510
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3522
3511
|
#
|
3523
3512
|
# @param path [String] the resource name of the resource to delete.
|
3524
|
-
def self.
|
3525
|
-
require "google/ads/google_ads/v2/services/
|
3526
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3513
|
+
def self.feed_mapping(path)
|
3514
|
+
require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
|
3515
|
+
op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
|
3527
3516
|
op["remove"] = path
|
3528
3517
|
op
|
3529
3518
|
end
|
3530
3519
|
|
3531
|
-
# A convenience method for creationg an
|
3520
|
+
# A convenience method for creationg an LabelOperation instance with
|
3532
3521
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3533
3522
|
#
|
3534
3523
|
# @param path [String] the resource name of the resource to delete.
|
3535
|
-
def self.
|
3536
|
-
require "google/ads/google_ads/v2/services/
|
3537
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3524
|
+
def self.label(path)
|
3525
|
+
require "google/ads/google_ads/v2/services/label_service_pb.rb"
|
3526
|
+
op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
|
3538
3527
|
op["remove"] = path
|
3539
3528
|
op
|
3540
3529
|
end
|
3541
3530
|
|
3542
|
-
# A convenience method for creationg an
|
3531
|
+
# A convenience method for creationg an MediaFileOperation instance with
|
3543
3532
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3544
3533
|
#
|
3545
3534
|
# @param path [String] the resource name of the resource to delete.
|
3546
|
-
def self.
|
3547
|
-
require "google/ads/google_ads/v2/services/
|
3548
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3535
|
+
def self.media_file(path)
|
3536
|
+
require "google/ads/google_ads/v2/services/media_file_service_pb.rb"
|
3537
|
+
op = Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
|
3549
3538
|
op["remove"] = path
|
3550
3539
|
op
|
3551
3540
|
end
|
@@ -3572,24 +3561,24 @@ module Google
|
|
3572
3561
|
op
|
3573
3562
|
end
|
3574
3563
|
|
3575
|
-
# A convenience method for creationg an
|
3564
|
+
# A convenience method for creationg an KeywordPlanKeywordOperation instance with
|
3576
3565
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3577
3566
|
#
|
3578
3567
|
# @param path [String] the resource name of the resource to delete.
|
3579
|
-
def self.
|
3580
|
-
require "google/ads/google_ads/v2/services/
|
3581
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3568
|
+
def self.keyword_plan_keyword(path)
|
3569
|
+
require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
|
3570
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
|
3582
3571
|
op["remove"] = path
|
3583
3572
|
op
|
3584
3573
|
end
|
3585
3574
|
|
3586
|
-
# A convenience method for creationg an
|
3575
|
+
# A convenience method for creationg an KeywordPlanAdGroupOperation instance with
|
3587
3576
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3588
3577
|
#
|
3589
3578
|
# @param path [String] the resource name of the resource to delete.
|
3590
|
-
def self.
|
3591
|
-
require "google/ads/google_ads/v2/services/
|
3592
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3579
|
+
def self.keyword_plan_ad_group(path)
|
3580
|
+
require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
|
3581
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
|
3593
3582
|
op["remove"] = path
|
3594
3583
|
op
|
3595
3584
|
end
|
@@ -3605,68 +3594,79 @@ module Google
|
|
3605
3594
|
op
|
3606
3595
|
end
|
3607
3596
|
|
3608
|
-
# A convenience method for creationg an
|
3597
|
+
# A convenience method for creationg an CustomInterestOperation instance with
|
3609
3598
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3610
3599
|
#
|
3611
3600
|
# @param path [String] the resource name of the resource to delete.
|
3612
|
-
def self.
|
3613
|
-
require "google/ads/google_ads/v2/services/
|
3614
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3601
|
+
def self.custom_interest(path)
|
3602
|
+
require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
|
3603
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
|
3615
3604
|
op["remove"] = path
|
3616
3605
|
op
|
3617
3606
|
end
|
3618
3607
|
|
3619
|
-
# A convenience method for creationg an
|
3608
|
+
# A convenience method for creationg an KeywordPlanNegativeKeywordOperation instance with
|
3620
3609
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3621
3610
|
#
|
3622
3611
|
# @param path [String] the resource name of the resource to delete.
|
3623
|
-
def self.
|
3624
|
-
require "google/ads/google_ads/v2/services/
|
3625
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3612
|
+
def self.keyword_plan_negative_keyword(path)
|
3613
|
+
require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
|
3614
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
|
3626
3615
|
op["remove"] = path
|
3627
3616
|
op
|
3628
3617
|
end
|
3629
3618
|
|
3630
|
-
# A convenience method for creationg an
|
3619
|
+
# A convenience method for creationg an AdOperation instance with
|
3631
3620
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3632
3621
|
#
|
3633
3622
|
# @param path [String] the resource name of the resource to delete.
|
3634
|
-
def self.
|
3635
|
-
require "google/ads/google_ads/v2/services/
|
3636
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3623
|
+
def self.ad(path)
|
3624
|
+
require "google/ads/google_ads/v2/services/ad_service_pb.rb"
|
3625
|
+
op = Google::Ads::GoogleAds::V2::Services::AdOperation.new
|
3637
3626
|
op["remove"] = path
|
3638
3627
|
op
|
3639
3628
|
end
|
3640
3629
|
|
3641
|
-
# A convenience method for creationg an
|
3630
|
+
# A convenience method for creationg an KeywordPlanOperation instance with
|
3642
3631
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3643
3632
|
#
|
3644
3633
|
# @param path [String] the resource name of the resource to delete.
|
3645
|
-
def self.
|
3646
|
-
require "google/ads/google_ads/v2/services/
|
3647
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3634
|
+
def self.keyword_plan(path)
|
3635
|
+
require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
|
3636
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
|
3648
3637
|
op["remove"] = path
|
3649
3638
|
op
|
3650
3639
|
end
|
3651
3640
|
|
3652
|
-
# A convenience method for creationg an
|
3641
|
+
# A convenience method for creationg an ApplyRecommendationOperation instance with
|
3653
3642
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3654
3643
|
#
|
3655
3644
|
# @param path [String] the resource name of the resource to delete.
|
3656
|
-
def self.
|
3657
|
-
require "google/ads/google_ads/v2/services/
|
3658
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3645
|
+
def self.apply_recommendation(path)
|
3646
|
+
require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
|
3647
|
+
op = Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation.new
|
3659
3648
|
op["remove"] = path
|
3660
3649
|
op
|
3661
3650
|
end
|
3662
3651
|
|
3663
|
-
# A convenience method for creationg an
|
3652
|
+
# A convenience method for creationg an DismissRecommendationOperation instance with
|
3664
3653
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3665
3654
|
#
|
3666
3655
|
# @param path [String] the resource name of the resource to delete.
|
3667
|
-
def self.
|
3668
|
-
require "google/ads/google_ads/v2/services/
|
3669
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3656
|
+
def self.dismiss_recommendation(path)
|
3657
|
+
require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
|
3658
|
+
op = Google::Ads::GoogleAds::V2::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
|
3659
|
+
op["remove"] = path
|
3660
|
+
op
|
3661
|
+
end
|
3662
|
+
|
3663
|
+
# A convenience method for creationg an AccountBudgetProposalOperation instance with
|
3664
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3665
|
+
#
|
3666
|
+
# @param path [String] the resource name of the resource to delete.
|
3667
|
+
def self.account_budget_proposal(path)
|
3668
|
+
require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
|
3669
|
+
op = Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
|
3670
3670
|
op["remove"] = path
|
3671
3671
|
op
|
3672
3672
|
end
|