google-ads-googleads 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +3 -0
- data/Rakefile +3 -3
- data/lib/google/ads/google_ads/factories/v1/enums.rb +1130 -1130
- data/lib/google/ads/google_ads/factories/v1/operations.rb +1057 -1057
- data/lib/google/ads/google_ads/factories/v1/resources.rb +2420 -2420
- data/lib/google/ads/google_ads/factories/v1/services.rb +298 -298
- data/lib/google/ads/google_ads/factories/v2/enums.rb +1221 -1197
- data/lib/google/ads/google_ads/factories/v2/operations.rb +1080 -1080
- data/lib/google/ads/google_ads/factories/v2/resources.rb +2497 -2458
- data/lib/google/ads/google_ads/factories/v2/services.rb +329 -309
- data/lib/google/ads/google_ads/google_ads_client.rb +1 -0
- data/lib/google/ads/google_ads/v2/common/extensions_pb.rb +5 -0
- data/lib/google/ads/google_ads/v2/common/segments_pb.rb +2 -0
- data/lib/google/ads/google_ads/v2/enums/extension_type_pb.rb +1 -0
- data/lib/google/ads/google_ads/v2/enums/hotel_price_bucket_pb.rb +21 -0
- data/lib/google/ads/google_ads/v2/enums/invoice_type_pb.rb +21 -0
- data/lib/google/ads/google_ads/v2/errors/errors_pb.rb +2 -0
- data/lib/google/ads/google_ads/v2/errors/invoice_error_pb.rb +21 -0
- data/lib/google/ads/google_ads/v2/resources/ad_pb.rb +1 -0
- data/lib/google/ads/google_ads/v2/resources/campaign_pb.rb +13 -13
- data/lib/google/ads/google_ads/v2/resources/extension_feed_item_pb.rb +2 -0
- data/lib/google/ads/google_ads/v2/resources/invoice_pb.rb +47 -0
- data/lib/google/ads/google_ads/v2/resources/recommendation_pb.rb +21 -21
- data/lib/google/ads/google_ads/v2/services/invoice_service_client.rb +233 -0
- data/lib/google/ads/google_ads/v2/services/invoice_service_client_config.json +31 -0
- data/lib/google/ads/google_ads/v2/services/invoice_service_pb.rb +25 -0
- data/lib/google/ads/google_ads/v2/services/invoice_service_services_pb.rb +42 -0
- data/lib/google/ads/google_ads/v2/services/merchant_center_link_service_client.rb +1 -1
- data/lib/google/ads/google_ads/v2/services/merchant_center_link_service_services_pb.rb +1 -1
- data/lib/google/ads/google_ads/v2/services/reach_plan_service_client.rb +1 -1
- data/lib/google/ads/google_ads/v2/services/reach_plan_service_services_pb.rb +1 -1
- data/lib/google/ads/google_ads/version.rb +1 -1
- metadata +10 -2
@@ -12,6 +12,14 @@ module Google
|
|
12
12
|
Google::Ads::GoogleAds::V1::Resources::FeedAttributeOperation.new
|
13
13
|
end
|
14
14
|
|
15
|
+
# Create a new CampaignExperimentOperation
|
16
|
+
#
|
17
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignExperimentOperation] the operation
|
18
|
+
def self.campaign_experiment
|
19
|
+
require "google/ads/google_ads/v1/services/campaign_experiment_service_pb.rb"
|
20
|
+
Google::Ads::GoogleAds::V1::Services::CampaignExperimentOperation.new
|
21
|
+
end
|
22
|
+
|
15
23
|
# Create a new KeywordPlanKeywordOperation
|
16
24
|
#
|
17
25
|
# @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation] the operation
|
@@ -20,84 +28,28 @@ module Google
|
|
20
28
|
Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation.new
|
21
29
|
end
|
22
30
|
|
23
|
-
# Create a new
|
24
|
-
#
|
25
|
-
# @return [Google::Ads::GoogleAds::V1::Services::FeedMappingOperation] the operation
|
26
|
-
def self.feed_mapping
|
27
|
-
require "google/ads/google_ads/v1/services/feed_mapping_service_pb.rb"
|
28
|
-
Google::Ads::GoogleAds::V1::Services::FeedMappingOperation.new
|
29
|
-
end
|
30
|
-
|
31
|
-
# Create a new FeedOperation
|
32
|
-
#
|
33
|
-
# @return [Google::Ads::GoogleAds::V1::Services::FeedOperation] the operation
|
34
|
-
def self.feed
|
35
|
-
require "google/ads/google_ads/v1/services/feed_service_pb.rb"
|
36
|
-
Google::Ads::GoogleAds::V1::Services::FeedOperation.new
|
37
|
-
end
|
38
|
-
|
39
|
-
# Create a new AdGroupCriterionLabelOperation
|
40
|
-
#
|
41
|
-
# @return [Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation] the operation
|
42
|
-
def self.ad_group_criterion_label
|
43
|
-
require "google/ads/google_ads/v1/services/ad_group_criterion_label_service_pb.rb"
|
44
|
-
Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation.new
|
45
|
-
end
|
46
|
-
|
47
|
-
# Create a new ConversionActionOperation
|
48
|
-
#
|
49
|
-
# @return [Google::Ads::GoogleAds::V1::Services::ConversionActionOperation] the operation
|
50
|
-
def self.conversion_action
|
51
|
-
require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb"
|
52
|
-
Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new
|
53
|
-
end
|
54
|
-
|
55
|
-
# Create a new BiddingStrategyOperation
|
56
|
-
#
|
57
|
-
# @return [Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation] the operation
|
58
|
-
def self.bidding_strategy
|
59
|
-
require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb"
|
60
|
-
Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new
|
61
|
-
end
|
62
|
-
|
63
|
-
# Create a new AccountBudgetProposalOperation
|
64
|
-
#
|
65
|
-
# @return [Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation] the operation
|
66
|
-
def self.account_budget_proposal
|
67
|
-
require "google/ads/google_ads/v1/services/account_budget_proposal_service_pb.rb"
|
68
|
-
Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation.new
|
69
|
-
end
|
70
|
-
|
71
|
-
# Create a new FeedItemOperation
|
72
|
-
#
|
73
|
-
# @return [Google::Ads::GoogleAds::V1::Services::FeedItemOperation] the operation
|
74
|
-
def self.feed_item
|
75
|
-
require "google/ads/google_ads/v1/services/feed_item_service_pb.rb"
|
76
|
-
Google::Ads::GoogleAds::V1::Services::FeedItemOperation.new
|
77
|
-
end
|
78
|
-
|
79
|
-
# Create a new CampaignBudgetOperation
|
31
|
+
# Create a new KeywordPlanOperation
|
80
32
|
#
|
81
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
82
|
-
def self.
|
83
|
-
require "google/ads/google_ads/v1/services/
|
84
|
-
Google::Ads::GoogleAds::V1::Services::
|
33
|
+
# @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanOperation] the operation
|
34
|
+
def self.keyword_plan
|
35
|
+
require "google/ads/google_ads/v1/services/keyword_plan_service_pb.rb"
|
36
|
+
Google::Ads::GoogleAds::V1::Services::KeywordPlanOperation.new
|
85
37
|
end
|
86
38
|
|
87
|
-
# Create a new
|
39
|
+
# Create a new LabelOperation
|
88
40
|
#
|
89
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
90
|
-
def self.
|
91
|
-
require "google/ads/google_ads/v1/services/
|
92
|
-
Google::Ads::GoogleAds::V1::Services::
|
41
|
+
# @return [Google::Ads::GoogleAds::V1::Services::LabelOperation] the operation
|
42
|
+
def self.label
|
43
|
+
require "google/ads/google_ads/v1/services/label_service_pb.rb"
|
44
|
+
Google::Ads::GoogleAds::V1::Services::LabelOperation.new
|
93
45
|
end
|
94
46
|
|
95
|
-
# Create a new
|
47
|
+
# Create a new CampaignCriterionOperation
|
96
48
|
#
|
97
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
98
|
-
def self.
|
99
|
-
require "google/ads/google_ads/v1/services/
|
100
|
-
Google::Ads::GoogleAds::V1::Services::
|
49
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignCriterionOperation] the operation
|
50
|
+
def self.campaign_criterion
|
51
|
+
require "google/ads/google_ads/v1/services/campaign_criterion_service_pb.rb"
|
52
|
+
Google::Ads::GoogleAds::V1::Services::CampaignCriterionOperation.new
|
101
53
|
end
|
102
54
|
|
103
55
|
# Create a new CampaignLabelOperation
|
@@ -108,44 +60,52 @@ module Google
|
|
108
60
|
Google::Ads::GoogleAds::V1::Services::CampaignLabelOperation.new
|
109
61
|
end
|
110
62
|
|
111
|
-
# Create a new
|
63
|
+
# Create a new CustomInterestOperation
|
112
64
|
#
|
113
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
114
|
-
def self.
|
115
|
-
require "google/ads/google_ads/v1/services/
|
116
|
-
Google::Ads::GoogleAds::V1::Services::
|
65
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CustomInterestOperation] the operation
|
66
|
+
def self.custom_interest
|
67
|
+
require "google/ads/google_ads/v1/services/custom_interest_service_pb.rb"
|
68
|
+
Google::Ads::GoogleAds::V1::Services::CustomInterestOperation.new
|
117
69
|
end
|
118
70
|
|
119
|
-
# Create a new
|
71
|
+
# Create a new ApplyRecommendationOperation
|
120
72
|
#
|
121
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
122
|
-
def self.
|
123
|
-
require "google/ads/google_ads/v1/services/
|
124
|
-
Google::Ads::GoogleAds::V1::Services::
|
73
|
+
# @return [Google::Ads::GoogleAds::V1::Services::ApplyRecommendationOperation] the operation
|
74
|
+
def self.apply_recommendation
|
75
|
+
require "google/ads/google_ads/v1/services/recommendation_service_pb.rb"
|
76
|
+
Google::Ads::GoogleAds::V1::Services::ApplyRecommendationOperation.new
|
125
77
|
end
|
126
78
|
|
127
|
-
# Create a new
|
79
|
+
# Create a new DismissRecommendationOperation
|
128
80
|
#
|
129
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
130
|
-
def self.
|
131
|
-
require "google/ads/google_ads/v1/services/
|
132
|
-
Google::Ads::GoogleAds::V1::Services::
|
81
|
+
# @return [Google::Ads::GoogleAds::V1::Services::DismissRecommendationRequest::DismissRecommendationOperation] the operation
|
82
|
+
def self.dismiss_recommendation
|
83
|
+
require "google/ads/google_ads/v1/services/recommendation_service_pb.rb"
|
84
|
+
Google::Ads::GoogleAds::V1::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
|
133
85
|
end
|
134
86
|
|
135
|
-
# Create a new
|
87
|
+
# Create a new FeedMappingOperation
|
136
88
|
#
|
137
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
138
|
-
def self.
|
139
|
-
require "google/ads/google_ads/v1/services/
|
140
|
-
Google::Ads::GoogleAds::V1::Services::
|
89
|
+
# @return [Google::Ads::GoogleAds::V1::Services::FeedMappingOperation] the operation
|
90
|
+
def self.feed_mapping
|
91
|
+
require "google/ads/google_ads/v1/services/feed_mapping_service_pb.rb"
|
92
|
+
Google::Ads::GoogleAds::V1::Services::FeedMappingOperation.new
|
141
93
|
end
|
142
94
|
|
143
|
-
# Create a new
|
95
|
+
# Create a new AdGroupCriterionLabelOperation
|
144
96
|
#
|
145
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
146
|
-
def self.
|
147
|
-
require "google/ads/google_ads/v1/services/
|
148
|
-
Google::Ads::GoogleAds::V1::Services::
|
97
|
+
# @return [Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation] the operation
|
98
|
+
def self.ad_group_criterion_label
|
99
|
+
require "google/ads/google_ads/v1/services/ad_group_criterion_label_service_pb.rb"
|
100
|
+
Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation.new
|
101
|
+
end
|
102
|
+
|
103
|
+
# Create a new AssetOperation
|
104
|
+
#
|
105
|
+
# @return [Google::Ads::GoogleAds::V1::Services::AssetOperation] the operation
|
106
|
+
def self.asset
|
107
|
+
require "google/ads/google_ads/v1/services/asset_service_pb.rb"
|
108
|
+
Google::Ads::GoogleAds::V1::Services::AssetOperation.new
|
149
109
|
end
|
150
110
|
|
151
111
|
# Create a new AdGroupAdLabelOperation
|
@@ -164,6 +124,22 @@ module Google
|
|
164
124
|
Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation.new
|
165
125
|
end
|
166
126
|
|
127
|
+
# Create a new AdGroupBidModifierOperation
|
128
|
+
#
|
129
|
+
# @return [Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierOperation] the operation
|
130
|
+
def self.ad_group_bid_modifier
|
131
|
+
require "google/ads/google_ads/v1/services/ad_group_bid_modifier_service_pb.rb"
|
132
|
+
Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierOperation.new
|
133
|
+
end
|
134
|
+
|
135
|
+
# Create a new AdGroupCriterionOperation
|
136
|
+
#
|
137
|
+
# @return [Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation] the operation
|
138
|
+
def self.ad_group_criterion
|
139
|
+
require "google/ads/google_ads/v1/services/ad_group_criterion_service_pb.rb"
|
140
|
+
Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation.new
|
141
|
+
end
|
142
|
+
|
167
143
|
# Create a new AdGroupExtensionSettingOperation
|
168
144
|
#
|
169
145
|
# @return [Google::Ads::GoogleAds::V1::Services::AdGroupExtensionSettingOperation] the operation
|
@@ -204,12 +180,12 @@ module Google
|
|
204
180
|
Google::Ads::GoogleAds::V1::Services::AdParameterOperation.new
|
205
181
|
end
|
206
182
|
|
207
|
-
# Create a new
|
183
|
+
# Create a new BiddingStrategyOperation
|
208
184
|
#
|
209
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
210
|
-
def self.
|
211
|
-
require "google/ads/google_ads/v1/services/
|
212
|
-
Google::Ads::GoogleAds::V1::Services::
|
185
|
+
# @return [Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation] the operation
|
186
|
+
def self.bidding_strategy
|
187
|
+
require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb"
|
188
|
+
Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new
|
213
189
|
end
|
214
190
|
|
215
191
|
# Create a new CampaignBidModifierOperation
|
@@ -220,20 +196,20 @@ module Google
|
|
220
196
|
Google::Ads::GoogleAds::V1::Services::CampaignBidModifierOperation.new
|
221
197
|
end
|
222
198
|
|
223
|
-
# Create a new
|
199
|
+
# Create a new CampaignBudgetOperation
|
224
200
|
#
|
225
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
226
|
-
def self.
|
227
|
-
require "google/ads/google_ads/v1/services/
|
228
|
-
Google::Ads::GoogleAds::V1::Services::
|
201
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation] the operation
|
202
|
+
def self.campaign_budget
|
203
|
+
require "google/ads/google_ads/v1/services/campaign_budget_service_pb.rb"
|
204
|
+
Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation.new
|
229
205
|
end
|
230
206
|
|
231
|
-
# Create a new
|
207
|
+
# Create a new CampaignDraftOperation
|
232
208
|
#
|
233
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
234
|
-
def self.
|
235
|
-
require "google/ads/google_ads/v1/services/
|
236
|
-
Google::Ads::GoogleAds::V1::Services::
|
209
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation] the operation
|
210
|
+
def self.campaign_draft
|
211
|
+
require "google/ads/google_ads/v1/services/campaign_draft_service_pb.rb"
|
212
|
+
Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation.new
|
237
213
|
end
|
238
214
|
|
239
215
|
# Create a new CampaignExtensionSettingOperation
|
@@ -244,6 +220,14 @@ module Google
|
|
244
220
|
Google::Ads::GoogleAds::V1::Services::CampaignExtensionSettingOperation.new
|
245
221
|
end
|
246
222
|
|
223
|
+
# Create a new CampaignFeedOperation
|
224
|
+
#
|
225
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation] the operation
|
226
|
+
def self.campaign_feed
|
227
|
+
require "google/ads/google_ads/v1/services/campaign_feed_service_pb.rb"
|
228
|
+
Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation.new
|
229
|
+
end
|
230
|
+
|
247
231
|
# Create a new CampaignOperation
|
248
232
|
#
|
249
233
|
# @return [Google::Ads::GoogleAds::V1::Services::CampaignOperation] the operation
|
@@ -260,6 +244,14 @@ module Google
|
|
260
244
|
Google::Ads::GoogleAds::V1::Services::CampaignSharedSetOperation.new
|
261
245
|
end
|
262
246
|
|
247
|
+
# Create a new ConversionActionOperation
|
248
|
+
#
|
249
|
+
# @return [Google::Ads::GoogleAds::V1::Services::ConversionActionOperation] the operation
|
250
|
+
def self.conversion_action
|
251
|
+
require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb"
|
252
|
+
Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new
|
253
|
+
end
|
254
|
+
|
263
255
|
# Create a new CustomerExtensionSettingOperation
|
264
256
|
#
|
265
257
|
# @return [Google::Ads::GoogleAds::V1::Services::CustomerExtensionSettingOperation] the operation
|
@@ -292,6 +284,14 @@ module Google
|
|
292
284
|
Google::Ads::GoogleAds::V1::Services::CustomerNegativeCriterionOperation.new
|
293
285
|
end
|
294
286
|
|
287
|
+
# Create a new CustomerOperation
|
288
|
+
#
|
289
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CustomerOperation] the operation
|
290
|
+
def self.customer
|
291
|
+
require "google/ads/google_ads/v1/services/customer_service_pb.rb"
|
292
|
+
Google::Ads::GoogleAds::V1::Services::CustomerOperation.new
|
293
|
+
end
|
294
|
+
|
295
295
|
# Create a new ExtensionFeedItemOperation
|
296
296
|
#
|
297
297
|
# @return [Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemOperation] the operation
|
@@ -300,6 +300,14 @@ module Google
|
|
300
300
|
Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemOperation.new
|
301
301
|
end
|
302
302
|
|
303
|
+
# Create a new FeedItemOperation
|
304
|
+
#
|
305
|
+
# @return [Google::Ads::GoogleAds::V1::Services::FeedItemOperation] the operation
|
306
|
+
def self.feed_item
|
307
|
+
require "google/ads/google_ads/v1/services/feed_item_service_pb.rb"
|
308
|
+
Google::Ads::GoogleAds::V1::Services::FeedItemOperation.new
|
309
|
+
end
|
310
|
+
|
303
311
|
# Create a new FeedItemTargetOperation
|
304
312
|
#
|
305
313
|
# @return [Google::Ads::GoogleAds::V1::Services::FeedItemTargetOperation] the operation
|
@@ -308,12 +316,12 @@ module Google
|
|
308
316
|
Google::Ads::GoogleAds::V1::Services::FeedItemTargetOperation.new
|
309
317
|
end
|
310
318
|
|
311
|
-
# Create a new
|
319
|
+
# Create a new FeedOperation
|
312
320
|
#
|
313
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
314
|
-
def self.
|
315
|
-
require "google/ads/google_ads/v1/services/
|
316
|
-
Google::Ads::GoogleAds::V1::Services::
|
321
|
+
# @return [Google::Ads::GoogleAds::V1::Services::FeedOperation] the operation
|
322
|
+
def self.feed
|
323
|
+
require "google/ads/google_ads/v1/services/feed_service_pb.rb"
|
324
|
+
Google::Ads::GoogleAds::V1::Services::FeedOperation.new
|
317
325
|
end
|
318
326
|
|
319
327
|
# Create a new MediaFileOperation
|
@@ -332,6 +340,14 @@ module Google
|
|
332
340
|
Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation.new
|
333
341
|
end
|
334
342
|
|
343
|
+
# Create a new SharedCriterionOperation
|
344
|
+
#
|
345
|
+
# @return [Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation] the operation
|
346
|
+
def self.shared_criterion
|
347
|
+
require "google/ads/google_ads/v1/services/shared_criterion_service_pb.rb"
|
348
|
+
Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation.new
|
349
|
+
end
|
350
|
+
|
335
351
|
# Create a new SharedSetOperation
|
336
352
|
#
|
337
353
|
# @return [Google::Ads::GoogleAds::V1::Services::SharedSetOperation] the operation
|
@@ -356,23 +372,7 @@ module Google
|
|
356
372
|
Google::Ads::GoogleAds::V1::Services::MutateOperation.new
|
357
373
|
end
|
358
374
|
|
359
|
-
# Create a new
|
360
|
-
#
|
361
|
-
# @return [Google::Ads::GoogleAds::V1::Services::ApplyRecommendationOperation] the operation
|
362
|
-
def self.apply_recommendation
|
363
|
-
require "google/ads/google_ads/v1/services/recommendation_service_pb.rb"
|
364
|
-
Google::Ads::GoogleAds::V1::Services::ApplyRecommendationOperation.new
|
365
|
-
end
|
366
|
-
|
367
|
-
# Create a new DismissRecommendationOperation
|
368
|
-
#
|
369
|
-
# @return [Google::Ads::GoogleAds::V1::Services::DismissRecommendationRequest::DismissRecommendationOperation] the operation
|
370
|
-
def self.dismiss_recommendation
|
371
|
-
require "google/ads/google_ads/v1/services/recommendation_service_pb.rb"
|
372
|
-
Google::Ads::GoogleAds::V1::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
|
373
|
-
end
|
374
|
-
|
375
|
-
# Create a new KeywordPlanCampaignOperation
|
375
|
+
# Create a new KeywordPlanCampaignOperation
|
376
376
|
#
|
377
377
|
# @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation] the operation
|
378
378
|
def self.keyword_plan_campaign
|
@@ -388,20 +388,20 @@ module Google
|
|
388
388
|
Google::Ads::GoogleAds::V1::Services::BillingSetupOperation.new
|
389
389
|
end
|
390
390
|
|
391
|
-
# Create a new
|
391
|
+
# Create a new CustomerClientLinkOperation
|
392
392
|
#
|
393
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
394
|
-
def self.
|
395
|
-
require "google/ads/google_ads/v1/services/
|
396
|
-
Google::Ads::GoogleAds::V1::Services::
|
393
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation] the operation
|
394
|
+
def self.customer_client_link
|
395
|
+
require "google/ads/google_ads/v1/services/customer_client_link_service_pb.rb"
|
396
|
+
Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation.new
|
397
397
|
end
|
398
398
|
|
399
|
-
# Create a new
|
399
|
+
# Create a new AccountBudgetProposalOperation
|
400
400
|
#
|
401
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
402
|
-
def self.
|
403
|
-
require "google/ads/google_ads/v1/services/
|
404
|
-
Google::Ads::GoogleAds::V1::Services::
|
401
|
+
# @return [Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation] the operation
|
402
|
+
def self.account_budget_proposal
|
403
|
+
require "google/ads/google_ads/v1/services/account_budget_proposal_service_pb.rb"
|
404
|
+
Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation.new
|
405
405
|
end
|
406
406
|
|
407
407
|
# Create a new CustomerManagerLinkOperation
|
@@ -412,6 +412,14 @@ module Google
|
|
412
412
|
Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkOperation.new
|
413
413
|
end
|
414
414
|
|
415
|
+
# Create a new MerchantCenterLinkOperation
|
416
|
+
#
|
417
|
+
# @return [Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation] the operation
|
418
|
+
def self.merchant_center_link
|
419
|
+
require "google/ads/google_ads/v1/services/merchant_center_link_service_pb.rb"
|
420
|
+
Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation.new
|
421
|
+
end
|
422
|
+
|
415
423
|
# Create a new KeywordPlanNegativeKeywordOperation
|
416
424
|
#
|
417
425
|
# @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation] the operation
|
@@ -420,20 +428,12 @@ module Google
|
|
420
428
|
Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation.new
|
421
429
|
end
|
422
430
|
|
423
|
-
# Create a new
|
424
|
-
#
|
425
|
-
# @return [Google::Ads::GoogleAds::V1::Services::CustomInterestOperation] the operation
|
426
|
-
def self.custom_interest
|
427
|
-
require "google/ads/google_ads/v1/services/custom_interest_service_pb.rb"
|
428
|
-
Google::Ads::GoogleAds::V1::Services::CustomInterestOperation.new
|
429
|
-
end
|
430
|
-
|
431
|
-
# Create a new CustomerClientLinkOperation
|
431
|
+
# Create a new KeywordPlanAdGroupOperation
|
432
432
|
#
|
433
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
434
|
-
def self.
|
435
|
-
require "google/ads/google_ads/v1/services/
|
436
|
-
Google::Ads::GoogleAds::V1::Services::
|
433
|
+
# @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation] the operation
|
434
|
+
def self.keyword_plan_ad_group
|
435
|
+
require "google/ads/google_ads/v1/services/keyword_plan_ad_group_service_pb.rb"
|
436
|
+
Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation.new
|
437
437
|
end
|
438
438
|
|
439
439
|
# Get a reference module containing convenience methods for creating
|
@@ -486,226 +486,76 @@ module Google
|
|
486
486
|
op
|
487
487
|
end
|
488
488
|
|
489
|
-
# A convenience method for creating an
|
490
|
-
# its "create" field prepopulated with an
|
491
|
-
#
|
492
|
-
# @overload feed_mapping
|
493
|
-
# creates an operation instance, yielding a newly fabricated FeedMapping
|
494
|
-
# which can be used for setting attributes on the newly created resource
|
495
|
-
# @overload feed_mapping(res)
|
496
|
-
# creates an operation instance, with the resource to be created
|
497
|
-
# set to the passed value (res)
|
498
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::FeedMapping]
|
499
|
-
# a resource instance to be used for creation in this operation.
|
500
|
-
#
|
501
|
-
# @return [Google::Ads::GoogleAds::V1::Services::FeedMappingOperation] instance that will create the resource
|
502
|
-
def self.feed_mapping(res = nil, &blk)
|
503
|
-
require "google/ads/google_ads/v1/services/feed_mapping_service_pb.rb"
|
504
|
-
op = Google::Ads::GoogleAds::V1::Services::FeedMappingOperation.new
|
505
|
-
if !res.nil?
|
506
|
-
op["create"] = res
|
507
|
-
elsif !blk.nil?
|
508
|
-
op["create"] = Factories::V1::Resources.feed_mapping(&blk)
|
509
|
-
end
|
510
|
-
|
511
|
-
op
|
512
|
-
end
|
513
|
-
|
514
|
-
# A convenience method for creating an FeedOperation instance with
|
515
|
-
# its "create" field prepopulated with an Feed instance.
|
516
|
-
#
|
517
|
-
# @overload feed
|
518
|
-
# creates an operation instance, yielding a newly fabricated Feed
|
519
|
-
# which can be used for setting attributes on the newly created resource
|
520
|
-
# @overload feed(res)
|
521
|
-
# creates an operation instance, with the resource to be created
|
522
|
-
# set to the passed value (res)
|
523
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::Feed]
|
524
|
-
# a resource instance to be used for creation in this operation.
|
525
|
-
#
|
526
|
-
# @return [Google::Ads::GoogleAds::V1::Services::FeedOperation] instance that will create the resource
|
527
|
-
def self.feed(res = nil, &blk)
|
528
|
-
require "google/ads/google_ads/v1/services/feed_service_pb.rb"
|
529
|
-
op = Google::Ads::GoogleAds::V1::Services::FeedOperation.new
|
530
|
-
if !res.nil?
|
531
|
-
op["create"] = res
|
532
|
-
elsif !blk.nil?
|
533
|
-
op["create"] = Factories::V1::Resources.feed(&blk)
|
534
|
-
end
|
535
|
-
|
536
|
-
op
|
537
|
-
end
|
538
|
-
|
539
|
-
# A convenience method for creating an AdGroupCriterionLabelOperation instance with
|
540
|
-
# its "create" field prepopulated with an AdGroupCriterionLabel instance.
|
541
|
-
#
|
542
|
-
# @overload ad_group_criterion_label
|
543
|
-
# creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
|
544
|
-
# which can be used for setting attributes on the newly created resource
|
545
|
-
# @overload ad_group_criterion_label(res)
|
546
|
-
# creates an operation instance, with the resource to be created
|
547
|
-
# set to the passed value (res)
|
548
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel]
|
549
|
-
# a resource instance to be used for creation in this operation.
|
550
|
-
#
|
551
|
-
# @return [Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation] instance that will create the resource
|
552
|
-
def self.ad_group_criterion_label(res = nil, &blk)
|
553
|
-
require "google/ads/google_ads/v1/services/ad_group_criterion_label_service_pb.rb"
|
554
|
-
op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation.new
|
555
|
-
if !res.nil?
|
556
|
-
op["create"] = res
|
557
|
-
elsif !blk.nil?
|
558
|
-
op["create"] = Factories::V1::Resources.ad_group_criterion_label(&blk)
|
559
|
-
end
|
560
|
-
|
561
|
-
op
|
562
|
-
end
|
563
|
-
|
564
|
-
# A convenience method for creating an ConversionActionOperation instance with
|
565
|
-
# its "create" field prepopulated with an ConversionAction instance.
|
566
|
-
#
|
567
|
-
# @overload conversion_action
|
568
|
-
# creates an operation instance, yielding a newly fabricated ConversionAction
|
569
|
-
# which can be used for setting attributes on the newly created resource
|
570
|
-
# @overload conversion_action(res)
|
571
|
-
# creates an operation instance, with the resource to be created
|
572
|
-
# set to the passed value (res)
|
573
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::ConversionAction]
|
574
|
-
# a resource instance to be used for creation in this operation.
|
575
|
-
#
|
576
|
-
# @return [Google::Ads::GoogleAds::V1::Services::ConversionActionOperation] instance that will create the resource
|
577
|
-
def self.conversion_action(res = nil, &blk)
|
578
|
-
require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb"
|
579
|
-
op = Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new
|
580
|
-
if !res.nil?
|
581
|
-
op["create"] = res
|
582
|
-
elsif !blk.nil?
|
583
|
-
op["create"] = Factories::V1::Resources.conversion_action(&blk)
|
584
|
-
end
|
585
|
-
|
586
|
-
op
|
587
|
-
end
|
588
|
-
|
589
|
-
# A convenience method for creating an BiddingStrategyOperation instance with
|
590
|
-
# its "create" field prepopulated with an BiddingStrategy instance.
|
591
|
-
#
|
592
|
-
# @overload bidding_strategy
|
593
|
-
# creates an operation instance, yielding a newly fabricated BiddingStrategy
|
594
|
-
# which can be used for setting attributes on the newly created resource
|
595
|
-
# @overload bidding_strategy(res)
|
596
|
-
# creates an operation instance, with the resource to be created
|
597
|
-
# set to the passed value (res)
|
598
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::BiddingStrategy]
|
599
|
-
# a resource instance to be used for creation in this operation.
|
600
|
-
#
|
601
|
-
# @return [Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation] instance that will create the resource
|
602
|
-
def self.bidding_strategy(res = nil, &blk)
|
603
|
-
require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb"
|
604
|
-
op = Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new
|
605
|
-
if !res.nil?
|
606
|
-
op["create"] = res
|
607
|
-
elsif !blk.nil?
|
608
|
-
op["create"] = Factories::V1::Resources.bidding_strategy(&blk)
|
609
|
-
end
|
610
|
-
|
611
|
-
op
|
612
|
-
end
|
613
|
-
|
614
|
-
# A convenience method for creating an AccountBudgetProposalOperation instance with
|
615
|
-
# its "create" field prepopulated with an AccountBudgetProposal instance.
|
616
|
-
#
|
617
|
-
# @overload account_budget_proposal
|
618
|
-
# creates an operation instance, yielding a newly fabricated AccountBudgetProposal
|
619
|
-
# which can be used for setting attributes on the newly created resource
|
620
|
-
# @overload account_budget_proposal(res)
|
621
|
-
# creates an operation instance, with the resource to be created
|
622
|
-
# set to the passed value (res)
|
623
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal]
|
624
|
-
# a resource instance to be used for creation in this operation.
|
625
|
-
#
|
626
|
-
# @return [Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation] instance that will create the resource
|
627
|
-
def self.account_budget_proposal(res = nil, &blk)
|
628
|
-
require "google/ads/google_ads/v1/services/account_budget_proposal_service_pb.rb"
|
629
|
-
op = Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation.new
|
630
|
-
if !res.nil?
|
631
|
-
op["create"] = res
|
632
|
-
elsif !blk.nil?
|
633
|
-
op["create"] = Factories::V1::Resources.account_budget_proposal(&blk)
|
634
|
-
end
|
635
|
-
|
636
|
-
op
|
637
|
-
end
|
638
|
-
|
639
|
-
# A convenience method for creating an FeedItemOperation instance with
|
640
|
-
# its "create" field prepopulated with an FeedItem instance.
|
489
|
+
# A convenience method for creating an KeywordPlanOperation instance with
|
490
|
+
# its "create" field prepopulated with an KeywordPlan instance.
|
641
491
|
#
|
642
|
-
# @overload
|
643
|
-
# creates an operation instance, yielding a newly fabricated
|
492
|
+
# @overload keyword_plan
|
493
|
+
# creates an operation instance, yielding a newly fabricated KeywordPlan
|
644
494
|
# which can be used for setting attributes on the newly created resource
|
645
|
-
# @overload
|
495
|
+
# @overload keyword_plan(res)
|
646
496
|
# creates an operation instance, with the resource to be created
|
647
497
|
# set to the passed value (res)
|
648
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
498
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::KeywordPlan]
|
649
499
|
# a resource instance to be used for creation in this operation.
|
650
500
|
#
|
651
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
652
|
-
def self.
|
653
|
-
require "google/ads/google_ads/v1/services/
|
654
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
501
|
+
# @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanOperation] instance that will create the resource
|
502
|
+
def self.keyword_plan(res = nil, &blk)
|
503
|
+
require "google/ads/google_ads/v1/services/keyword_plan_service_pb.rb"
|
504
|
+
op = Google::Ads::GoogleAds::V1::Services::KeywordPlanOperation.new
|
655
505
|
if !res.nil?
|
656
506
|
op["create"] = res
|
657
507
|
elsif !blk.nil?
|
658
|
-
op["create"] = Factories::V1::Resources.
|
508
|
+
op["create"] = Factories::V1::Resources.keyword_plan(&blk)
|
659
509
|
end
|
660
510
|
|
661
511
|
op
|
662
512
|
end
|
663
513
|
|
664
|
-
# A convenience method for creating an
|
665
|
-
# its "create" field prepopulated with an
|
514
|
+
# A convenience method for creating an LabelOperation instance with
|
515
|
+
# its "create" field prepopulated with an Label instance.
|
666
516
|
#
|
667
|
-
# @overload
|
668
|
-
# creates an operation instance, yielding a newly fabricated
|
517
|
+
# @overload label
|
518
|
+
# creates an operation instance, yielding a newly fabricated Label
|
669
519
|
# which can be used for setting attributes on the newly created resource
|
670
|
-
# @overload
|
520
|
+
# @overload label(res)
|
671
521
|
# creates an operation instance, with the resource to be created
|
672
522
|
# set to the passed value (res)
|
673
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
523
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::Label]
|
674
524
|
# a resource instance to be used for creation in this operation.
|
675
525
|
#
|
676
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
677
|
-
def self.
|
678
|
-
require "google/ads/google_ads/v1/services/
|
679
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
526
|
+
# @return [Google::Ads::GoogleAds::V1::Services::LabelOperation] instance that will create the resource
|
527
|
+
def self.label(res = nil, &blk)
|
528
|
+
require "google/ads/google_ads/v1/services/label_service_pb.rb"
|
529
|
+
op = Google::Ads::GoogleAds::V1::Services::LabelOperation.new
|
680
530
|
if !res.nil?
|
681
531
|
op["create"] = res
|
682
532
|
elsif !blk.nil?
|
683
|
-
op["create"] = Factories::V1::Resources.
|
533
|
+
op["create"] = Factories::V1::Resources.label(&blk)
|
684
534
|
end
|
685
535
|
|
686
536
|
op
|
687
537
|
end
|
688
538
|
|
689
|
-
# A convenience method for creating an
|
690
|
-
# its "create" field prepopulated with an
|
539
|
+
# A convenience method for creating an CampaignCriterionOperation instance with
|
540
|
+
# its "create" field prepopulated with an CampaignCriterion instance.
|
691
541
|
#
|
692
|
-
# @overload
|
693
|
-
# creates an operation instance, yielding a newly fabricated
|
542
|
+
# @overload campaign_criterion
|
543
|
+
# creates an operation instance, yielding a newly fabricated CampaignCriterion
|
694
544
|
# which can be used for setting attributes on the newly created resource
|
695
|
-
# @overload
|
545
|
+
# @overload campaign_criterion(res)
|
696
546
|
# creates an operation instance, with the resource to be created
|
697
547
|
# set to the passed value (res)
|
698
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
548
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::CampaignCriterion]
|
699
549
|
# a resource instance to be used for creation in this operation.
|
700
550
|
#
|
701
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
702
|
-
def self.
|
703
|
-
require "google/ads/google_ads/v1/services/
|
704
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
551
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignCriterionOperation] instance that will create the resource
|
552
|
+
def self.campaign_criterion(res = nil, &blk)
|
553
|
+
require "google/ads/google_ads/v1/services/campaign_criterion_service_pb.rb"
|
554
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignCriterionOperation.new
|
705
555
|
if !res.nil?
|
706
556
|
op["create"] = res
|
707
557
|
elsif !blk.nil?
|
708
|
-
op["create"] = Factories::V1::Resources.
|
558
|
+
op["create"] = Factories::V1::Resources.campaign_criterion(&blk)
|
709
559
|
end
|
710
560
|
|
711
561
|
op
|
@@ -736,126 +586,101 @@ module Google
|
|
736
586
|
op
|
737
587
|
end
|
738
588
|
|
739
|
-
# A convenience method for creating an
|
740
|
-
# its "create" field prepopulated with an
|
741
|
-
#
|
742
|
-
# @overload shared_criterion
|
743
|
-
# creates an operation instance, yielding a newly fabricated SharedCriterion
|
744
|
-
# which can be used for setting attributes on the newly created resource
|
745
|
-
# @overload shared_criterion(res)
|
746
|
-
# creates an operation instance, with the resource to be created
|
747
|
-
# set to the passed value (res)
|
748
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::SharedCriterion]
|
749
|
-
# a resource instance to be used for creation in this operation.
|
750
|
-
#
|
751
|
-
# @return [Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation] instance that will create the resource
|
752
|
-
def self.shared_criterion(res = nil, &blk)
|
753
|
-
require "google/ads/google_ads/v1/services/shared_criterion_service_pb.rb"
|
754
|
-
op = Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation.new
|
755
|
-
if !res.nil?
|
756
|
-
op["create"] = res
|
757
|
-
elsif !blk.nil?
|
758
|
-
op["create"] = Factories::V1::Resources.shared_criterion(&blk)
|
759
|
-
end
|
760
|
-
|
761
|
-
op
|
762
|
-
end
|
763
|
-
|
764
|
-
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
765
|
-
# its "create" field prepopulated with an KeywordPlanAdGroup instance.
|
589
|
+
# A convenience method for creating an CustomInterestOperation instance with
|
590
|
+
# its "create" field prepopulated with an CustomInterest instance.
|
766
591
|
#
|
767
|
-
# @overload
|
768
|
-
# creates an operation instance, yielding a newly fabricated
|
592
|
+
# @overload custom_interest
|
593
|
+
# creates an operation instance, yielding a newly fabricated CustomInterest
|
769
594
|
# which can be used for setting attributes on the newly created resource
|
770
|
-
# @overload
|
595
|
+
# @overload custom_interest(res)
|
771
596
|
# creates an operation instance, with the resource to be created
|
772
597
|
# set to the passed value (res)
|
773
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
598
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::CustomInterest]
|
774
599
|
# a resource instance to be used for creation in this operation.
|
775
600
|
#
|
776
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
777
|
-
def self.
|
778
|
-
require "google/ads/google_ads/v1/services/
|
779
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
601
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CustomInterestOperation] instance that will create the resource
|
602
|
+
def self.custom_interest(res = nil, &blk)
|
603
|
+
require "google/ads/google_ads/v1/services/custom_interest_service_pb.rb"
|
604
|
+
op = Google::Ads::GoogleAds::V1::Services::CustomInterestOperation.new
|
780
605
|
if !res.nil?
|
781
606
|
op["create"] = res
|
782
607
|
elsif !blk.nil?
|
783
|
-
op["create"] = Factories::V1::Resources.
|
608
|
+
op["create"] = Factories::V1::Resources.custom_interest(&blk)
|
784
609
|
end
|
785
610
|
|
786
611
|
op
|
787
612
|
end
|
788
|
-
|
789
|
-
# A convenience method for creating an
|
790
|
-
# its "create" field prepopulated with an
|
613
|
+
|
614
|
+
# A convenience method for creating an FeedMappingOperation instance with
|
615
|
+
# its "create" field prepopulated with an FeedMapping instance.
|
791
616
|
#
|
792
|
-
# @overload
|
793
|
-
# creates an operation instance, yielding a newly fabricated
|
617
|
+
# @overload feed_mapping
|
618
|
+
# creates an operation instance, yielding a newly fabricated FeedMapping
|
794
619
|
# which can be used for setting attributes on the newly created resource
|
795
|
-
# @overload
|
620
|
+
# @overload feed_mapping(res)
|
796
621
|
# creates an operation instance, with the resource to be created
|
797
622
|
# set to the passed value (res)
|
798
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
623
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::FeedMapping]
|
799
624
|
# a resource instance to be used for creation in this operation.
|
800
625
|
#
|
801
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
802
|
-
def self.
|
803
|
-
require "google/ads/google_ads/v1/services/
|
804
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
626
|
+
# @return [Google::Ads::GoogleAds::V1::Services::FeedMappingOperation] instance that will create the resource
|
627
|
+
def self.feed_mapping(res = nil, &blk)
|
628
|
+
require "google/ads/google_ads/v1/services/feed_mapping_service_pb.rb"
|
629
|
+
op = Google::Ads::GoogleAds::V1::Services::FeedMappingOperation.new
|
805
630
|
if !res.nil?
|
806
631
|
op["create"] = res
|
807
632
|
elsif !blk.nil?
|
808
|
-
op["create"] = Factories::V1::Resources.
|
633
|
+
op["create"] = Factories::V1::Resources.feed_mapping(&blk)
|
809
634
|
end
|
810
635
|
|
811
636
|
op
|
812
637
|
end
|
813
638
|
|
814
|
-
# A convenience method for creating an
|
815
|
-
# its "create" field prepopulated with an
|
639
|
+
# A convenience method for creating an AdGroupCriterionLabelOperation instance with
|
640
|
+
# its "create" field prepopulated with an AdGroupCriterionLabel instance.
|
816
641
|
#
|
817
|
-
# @overload
|
818
|
-
# creates an operation instance, yielding a newly fabricated
|
642
|
+
# @overload ad_group_criterion_label
|
643
|
+
# creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
|
819
644
|
# which can be used for setting attributes on the newly created resource
|
820
|
-
# @overload
|
645
|
+
# @overload ad_group_criterion_label(res)
|
821
646
|
# creates an operation instance, with the resource to be created
|
822
647
|
# set to the passed value (res)
|
823
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
648
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel]
|
824
649
|
# a resource instance to be used for creation in this operation.
|
825
650
|
#
|
826
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
827
|
-
def self.
|
828
|
-
require "google/ads/google_ads/v1/services/
|
829
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
651
|
+
# @return [Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation] instance that will create the resource
|
652
|
+
def self.ad_group_criterion_label(res = nil, &blk)
|
653
|
+
require "google/ads/google_ads/v1/services/ad_group_criterion_label_service_pb.rb"
|
654
|
+
op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation.new
|
830
655
|
if !res.nil?
|
831
656
|
op["create"] = res
|
832
657
|
elsif !blk.nil?
|
833
|
-
op["create"] = Factories::V1::Resources.
|
658
|
+
op["create"] = Factories::V1::Resources.ad_group_criterion_label(&blk)
|
834
659
|
end
|
835
660
|
|
836
661
|
op
|
837
662
|
end
|
838
663
|
|
839
|
-
# A convenience method for creating an
|
840
|
-
# its "create" field prepopulated with an
|
664
|
+
# A convenience method for creating an AssetOperation instance with
|
665
|
+
# its "create" field prepopulated with an Asset instance.
|
841
666
|
#
|
842
|
-
# @overload
|
843
|
-
# creates an operation instance, yielding a newly fabricated
|
667
|
+
# @overload asset
|
668
|
+
# creates an operation instance, yielding a newly fabricated Asset
|
844
669
|
# which can be used for setting attributes on the newly created resource
|
845
|
-
# @overload
|
670
|
+
# @overload asset(res)
|
846
671
|
# creates an operation instance, with the resource to be created
|
847
672
|
# set to the passed value (res)
|
848
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
673
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::Asset]
|
849
674
|
# a resource instance to be used for creation in this operation.
|
850
675
|
#
|
851
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
852
|
-
def self.
|
853
|
-
require "google/ads/google_ads/v1/services/
|
854
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
676
|
+
# @return [Google::Ads::GoogleAds::V1::Services::AssetOperation] instance that will create the resource
|
677
|
+
def self.asset(res = nil, &blk)
|
678
|
+
require "google/ads/google_ads/v1/services/asset_service_pb.rb"
|
679
|
+
op = Google::Ads::GoogleAds::V1::Services::AssetOperation.new
|
855
680
|
if !res.nil?
|
856
681
|
op["create"] = res
|
857
682
|
elsif !blk.nil?
|
858
|
-
op["create"] = Factories::V1::Resources.
|
683
|
+
op["create"] = Factories::V1::Resources.asset(&blk)
|
859
684
|
end
|
860
685
|
|
861
686
|
op
|
@@ -911,6 +736,56 @@ module Google
|
|
911
736
|
op
|
912
737
|
end
|
913
738
|
|
739
|
+
# A convenience method for creating an AdGroupBidModifierOperation instance with
|
740
|
+
# its "create" field prepopulated with an AdGroupBidModifier instance.
|
741
|
+
#
|
742
|
+
# @overload ad_group_bid_modifier
|
743
|
+
# creates an operation instance, yielding a newly fabricated AdGroupBidModifier
|
744
|
+
# which can be used for setting attributes on the newly created resource
|
745
|
+
# @overload ad_group_bid_modifier(res)
|
746
|
+
# creates an operation instance, with the resource to be created
|
747
|
+
# set to the passed value (res)
|
748
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::AdGroupBidModifier]
|
749
|
+
# a resource instance to be used for creation in this operation.
|
750
|
+
#
|
751
|
+
# @return [Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierOperation] instance that will create the resource
|
752
|
+
def self.ad_group_bid_modifier(res = nil, &blk)
|
753
|
+
require "google/ads/google_ads/v1/services/ad_group_bid_modifier_service_pb.rb"
|
754
|
+
op = Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierOperation.new
|
755
|
+
if !res.nil?
|
756
|
+
op["create"] = res
|
757
|
+
elsif !blk.nil?
|
758
|
+
op["create"] = Factories::V1::Resources.ad_group_bid_modifier(&blk)
|
759
|
+
end
|
760
|
+
|
761
|
+
op
|
762
|
+
end
|
763
|
+
|
764
|
+
# A convenience method for creating an AdGroupCriterionOperation instance with
|
765
|
+
# its "create" field prepopulated with an AdGroupCriterion instance.
|
766
|
+
#
|
767
|
+
# @overload ad_group_criterion
|
768
|
+
# creates an operation instance, yielding a newly fabricated AdGroupCriterion
|
769
|
+
# which can be used for setting attributes on the newly created resource
|
770
|
+
# @overload ad_group_criterion(res)
|
771
|
+
# creates an operation instance, with the resource to be created
|
772
|
+
# set to the passed value (res)
|
773
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion]
|
774
|
+
# a resource instance to be used for creation in this operation.
|
775
|
+
#
|
776
|
+
# @return [Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation] instance that will create the resource
|
777
|
+
def self.ad_group_criterion(res = nil, &blk)
|
778
|
+
require "google/ads/google_ads/v1/services/ad_group_criterion_service_pb.rb"
|
779
|
+
op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation.new
|
780
|
+
if !res.nil?
|
781
|
+
op["create"] = res
|
782
|
+
elsif !blk.nil?
|
783
|
+
op["create"] = Factories::V1::Resources.ad_group_criterion(&blk)
|
784
|
+
end
|
785
|
+
|
786
|
+
op
|
787
|
+
end
|
788
|
+
|
914
789
|
# A convenience method for creating an AdGroupExtensionSettingOperation instance with
|
915
790
|
# its "create" field prepopulated with an AdGroupExtensionSetting instance.
|
916
791
|
#
|
@@ -1036,26 +911,26 @@ module Google
|
|
1036
911
|
op
|
1037
912
|
end
|
1038
913
|
|
1039
|
-
# A convenience method for creating an
|
1040
|
-
# its "create" field prepopulated with an
|
914
|
+
# A convenience method for creating an BiddingStrategyOperation instance with
|
915
|
+
# its "create" field prepopulated with an BiddingStrategy instance.
|
1041
916
|
#
|
1042
|
-
# @overload
|
1043
|
-
# creates an operation instance, yielding a newly fabricated
|
917
|
+
# @overload bidding_strategy
|
918
|
+
# creates an operation instance, yielding a newly fabricated BiddingStrategy
|
1044
919
|
# which can be used for setting attributes on the newly created resource
|
1045
|
-
# @overload
|
920
|
+
# @overload bidding_strategy(res)
|
1046
921
|
# creates an operation instance, with the resource to be created
|
1047
922
|
# set to the passed value (res)
|
1048
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
923
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::BiddingStrategy]
|
1049
924
|
# a resource instance to be used for creation in this operation.
|
1050
925
|
#
|
1051
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1052
|
-
def self.
|
1053
|
-
require "google/ads/google_ads/v1/services/
|
1054
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
926
|
+
# @return [Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation] instance that will create the resource
|
927
|
+
def self.bidding_strategy(res = nil, &blk)
|
928
|
+
require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb"
|
929
|
+
op = Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new
|
1055
930
|
if !res.nil?
|
1056
931
|
op["create"] = res
|
1057
932
|
elsif !blk.nil?
|
1058
|
-
op["create"] = Factories::V1::Resources.
|
933
|
+
op["create"] = Factories::V1::Resources.bidding_strategy(&blk)
|
1059
934
|
end
|
1060
935
|
|
1061
936
|
op
|
@@ -1086,26 +961,51 @@ module Google
|
|
1086
961
|
op
|
1087
962
|
end
|
1088
963
|
|
1089
|
-
# A convenience method for creating an
|
1090
|
-
# its "create" field prepopulated with an
|
964
|
+
# A convenience method for creating an CampaignBudgetOperation instance with
|
965
|
+
# its "create" field prepopulated with an CampaignBudget instance.
|
1091
966
|
#
|
1092
|
-
# @overload
|
1093
|
-
# creates an operation instance, yielding a newly fabricated
|
967
|
+
# @overload campaign_budget
|
968
|
+
# creates an operation instance, yielding a newly fabricated CampaignBudget
|
1094
969
|
# which can be used for setting attributes on the newly created resource
|
1095
|
-
# @overload
|
970
|
+
# @overload campaign_budget(res)
|
1096
971
|
# creates an operation instance, with the resource to be created
|
1097
972
|
# set to the passed value (res)
|
1098
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
973
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::CampaignBudget]
|
1099
974
|
# a resource instance to be used for creation in this operation.
|
1100
975
|
#
|
1101
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1102
|
-
def self.
|
1103
|
-
require "google/ads/google_ads/v1/services/
|
1104
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
976
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation] instance that will create the resource
|
977
|
+
def self.campaign_budget(res = nil, &blk)
|
978
|
+
require "google/ads/google_ads/v1/services/campaign_budget_service_pb.rb"
|
979
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation.new
|
1105
980
|
if !res.nil?
|
1106
981
|
op["create"] = res
|
1107
982
|
elsif !blk.nil?
|
1108
|
-
op["create"] = Factories::V1::Resources.
|
983
|
+
op["create"] = Factories::V1::Resources.campaign_budget(&blk)
|
984
|
+
end
|
985
|
+
|
986
|
+
op
|
987
|
+
end
|
988
|
+
|
989
|
+
# A convenience method for creating an CampaignDraftOperation instance with
|
990
|
+
# its "create" field prepopulated with an CampaignDraft instance.
|
991
|
+
#
|
992
|
+
# @overload campaign_draft
|
993
|
+
# creates an operation instance, yielding a newly fabricated CampaignDraft
|
994
|
+
# which can be used for setting attributes on the newly created resource
|
995
|
+
# @overload campaign_draft(res)
|
996
|
+
# creates an operation instance, with the resource to be created
|
997
|
+
# set to the passed value (res)
|
998
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::CampaignDraft]
|
999
|
+
# a resource instance to be used for creation in this operation.
|
1000
|
+
#
|
1001
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation] instance that will create the resource
|
1002
|
+
def self.campaign_draft(res = nil, &blk)
|
1003
|
+
require "google/ads/google_ads/v1/services/campaign_draft_service_pb.rb"
|
1004
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation.new
|
1005
|
+
if !res.nil?
|
1006
|
+
op["create"] = res
|
1007
|
+
elsif !blk.nil?
|
1008
|
+
op["create"] = Factories::V1::Resources.campaign_draft(&blk)
|
1109
1009
|
end
|
1110
1010
|
|
1111
1011
|
op
|
@@ -1136,6 +1036,31 @@ module Google
|
|
1136
1036
|
op
|
1137
1037
|
end
|
1138
1038
|
|
1039
|
+
# A convenience method for creating an CampaignFeedOperation instance with
|
1040
|
+
# its "create" field prepopulated with an CampaignFeed instance.
|
1041
|
+
#
|
1042
|
+
# @overload campaign_feed
|
1043
|
+
# creates an operation instance, yielding a newly fabricated CampaignFeed
|
1044
|
+
# which can be used for setting attributes on the newly created resource
|
1045
|
+
# @overload campaign_feed(res)
|
1046
|
+
# creates an operation instance, with the resource to be created
|
1047
|
+
# set to the passed value (res)
|
1048
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::CampaignFeed]
|
1049
|
+
# a resource instance to be used for creation in this operation.
|
1050
|
+
#
|
1051
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation] instance that will create the resource
|
1052
|
+
def self.campaign_feed(res = nil, &blk)
|
1053
|
+
require "google/ads/google_ads/v1/services/campaign_feed_service_pb.rb"
|
1054
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation.new
|
1055
|
+
if !res.nil?
|
1056
|
+
op["create"] = res
|
1057
|
+
elsif !blk.nil?
|
1058
|
+
op["create"] = Factories::V1::Resources.campaign_feed(&blk)
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
op
|
1062
|
+
end
|
1063
|
+
|
1139
1064
|
# A convenience method for creating an CampaignOperation instance with
|
1140
1065
|
# its "create" field prepopulated with an Campaign instance.
|
1141
1066
|
#
|
@@ -1186,6 +1111,31 @@ module Google
|
|
1186
1111
|
op
|
1187
1112
|
end
|
1188
1113
|
|
1114
|
+
# A convenience method for creating an ConversionActionOperation instance with
|
1115
|
+
# its "create" field prepopulated with an ConversionAction instance.
|
1116
|
+
#
|
1117
|
+
# @overload conversion_action
|
1118
|
+
# creates an operation instance, yielding a newly fabricated ConversionAction
|
1119
|
+
# which can be used for setting attributes on the newly created resource
|
1120
|
+
# @overload conversion_action(res)
|
1121
|
+
# creates an operation instance, with the resource to be created
|
1122
|
+
# set to the passed value (res)
|
1123
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::ConversionAction]
|
1124
|
+
# a resource instance to be used for creation in this operation.
|
1125
|
+
#
|
1126
|
+
# @return [Google::Ads::GoogleAds::V1::Services::ConversionActionOperation] instance that will create the resource
|
1127
|
+
def self.conversion_action(res = nil, &blk)
|
1128
|
+
require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb"
|
1129
|
+
op = Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new
|
1130
|
+
if !res.nil?
|
1131
|
+
op["create"] = res
|
1132
|
+
elsif !blk.nil?
|
1133
|
+
op["create"] = Factories::V1::Resources.conversion_action(&blk)
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
op
|
1137
|
+
end
|
1138
|
+
|
1189
1139
|
# A convenience method for creating an CustomerExtensionSettingOperation instance with
|
1190
1140
|
# its "create" field prepopulated with an CustomerExtensionSetting instance.
|
1191
1141
|
#
|
@@ -1305,7 +1255,32 @@ module Google
|
|
1305
1255
|
if !res.nil?
|
1306
1256
|
op["create"] = res
|
1307
1257
|
elsif !blk.nil?
|
1308
|
-
op["create"] = Factories::V1::Resources.extension_feed_item(&blk)
|
1258
|
+
op["create"] = Factories::V1::Resources.extension_feed_item(&blk)
|
1259
|
+
end
|
1260
|
+
|
1261
|
+
op
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
# A convenience method for creating an FeedItemOperation instance with
|
1265
|
+
# its "create" field prepopulated with an FeedItem instance.
|
1266
|
+
#
|
1267
|
+
# @overload feed_item
|
1268
|
+
# creates an operation instance, yielding a newly fabricated FeedItem
|
1269
|
+
# which can be used for setting attributes on the newly created resource
|
1270
|
+
# @overload feed_item(res)
|
1271
|
+
# creates an operation instance, with the resource to be created
|
1272
|
+
# set to the passed value (res)
|
1273
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::FeedItem]
|
1274
|
+
# a resource instance to be used for creation in this operation.
|
1275
|
+
#
|
1276
|
+
# @return [Google::Ads::GoogleAds::V1::Services::FeedItemOperation] instance that will create the resource
|
1277
|
+
def self.feed_item(res = nil, &blk)
|
1278
|
+
require "google/ads/google_ads/v1/services/feed_item_service_pb.rb"
|
1279
|
+
op = Google::Ads::GoogleAds::V1::Services::FeedItemOperation.new
|
1280
|
+
if !res.nil?
|
1281
|
+
op["create"] = res
|
1282
|
+
elsif !blk.nil?
|
1283
|
+
op["create"] = Factories::V1::Resources.feed_item(&blk)
|
1309
1284
|
end
|
1310
1285
|
|
1311
1286
|
op
|
@@ -1336,26 +1311,26 @@ module Google
|
|
1336
1311
|
op
|
1337
1312
|
end
|
1338
1313
|
|
1339
|
-
# A convenience method for creating an
|
1340
|
-
# its "create" field prepopulated with an
|
1314
|
+
# A convenience method for creating an FeedOperation instance with
|
1315
|
+
# its "create" field prepopulated with an Feed instance.
|
1341
1316
|
#
|
1342
|
-
# @overload
|
1343
|
-
# creates an operation instance, yielding a newly fabricated
|
1317
|
+
# @overload feed
|
1318
|
+
# creates an operation instance, yielding a newly fabricated Feed
|
1344
1319
|
# which can be used for setting attributes on the newly created resource
|
1345
|
-
# @overload
|
1320
|
+
# @overload feed(res)
|
1346
1321
|
# creates an operation instance, with the resource to be created
|
1347
1322
|
# set to the passed value (res)
|
1348
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
1323
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::Feed]
|
1349
1324
|
# a resource instance to be used for creation in this operation.
|
1350
1325
|
#
|
1351
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1352
|
-
def self.
|
1353
|
-
require "google/ads/google_ads/v1/services/
|
1354
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1326
|
+
# @return [Google::Ads::GoogleAds::V1::Services::FeedOperation] instance that will create the resource
|
1327
|
+
def self.feed(res = nil, &blk)
|
1328
|
+
require "google/ads/google_ads/v1/services/feed_service_pb.rb"
|
1329
|
+
op = Google::Ads::GoogleAds::V1::Services::FeedOperation.new
|
1355
1330
|
if !res.nil?
|
1356
1331
|
op["create"] = res
|
1357
1332
|
elsif !blk.nil?
|
1358
|
-
op["create"] = Factories::V1::Resources.
|
1333
|
+
op["create"] = Factories::V1::Resources.feed(&blk)
|
1359
1334
|
end
|
1360
1335
|
|
1361
1336
|
op
|
@@ -1411,6 +1386,31 @@ module Google
|
|
1411
1386
|
op
|
1412
1387
|
end
|
1413
1388
|
|
1389
|
+
# A convenience method for creating an SharedCriterionOperation instance with
|
1390
|
+
# its "create" field prepopulated with an SharedCriterion instance.
|
1391
|
+
#
|
1392
|
+
# @overload shared_criterion
|
1393
|
+
# creates an operation instance, yielding a newly fabricated SharedCriterion
|
1394
|
+
# which can be used for setting attributes on the newly created resource
|
1395
|
+
# @overload shared_criterion(res)
|
1396
|
+
# creates an operation instance, with the resource to be created
|
1397
|
+
# set to the passed value (res)
|
1398
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::SharedCriterion]
|
1399
|
+
# a resource instance to be used for creation in this operation.
|
1400
|
+
#
|
1401
|
+
# @return [Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation] instance that will create the resource
|
1402
|
+
def self.shared_criterion(res = nil, &blk)
|
1403
|
+
require "google/ads/google_ads/v1/services/shared_criterion_service_pb.rb"
|
1404
|
+
op = Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation.new
|
1405
|
+
if !res.nil?
|
1406
|
+
op["create"] = res
|
1407
|
+
elsif !blk.nil?
|
1408
|
+
op["create"] = Factories::V1::Resources.shared_criterion(&blk)
|
1409
|
+
end
|
1410
|
+
|
1411
|
+
op
|
1412
|
+
end
|
1413
|
+
|
1414
1414
|
# A convenience method for creating an SharedSetOperation instance with
|
1415
1415
|
# its "create" field prepopulated with an SharedSet instance.
|
1416
1416
|
#
|
@@ -1511,250 +1511,133 @@ module Google
|
|
1511
1511
|
op
|
1512
1512
|
end
|
1513
1513
|
|
1514
|
-
# A convenience method for creating an
|
1515
|
-
# its "create" field prepopulated with an
|
1514
|
+
# A convenience method for creating an CustomerClientLinkOperation instance with
|
1515
|
+
# its "create" field prepopulated with an CustomerClientLink instance.
|
1516
1516
|
#
|
1517
|
-
# @overload
|
1518
|
-
# creates an operation instance, yielding a newly fabricated
|
1517
|
+
# @overload customer_client_link
|
1518
|
+
# creates an operation instance, yielding a newly fabricated CustomerClientLink
|
1519
1519
|
# which can be used for setting attributes on the newly created resource
|
1520
|
-
# @overload
|
1520
|
+
# @overload customer_client_link(res)
|
1521
1521
|
# creates an operation instance, with the resource to be created
|
1522
1522
|
# set to the passed value (res)
|
1523
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
1523
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::CustomerClientLink]
|
1524
1524
|
# a resource instance to be used for creation in this operation.
|
1525
1525
|
#
|
1526
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1527
|
-
def self.
|
1528
|
-
require "google/ads/google_ads/v1/services/
|
1529
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1526
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation] instance that will create the resource
|
1527
|
+
def self.customer_client_link(res = nil, &blk)
|
1528
|
+
require "google/ads/google_ads/v1/services/customer_client_link_service_pb.rb"
|
1529
|
+
op = Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation.new
|
1530
1530
|
if !res.nil?
|
1531
1531
|
op["create"] = res
|
1532
1532
|
elsif !blk.nil?
|
1533
|
-
op["create"] = Factories::V1::Resources.
|
1533
|
+
op["create"] = Factories::V1::Resources.customer_client_link(&blk)
|
1534
1534
|
end
|
1535
1535
|
|
1536
1536
|
op
|
1537
1537
|
end
|
1538
1538
|
|
1539
|
-
# A convenience method for creating an
|
1540
|
-
# its "create" field prepopulated with an
|
1539
|
+
# A convenience method for creating an AccountBudgetProposalOperation instance with
|
1540
|
+
# its "create" field prepopulated with an AccountBudgetProposal instance.
|
1541
1541
|
#
|
1542
|
-
# @overload
|
1543
|
-
# creates an operation instance, yielding a newly fabricated
|
1542
|
+
# @overload account_budget_proposal
|
1543
|
+
# creates an operation instance, yielding a newly fabricated AccountBudgetProposal
|
1544
1544
|
# which can be used for setting attributes on the newly created resource
|
1545
|
-
# @overload
|
1545
|
+
# @overload account_budget_proposal(res)
|
1546
1546
|
# creates an operation instance, with the resource to be created
|
1547
1547
|
# set to the passed value (res)
|
1548
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
1548
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal]
|
1549
1549
|
# a resource instance to be used for creation in this operation.
|
1550
1550
|
#
|
1551
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1552
|
-
def self.
|
1553
|
-
require "google/ads/google_ads/v1/services/
|
1554
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1551
|
+
# @return [Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation] instance that will create the resource
|
1552
|
+
def self.account_budget_proposal(res = nil, &blk)
|
1553
|
+
require "google/ads/google_ads/v1/services/account_budget_proposal_service_pb.rb"
|
1554
|
+
op = Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation.new
|
1555
1555
|
if !res.nil?
|
1556
1556
|
op["create"] = res
|
1557
1557
|
elsif !blk.nil?
|
1558
|
-
op["create"] = Factories::V1::Resources.
|
1558
|
+
op["create"] = Factories::V1::Resources.account_budget_proposal(&blk)
|
1559
1559
|
end
|
1560
1560
|
|
1561
1561
|
op
|
1562
1562
|
end
|
1563
1563
|
|
1564
|
-
# A convenience method for creating an
|
1565
|
-
# its "create" field prepopulated with an
|
1564
|
+
# A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with
|
1565
|
+
# its "create" field prepopulated with an KeywordPlanNegativeKeyword instance.
|
1566
1566
|
#
|
1567
|
-
# @overload
|
1568
|
-
# creates an operation instance, yielding a newly fabricated
|
1567
|
+
# @overload keyword_plan_negative_keyword
|
1568
|
+
# creates an operation instance, yielding a newly fabricated KeywordPlanNegativeKeyword
|
1569
1569
|
# which can be used for setting attributes on the newly created resource
|
1570
|
-
# @overload
|
1570
|
+
# @overload keyword_plan_negative_keyword(res)
|
1571
1571
|
# creates an operation instance, with the resource to be created
|
1572
1572
|
# set to the passed value (res)
|
1573
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
1573
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword]
|
1574
1574
|
# a resource instance to be used for creation in this operation.
|
1575
1575
|
#
|
1576
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1577
|
-
def self.
|
1578
|
-
require "google/ads/google_ads/v1/services/
|
1579
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1576
|
+
# @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation] instance that will create the resource
|
1577
|
+
def self.keyword_plan_negative_keyword(res = nil, &blk)
|
1578
|
+
require "google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_pb.rb"
|
1579
|
+
op = Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation.new
|
1580
1580
|
if !res.nil?
|
1581
1581
|
op["create"] = res
|
1582
1582
|
elsif !blk.nil?
|
1583
|
-
op["create"] = Factories::V1::Resources.
|
1583
|
+
op["create"] = Factories::V1::Resources.keyword_plan_negative_keyword(&blk)
|
1584
1584
|
end
|
1585
1585
|
|
1586
1586
|
op
|
1587
1587
|
end
|
1588
1588
|
|
1589
|
-
# A convenience method for creating an
|
1590
|
-
# its "create" field prepopulated with an
|
1589
|
+
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
1590
|
+
# its "create" field prepopulated with an KeywordPlanAdGroup instance.
|
1591
1591
|
#
|
1592
|
-
# @overload
|
1593
|
-
# creates an operation instance, yielding a newly fabricated
|
1592
|
+
# @overload keyword_plan_ad_group
|
1593
|
+
# creates an operation instance, yielding a newly fabricated KeywordPlanAdGroup
|
1594
1594
|
# which can be used for setting attributes on the newly created resource
|
1595
|
-
# @overload
|
1595
|
+
# @overload keyword_plan_ad_group(res)
|
1596
1596
|
# creates an operation instance, with the resource to be created
|
1597
1597
|
# set to the passed value (res)
|
1598
|
-
# @param res [Google::Ads::GoogleAds::V1::Resources::
|
1598
|
+
# @param res [Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup]
|
1599
1599
|
# a resource instance to be used for creation in this operation.
|
1600
1600
|
#
|
1601
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1602
|
-
def self.
|
1603
|
-
require "google/ads/google_ads/v1/services/
|
1604
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1601
|
+
# @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation] instance that will create the resource
|
1602
|
+
def self.keyword_plan_ad_group(res = nil, &blk)
|
1603
|
+
require "google/ads/google_ads/v1/services/keyword_plan_ad_group_service_pb.rb"
|
1604
|
+
op = Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation.new
|
1605
1605
|
if !res.nil?
|
1606
1606
|
op["create"] = res
|
1607
|
-
elsif !blk.nil?
|
1608
|
-
op["create"] = Factories::V1::Resources.
|
1609
|
-
end
|
1610
|
-
|
1611
|
-
op
|
1612
|
-
end
|
1613
|
-
end
|
1614
|
-
|
1615
|
-
module UpdateResource
|
1616
|
-
# A convenience method for creating an KeywordPlanKeywordOperation instance with
|
1617
|
-
# its "update" field prepopulated with an KeywordPlanKeyword instance, and
|
1618
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
1619
|
-
#
|
1620
|
-
# @overload #keyword_plan_keyword(path, &blk)
|
1621
|
-
# @param path [String] a resource path for the resource to update
|
1622
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword] a new instance of the resource for this update operation, on
|
1623
|
-
# which fields can be set to update
|
1624
|
-
#
|
1625
|
-
# @overload #keyword_plan_keyword(resource, &blk)
|
1626
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword] a resource instance to update
|
1627
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1628
|
-
# @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation] the operation instance to update the resource
|
1629
|
-
def self.keyword_plan_keyword(resource_or_path, &blk)
|
1630
|
-
require "google/ads/google_ads/v1/services/keyword_plan_keyword_service_pb.rb"
|
1631
|
-
res = case resource_or_path
|
1632
|
-
when Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword
|
1633
|
-
resource_or_path
|
1634
|
-
# got a resource path
|
1635
|
-
when String
|
1636
|
-
obj = Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword.new
|
1637
|
-
obj.resource_name = resource_or_path
|
1638
|
-
obj
|
1639
|
-
else
|
1640
|
-
unless Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword === res
|
1641
|
-
raise ArgumentError.new(
|
1642
|
-
"Called #{__method__} with instance of wrong type:"\
|
1643
|
-
" #{res.class} want #{operation.update_class}"\
|
1644
|
-
" or String representing resource name"
|
1645
|
-
)
|
1646
|
-
end
|
1647
|
-
end
|
1648
|
-
|
1649
|
-
op = Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation.new
|
1650
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1651
|
-
op["update"] = res
|
1652
|
-
op
|
1653
|
-
end
|
1654
|
-
|
1655
|
-
# A convenience method for creating an FeedOperation instance with
|
1656
|
-
# its "update" field prepopulated with an Feed instance, and
|
1657
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
1658
|
-
#
|
1659
|
-
# @overload #feed(path, &blk)
|
1660
|
-
# @param path [String] a resource path for the resource to update
|
1661
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::Feed] a new instance of the resource for this update operation, on
|
1662
|
-
# which fields can be set to update
|
1663
|
-
#
|
1664
|
-
# @overload #feed(resource, &blk)
|
1665
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::Feed] a resource instance to update
|
1666
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1667
|
-
# @return [Google::Ads::GoogleAds::V1::Services::FeedOperation] the operation instance to update the resource
|
1668
|
-
def self.feed(resource_or_path, &blk)
|
1669
|
-
require "google/ads/google_ads/v1/services/feed_service_pb.rb"
|
1670
|
-
res = case resource_or_path
|
1671
|
-
when Google::Ads::GoogleAds::V1::Resources::Feed
|
1672
|
-
resource_or_path
|
1673
|
-
# got a resource path
|
1674
|
-
when String
|
1675
|
-
obj = Google::Ads::GoogleAds::V1::Resources::Feed.new
|
1676
|
-
obj.resource_name = resource_or_path
|
1677
|
-
obj
|
1678
|
-
else
|
1679
|
-
unless Google::Ads::GoogleAds::V1::Resources::Feed === res
|
1680
|
-
raise ArgumentError.new(
|
1681
|
-
"Called #{__method__} with instance of wrong type:"\
|
1682
|
-
" #{res.class} want #{operation.update_class}"\
|
1683
|
-
" or String representing resource name"
|
1684
|
-
)
|
1685
|
-
end
|
1686
|
-
end
|
1687
|
-
|
1688
|
-
op = Google::Ads::GoogleAds::V1::Services::FeedOperation.new
|
1689
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1690
|
-
op["update"] = res
|
1691
|
-
op
|
1692
|
-
end
|
1693
|
-
|
1694
|
-
# A convenience method for creating an ConversionActionOperation instance with
|
1695
|
-
# its "update" field prepopulated with an ConversionAction instance, and
|
1696
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
1697
|
-
#
|
1698
|
-
# @overload #conversion_action(path, &blk)
|
1699
|
-
# @param path [String] a resource path for the resource to update
|
1700
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::ConversionAction] a new instance of the resource for this update operation, on
|
1701
|
-
# which fields can be set to update
|
1702
|
-
#
|
1703
|
-
# @overload #conversion_action(resource, &blk)
|
1704
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::ConversionAction] a resource instance to update
|
1705
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1706
|
-
# @return [Google::Ads::GoogleAds::V1::Services::ConversionActionOperation] the operation instance to update the resource
|
1707
|
-
def self.conversion_action(resource_or_path, &blk)
|
1708
|
-
require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb"
|
1709
|
-
res = case resource_or_path
|
1710
|
-
when Google::Ads::GoogleAds::V1::Resources::ConversionAction
|
1711
|
-
resource_or_path
|
1712
|
-
# got a resource path
|
1713
|
-
when String
|
1714
|
-
obj = Google::Ads::GoogleAds::V1::Resources::ConversionAction.new
|
1715
|
-
obj.resource_name = resource_or_path
|
1716
|
-
obj
|
1717
|
-
else
|
1718
|
-
unless Google::Ads::GoogleAds::V1::Resources::ConversionAction === res
|
1719
|
-
raise ArgumentError.new(
|
1720
|
-
"Called #{__method__} with instance of wrong type:"\
|
1721
|
-
" #{res.class} want #{operation.update_class}"\
|
1722
|
-
" or String representing resource name"
|
1723
|
-
)
|
1724
|
-
end
|
1607
|
+
elsif !blk.nil?
|
1608
|
+
op["create"] = Factories::V1::Resources.keyword_plan_ad_group(&blk)
|
1725
1609
|
end
|
1726
1610
|
|
1727
|
-
op = Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new
|
1728
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1729
|
-
op["update"] = res
|
1730
1611
|
op
|
1731
1612
|
end
|
1613
|
+
end
|
1732
1614
|
|
1733
|
-
|
1734
|
-
#
|
1615
|
+
module UpdateResource
|
1616
|
+
# A convenience method for creating an CampaignExperimentOperation instance with
|
1617
|
+
# its "update" field prepopulated with an CampaignExperiment instance, and
|
1735
1618
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1736
1619
|
#
|
1737
|
-
# @overload #
|
1620
|
+
# @overload #campaign_experiment(path, &blk)
|
1738
1621
|
# @param path [String] a resource path for the resource to update
|
1739
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
1622
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::CampaignExperiment] a new instance of the resource for this update operation, on
|
1740
1623
|
# which fields can be set to update
|
1741
1624
|
#
|
1742
|
-
# @overload #
|
1743
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
1625
|
+
# @overload #campaign_experiment(resource, &blk)
|
1626
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::CampaignExperiment] a resource instance to update
|
1744
1627
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1745
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1746
|
-
def self.
|
1747
|
-
require "google/ads/google_ads/v1/services/
|
1628
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignExperimentOperation] the operation instance to update the resource
|
1629
|
+
def self.campaign_experiment(resource_or_path, &blk)
|
1630
|
+
require "google/ads/google_ads/v1/services/campaign_experiment_service_pb.rb"
|
1748
1631
|
res = case resource_or_path
|
1749
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
1632
|
+
when Google::Ads::GoogleAds::V1::Resources::CampaignExperiment
|
1750
1633
|
resource_or_path
|
1751
1634
|
# got a resource path
|
1752
1635
|
when String
|
1753
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
1636
|
+
obj = Google::Ads::GoogleAds::V1::Resources::CampaignExperiment.new
|
1754
1637
|
obj.resource_name = resource_or_path
|
1755
1638
|
obj
|
1756
1639
|
else
|
1757
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
1640
|
+
unless Google::Ads::GoogleAds::V1::Resources::CampaignExperiment === res
|
1758
1641
|
raise ArgumentError.new(
|
1759
1642
|
"Called #{__method__} with instance of wrong type:"\
|
1760
1643
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1763,37 +1646,37 @@ module Google
|
|
1763
1646
|
end
|
1764
1647
|
end
|
1765
1648
|
|
1766
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1649
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignExperimentOperation.new
|
1767
1650
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1768
1651
|
op["update"] = res
|
1769
1652
|
op
|
1770
1653
|
end
|
1771
1654
|
|
1772
|
-
# A convenience method for creating an
|
1773
|
-
# its "update" field prepopulated with an
|
1655
|
+
# A convenience method for creating an KeywordPlanKeywordOperation instance with
|
1656
|
+
# its "update" field prepopulated with an KeywordPlanKeyword instance, and
|
1774
1657
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1775
1658
|
#
|
1776
|
-
# @overload #
|
1659
|
+
# @overload #keyword_plan_keyword(path, &blk)
|
1777
1660
|
# @param path [String] a resource path for the resource to update
|
1778
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
1661
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword] a new instance of the resource for this update operation, on
|
1779
1662
|
# which fields can be set to update
|
1780
1663
|
#
|
1781
|
-
# @overload #
|
1782
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
1664
|
+
# @overload #keyword_plan_keyword(resource, &blk)
|
1665
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword] a resource instance to update
|
1783
1666
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1784
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1785
|
-
def self.
|
1786
|
-
require "google/ads/google_ads/v1/services/
|
1667
|
+
# @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation] the operation instance to update the resource
|
1668
|
+
def self.keyword_plan_keyword(resource_or_path, &blk)
|
1669
|
+
require "google/ads/google_ads/v1/services/keyword_plan_keyword_service_pb.rb"
|
1787
1670
|
res = case resource_or_path
|
1788
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
1671
|
+
when Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword
|
1789
1672
|
resource_or_path
|
1790
1673
|
# got a resource path
|
1791
1674
|
when String
|
1792
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
1675
|
+
obj = Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword.new
|
1793
1676
|
obj.resource_name = resource_or_path
|
1794
1677
|
obj
|
1795
1678
|
else
|
1796
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
1679
|
+
unless Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword === res
|
1797
1680
|
raise ArgumentError.new(
|
1798
1681
|
"Called #{__method__} with instance of wrong type:"\
|
1799
1682
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1802,37 +1685,37 @@ module Google
|
|
1802
1685
|
end
|
1803
1686
|
end
|
1804
1687
|
|
1805
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1688
|
+
op = Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation.new
|
1806
1689
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1807
1690
|
op["update"] = res
|
1808
1691
|
op
|
1809
1692
|
end
|
1810
1693
|
|
1811
|
-
# A convenience method for creating an
|
1812
|
-
# its "update" field prepopulated with an
|
1694
|
+
# A convenience method for creating an KeywordPlanOperation instance with
|
1695
|
+
# its "update" field prepopulated with an KeywordPlan instance, and
|
1813
1696
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1814
1697
|
#
|
1815
|
-
# @overload #
|
1698
|
+
# @overload #keyword_plan(path, &blk)
|
1816
1699
|
# @param path [String] a resource path for the resource to update
|
1817
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
1700
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::KeywordPlan] a new instance of the resource for this update operation, on
|
1818
1701
|
# which fields can be set to update
|
1819
1702
|
#
|
1820
|
-
# @overload #
|
1821
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
1703
|
+
# @overload #keyword_plan(resource, &blk)
|
1704
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::KeywordPlan] a resource instance to update
|
1822
1705
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1823
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1824
|
-
def self.
|
1825
|
-
require "google/ads/google_ads/v1/services/
|
1706
|
+
# @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanOperation] the operation instance to update the resource
|
1707
|
+
def self.keyword_plan(resource_or_path, &blk)
|
1708
|
+
require "google/ads/google_ads/v1/services/keyword_plan_service_pb.rb"
|
1826
1709
|
res = case resource_or_path
|
1827
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
1710
|
+
when Google::Ads::GoogleAds::V1::Resources::KeywordPlan
|
1828
1711
|
resource_or_path
|
1829
1712
|
# got a resource path
|
1830
1713
|
when String
|
1831
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
1714
|
+
obj = Google::Ads::GoogleAds::V1::Resources::KeywordPlan.new
|
1832
1715
|
obj.resource_name = resource_or_path
|
1833
1716
|
obj
|
1834
1717
|
else
|
1835
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
1718
|
+
unless Google::Ads::GoogleAds::V1::Resources::KeywordPlan === res
|
1836
1719
|
raise ArgumentError.new(
|
1837
1720
|
"Called #{__method__} with instance of wrong type:"\
|
1838
1721
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1841,37 +1724,37 @@ module Google
|
|
1841
1724
|
end
|
1842
1725
|
end
|
1843
1726
|
|
1844
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1727
|
+
op = Google::Ads::GoogleAds::V1::Services::KeywordPlanOperation.new
|
1845
1728
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1846
1729
|
op["update"] = res
|
1847
1730
|
op
|
1848
1731
|
end
|
1849
1732
|
|
1850
|
-
# A convenience method for creating an
|
1851
|
-
# its "update" field prepopulated with an
|
1733
|
+
# A convenience method for creating an LabelOperation instance with
|
1734
|
+
# its "update" field prepopulated with an Label instance, and
|
1852
1735
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1853
1736
|
#
|
1854
|
-
# @overload #
|
1737
|
+
# @overload #label(path, &blk)
|
1855
1738
|
# @param path [String] a resource path for the resource to update
|
1856
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
1739
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Label] a new instance of the resource for this update operation, on
|
1857
1740
|
# which fields can be set to update
|
1858
1741
|
#
|
1859
|
-
# @overload #
|
1860
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
1742
|
+
# @overload #label(resource, &blk)
|
1743
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::Label] a resource instance to update
|
1861
1744
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1862
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1863
|
-
def self.
|
1864
|
-
require "google/ads/google_ads/v1/services/
|
1745
|
+
# @return [Google::Ads::GoogleAds::V1::Services::LabelOperation] the operation instance to update the resource
|
1746
|
+
def self.label(resource_or_path, &blk)
|
1747
|
+
require "google/ads/google_ads/v1/services/label_service_pb.rb"
|
1865
1748
|
res = case resource_or_path
|
1866
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
1749
|
+
when Google::Ads::GoogleAds::V1::Resources::Label
|
1867
1750
|
resource_or_path
|
1868
1751
|
# got a resource path
|
1869
1752
|
when String
|
1870
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
1753
|
+
obj = Google::Ads::GoogleAds::V1::Resources::Label.new
|
1871
1754
|
obj.resource_name = resource_or_path
|
1872
1755
|
obj
|
1873
1756
|
else
|
1874
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
1757
|
+
unless Google::Ads::GoogleAds::V1::Resources::Label === res
|
1875
1758
|
raise ArgumentError.new(
|
1876
1759
|
"Called #{__method__} with instance of wrong type:"\
|
1877
1760
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1880,37 +1763,37 @@ module Google
|
|
1880
1763
|
end
|
1881
1764
|
end
|
1882
1765
|
|
1883
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1766
|
+
op = Google::Ads::GoogleAds::V1::Services::LabelOperation.new
|
1884
1767
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1885
1768
|
op["update"] = res
|
1886
1769
|
op
|
1887
1770
|
end
|
1888
1771
|
|
1889
|
-
# A convenience method for creating an
|
1890
|
-
# its "update" field prepopulated with an
|
1772
|
+
# A convenience method for creating an CampaignCriterionOperation instance with
|
1773
|
+
# its "update" field prepopulated with an CampaignCriterion instance, and
|
1891
1774
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1892
1775
|
#
|
1893
|
-
# @overload #
|
1776
|
+
# @overload #campaign_criterion(path, &blk)
|
1894
1777
|
# @param path [String] a resource path for the resource to update
|
1895
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
1778
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::CampaignCriterion] a new instance of the resource for this update operation, on
|
1896
1779
|
# which fields can be set to update
|
1897
1780
|
#
|
1898
|
-
# @overload #
|
1899
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
1781
|
+
# @overload #campaign_criterion(resource, &blk)
|
1782
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::CampaignCriterion] a resource instance to update
|
1900
1783
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1901
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1902
|
-
def self.
|
1903
|
-
require "google/ads/google_ads/v1/services/
|
1784
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignCriterionOperation] the operation instance to update the resource
|
1785
|
+
def self.campaign_criterion(resource_or_path, &blk)
|
1786
|
+
require "google/ads/google_ads/v1/services/campaign_criterion_service_pb.rb"
|
1904
1787
|
res = case resource_or_path
|
1905
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
1788
|
+
when Google::Ads::GoogleAds::V1::Resources::CampaignCriterion
|
1906
1789
|
resource_or_path
|
1907
1790
|
# got a resource path
|
1908
1791
|
when String
|
1909
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
1792
|
+
obj = Google::Ads::GoogleAds::V1::Resources::CampaignCriterion.new
|
1910
1793
|
obj.resource_name = resource_or_path
|
1911
1794
|
obj
|
1912
1795
|
else
|
1913
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
1796
|
+
unless Google::Ads::GoogleAds::V1::Resources::CampaignCriterion === res
|
1914
1797
|
raise ArgumentError.new(
|
1915
1798
|
"Called #{__method__} with instance of wrong type:"\
|
1916
1799
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1919,37 +1802,37 @@ module Google
|
|
1919
1802
|
end
|
1920
1803
|
end
|
1921
1804
|
|
1922
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1805
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignCriterionOperation.new
|
1923
1806
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1924
1807
|
op["update"] = res
|
1925
1808
|
op
|
1926
1809
|
end
|
1927
1810
|
|
1928
|
-
# A convenience method for creating an
|
1929
|
-
# its "update" field prepopulated with an
|
1811
|
+
# A convenience method for creating an CustomInterestOperation instance with
|
1812
|
+
# its "update" field prepopulated with an CustomInterest instance, and
|
1930
1813
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1931
1814
|
#
|
1932
|
-
# @overload #
|
1815
|
+
# @overload #custom_interest(path, &blk)
|
1933
1816
|
# @param path [String] a resource path for the resource to update
|
1934
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
1817
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::CustomInterest] a new instance of the resource for this update operation, on
|
1935
1818
|
# which fields can be set to update
|
1936
1819
|
#
|
1937
|
-
# @overload #
|
1938
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
1820
|
+
# @overload #custom_interest(resource, &blk)
|
1821
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::CustomInterest] a resource instance to update
|
1939
1822
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1940
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1941
|
-
def self.
|
1942
|
-
require "google/ads/google_ads/v1/services/
|
1823
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CustomInterestOperation] the operation instance to update the resource
|
1824
|
+
def self.custom_interest(resource_or_path, &blk)
|
1825
|
+
require "google/ads/google_ads/v1/services/custom_interest_service_pb.rb"
|
1943
1826
|
res = case resource_or_path
|
1944
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
1827
|
+
when Google::Ads::GoogleAds::V1::Resources::CustomInterest
|
1945
1828
|
resource_or_path
|
1946
1829
|
# got a resource path
|
1947
1830
|
when String
|
1948
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
1831
|
+
obj = Google::Ads::GoogleAds::V1::Resources::CustomInterest.new
|
1949
1832
|
obj.resource_name = resource_or_path
|
1950
1833
|
obj
|
1951
1834
|
else
|
1952
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
1835
|
+
unless Google::Ads::GoogleAds::V1::Resources::CustomInterest === res
|
1953
1836
|
raise ArgumentError.new(
|
1954
1837
|
"Called #{__method__} with instance of wrong type:"\
|
1955
1838
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1958,37 +1841,37 @@ module Google
|
|
1958
1841
|
end
|
1959
1842
|
end
|
1960
1843
|
|
1961
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1844
|
+
op = Google::Ads::GoogleAds::V1::Services::CustomInterestOperation.new
|
1962
1845
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1963
1846
|
op["update"] = res
|
1964
1847
|
op
|
1965
1848
|
end
|
1966
1849
|
|
1967
|
-
# A convenience method for creating an
|
1968
|
-
# its "update" field prepopulated with an
|
1850
|
+
# A convenience method for creating an AdGroupAdOperation instance with
|
1851
|
+
# its "update" field prepopulated with an AdGroupAd instance, and
|
1969
1852
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1970
1853
|
#
|
1971
|
-
# @overload #
|
1854
|
+
# @overload #ad_group_ad(path, &blk)
|
1972
1855
|
# @param path [String] a resource path for the resource to update
|
1973
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
1856
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupAd] a new instance of the resource for this update operation, on
|
1974
1857
|
# which fields can be set to update
|
1975
1858
|
#
|
1976
|
-
# @overload #
|
1977
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
1859
|
+
# @overload #ad_group_ad(resource, &blk)
|
1860
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupAd] a resource instance to update
|
1978
1861
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1979
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
1980
|
-
def self.
|
1981
|
-
require "google/ads/google_ads/v1/services/
|
1862
|
+
# @return [Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation] the operation instance to update the resource
|
1863
|
+
def self.ad_group_ad(resource_or_path, &blk)
|
1864
|
+
require "google/ads/google_ads/v1/services/ad_group_ad_service_pb.rb"
|
1982
1865
|
res = case resource_or_path
|
1983
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
1866
|
+
when Google::Ads::GoogleAds::V1::Resources::AdGroupAd
|
1984
1867
|
resource_or_path
|
1985
1868
|
# got a resource path
|
1986
1869
|
when String
|
1987
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
1870
|
+
obj = Google::Ads::GoogleAds::V1::Resources::AdGroupAd.new
|
1988
1871
|
obj.resource_name = resource_or_path
|
1989
1872
|
obj
|
1990
1873
|
else
|
1991
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
1874
|
+
unless Google::Ads::GoogleAds::V1::Resources::AdGroupAd === res
|
1992
1875
|
raise ArgumentError.new(
|
1993
1876
|
"Called #{__method__} with instance of wrong type:"\
|
1994
1877
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1997,37 +1880,37 @@ module Google
|
|
1997
1880
|
end
|
1998
1881
|
end
|
1999
1882
|
|
2000
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1883
|
+
op = Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation.new
|
2001
1884
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2002
1885
|
op["update"] = res
|
2003
1886
|
op
|
2004
1887
|
end
|
2005
1888
|
|
2006
|
-
# A convenience method for creating an
|
2007
|
-
# its "update" field prepopulated with an
|
1889
|
+
# A convenience method for creating an AdGroupBidModifierOperation instance with
|
1890
|
+
# its "update" field prepopulated with an AdGroupBidModifier instance, and
|
2008
1891
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2009
1892
|
#
|
2010
|
-
# @overload #
|
1893
|
+
# @overload #ad_group_bid_modifier(path, &blk)
|
2011
1894
|
# @param path [String] a resource path for the resource to update
|
2012
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
1895
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupBidModifier] a new instance of the resource for this update operation, on
|
2013
1896
|
# which fields can be set to update
|
2014
1897
|
#
|
2015
|
-
# @overload #
|
2016
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
1898
|
+
# @overload #ad_group_bid_modifier(resource, &blk)
|
1899
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupBidModifier] a resource instance to update
|
2017
1900
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2018
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
2019
|
-
def self.
|
2020
|
-
require "google/ads/google_ads/v1/services/
|
1901
|
+
# @return [Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierOperation] the operation instance to update the resource
|
1902
|
+
def self.ad_group_bid_modifier(resource_or_path, &blk)
|
1903
|
+
require "google/ads/google_ads/v1/services/ad_group_bid_modifier_service_pb.rb"
|
2021
1904
|
res = case resource_or_path
|
2022
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
1905
|
+
when Google::Ads::GoogleAds::V1::Resources::AdGroupBidModifier
|
2023
1906
|
resource_or_path
|
2024
1907
|
# got a resource path
|
2025
1908
|
when String
|
2026
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
1909
|
+
obj = Google::Ads::GoogleAds::V1::Resources::AdGroupBidModifier.new
|
2027
1910
|
obj.resource_name = resource_or_path
|
2028
1911
|
obj
|
2029
1912
|
else
|
2030
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
1913
|
+
unless Google::Ads::GoogleAds::V1::Resources::AdGroupBidModifier === res
|
2031
1914
|
raise ArgumentError.new(
|
2032
1915
|
"Called #{__method__} with instance of wrong type:"\
|
2033
1916
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2036,7 +1919,7 @@ module Google
|
|
2036
1919
|
end
|
2037
1920
|
end
|
2038
1921
|
|
2039
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1922
|
+
op = Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierOperation.new
|
2040
1923
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2041
1924
|
op["update"] = res
|
2042
1925
|
op
|
@@ -2055,57 +1938,18 @@ module Google
|
|
2055
1938
|
# @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion] a resource instance to update
|
2056
1939
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2057
1940
|
# @return [Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation] the operation instance to update the resource
|
2058
|
-
def self.ad_group_criterion(resource_or_path, &blk)
|
2059
|
-
require "google/ads/google_ads/v1/services/ad_group_criterion_service_pb.rb"
|
2060
|
-
res = case resource_or_path
|
2061
|
-
when Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion
|
2062
|
-
resource_or_path
|
2063
|
-
# got a resource path
|
2064
|
-
when String
|
2065
|
-
obj = Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion.new
|
2066
|
-
obj.resource_name = resource_or_path
|
2067
|
-
obj
|
2068
|
-
else
|
2069
|
-
unless Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion === res
|
2070
|
-
raise ArgumentError.new(
|
2071
|
-
"Called #{__method__} with instance of wrong type:"\
|
2072
|
-
" #{res.class} want #{operation.update_class}"\
|
2073
|
-
" or String representing resource name"
|
2074
|
-
)
|
2075
|
-
end
|
2076
|
-
end
|
2077
|
-
|
2078
|
-
op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation.new
|
2079
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2080
|
-
op["update"] = res
|
2081
|
-
op
|
2082
|
-
end
|
2083
|
-
|
2084
|
-
# A convenience method for creating an AdGroupAdOperation instance with
|
2085
|
-
# its "update" field prepopulated with an AdGroupAd instance, and
|
2086
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
2087
|
-
#
|
2088
|
-
# @overload #ad_group_ad(path, &blk)
|
2089
|
-
# @param path [String] a resource path for the resource to update
|
2090
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupAd] a new instance of the resource for this update operation, on
|
2091
|
-
# which fields can be set to update
|
2092
|
-
#
|
2093
|
-
# @overload #ad_group_ad(resource, &blk)
|
2094
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupAd] a resource instance to update
|
2095
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2096
|
-
# @return [Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation] the operation instance to update the resource
|
2097
|
-
def self.ad_group_ad(resource_or_path, &blk)
|
2098
|
-
require "google/ads/google_ads/v1/services/ad_group_ad_service_pb.rb"
|
1941
|
+
def self.ad_group_criterion(resource_or_path, &blk)
|
1942
|
+
require "google/ads/google_ads/v1/services/ad_group_criterion_service_pb.rb"
|
2099
1943
|
res = case resource_or_path
|
2100
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
1944
|
+
when Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion
|
2101
1945
|
resource_or_path
|
2102
1946
|
# got a resource path
|
2103
1947
|
when String
|
2104
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
1948
|
+
obj = Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion.new
|
2105
1949
|
obj.resource_name = resource_or_path
|
2106
1950
|
obj
|
2107
1951
|
else
|
2108
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
1952
|
+
unless Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion === res
|
2109
1953
|
raise ArgumentError.new(
|
2110
1954
|
"Called #{__method__} with instance of wrong type:"\
|
2111
1955
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2114,7 +1958,7 @@ module Google
|
|
2114
1958
|
end
|
2115
1959
|
end
|
2116
1960
|
|
2117
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
1961
|
+
op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation.new
|
2118
1962
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2119
1963
|
op["update"] = res
|
2120
1964
|
op
|
@@ -2276,6 +2120,45 @@ module Google
|
|
2276
2120
|
op
|
2277
2121
|
end
|
2278
2122
|
|
2123
|
+
# A convenience method for creating an BiddingStrategyOperation instance with
|
2124
|
+
# its "update" field prepopulated with an BiddingStrategy instance, and
|
2125
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2126
|
+
#
|
2127
|
+
# @overload #bidding_strategy(path, &blk)
|
2128
|
+
# @param path [String] a resource path for the resource to update
|
2129
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::BiddingStrategy] a new instance of the resource for this update operation, on
|
2130
|
+
# which fields can be set to update
|
2131
|
+
#
|
2132
|
+
# @overload #bidding_strategy(resource, &blk)
|
2133
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::BiddingStrategy] a resource instance to update
|
2134
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2135
|
+
# @return [Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation] the operation instance to update the resource
|
2136
|
+
def self.bidding_strategy(resource_or_path, &blk)
|
2137
|
+
require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb"
|
2138
|
+
res = case resource_or_path
|
2139
|
+
when Google::Ads::GoogleAds::V1::Resources::BiddingStrategy
|
2140
|
+
resource_or_path
|
2141
|
+
# got a resource path
|
2142
|
+
when String
|
2143
|
+
obj = Google::Ads::GoogleAds::V1::Resources::BiddingStrategy.new
|
2144
|
+
obj.resource_name = resource_or_path
|
2145
|
+
obj
|
2146
|
+
else
|
2147
|
+
unless Google::Ads::GoogleAds::V1::Resources::BiddingStrategy === res
|
2148
|
+
raise ArgumentError.new(
|
2149
|
+
"Called #{__method__} with instance of wrong type:"\
|
2150
|
+
" #{res.class} want #{operation.update_class}"\
|
2151
|
+
" or String representing resource name"
|
2152
|
+
)
|
2153
|
+
end
|
2154
|
+
end
|
2155
|
+
|
2156
|
+
op = Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new
|
2157
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2158
|
+
op["update"] = res
|
2159
|
+
op
|
2160
|
+
end
|
2161
|
+
|
2279
2162
|
# A convenience method for creating an CampaignBidModifierOperation instance with
|
2280
2163
|
# its "update" field prepopulated with an CampaignBidModifier instance, and
|
2281
2164
|
# its "update_mask" field populated as needed to send the updates to the API.
|
@@ -2315,31 +2198,31 @@ module Google
|
|
2315
2198
|
op
|
2316
2199
|
end
|
2317
2200
|
|
2318
|
-
# A convenience method for creating an
|
2319
|
-
# its "update" field prepopulated with an
|
2201
|
+
# A convenience method for creating an CampaignBudgetOperation instance with
|
2202
|
+
# its "update" field prepopulated with an CampaignBudget instance, and
|
2320
2203
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2321
2204
|
#
|
2322
|
-
# @overload #
|
2205
|
+
# @overload #campaign_budget(path, &blk)
|
2323
2206
|
# @param path [String] a resource path for the resource to update
|
2324
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
2207
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::CampaignBudget] a new instance of the resource for this update operation, on
|
2325
2208
|
# which fields can be set to update
|
2326
2209
|
#
|
2327
|
-
# @overload #
|
2328
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
2210
|
+
# @overload #campaign_budget(resource, &blk)
|
2211
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::CampaignBudget] a resource instance to update
|
2329
2212
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2330
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
2331
|
-
def self.
|
2332
|
-
require "google/ads/google_ads/v1/services/
|
2213
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation] the operation instance to update the resource
|
2214
|
+
def self.campaign_budget(resource_or_path, &blk)
|
2215
|
+
require "google/ads/google_ads/v1/services/campaign_budget_service_pb.rb"
|
2333
2216
|
res = case resource_or_path
|
2334
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
2217
|
+
when Google::Ads::GoogleAds::V1::Resources::CampaignBudget
|
2335
2218
|
resource_or_path
|
2336
2219
|
# got a resource path
|
2337
2220
|
when String
|
2338
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
2221
|
+
obj = Google::Ads::GoogleAds::V1::Resources::CampaignBudget.new
|
2339
2222
|
obj.resource_name = resource_or_path
|
2340
2223
|
obj
|
2341
2224
|
else
|
2342
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
2225
|
+
unless Google::Ads::GoogleAds::V1::Resources::CampaignBudget === res
|
2343
2226
|
raise ArgumentError.new(
|
2344
2227
|
"Called #{__method__} with instance of wrong type:"\
|
2345
2228
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2348,37 +2231,37 @@ module Google
|
|
2348
2231
|
end
|
2349
2232
|
end
|
2350
2233
|
|
2351
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
2234
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation.new
|
2352
2235
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2353
2236
|
op["update"] = res
|
2354
2237
|
op
|
2355
2238
|
end
|
2356
2239
|
|
2357
|
-
# A convenience method for creating an
|
2358
|
-
# its "update" field prepopulated with an
|
2240
|
+
# A convenience method for creating an CampaignDraftOperation instance with
|
2241
|
+
# its "update" field prepopulated with an CampaignDraft instance, and
|
2359
2242
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2360
2243
|
#
|
2361
|
-
# @overload #
|
2244
|
+
# @overload #campaign_draft(path, &blk)
|
2362
2245
|
# @param path [String] a resource path for the resource to update
|
2363
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
2246
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::CampaignDraft] a new instance of the resource for this update operation, on
|
2364
2247
|
# which fields can be set to update
|
2365
2248
|
#
|
2366
|
-
# @overload #
|
2367
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
2249
|
+
# @overload #campaign_draft(resource, &blk)
|
2250
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::CampaignDraft] a resource instance to update
|
2368
2251
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2369
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
2370
|
-
def self.
|
2371
|
-
require "google/ads/google_ads/v1/services/
|
2252
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation] the operation instance to update the resource
|
2253
|
+
def self.campaign_draft(resource_or_path, &blk)
|
2254
|
+
require "google/ads/google_ads/v1/services/campaign_draft_service_pb.rb"
|
2372
2255
|
res = case resource_or_path
|
2373
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
2256
|
+
when Google::Ads::GoogleAds::V1::Resources::CampaignDraft
|
2374
2257
|
resource_or_path
|
2375
2258
|
# got a resource path
|
2376
2259
|
when String
|
2377
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
2260
|
+
obj = Google::Ads::GoogleAds::V1::Resources::CampaignDraft.new
|
2378
2261
|
obj.resource_name = resource_or_path
|
2379
2262
|
obj
|
2380
2263
|
else
|
2381
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
2264
|
+
unless Google::Ads::GoogleAds::V1::Resources::CampaignDraft === res
|
2382
2265
|
raise ArgumentError.new(
|
2383
2266
|
"Called #{__method__} with instance of wrong type:"\
|
2384
2267
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2387,7 +2270,7 @@ module Google
|
|
2387
2270
|
end
|
2388
2271
|
end
|
2389
2272
|
|
2390
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
2273
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation.new
|
2391
2274
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2392
2275
|
op["update"] = res
|
2393
2276
|
op
|
@@ -2432,6 +2315,45 @@ module Google
|
|
2432
2315
|
op
|
2433
2316
|
end
|
2434
2317
|
|
2318
|
+
# A convenience method for creating an CampaignFeedOperation instance with
|
2319
|
+
# its "update" field prepopulated with an CampaignFeed instance, and
|
2320
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2321
|
+
#
|
2322
|
+
# @overload #campaign_feed(path, &blk)
|
2323
|
+
# @param path [String] a resource path for the resource to update
|
2324
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::CampaignFeed] a new instance of the resource for this update operation, on
|
2325
|
+
# which fields can be set to update
|
2326
|
+
#
|
2327
|
+
# @overload #campaign_feed(resource, &blk)
|
2328
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::CampaignFeed] a resource instance to update
|
2329
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2330
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation] the operation instance to update the resource
|
2331
|
+
def self.campaign_feed(resource_or_path, &blk)
|
2332
|
+
require "google/ads/google_ads/v1/services/campaign_feed_service_pb.rb"
|
2333
|
+
res = case resource_or_path
|
2334
|
+
when Google::Ads::GoogleAds::V1::Resources::CampaignFeed
|
2335
|
+
resource_or_path
|
2336
|
+
# got a resource path
|
2337
|
+
when String
|
2338
|
+
obj = Google::Ads::GoogleAds::V1::Resources::CampaignFeed.new
|
2339
|
+
obj.resource_name = resource_or_path
|
2340
|
+
obj
|
2341
|
+
else
|
2342
|
+
unless Google::Ads::GoogleAds::V1::Resources::CampaignFeed === res
|
2343
|
+
raise ArgumentError.new(
|
2344
|
+
"Called #{__method__} with instance of wrong type:"\
|
2345
|
+
" #{res.class} want #{operation.update_class}"\
|
2346
|
+
" or String representing resource name"
|
2347
|
+
)
|
2348
|
+
end
|
2349
|
+
end
|
2350
|
+
|
2351
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation.new
|
2352
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2353
|
+
op["update"] = res
|
2354
|
+
op
|
2355
|
+
end
|
2356
|
+
|
2435
2357
|
# A convenience method for creating an CampaignOperation instance with
|
2436
2358
|
# its "update" field prepopulated with an Campaign instance, and
|
2437
2359
|
# its "update_mask" field populated as needed to send the updates to the API.
|
@@ -2471,6 +2393,45 @@ module Google
|
|
2471
2393
|
op
|
2472
2394
|
end
|
2473
2395
|
|
2396
|
+
# A convenience method for creating an ConversionActionOperation instance with
|
2397
|
+
# its "update" field prepopulated with an ConversionAction instance, and
|
2398
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2399
|
+
#
|
2400
|
+
# @overload #conversion_action(path, &blk)
|
2401
|
+
# @param path [String] a resource path for the resource to update
|
2402
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::ConversionAction] a new instance of the resource for this update operation, on
|
2403
|
+
# which fields can be set to update
|
2404
|
+
#
|
2405
|
+
# @overload #conversion_action(resource, &blk)
|
2406
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::ConversionAction] a resource instance to update
|
2407
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2408
|
+
# @return [Google::Ads::GoogleAds::V1::Services::ConversionActionOperation] the operation instance to update the resource
|
2409
|
+
def self.conversion_action(resource_or_path, &blk)
|
2410
|
+
require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb"
|
2411
|
+
res = case resource_or_path
|
2412
|
+
when Google::Ads::GoogleAds::V1::Resources::ConversionAction
|
2413
|
+
resource_or_path
|
2414
|
+
# got a resource path
|
2415
|
+
when String
|
2416
|
+
obj = Google::Ads::GoogleAds::V1::Resources::ConversionAction.new
|
2417
|
+
obj.resource_name = resource_or_path
|
2418
|
+
obj
|
2419
|
+
else
|
2420
|
+
unless Google::Ads::GoogleAds::V1::Resources::ConversionAction === res
|
2421
|
+
raise ArgumentError.new(
|
2422
|
+
"Called #{__method__} with instance of wrong type:"\
|
2423
|
+
" #{res.class} want #{operation.update_class}"\
|
2424
|
+
" or String representing resource name"
|
2425
|
+
)
|
2426
|
+
end
|
2427
|
+
end
|
2428
|
+
|
2429
|
+
op = Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new
|
2430
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2431
|
+
op["update"] = res
|
2432
|
+
op
|
2433
|
+
end
|
2434
|
+
|
2474
2435
|
# A convenience method for creating an CustomerExtensionSettingOperation instance with
|
2475
2436
|
# its "update" field prepopulated with an CustomerExtensionSetting instance, and
|
2476
2437
|
# its "update_mask" field populated as needed to send the updates to the API.
|
@@ -2549,6 +2510,45 @@ module Google
|
|
2549
2510
|
op
|
2550
2511
|
end
|
2551
2512
|
|
2513
|
+
# A convenience method for creating an CustomerOperation instance with
|
2514
|
+
# its "update" field prepopulated with an Customer instance, and
|
2515
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2516
|
+
#
|
2517
|
+
# @overload #customer(path, &blk)
|
2518
|
+
# @param path [String] a resource path for the resource to update
|
2519
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Customer] a new instance of the resource for this update operation, on
|
2520
|
+
# which fields can be set to update
|
2521
|
+
#
|
2522
|
+
# @overload #customer(resource, &blk)
|
2523
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::Customer] a resource instance to update
|
2524
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2525
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CustomerOperation] the operation instance to update the resource
|
2526
|
+
def self.customer(resource_or_path, &blk)
|
2527
|
+
require "google/ads/google_ads/v1/services/customer_service_pb.rb"
|
2528
|
+
res = case resource_or_path
|
2529
|
+
when Google::Ads::GoogleAds::V1::Resources::Customer
|
2530
|
+
resource_or_path
|
2531
|
+
# got a resource path
|
2532
|
+
when String
|
2533
|
+
obj = Google::Ads::GoogleAds::V1::Resources::Customer.new
|
2534
|
+
obj.resource_name = resource_or_path
|
2535
|
+
obj
|
2536
|
+
else
|
2537
|
+
unless Google::Ads::GoogleAds::V1::Resources::Customer === res
|
2538
|
+
raise ArgumentError.new(
|
2539
|
+
"Called #{__method__} with instance of wrong type:"\
|
2540
|
+
" #{res.class} want #{operation.update_class}"\
|
2541
|
+
" or String representing resource name"
|
2542
|
+
)
|
2543
|
+
end
|
2544
|
+
end
|
2545
|
+
|
2546
|
+
op = Google::Ads::GoogleAds::V1::Services::CustomerOperation.new
|
2547
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2548
|
+
op["update"] = res
|
2549
|
+
op
|
2550
|
+
end
|
2551
|
+
|
2552
2552
|
# A convenience method for creating an ExtensionFeedItemOperation instance with
|
2553
2553
|
# its "update" field prepopulated with an ExtensionFeedItem instance, and
|
2554
2554
|
# its "update_mask" field populated as needed to send the updates to the API.
|
@@ -2561,19 +2561,58 @@ module Google
|
|
2561
2561
|
# @overload #extension_feed_item(resource, &blk)
|
2562
2562
|
# @param resource [Google::Ads::GoogleAds::V1::Resources::ExtensionFeedItem] a resource instance to update
|
2563
2563
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2564
|
-
# @return [Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemOperation] the operation instance to update the resource
|
2565
|
-
def self.extension_feed_item(resource_or_path, &blk)
|
2566
|
-
require "google/ads/google_ads/v1/services/extension_feed_item_service_pb.rb"
|
2564
|
+
# @return [Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemOperation] the operation instance to update the resource
|
2565
|
+
def self.extension_feed_item(resource_or_path, &blk)
|
2566
|
+
require "google/ads/google_ads/v1/services/extension_feed_item_service_pb.rb"
|
2567
|
+
res = case resource_or_path
|
2568
|
+
when Google::Ads::GoogleAds::V1::Resources::ExtensionFeedItem
|
2569
|
+
resource_or_path
|
2570
|
+
# got a resource path
|
2571
|
+
when String
|
2572
|
+
obj = Google::Ads::GoogleAds::V1::Resources::ExtensionFeedItem.new
|
2573
|
+
obj.resource_name = resource_or_path
|
2574
|
+
obj
|
2575
|
+
else
|
2576
|
+
unless Google::Ads::GoogleAds::V1::Resources::ExtensionFeedItem === res
|
2577
|
+
raise ArgumentError.new(
|
2578
|
+
"Called #{__method__} with instance of wrong type:"\
|
2579
|
+
" #{res.class} want #{operation.update_class}"\
|
2580
|
+
" or String representing resource name"
|
2581
|
+
)
|
2582
|
+
end
|
2583
|
+
end
|
2584
|
+
|
2585
|
+
op = Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemOperation.new
|
2586
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2587
|
+
op["update"] = res
|
2588
|
+
op
|
2589
|
+
end
|
2590
|
+
|
2591
|
+
# A convenience method for creating an FeedItemOperation instance with
|
2592
|
+
# its "update" field prepopulated with an FeedItem instance, and
|
2593
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2594
|
+
#
|
2595
|
+
# @overload #feed_item(path, &blk)
|
2596
|
+
# @param path [String] a resource path for the resource to update
|
2597
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::FeedItem] a new instance of the resource for this update operation, on
|
2598
|
+
# which fields can be set to update
|
2599
|
+
#
|
2600
|
+
# @overload #feed_item(resource, &blk)
|
2601
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::FeedItem] a resource instance to update
|
2602
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2603
|
+
# @return [Google::Ads::GoogleAds::V1::Services::FeedItemOperation] the operation instance to update the resource
|
2604
|
+
def self.feed_item(resource_or_path, &blk)
|
2605
|
+
require "google/ads/google_ads/v1/services/feed_item_service_pb.rb"
|
2567
2606
|
res = case resource_or_path
|
2568
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
2607
|
+
when Google::Ads::GoogleAds::V1::Resources::FeedItem
|
2569
2608
|
resource_or_path
|
2570
2609
|
# got a resource path
|
2571
2610
|
when String
|
2572
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
2611
|
+
obj = Google::Ads::GoogleAds::V1::Resources::FeedItem.new
|
2573
2612
|
obj.resource_name = resource_or_path
|
2574
2613
|
obj
|
2575
2614
|
else
|
2576
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
2615
|
+
unless Google::Ads::GoogleAds::V1::Resources::FeedItem === res
|
2577
2616
|
raise ArgumentError.new(
|
2578
2617
|
"Called #{__method__} with instance of wrong type:"\
|
2579
2618
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2582,37 +2621,37 @@ module Google
|
|
2582
2621
|
end
|
2583
2622
|
end
|
2584
2623
|
|
2585
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
2624
|
+
op = Google::Ads::GoogleAds::V1::Services::FeedItemOperation.new
|
2586
2625
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2587
2626
|
op["update"] = res
|
2588
2627
|
op
|
2589
2628
|
end
|
2590
2629
|
|
2591
|
-
# A convenience method for creating an
|
2592
|
-
# its "update" field prepopulated with an
|
2630
|
+
# A convenience method for creating an FeedOperation instance with
|
2631
|
+
# its "update" field prepopulated with an Feed instance, and
|
2593
2632
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2594
2633
|
#
|
2595
|
-
# @overload #
|
2634
|
+
# @overload #feed(path, &blk)
|
2596
2635
|
# @param path [String] a resource path for the resource to update
|
2597
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
2636
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::Feed] a new instance of the resource for this update operation, on
|
2598
2637
|
# which fields can be set to update
|
2599
2638
|
#
|
2600
|
-
# @overload #
|
2601
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
2639
|
+
# @overload #feed(resource, &blk)
|
2640
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::Feed] a resource instance to update
|
2602
2641
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2603
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
2604
|
-
def self.
|
2605
|
-
require "google/ads/google_ads/v1/services/
|
2642
|
+
# @return [Google::Ads::GoogleAds::V1::Services::FeedOperation] the operation instance to update the resource
|
2643
|
+
def self.feed(resource_or_path, &blk)
|
2644
|
+
require "google/ads/google_ads/v1/services/feed_service_pb.rb"
|
2606
2645
|
res = case resource_or_path
|
2607
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
2646
|
+
when Google::Ads::GoogleAds::V1::Resources::Feed
|
2608
2647
|
resource_or_path
|
2609
2648
|
# got a resource path
|
2610
2649
|
when String
|
2611
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
2650
|
+
obj = Google::Ads::GoogleAds::V1::Resources::Feed.new
|
2612
2651
|
obj.resource_name = resource_or_path
|
2613
2652
|
obj
|
2614
2653
|
else
|
2615
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
2654
|
+
unless Google::Ads::GoogleAds::V1::Resources::Feed === res
|
2616
2655
|
raise ArgumentError.new(
|
2617
2656
|
"Called #{__method__} with instance of wrong type:"\
|
2618
2657
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2621,7 +2660,7 @@ module Google
|
|
2621
2660
|
end
|
2622
2661
|
end
|
2623
2662
|
|
2624
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
2663
|
+
op = Google::Ads::GoogleAds::V1::Services::FeedOperation.new
|
2625
2664
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2626
2665
|
op["update"] = res
|
2627
2666
|
op
|
@@ -2783,70 +2822,31 @@ module Google
|
|
2783
2822
|
op
|
2784
2823
|
end
|
2785
2824
|
|
2786
|
-
# A convenience method for creating an
|
2787
|
-
# its "update" field prepopulated with an
|
2788
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
2789
|
-
#
|
2790
|
-
# @overload #merchant_center_link(path, &blk)
|
2791
|
-
# @param path [String] a resource path for the resource to update
|
2792
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on
|
2793
|
-
# which fields can be set to update
|
2794
|
-
#
|
2795
|
-
# @overload #merchant_center_link(resource, &blk)
|
2796
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink] a resource instance to update
|
2797
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2798
|
-
# @return [Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation] the operation instance to update the resource
|
2799
|
-
def self.merchant_center_link(resource_or_path, &blk)
|
2800
|
-
require "google/ads/google_ads/v1/services/merchant_center_link_service_pb.rb"
|
2801
|
-
res = case resource_or_path
|
2802
|
-
when Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink
|
2803
|
-
resource_or_path
|
2804
|
-
# got a resource path
|
2805
|
-
when String
|
2806
|
-
obj = Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink.new
|
2807
|
-
obj.resource_name = resource_or_path
|
2808
|
-
obj
|
2809
|
-
else
|
2810
|
-
unless Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink === res
|
2811
|
-
raise ArgumentError.new(
|
2812
|
-
"Called #{__method__} with instance of wrong type:"\
|
2813
|
-
" #{res.class} want #{operation.update_class}"\
|
2814
|
-
" or String representing resource name"
|
2815
|
-
)
|
2816
|
-
end
|
2817
|
-
end
|
2818
|
-
|
2819
|
-
op = Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation.new
|
2820
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2821
|
-
op["update"] = res
|
2822
|
-
op
|
2823
|
-
end
|
2824
|
-
|
2825
|
-
# A convenience method for creating an KeywordPlanOperation instance with
|
2826
|
-
# its "update" field prepopulated with an KeywordPlan instance, and
|
2825
|
+
# A convenience method for creating an CustomerClientLinkOperation instance with
|
2826
|
+
# its "update" field prepopulated with an CustomerClientLink instance, and
|
2827
2827
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2828
2828
|
#
|
2829
|
-
# @overload #
|
2829
|
+
# @overload #customer_client_link(path, &blk)
|
2830
2830
|
# @param path [String] a resource path for the resource to update
|
2831
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
2831
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
|
2832
2832
|
# which fields can be set to update
|
2833
2833
|
#
|
2834
|
-
# @overload #
|
2835
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
2834
|
+
# @overload #customer_client_link(resource, &blk)
|
2835
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::CustomerClientLink] a resource instance to update
|
2836
2836
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2837
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
2838
|
-
def self.
|
2839
|
-
require "google/ads/google_ads/v1/services/
|
2837
|
+
# @return [Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation] the operation instance to update the resource
|
2838
|
+
def self.customer_client_link(resource_or_path, &blk)
|
2839
|
+
require "google/ads/google_ads/v1/services/customer_client_link_service_pb.rb"
|
2840
2840
|
res = case resource_or_path
|
2841
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
2841
|
+
when Google::Ads::GoogleAds::V1::Resources::CustomerClientLink
|
2842
2842
|
resource_or_path
|
2843
2843
|
# got a resource path
|
2844
2844
|
when String
|
2845
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
2845
|
+
obj = Google::Ads::GoogleAds::V1::Resources::CustomerClientLink.new
|
2846
2846
|
obj.resource_name = resource_or_path
|
2847
2847
|
obj
|
2848
2848
|
else
|
2849
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
2849
|
+
unless Google::Ads::GoogleAds::V1::Resources::CustomerClientLink === res
|
2850
2850
|
raise ArgumentError.new(
|
2851
2851
|
"Called #{__method__} with instance of wrong type:"\
|
2852
2852
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2855,7 +2855,7 @@ module Google
|
|
2855
2855
|
end
|
2856
2856
|
end
|
2857
2857
|
|
2858
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
2858
|
+
op = Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation.new
|
2859
2859
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2860
2860
|
op["update"] = res
|
2861
2861
|
op
|
@@ -2900,31 +2900,31 @@ module Google
|
|
2900
2900
|
op
|
2901
2901
|
end
|
2902
2902
|
|
2903
|
-
# A convenience method for creating an
|
2904
|
-
# its "update" field prepopulated with an
|
2903
|
+
# A convenience method for creating an MerchantCenterLinkOperation instance with
|
2904
|
+
# its "update" field prepopulated with an MerchantCenterLink instance, and
|
2905
2905
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2906
2906
|
#
|
2907
|
-
# @overload #
|
2907
|
+
# @overload #merchant_center_link(path, &blk)
|
2908
2908
|
# @param path [String] a resource path for the resource to update
|
2909
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
2909
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on
|
2910
2910
|
# which fields can be set to update
|
2911
2911
|
#
|
2912
|
-
# @overload #
|
2913
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
2912
|
+
# @overload #merchant_center_link(resource, &blk)
|
2913
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink] a resource instance to update
|
2914
2914
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2915
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
2916
|
-
def self.
|
2917
|
-
require "google/ads/google_ads/v1/services/
|
2915
|
+
# @return [Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation] the operation instance to update the resource
|
2916
|
+
def self.merchant_center_link(resource_or_path, &blk)
|
2917
|
+
require "google/ads/google_ads/v1/services/merchant_center_link_service_pb.rb"
|
2918
2918
|
res = case resource_or_path
|
2919
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
2919
|
+
when Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink
|
2920
2920
|
resource_or_path
|
2921
2921
|
# got a resource path
|
2922
2922
|
when String
|
2923
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
2923
|
+
obj = Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink.new
|
2924
2924
|
obj.resource_name = resource_or_path
|
2925
2925
|
obj
|
2926
2926
|
else
|
2927
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
2927
|
+
unless Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink === res
|
2928
2928
|
raise ArgumentError.new(
|
2929
2929
|
"Called #{__method__} with instance of wrong type:"\
|
2930
2930
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2933,37 +2933,37 @@ module Google
|
|
2933
2933
|
end
|
2934
2934
|
end
|
2935
2935
|
|
2936
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
2936
|
+
op = Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation.new
|
2937
2937
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2938
2938
|
op["update"] = res
|
2939
2939
|
op
|
2940
2940
|
end
|
2941
2941
|
|
2942
|
-
# A convenience method for creating an
|
2943
|
-
# its "update" field prepopulated with an
|
2942
|
+
# A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with
|
2943
|
+
# its "update" field prepopulated with an KeywordPlanNegativeKeyword instance, and
|
2944
2944
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2945
2945
|
#
|
2946
|
-
# @overload #
|
2946
|
+
# @overload #keyword_plan_negative_keyword(path, &blk)
|
2947
2947
|
# @param path [String] a resource path for the resource to update
|
2948
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
2948
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword] a new instance of the resource for this update operation, on
|
2949
2949
|
# which fields can be set to update
|
2950
2950
|
#
|
2951
|
-
# @overload #
|
2952
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
2951
|
+
# @overload #keyword_plan_negative_keyword(resource, &blk)
|
2952
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword] a resource instance to update
|
2953
2953
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2954
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
2955
|
-
def self.
|
2956
|
-
require "google/ads/google_ads/v1/services/
|
2954
|
+
# @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation] the operation instance to update the resource
|
2955
|
+
def self.keyword_plan_negative_keyword(resource_or_path, &blk)
|
2956
|
+
require "google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_pb.rb"
|
2957
2957
|
res = case resource_or_path
|
2958
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
2958
|
+
when Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword
|
2959
2959
|
resource_or_path
|
2960
2960
|
# got a resource path
|
2961
2961
|
when String
|
2962
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
2962
|
+
obj = Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword.new
|
2963
2963
|
obj.resource_name = resource_or_path
|
2964
2964
|
obj
|
2965
2965
|
else
|
2966
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
2966
|
+
unless Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword === res
|
2967
2967
|
raise ArgumentError.new(
|
2968
2968
|
"Called #{__method__} with instance of wrong type:"\
|
2969
2969
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2972,37 +2972,37 @@ module Google
|
|
2972
2972
|
end
|
2973
2973
|
end
|
2974
2974
|
|
2975
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
2975
|
+
op = Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation.new
|
2976
2976
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2977
2977
|
op["update"] = res
|
2978
2978
|
op
|
2979
2979
|
end
|
2980
2980
|
|
2981
|
-
# A convenience method for creating an
|
2982
|
-
# its "update" field prepopulated with an
|
2981
|
+
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
2982
|
+
# its "update" field prepopulated with an KeywordPlanAdGroup instance, and
|
2983
2983
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2984
2984
|
#
|
2985
|
-
# @overload #
|
2985
|
+
# @overload #keyword_plan_ad_group(path, &blk)
|
2986
2986
|
# @param path [String] a resource path for the resource to update
|
2987
|
-
# @yield [Google::Ads::GoogleAds::V1::Resources::
|
2987
|
+
# @yield [Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup] a new instance of the resource for this update operation, on
|
2988
2988
|
# which fields can be set to update
|
2989
2989
|
#
|
2990
|
-
# @overload #
|
2991
|
-
# @param resource [Google::Ads::GoogleAds::V1::Resources::
|
2990
|
+
# @overload #keyword_plan_ad_group(resource, &blk)
|
2991
|
+
# @param resource [Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup] a resource instance to update
|
2992
2992
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2993
|
-
# @return [Google::Ads::GoogleAds::V1::Services::
|
2994
|
-
def self.
|
2995
|
-
require "google/ads/google_ads/v1/services/
|
2993
|
+
# @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation] the operation instance to update the resource
|
2994
|
+
def self.keyword_plan_ad_group(resource_or_path, &blk)
|
2995
|
+
require "google/ads/google_ads/v1/services/keyword_plan_ad_group_service_pb.rb"
|
2996
2996
|
res = case resource_or_path
|
2997
|
-
when Google::Ads::GoogleAds::V1::Resources::
|
2997
|
+
when Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup
|
2998
2998
|
resource_or_path
|
2999
2999
|
# got a resource path
|
3000
3000
|
when String
|
3001
|
-
obj = Google::Ads::GoogleAds::V1::Resources::
|
3001
|
+
obj = Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup.new
|
3002
3002
|
obj.resource_name = resource_or_path
|
3003
3003
|
obj
|
3004
3004
|
else
|
3005
|
-
unless Google::Ads::GoogleAds::V1::Resources::
|
3005
|
+
unless Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup === res
|
3006
3006
|
raise ArgumentError.new(
|
3007
3007
|
"Called #{__method__} with instance of wrong type:"\
|
3008
3008
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3011,7 +3011,7 @@ module Google
|
|
3011
3011
|
end
|
3012
3012
|
end
|
3013
3013
|
|
3014
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3014
|
+
op = Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation.new
|
3015
3015
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3016
3016
|
op["update"] = res
|
3017
3017
|
op
|
@@ -3030,123 +3030,57 @@ module Google
|
|
3030
3030
|
op
|
3031
3031
|
end
|
3032
3032
|
|
3033
|
-
# A convenience method for creationg an
|
3034
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3035
|
-
#
|
3036
|
-
# @param path [String] the resource name of the resource to delete.
|
3037
|
-
def self.keyword_plan_keyword(path)
|
3038
|
-
require "google/ads/google_ads/v1/services/keyword_plan_keyword_service_pb.rb"
|
3039
|
-
op = Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation.new
|
3040
|
-
op["remove"] = path
|
3041
|
-
op
|
3042
|
-
end
|
3043
|
-
|
3044
|
-
# A convenience method for creationg an FeedMappingOperation instance with
|
3045
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3046
|
-
#
|
3047
|
-
# @param path [String] the resource name of the resource to delete.
|
3048
|
-
def self.feed_mapping(path)
|
3049
|
-
require "google/ads/google_ads/v1/services/feed_mapping_service_pb.rb"
|
3050
|
-
op = Google::Ads::GoogleAds::V1::Services::FeedMappingOperation.new
|
3051
|
-
op["remove"] = path
|
3052
|
-
op
|
3053
|
-
end
|
3054
|
-
|
3055
|
-
# A convenience method for creationg an FeedOperation instance with
|
3056
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3057
|
-
#
|
3058
|
-
# @param path [String] the resource name of the resource to delete.
|
3059
|
-
def self.feed(path)
|
3060
|
-
require "google/ads/google_ads/v1/services/feed_service_pb.rb"
|
3061
|
-
op = Google::Ads::GoogleAds::V1::Services::FeedOperation.new
|
3062
|
-
op["remove"] = path
|
3063
|
-
op
|
3064
|
-
end
|
3065
|
-
|
3066
|
-
# A convenience method for creationg an AdGroupCriterionLabelOperation instance with
|
3067
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3068
|
-
#
|
3069
|
-
# @param path [String] the resource name of the resource to delete.
|
3070
|
-
def self.ad_group_criterion_label(path)
|
3071
|
-
require "google/ads/google_ads/v1/services/ad_group_criterion_label_service_pb.rb"
|
3072
|
-
op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation.new
|
3073
|
-
op["remove"] = path
|
3074
|
-
op
|
3075
|
-
end
|
3076
|
-
|
3077
|
-
# A convenience method for creationg an ConversionActionOperation instance with
|
3078
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3079
|
-
#
|
3080
|
-
# @param path [String] the resource name of the resource to delete.
|
3081
|
-
def self.conversion_action(path)
|
3082
|
-
require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb"
|
3083
|
-
op = Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new
|
3084
|
-
op["remove"] = path
|
3085
|
-
op
|
3086
|
-
end
|
3087
|
-
|
3088
|
-
# A convenience method for creationg an BiddingStrategyOperation instance with
|
3089
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3090
|
-
#
|
3091
|
-
# @param path [String] the resource name of the resource to delete.
|
3092
|
-
def self.bidding_strategy(path)
|
3093
|
-
require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb"
|
3094
|
-
op = Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new
|
3095
|
-
op["remove"] = path
|
3096
|
-
op
|
3097
|
-
end
|
3098
|
-
|
3099
|
-
# A convenience method for creationg an AccountBudgetProposalOperation instance with
|
3033
|
+
# A convenience method for creationg an CampaignExperimentOperation instance with
|
3100
3034
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3101
3035
|
#
|
3102
3036
|
# @param path [String] the resource name of the resource to delete.
|
3103
|
-
def self.
|
3104
|
-
require "google/ads/google_ads/v1/services/
|
3105
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3037
|
+
def self.campaign_experiment(path)
|
3038
|
+
require "google/ads/google_ads/v1/services/campaign_experiment_service_pb.rb"
|
3039
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignExperimentOperation.new
|
3106
3040
|
op["remove"] = path
|
3107
3041
|
op
|
3108
3042
|
end
|
3109
3043
|
|
3110
|
-
# A convenience method for creationg an
|
3044
|
+
# A convenience method for creationg an KeywordPlanKeywordOperation instance with
|
3111
3045
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3112
3046
|
#
|
3113
3047
|
# @param path [String] the resource name of the resource to delete.
|
3114
|
-
def self.
|
3115
|
-
require "google/ads/google_ads/v1/services/
|
3116
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3048
|
+
def self.keyword_plan_keyword(path)
|
3049
|
+
require "google/ads/google_ads/v1/services/keyword_plan_keyword_service_pb.rb"
|
3050
|
+
op = Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation.new
|
3117
3051
|
op["remove"] = path
|
3118
3052
|
op
|
3119
3053
|
end
|
3120
3054
|
|
3121
|
-
# A convenience method for creationg an
|
3055
|
+
# A convenience method for creationg an KeywordPlanOperation instance with
|
3122
3056
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3123
3057
|
#
|
3124
3058
|
# @param path [String] the resource name of the resource to delete.
|
3125
|
-
def self.
|
3126
|
-
require "google/ads/google_ads/v1/services/
|
3127
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3059
|
+
def self.keyword_plan(path)
|
3060
|
+
require "google/ads/google_ads/v1/services/keyword_plan_service_pb.rb"
|
3061
|
+
op = Google::Ads::GoogleAds::V1::Services::KeywordPlanOperation.new
|
3128
3062
|
op["remove"] = path
|
3129
3063
|
op
|
3130
3064
|
end
|
3131
3065
|
|
3132
|
-
# A convenience method for creationg an
|
3066
|
+
# A convenience method for creationg an LabelOperation instance with
|
3133
3067
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3134
3068
|
#
|
3135
3069
|
# @param path [String] the resource name of the resource to delete.
|
3136
|
-
def self.
|
3137
|
-
require "google/ads/google_ads/v1/services/
|
3138
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3070
|
+
def self.label(path)
|
3071
|
+
require "google/ads/google_ads/v1/services/label_service_pb.rb"
|
3072
|
+
op = Google::Ads::GoogleAds::V1::Services::LabelOperation.new
|
3139
3073
|
op["remove"] = path
|
3140
3074
|
op
|
3141
3075
|
end
|
3142
3076
|
|
3143
|
-
# A convenience method for creationg an
|
3077
|
+
# A convenience method for creationg an CampaignCriterionOperation instance with
|
3144
3078
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3145
3079
|
#
|
3146
3080
|
# @param path [String] the resource name of the resource to delete.
|
3147
|
-
def self.
|
3148
|
-
require "google/ads/google_ads/v1/services/
|
3149
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3081
|
+
def self.campaign_criterion(path)
|
3082
|
+
require "google/ads/google_ads/v1/services/campaign_criterion_service_pb.rb"
|
3083
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignCriterionOperation.new
|
3150
3084
|
op["remove"] = path
|
3151
3085
|
op
|
3152
3086
|
end
|
@@ -3162,57 +3096,68 @@ module Google
|
|
3162
3096
|
op
|
3163
3097
|
end
|
3164
3098
|
|
3165
|
-
# A convenience method for creationg an
|
3099
|
+
# A convenience method for creationg an CustomInterestOperation instance with
|
3166
3100
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3167
3101
|
#
|
3168
3102
|
# @param path [String] the resource name of the resource to delete.
|
3169
|
-
def self.
|
3170
|
-
require "google/ads/google_ads/v1/services/
|
3171
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3103
|
+
def self.custom_interest(path)
|
3104
|
+
require "google/ads/google_ads/v1/services/custom_interest_service_pb.rb"
|
3105
|
+
op = Google::Ads::GoogleAds::V1::Services::CustomInterestOperation.new
|
3172
3106
|
op["remove"] = path
|
3173
3107
|
op
|
3174
3108
|
end
|
3175
3109
|
|
3176
|
-
# A convenience method for creationg an
|
3110
|
+
# A convenience method for creationg an ApplyRecommendationOperation instance with
|
3177
3111
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3178
3112
|
#
|
3179
3113
|
# @param path [String] the resource name of the resource to delete.
|
3180
|
-
def self.
|
3181
|
-
require "google/ads/google_ads/v1/services/
|
3182
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3114
|
+
def self.apply_recommendation(path)
|
3115
|
+
require "google/ads/google_ads/v1/services/recommendation_service_pb.rb"
|
3116
|
+
op = Google::Ads::GoogleAds::V1::Services::ApplyRecommendationOperation.new
|
3183
3117
|
op["remove"] = path
|
3184
3118
|
op
|
3185
3119
|
end
|
3186
3120
|
|
3187
|
-
# A convenience method for creationg an
|
3121
|
+
# A convenience method for creationg an DismissRecommendationOperation instance with
|
3188
3122
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3189
3123
|
#
|
3190
3124
|
# @param path [String] the resource name of the resource to delete.
|
3191
|
-
def self.
|
3192
|
-
require "google/ads/google_ads/v1/services/
|
3193
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3125
|
+
def self.dismiss_recommendation(path)
|
3126
|
+
require "google/ads/google_ads/v1/services/recommendation_service_pb.rb"
|
3127
|
+
op = Google::Ads::GoogleAds::V1::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
|
3194
3128
|
op["remove"] = path
|
3195
3129
|
op
|
3196
3130
|
end
|
3197
3131
|
|
3198
|
-
# A convenience method for creationg an
|
3132
|
+
# A convenience method for creationg an FeedMappingOperation instance with
|
3199
3133
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3200
3134
|
#
|
3201
3135
|
# @param path [String] the resource name of the resource to delete.
|
3202
|
-
def self.
|
3203
|
-
require "google/ads/google_ads/v1/services/
|
3204
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3136
|
+
def self.feed_mapping(path)
|
3137
|
+
require "google/ads/google_ads/v1/services/feed_mapping_service_pb.rb"
|
3138
|
+
op = Google::Ads::GoogleAds::V1::Services::FeedMappingOperation.new
|
3205
3139
|
op["remove"] = path
|
3206
3140
|
op
|
3207
3141
|
end
|
3208
3142
|
|
3209
|
-
# A convenience method for creationg an
|
3143
|
+
# A convenience method for creationg an AdGroupCriterionLabelOperation instance with
|
3210
3144
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3211
3145
|
#
|
3212
3146
|
# @param path [String] the resource name of the resource to delete.
|
3213
|
-
def self.
|
3214
|
-
require "google/ads/google_ads/v1/services/
|
3215
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3147
|
+
def self.ad_group_criterion_label(path)
|
3148
|
+
require "google/ads/google_ads/v1/services/ad_group_criterion_label_service_pb.rb"
|
3149
|
+
op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation.new
|
3150
|
+
op["remove"] = path
|
3151
|
+
op
|
3152
|
+
end
|
3153
|
+
|
3154
|
+
# A convenience method for creationg an AssetOperation instance with
|
3155
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3156
|
+
#
|
3157
|
+
# @param path [String] the resource name of the resource to delete.
|
3158
|
+
def self.asset(path)
|
3159
|
+
require "google/ads/google_ads/v1/services/asset_service_pb.rb"
|
3160
|
+
op = Google::Ads::GoogleAds::V1::Services::AssetOperation.new
|
3216
3161
|
op["remove"] = path
|
3217
3162
|
op
|
3218
3163
|
end
|
@@ -3239,6 +3184,28 @@ module Google
|
|
3239
3184
|
op
|
3240
3185
|
end
|
3241
3186
|
|
3187
|
+
# A convenience method for creationg an AdGroupBidModifierOperation instance with
|
3188
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3189
|
+
#
|
3190
|
+
# @param path [String] the resource name of the resource to delete.
|
3191
|
+
def self.ad_group_bid_modifier(path)
|
3192
|
+
require "google/ads/google_ads/v1/services/ad_group_bid_modifier_service_pb.rb"
|
3193
|
+
op = Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierOperation.new
|
3194
|
+
op["remove"] = path
|
3195
|
+
op
|
3196
|
+
end
|
3197
|
+
|
3198
|
+
# A convenience method for creationg an AdGroupCriterionOperation instance with
|
3199
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3200
|
+
#
|
3201
|
+
# @param path [String] the resource name of the resource to delete.
|
3202
|
+
def self.ad_group_criterion(path)
|
3203
|
+
require "google/ads/google_ads/v1/services/ad_group_criterion_service_pb.rb"
|
3204
|
+
op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation.new
|
3205
|
+
op["remove"] = path
|
3206
|
+
op
|
3207
|
+
end
|
3208
|
+
|
3242
3209
|
# A convenience method for creationg an AdGroupExtensionSettingOperation instance with
|
3243
3210
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3244
3211
|
#
|
@@ -3294,13 +3261,13 @@ module Google
|
|
3294
3261
|
op
|
3295
3262
|
end
|
3296
3263
|
|
3297
|
-
# A convenience method for creationg an
|
3264
|
+
# A convenience method for creationg an BiddingStrategyOperation instance with
|
3298
3265
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3299
3266
|
#
|
3300
3267
|
# @param path [String] the resource name of the resource to delete.
|
3301
|
-
def self.
|
3302
|
-
require "google/ads/google_ads/v1/services/
|
3303
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3268
|
+
def self.bidding_strategy(path)
|
3269
|
+
require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb"
|
3270
|
+
op = Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new
|
3304
3271
|
op["remove"] = path
|
3305
3272
|
op
|
3306
3273
|
end
|
@@ -3316,24 +3283,24 @@ module Google
|
|
3316
3283
|
op
|
3317
3284
|
end
|
3318
3285
|
|
3319
|
-
# A convenience method for creationg an
|
3286
|
+
# A convenience method for creationg an CampaignBudgetOperation instance with
|
3320
3287
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3321
3288
|
#
|
3322
3289
|
# @param path [String] the resource name of the resource to delete.
|
3323
|
-
def self.
|
3324
|
-
require "google/ads/google_ads/v1/services/
|
3325
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3290
|
+
def self.campaign_budget(path)
|
3291
|
+
require "google/ads/google_ads/v1/services/campaign_budget_service_pb.rb"
|
3292
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation.new
|
3326
3293
|
op["remove"] = path
|
3327
3294
|
op
|
3328
3295
|
end
|
3329
3296
|
|
3330
|
-
# A convenience method for creationg an
|
3297
|
+
# A convenience method for creationg an CampaignDraftOperation instance with
|
3331
3298
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3332
3299
|
#
|
3333
3300
|
# @param path [String] the resource name of the resource to delete.
|
3334
|
-
def self.
|
3335
|
-
require "google/ads/google_ads/v1/services/
|
3336
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3301
|
+
def self.campaign_draft(path)
|
3302
|
+
require "google/ads/google_ads/v1/services/campaign_draft_service_pb.rb"
|
3303
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation.new
|
3337
3304
|
op["remove"] = path
|
3338
3305
|
op
|
3339
3306
|
end
|
@@ -3349,6 +3316,17 @@ module Google
|
|
3349
3316
|
op
|
3350
3317
|
end
|
3351
3318
|
|
3319
|
+
# A convenience method for creationg an CampaignFeedOperation instance with
|
3320
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3321
|
+
#
|
3322
|
+
# @param path [String] the resource name of the resource to delete.
|
3323
|
+
def self.campaign_feed(path)
|
3324
|
+
require "google/ads/google_ads/v1/services/campaign_feed_service_pb.rb"
|
3325
|
+
op = Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation.new
|
3326
|
+
op["remove"] = path
|
3327
|
+
op
|
3328
|
+
end
|
3329
|
+
|
3352
3330
|
# A convenience method for creationg an CampaignOperation instance with
|
3353
3331
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3354
3332
|
#
|
@@ -3371,6 +3349,17 @@ module Google
|
|
3371
3349
|
op
|
3372
3350
|
end
|
3373
3351
|
|
3352
|
+
# A convenience method for creationg an ConversionActionOperation instance with
|
3353
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3354
|
+
#
|
3355
|
+
# @param path [String] the resource name of the resource to delete.
|
3356
|
+
def self.conversion_action(path)
|
3357
|
+
require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb"
|
3358
|
+
op = Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new
|
3359
|
+
op["remove"] = path
|
3360
|
+
op
|
3361
|
+
end
|
3362
|
+
|
3374
3363
|
# A convenience method for creationg an CustomerExtensionSettingOperation instance with
|
3375
3364
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3376
3365
|
#
|
@@ -3415,6 +3404,17 @@ module Google
|
|
3415
3404
|
op
|
3416
3405
|
end
|
3417
3406
|
|
3407
|
+
# A convenience method for creationg an CustomerOperation instance with
|
3408
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3409
|
+
#
|
3410
|
+
# @param path [String] the resource name of the resource to delete.
|
3411
|
+
def self.customer(path)
|
3412
|
+
require "google/ads/google_ads/v1/services/customer_service_pb.rb"
|
3413
|
+
op = Google::Ads::GoogleAds::V1::Services::CustomerOperation.new
|
3414
|
+
op["remove"] = path
|
3415
|
+
op
|
3416
|
+
end
|
3417
|
+
|
3418
3418
|
# A convenience method for creationg an ExtensionFeedItemOperation instance with
|
3419
3419
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3420
3420
|
#
|
@@ -3426,6 +3426,17 @@ module Google
|
|
3426
3426
|
op
|
3427
3427
|
end
|
3428
3428
|
|
3429
|
+
# A convenience method for creationg an FeedItemOperation instance with
|
3430
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3431
|
+
#
|
3432
|
+
# @param path [String] the resource name of the resource to delete.
|
3433
|
+
def self.feed_item(path)
|
3434
|
+
require "google/ads/google_ads/v1/services/feed_item_service_pb.rb"
|
3435
|
+
op = Google::Ads::GoogleAds::V1::Services::FeedItemOperation.new
|
3436
|
+
op["remove"] = path
|
3437
|
+
op
|
3438
|
+
end
|
3439
|
+
|
3429
3440
|
# A convenience method for creationg an FeedItemTargetOperation instance with
|
3430
3441
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3431
3442
|
#
|
@@ -3437,13 +3448,13 @@ module Google
|
|
3437
3448
|
op
|
3438
3449
|
end
|
3439
3450
|
|
3440
|
-
# A convenience method for creationg an
|
3451
|
+
# A convenience method for creationg an FeedOperation instance with
|
3441
3452
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3442
3453
|
#
|
3443
3454
|
# @param path [String] the resource name of the resource to delete.
|
3444
|
-
def self.
|
3445
|
-
require "google/ads/google_ads/v1/services/
|
3446
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3455
|
+
def self.feed(path)
|
3456
|
+
require "google/ads/google_ads/v1/services/feed_service_pb.rb"
|
3457
|
+
op = Google::Ads::GoogleAds::V1::Services::FeedOperation.new
|
3447
3458
|
op["remove"] = path
|
3448
3459
|
op
|
3449
3460
|
end
|
@@ -3470,6 +3481,17 @@ module Google
|
|
3470
3481
|
op
|
3471
3482
|
end
|
3472
3483
|
|
3484
|
+
# A convenience method for creationg an SharedCriterionOperation instance with
|
3485
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3486
|
+
#
|
3487
|
+
# @param path [String] the resource name of the resource to delete.
|
3488
|
+
def self.shared_criterion(path)
|
3489
|
+
require "google/ads/google_ads/v1/services/shared_criterion_service_pb.rb"
|
3490
|
+
op = Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation.new
|
3491
|
+
op["remove"] = path
|
3492
|
+
op
|
3493
|
+
end
|
3494
|
+
|
3473
3495
|
# A convenience method for creationg an SharedSetOperation instance with
|
3474
3496
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3475
3497
|
#
|
@@ -3503,28 +3525,6 @@ module Google
|
|
3503
3525
|
op
|
3504
3526
|
end
|
3505
3527
|
|
3506
|
-
# A convenience method for creationg an ApplyRecommendationOperation instance with
|
3507
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3508
|
-
#
|
3509
|
-
# @param path [String] the resource name of the resource to delete.
|
3510
|
-
def self.apply_recommendation(path)
|
3511
|
-
require "google/ads/google_ads/v1/services/recommendation_service_pb.rb"
|
3512
|
-
op = Google::Ads::GoogleAds::V1::Services::ApplyRecommendationOperation.new
|
3513
|
-
op["remove"] = path
|
3514
|
-
op
|
3515
|
-
end
|
3516
|
-
|
3517
|
-
# A convenience method for creationg an DismissRecommendationOperation instance with
|
3518
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3519
|
-
#
|
3520
|
-
# @param path [String] the resource name of the resource to delete.
|
3521
|
-
def self.dismiss_recommendation(path)
|
3522
|
-
require "google/ads/google_ads/v1/services/recommendation_service_pb.rb"
|
3523
|
-
op = Google::Ads::GoogleAds::V1::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
|
3524
|
-
op["remove"] = path
|
3525
|
-
op
|
3526
|
-
end
|
3527
|
-
|
3528
3528
|
# A convenience method for creationg an KeywordPlanCampaignOperation instance with
|
3529
3529
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3530
3530
|
#
|
@@ -3547,24 +3547,24 @@ module Google
|
|
3547
3547
|
op
|
3548
3548
|
end
|
3549
3549
|
|
3550
|
-
# A convenience method for creationg an
|
3550
|
+
# A convenience method for creationg an CustomerClientLinkOperation instance with
|
3551
3551
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3552
3552
|
#
|
3553
3553
|
# @param path [String] the resource name of the resource to delete.
|
3554
|
-
def self.
|
3555
|
-
require "google/ads/google_ads/v1/services/
|
3556
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3554
|
+
def self.customer_client_link(path)
|
3555
|
+
require "google/ads/google_ads/v1/services/customer_client_link_service_pb.rb"
|
3556
|
+
op = Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation.new
|
3557
3557
|
op["remove"] = path
|
3558
3558
|
op
|
3559
3559
|
end
|
3560
3560
|
|
3561
|
-
# A convenience method for creationg an
|
3561
|
+
# A convenience method for creationg an AccountBudgetProposalOperation instance with
|
3562
3562
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3563
3563
|
#
|
3564
3564
|
# @param path [String] the resource name of the resource to delete.
|
3565
|
-
def self.
|
3566
|
-
require "google/ads/google_ads/v1/services/
|
3567
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3565
|
+
def self.account_budget_proposal(path)
|
3566
|
+
require "google/ads/google_ads/v1/services/account_budget_proposal_service_pb.rb"
|
3567
|
+
op = Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation.new
|
3568
3568
|
op["remove"] = path
|
3569
3569
|
op
|
3570
3570
|
end
|
@@ -3580,35 +3580,35 @@ module Google
|
|
3580
3580
|
op
|
3581
3581
|
end
|
3582
3582
|
|
3583
|
-
# A convenience method for creationg an
|
3583
|
+
# A convenience method for creationg an MerchantCenterLinkOperation instance with
|
3584
3584
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3585
3585
|
#
|
3586
3586
|
# @param path [String] the resource name of the resource to delete.
|
3587
|
-
def self.
|
3588
|
-
require "google/ads/google_ads/v1/services/
|
3589
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3587
|
+
def self.merchant_center_link(path)
|
3588
|
+
require "google/ads/google_ads/v1/services/merchant_center_link_service_pb.rb"
|
3589
|
+
op = Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation.new
|
3590
3590
|
op["remove"] = path
|
3591
3591
|
op
|
3592
3592
|
end
|
3593
3593
|
|
3594
|
-
# A convenience method for creationg an
|
3594
|
+
# A convenience method for creationg an KeywordPlanNegativeKeywordOperation instance with
|
3595
3595
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3596
3596
|
#
|
3597
3597
|
# @param path [String] the resource name of the resource to delete.
|
3598
|
-
def self.
|
3599
|
-
require "google/ads/google_ads/v1/services/
|
3600
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3598
|
+
def self.keyword_plan_negative_keyword(path)
|
3599
|
+
require "google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_pb.rb"
|
3600
|
+
op = Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation.new
|
3601
3601
|
op["remove"] = path
|
3602
3602
|
op
|
3603
3603
|
end
|
3604
3604
|
|
3605
|
-
# A convenience method for creationg an
|
3605
|
+
# A convenience method for creationg an KeywordPlanAdGroupOperation instance with
|
3606
3606
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3607
3607
|
#
|
3608
3608
|
# @param path [String] the resource name of the resource to delete.
|
3609
|
-
def self.
|
3610
|
-
require "google/ads/google_ads/v1/services/
|
3611
|
-
op = Google::Ads::GoogleAds::V1::Services::
|
3609
|
+
def self.keyword_plan_ad_group(path)
|
3610
|
+
require "google/ads/google_ads/v1/services/keyword_plan_ad_group_service_pb.rb"
|
3611
|
+
op = Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation.new
|
3612
3612
|
op["remove"] = path
|
3613
3613
|
op
|
3614
3614
|
end
|