google-ads-googleads 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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::V2::Resources::FeedAttributeOperation.new
|
13
13
|
end
|
14
14
|
|
15
|
+
# Create a new CampaignExperimentOperation
|
16
|
+
#
|
17
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation] the operation
|
18
|
+
def self.campaign_experiment
|
19
|
+
require "google/ads/google_ads/v2/services/campaign_experiment_service_pb.rb"
|
20
|
+
Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation.new
|
21
|
+
end
|
22
|
+
|
15
23
|
# Create a new KeywordPlanKeywordOperation
|
16
24
|
#
|
17
25
|
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation
|
@@ -20,92 +28,28 @@ module Google
|
|
20
28
|
Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
|
21
29
|
end
|
22
30
|
|
23
|
-
# Create a new
|
24
|
-
#
|
25
|
-
# @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] the operation
|
26
|
-
def self.feed_mapping
|
27
|
-
require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
|
28
|
-
Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
|
29
|
-
end
|
30
|
-
|
31
|
-
# Create a new FeedOperation
|
32
|
-
#
|
33
|
-
# @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation
|
34
|
-
def self.feed
|
35
|
-
require "google/ads/google_ads/v2/services/feed_service_pb.rb"
|
36
|
-
Google::Ads::GoogleAds::V2::Services::FeedOperation.new
|
37
|
-
end
|
38
|
-
|
39
|
-
# Create a new AdGroupCriterionLabelOperation
|
40
|
-
#
|
41
|
-
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation] the operation
|
42
|
-
def self.ad_group_criterion_label
|
43
|
-
require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
|
44
|
-
Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
|
45
|
-
end
|
46
|
-
|
47
|
-
# Create a new ConversionActionOperation
|
48
|
-
#
|
49
|
-
# @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] the operation
|
50
|
-
def self.conversion_action
|
51
|
-
require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
|
52
|
-
Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
|
53
|
-
end
|
54
|
-
|
55
|
-
# Create a new BiddingStrategyOperation
|
56
|
-
#
|
57
|
-
# @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] the operation
|
58
|
-
def self.bidding_strategy
|
59
|
-
require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
|
60
|
-
Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
|
61
|
-
end
|
62
|
-
|
63
|
-
# Create a new AccountBudgetProposalOperation
|
64
|
-
#
|
65
|
-
# @return [Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation] the operation
|
66
|
-
def self.account_budget_proposal
|
67
|
-
require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
|
68
|
-
Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
|
69
|
-
end
|
70
|
-
|
71
|
-
# Create a new FeedItemOperation
|
72
|
-
#
|
73
|
-
# @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] the operation
|
74
|
-
def self.feed_item
|
75
|
-
require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
|
76
|
-
Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
|
77
|
-
end
|
78
|
-
|
79
|
-
# Create a new CampaignBudgetOperation
|
80
|
-
#
|
81
|
-
# @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] the operation
|
82
|
-
def self.campaign_budget
|
83
|
-
require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
|
84
|
-
Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
|
85
|
-
end
|
86
|
-
|
87
|
-
# Create a new AdGroupBidModifierOperation
|
31
|
+
# Create a new KeywordPlanOperation
|
88
32
|
#
|
89
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
90
|
-
def self.
|
91
|
-
require "google/ads/google_ads/v2/services/
|
92
|
-
Google::Ads::GoogleAds::V2::Services::
|
33
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] the operation
|
34
|
+
def self.keyword_plan
|
35
|
+
require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
|
36
|
+
Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
|
93
37
|
end
|
94
38
|
|
95
|
-
# Create a new
|
39
|
+
# Create a new LabelOperation
|
96
40
|
#
|
97
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
98
|
-
def self.
|
99
|
-
require "google/ads/google_ads/v2/services/
|
100
|
-
Google::Ads::GoogleAds::V2::Services::
|
41
|
+
# @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] the operation
|
42
|
+
def self.label
|
43
|
+
require "google/ads/google_ads/v2/services/label_service_pb.rb"
|
44
|
+
Google::Ads::GoogleAds::V2::Services::LabelOperation.new
|
101
45
|
end
|
102
46
|
|
103
|
-
# Create a new
|
47
|
+
# Create a new CampaignCriterionOperation
|
104
48
|
#
|
105
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
106
|
-
def self.
|
107
|
-
require "google/ads/google_ads/v2/services/
|
108
|
-
Google::Ads::GoogleAds::V2::Services::
|
49
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation] the operation
|
50
|
+
def self.campaign_criterion
|
51
|
+
require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
|
52
|
+
Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
|
109
53
|
end
|
110
54
|
|
111
55
|
# Create a new CampaignLabelOperation
|
@@ -116,44 +60,52 @@ module Google
|
|
116
60
|
Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
|
117
61
|
end
|
118
62
|
|
119
|
-
# Create a new
|
63
|
+
# Create a new CustomInterestOperation
|
120
64
|
#
|
121
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
122
|
-
def self.
|
123
|
-
require "google/ads/google_ads/v2/services/
|
124
|
-
Google::Ads::GoogleAds::V2::Services::
|
65
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation
|
66
|
+
def self.custom_interest
|
67
|
+
require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
|
68
|
+
Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
|
125
69
|
end
|
126
70
|
|
127
|
-
# Create a new
|
71
|
+
# Create a new ApplyRecommendationOperation
|
128
72
|
#
|
129
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
130
|
-
def self.
|
131
|
-
require "google/ads/google_ads/v2/services/
|
132
|
-
Google::Ads::GoogleAds::V2::Services::
|
73
|
+
# @return [Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation] the operation
|
74
|
+
def self.apply_recommendation
|
75
|
+
require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
|
76
|
+
Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation.new
|
133
77
|
end
|
134
78
|
|
135
|
-
# Create a new
|
79
|
+
# Create a new DismissRecommendationOperation
|
136
80
|
#
|
137
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
138
|
-
def self.
|
139
|
-
require "google/ads/google_ads/v2/services/
|
140
|
-
Google::Ads::GoogleAds::V2::Services::
|
81
|
+
# @return [Google::Ads::GoogleAds::V2::Services::DismissRecommendationRequest::DismissRecommendationOperation] the operation
|
82
|
+
def self.dismiss_recommendation
|
83
|
+
require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
|
84
|
+
Google::Ads::GoogleAds::V2::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
|
141
85
|
end
|
142
86
|
|
143
|
-
# Create a new
|
87
|
+
# Create a new FeedMappingOperation
|
144
88
|
#
|
145
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
146
|
-
def self.
|
147
|
-
require "google/ads/google_ads/v2/services/
|
148
|
-
Google::Ads::GoogleAds::V2::Services::
|
89
|
+
# @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] the operation
|
90
|
+
def self.feed_mapping
|
91
|
+
require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
|
92
|
+
Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
|
149
93
|
end
|
150
94
|
|
151
|
-
# Create a new
|
95
|
+
# Create a new AdGroupCriterionLabelOperation
|
152
96
|
#
|
153
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
154
|
-
def self.
|
155
|
-
require "google/ads/google_ads/v2/services/
|
156
|
-
Google::Ads::GoogleAds::V2::Services::
|
97
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation] the operation
|
98
|
+
def self.ad_group_criterion_label
|
99
|
+
require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
|
100
|
+
Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
|
101
|
+
end
|
102
|
+
|
103
|
+
# Create a new AssetOperation
|
104
|
+
#
|
105
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AssetOperation] the operation
|
106
|
+
def self.asset
|
107
|
+
require "google/ads/google_ads/v2/services/asset_service_pb.rb"
|
108
|
+
Google::Ads::GoogleAds::V2::Services::AssetOperation.new
|
157
109
|
end
|
158
110
|
|
159
111
|
# Create a new AdGroupAdLabelOperation
|
@@ -172,6 +124,22 @@ module Google
|
|
172
124
|
Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
|
173
125
|
end
|
174
126
|
|
127
|
+
# Create a new AdGroupBidModifierOperation
|
128
|
+
#
|
129
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] the operation
|
130
|
+
def self.ad_group_bid_modifier
|
131
|
+
require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
|
132
|
+
Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
|
133
|
+
end
|
134
|
+
|
135
|
+
# Create a new AdGroupCriterionOperation
|
136
|
+
#
|
137
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation] the operation
|
138
|
+
def self.ad_group_criterion
|
139
|
+
require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
|
140
|
+
Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
|
141
|
+
end
|
142
|
+
|
175
143
|
# Create a new AdGroupExtensionSettingOperation
|
176
144
|
#
|
177
145
|
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupExtensionSettingOperation] the operation
|
@@ -212,12 +180,12 @@ module Google
|
|
212
180
|
Google::Ads::GoogleAds::V2::Services::AdParameterOperation.new
|
213
181
|
end
|
214
182
|
|
215
|
-
# Create a new
|
183
|
+
# Create a new BiddingStrategyOperation
|
216
184
|
#
|
217
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
218
|
-
def self.
|
219
|
-
require "google/ads/google_ads/v2/services/
|
220
|
-
Google::Ads::GoogleAds::V2::Services::
|
185
|
+
# @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] the operation
|
186
|
+
def self.bidding_strategy
|
187
|
+
require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
|
188
|
+
Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
|
221
189
|
end
|
222
190
|
|
223
191
|
# Create a new CampaignBidModifierOperation
|
@@ -228,20 +196,20 @@ module Google
|
|
228
196
|
Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
|
229
197
|
end
|
230
198
|
|
231
|
-
# Create a new
|
199
|
+
# Create a new CampaignBudgetOperation
|
232
200
|
#
|
233
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
234
|
-
def self.
|
235
|
-
require "google/ads/google_ads/v2/services/
|
236
|
-
Google::Ads::GoogleAds::V2::Services::
|
201
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] the operation
|
202
|
+
def self.campaign_budget
|
203
|
+
require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
|
204
|
+
Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
|
237
205
|
end
|
238
206
|
|
239
|
-
# Create a new
|
207
|
+
# Create a new CampaignDraftOperation
|
240
208
|
#
|
241
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
242
|
-
def self.
|
243
|
-
require "google/ads/google_ads/v2/services/
|
244
|
-
Google::Ads::GoogleAds::V2::Services::
|
209
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] the operation
|
210
|
+
def self.campaign_draft
|
211
|
+
require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
|
212
|
+
Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
|
245
213
|
end
|
246
214
|
|
247
215
|
# Create a new CampaignExtensionSettingOperation
|
@@ -252,6 +220,14 @@ module Google
|
|
252
220
|
Google::Ads::GoogleAds::V2::Services::CampaignExtensionSettingOperation.new
|
253
221
|
end
|
254
222
|
|
223
|
+
# Create a new CampaignFeedOperation
|
224
|
+
#
|
225
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] the operation
|
226
|
+
def self.campaign_feed
|
227
|
+
require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
|
228
|
+
Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
|
229
|
+
end
|
230
|
+
|
255
231
|
# Create a new CampaignOperation
|
256
232
|
#
|
257
233
|
# @return [Google::Ads::GoogleAds::V2::Services::CampaignOperation] the operation
|
@@ -268,6 +244,14 @@ module Google
|
|
268
244
|
Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
|
269
245
|
end
|
270
246
|
|
247
|
+
# Create a new ConversionActionOperation
|
248
|
+
#
|
249
|
+
# @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] the operation
|
250
|
+
def self.conversion_action
|
251
|
+
require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
|
252
|
+
Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
|
253
|
+
end
|
254
|
+
|
271
255
|
# Create a new CustomerExtensionSettingOperation
|
272
256
|
#
|
273
257
|
# @return [Google::Ads::GoogleAds::V2::Services::CustomerExtensionSettingOperation] the operation
|
@@ -300,6 +284,14 @@ module Google
|
|
300
284
|
Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation.new
|
301
285
|
end
|
302
286
|
|
287
|
+
# Create a new CustomerOperation
|
288
|
+
#
|
289
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomerOperation] the operation
|
290
|
+
def self.customer
|
291
|
+
require "google/ads/google_ads/v2/services/customer_service_pb.rb"
|
292
|
+
Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
|
293
|
+
end
|
294
|
+
|
303
295
|
# Create a new ExtensionFeedItemOperation
|
304
296
|
#
|
305
297
|
# @return [Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation] the operation
|
@@ -308,6 +300,14 @@ module Google
|
|
308
300
|
Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation.new
|
309
301
|
end
|
310
302
|
|
303
|
+
# Create a new FeedItemOperation
|
304
|
+
#
|
305
|
+
# @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] the operation
|
306
|
+
def self.feed_item
|
307
|
+
require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
|
308
|
+
Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
|
309
|
+
end
|
310
|
+
|
311
311
|
# Create a new FeedItemTargetOperation
|
312
312
|
#
|
313
313
|
# @return [Google::Ads::GoogleAds::V2::Services::FeedItemTargetOperation] the operation
|
@@ -316,12 +316,12 @@ module Google
|
|
316
316
|
Google::Ads::GoogleAds::V2::Services::FeedItemTargetOperation.new
|
317
317
|
end
|
318
318
|
|
319
|
-
# Create a new
|
319
|
+
# Create a new FeedOperation
|
320
320
|
#
|
321
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
322
|
-
def self.
|
323
|
-
require "google/ads/google_ads/v2/services/
|
324
|
-
Google::Ads::GoogleAds::V2::Services::
|
321
|
+
# @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation
|
322
|
+
def self.feed
|
323
|
+
require "google/ads/google_ads/v2/services/feed_service_pb.rb"
|
324
|
+
Google::Ads::GoogleAds::V2::Services::FeedOperation.new
|
325
325
|
end
|
326
326
|
|
327
327
|
# Create a new MediaFileOperation
|
@@ -340,6 +340,14 @@ module Google
|
|
340
340
|
Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
|
341
341
|
end
|
342
342
|
|
343
|
+
# Create a new SharedCriterionOperation
|
344
|
+
#
|
345
|
+
# @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] the operation
|
346
|
+
def self.shared_criterion
|
347
|
+
require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
|
348
|
+
Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
|
349
|
+
end
|
350
|
+
|
343
351
|
# Create a new SharedSetOperation
|
344
352
|
#
|
345
353
|
# @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] the operation
|
@@ -364,22 +372,6 @@ module Google
|
|
364
372
|
Google::Ads::GoogleAds::V2::Services::MutateOperation.new
|
365
373
|
end
|
366
374
|
|
367
|
-
# Create a new ApplyRecommendationOperation
|
368
|
-
#
|
369
|
-
# @return [Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation] the operation
|
370
|
-
def self.apply_recommendation
|
371
|
-
require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
|
372
|
-
Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation.new
|
373
|
-
end
|
374
|
-
|
375
|
-
# Create a new DismissRecommendationOperation
|
376
|
-
#
|
377
|
-
# @return [Google::Ads::GoogleAds::V2::Services::DismissRecommendationRequest::DismissRecommendationOperation] the operation
|
378
|
-
def self.dismiss_recommendation
|
379
|
-
require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
|
380
|
-
Google::Ads::GoogleAds::V2::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
|
381
|
-
end
|
382
|
-
|
383
375
|
# Create a new KeywordPlanCampaignOperation
|
384
376
|
#
|
385
377
|
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] the operation
|
@@ -388,6 +380,14 @@ module Google
|
|
388
380
|
Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
|
389
381
|
end
|
390
382
|
|
383
|
+
# Create a new AdOperation
|
384
|
+
#
|
385
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdOperation] the operation
|
386
|
+
def self.ad
|
387
|
+
require "google/ads/google_ads/v2/services/ad_service_pb.rb"
|
388
|
+
Google::Ads::GoogleAds::V2::Services::AdOperation.new
|
389
|
+
end
|
390
|
+
|
391
391
|
# Create a new BillingSetupOperation
|
392
392
|
#
|
393
393
|
# @return [Google::Ads::GoogleAds::V2::Services::BillingSetupOperation] the operation
|
@@ -396,20 +396,20 @@ module Google
|
|
396
396
|
Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
|
397
397
|
end
|
398
398
|
|
399
|
-
# Create a new
|
399
|
+
# Create a new CustomerClientLinkOperation
|
400
400
|
#
|
401
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
402
|
-
def self.
|
403
|
-
require "google/ads/google_ads/v2/services/
|
404
|
-
Google::Ads::GoogleAds::V2::Services::
|
401
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] the operation
|
402
|
+
def self.customer_client_link
|
403
|
+
require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
|
404
|
+
Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
|
405
405
|
end
|
406
406
|
|
407
|
-
# Create a new
|
407
|
+
# Create a new AccountBudgetProposalOperation
|
408
408
|
#
|
409
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
410
|
-
def self.
|
411
|
-
require "google/ads/google_ads/v2/services/
|
412
|
-
Google::Ads::GoogleAds::V2::Services::
|
409
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation] the operation
|
410
|
+
def self.account_budget_proposal
|
411
|
+
require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
|
412
|
+
Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
|
413
413
|
end
|
414
414
|
|
415
415
|
# Create a new CustomerManagerLinkOperation
|
@@ -420,6 +420,14 @@ module Google
|
|
420
420
|
Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation.new
|
421
421
|
end
|
422
422
|
|
423
|
+
# Create a new MerchantCenterLinkOperation
|
424
|
+
#
|
425
|
+
# @return [Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation] the operation
|
426
|
+
def self.merchant_center_link
|
427
|
+
require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
|
428
|
+
Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
|
429
|
+
end
|
430
|
+
|
423
431
|
# Create a new KeywordPlanNegativeKeywordOperation
|
424
432
|
#
|
425
433
|
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] the operation
|
@@ -428,20 +436,12 @@ module Google
|
|
428
436
|
Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
|
429
437
|
end
|
430
438
|
|
431
|
-
# Create a new
|
432
|
-
#
|
433
|
-
# @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation
|
434
|
-
def self.custom_interest
|
435
|
-
require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
|
436
|
-
Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
|
437
|
-
end
|
438
|
-
|
439
|
-
# Create a new CustomerClientLinkOperation
|
439
|
+
# Create a new KeywordPlanAdGroupOperation
|
440
440
|
#
|
441
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
442
|
-
def self.
|
443
|
-
require "google/ads/google_ads/v2/services/
|
444
|
-
Google::Ads::GoogleAds::V2::Services::
|
441
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] the operation
|
442
|
+
def self.keyword_plan_ad_group
|
443
|
+
require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
|
444
|
+
Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
|
445
445
|
end
|
446
446
|
|
447
447
|
# Get a reference module containing convenience methods for creating
|
@@ -494,351 +494,276 @@ module Google
|
|
494
494
|
op
|
495
495
|
end
|
496
496
|
|
497
|
-
# A convenience method for creating an
|
498
|
-
# its "create" field prepopulated with an
|
497
|
+
# A convenience method for creating an KeywordPlanOperation instance with
|
498
|
+
# its "create" field prepopulated with an KeywordPlan instance.
|
499
499
|
#
|
500
|
-
# @overload
|
501
|
-
# creates an operation instance, yielding a newly fabricated
|
500
|
+
# @overload keyword_plan
|
501
|
+
# creates an operation instance, yielding a newly fabricated KeywordPlan
|
502
502
|
# which can be used for setting attributes on the newly created resource
|
503
|
-
# @overload
|
503
|
+
# @overload keyword_plan(res)
|
504
504
|
# creates an operation instance, with the resource to be created
|
505
505
|
# set to the passed value (res)
|
506
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
506
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlan]
|
507
507
|
# a resource instance to be used for creation in this operation.
|
508
508
|
#
|
509
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
510
|
-
def self.
|
511
|
-
require "google/ads/google_ads/v2/services/
|
512
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
509
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] instance that will create the resource
|
510
|
+
def self.keyword_plan(res = nil, &blk)
|
511
|
+
require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
|
512
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
|
513
513
|
if !res.nil?
|
514
514
|
op["create"] = res
|
515
515
|
elsif !blk.nil?
|
516
|
-
op["create"] = Factories::V2::Resources.
|
516
|
+
op["create"] = Factories::V2::Resources.keyword_plan(&blk)
|
517
517
|
end
|
518
518
|
|
519
519
|
op
|
520
520
|
end
|
521
521
|
|
522
|
-
# A convenience method for creating an
|
523
|
-
# its "create" field prepopulated with an
|
522
|
+
# A convenience method for creating an LabelOperation instance with
|
523
|
+
# its "create" field prepopulated with an Label instance.
|
524
524
|
#
|
525
|
-
# @overload
|
526
|
-
# creates an operation instance, yielding a newly fabricated
|
525
|
+
# @overload label
|
526
|
+
# creates an operation instance, yielding a newly fabricated Label
|
527
527
|
# which can be used for setting attributes on the newly created resource
|
528
|
-
# @overload
|
528
|
+
# @overload label(res)
|
529
529
|
# creates an operation instance, with the resource to be created
|
530
530
|
# set to the passed value (res)
|
531
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
531
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::Label]
|
532
532
|
# a resource instance to be used for creation in this operation.
|
533
533
|
#
|
534
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
535
|
-
def self.
|
536
|
-
require "google/ads/google_ads/v2/services/
|
537
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
534
|
+
# @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] instance that will create the resource
|
535
|
+
def self.label(res = nil, &blk)
|
536
|
+
require "google/ads/google_ads/v2/services/label_service_pb.rb"
|
537
|
+
op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
|
538
538
|
if !res.nil?
|
539
539
|
op["create"] = res
|
540
540
|
elsif !blk.nil?
|
541
|
-
op["create"] = Factories::V2::Resources.
|
541
|
+
op["create"] = Factories::V2::Resources.label(&blk)
|
542
542
|
end
|
543
543
|
|
544
544
|
op
|
545
545
|
end
|
546
546
|
|
547
|
-
# A convenience method for creating an
|
548
|
-
# its "create" field prepopulated with an
|
547
|
+
# A convenience method for creating an CampaignCriterionOperation instance with
|
548
|
+
# its "create" field prepopulated with an CampaignCriterion instance.
|
549
549
|
#
|
550
|
-
# @overload
|
551
|
-
# creates an operation instance, yielding a newly fabricated
|
550
|
+
# @overload campaign_criterion
|
551
|
+
# creates an operation instance, yielding a newly fabricated CampaignCriterion
|
552
552
|
# which can be used for setting attributes on the newly created resource
|
553
|
-
# @overload
|
553
|
+
# @overload campaign_criterion(res)
|
554
554
|
# creates an operation instance, with the resource to be created
|
555
555
|
# set to the passed value (res)
|
556
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
556
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CampaignCriterion]
|
557
557
|
# a resource instance to be used for creation in this operation.
|
558
558
|
#
|
559
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
560
|
-
def self.
|
561
|
-
require "google/ads/google_ads/v2/services/
|
562
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
559
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation] instance that will create the resource
|
560
|
+
def self.campaign_criterion(res = nil, &blk)
|
561
|
+
require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
|
562
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
|
563
563
|
if !res.nil?
|
564
564
|
op["create"] = res
|
565
565
|
elsif !blk.nil?
|
566
|
-
op["create"] = Factories::V2::Resources.
|
566
|
+
op["create"] = Factories::V2::Resources.campaign_criterion(&blk)
|
567
567
|
end
|
568
568
|
|
569
569
|
op
|
570
570
|
end
|
571
571
|
|
572
|
-
# A convenience method for creating an
|
573
|
-
# its "create" field prepopulated with an
|
572
|
+
# A convenience method for creating an CampaignLabelOperation instance with
|
573
|
+
# its "create" field prepopulated with an CampaignLabel instance.
|
574
574
|
#
|
575
|
-
# @overload
|
576
|
-
# creates an operation instance, yielding a newly fabricated
|
575
|
+
# @overload campaign_label
|
576
|
+
# creates an operation instance, yielding a newly fabricated CampaignLabel
|
577
577
|
# which can be used for setting attributes on the newly created resource
|
578
|
-
# @overload
|
578
|
+
# @overload campaign_label(res)
|
579
579
|
# creates an operation instance, with the resource to be created
|
580
580
|
# set to the passed value (res)
|
581
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
581
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CampaignLabel]
|
582
582
|
# a resource instance to be used for creation in this operation.
|
583
583
|
#
|
584
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
585
|
-
def self.
|
586
|
-
require "google/ads/google_ads/v2/services/
|
587
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
584
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation] instance that will create the resource
|
585
|
+
def self.campaign_label(res = nil, &blk)
|
586
|
+
require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
|
587
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
|
588
588
|
if !res.nil?
|
589
589
|
op["create"] = res
|
590
590
|
elsif !blk.nil?
|
591
|
-
op["create"] = Factories::V2::Resources.
|
591
|
+
op["create"] = Factories::V2::Resources.campaign_label(&blk)
|
592
592
|
end
|
593
593
|
|
594
594
|
op
|
595
595
|
end
|
596
596
|
|
597
|
-
# A convenience method for creating an
|
598
|
-
# its "create" field prepopulated with an
|
597
|
+
# A convenience method for creating an CustomInterestOperation instance with
|
598
|
+
# its "create" field prepopulated with an CustomInterest instance.
|
599
599
|
#
|
600
|
-
# @overload
|
601
|
-
# creates an operation instance, yielding a newly fabricated
|
600
|
+
# @overload custom_interest
|
601
|
+
# creates an operation instance, yielding a newly fabricated CustomInterest
|
602
602
|
# which can be used for setting attributes on the newly created resource
|
603
|
-
# @overload
|
603
|
+
# @overload custom_interest(res)
|
604
604
|
# creates an operation instance, with the resource to be created
|
605
605
|
# set to the passed value (res)
|
606
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
606
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CustomInterest]
|
607
607
|
# a resource instance to be used for creation in this operation.
|
608
608
|
#
|
609
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
610
|
-
def self.
|
611
|
-
require "google/ads/google_ads/v2/services/
|
612
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
609
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] instance that will create the resource
|
610
|
+
def self.custom_interest(res = nil, &blk)
|
611
|
+
require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
|
612
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
|
613
613
|
if !res.nil?
|
614
614
|
op["create"] = res
|
615
615
|
elsif !blk.nil?
|
616
|
-
op["create"] = Factories::V2::Resources.
|
616
|
+
op["create"] = Factories::V2::Resources.custom_interest(&blk)
|
617
617
|
end
|
618
618
|
|
619
619
|
op
|
620
620
|
end
|
621
621
|
|
622
|
-
# A convenience method for creating an
|
623
|
-
# its "create" field prepopulated with an
|
622
|
+
# A convenience method for creating an FeedMappingOperation instance with
|
623
|
+
# its "create" field prepopulated with an FeedMapping instance.
|
624
624
|
#
|
625
|
-
# @overload
|
626
|
-
# creates an operation instance, yielding a newly fabricated
|
625
|
+
# @overload feed_mapping
|
626
|
+
# creates an operation instance, yielding a newly fabricated FeedMapping
|
627
627
|
# which can be used for setting attributes on the newly created resource
|
628
|
-
# @overload
|
628
|
+
# @overload feed_mapping(res)
|
629
629
|
# creates an operation instance, with the resource to be created
|
630
630
|
# set to the passed value (res)
|
631
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
631
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::FeedMapping]
|
632
632
|
# a resource instance to be used for creation in this operation.
|
633
633
|
#
|
634
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
635
|
-
def self.
|
636
|
-
require "google/ads/google_ads/v2/services/
|
637
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
634
|
+
# @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] instance that will create the resource
|
635
|
+
def self.feed_mapping(res = nil, &blk)
|
636
|
+
require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
|
637
|
+
op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
|
638
638
|
if !res.nil?
|
639
639
|
op["create"] = res
|
640
640
|
elsif !blk.nil?
|
641
|
-
op["create"] = Factories::V2::Resources.
|
641
|
+
op["create"] = Factories::V2::Resources.feed_mapping(&blk)
|
642
642
|
end
|
643
643
|
|
644
644
|
op
|
645
645
|
end
|
646
646
|
|
647
|
-
# A convenience method for creating an
|
648
|
-
# its "create" field prepopulated with an
|
647
|
+
# A convenience method for creating an AdGroupCriterionLabelOperation instance with
|
648
|
+
# its "create" field prepopulated with an AdGroupCriterionLabel instance.
|
649
649
|
#
|
650
|
-
# @overload
|
651
|
-
# creates an operation instance, yielding a newly fabricated
|
650
|
+
# @overload ad_group_criterion_label
|
651
|
+
# creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
|
652
652
|
# which can be used for setting attributes on the newly created resource
|
653
|
-
# @overload
|
653
|
+
# @overload ad_group_criterion_label(res)
|
654
654
|
# creates an operation instance, with the resource to be created
|
655
655
|
# set to the passed value (res)
|
656
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
656
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupCriterionLabel]
|
657
657
|
# a resource instance to be used for creation in this operation.
|
658
658
|
#
|
659
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
660
|
-
def self.
|
661
|
-
require "google/ads/google_ads/v2/services/
|
662
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
659
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation] instance that will create the resource
|
660
|
+
def self.ad_group_criterion_label(res = nil, &blk)
|
661
|
+
require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
|
662
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
|
663
663
|
if !res.nil?
|
664
664
|
op["create"] = res
|
665
665
|
elsif !blk.nil?
|
666
|
-
op["create"] = Factories::V2::Resources.
|
666
|
+
op["create"] = Factories::V2::Resources.ad_group_criterion_label(&blk)
|
667
667
|
end
|
668
668
|
|
669
669
|
op
|
670
670
|
end
|
671
671
|
|
672
|
-
# A convenience method for creating an
|
673
|
-
# its "create" field prepopulated with an
|
672
|
+
# A convenience method for creating an AssetOperation instance with
|
673
|
+
# its "create" field prepopulated with an Asset instance.
|
674
674
|
#
|
675
|
-
# @overload
|
676
|
-
# creates an operation instance, yielding a newly fabricated
|
675
|
+
# @overload asset
|
676
|
+
# creates an operation instance, yielding a newly fabricated Asset
|
677
677
|
# which can be used for setting attributes on the newly created resource
|
678
|
-
# @overload
|
678
|
+
# @overload asset(res)
|
679
679
|
# creates an operation instance, with the resource to be created
|
680
680
|
# set to the passed value (res)
|
681
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
681
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::Asset]
|
682
682
|
# a resource instance to be used for creation in this operation.
|
683
683
|
#
|
684
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
685
|
-
def self.
|
686
|
-
require "google/ads/google_ads/v2/services/
|
687
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
684
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AssetOperation] instance that will create the resource
|
685
|
+
def self.asset(res = nil, &blk)
|
686
|
+
require "google/ads/google_ads/v2/services/asset_service_pb.rb"
|
687
|
+
op = Google::Ads::GoogleAds::V2::Services::AssetOperation.new
|
688
688
|
if !res.nil?
|
689
689
|
op["create"] = res
|
690
690
|
elsif !blk.nil?
|
691
|
-
op["create"] = Factories::V2::Resources.
|
691
|
+
op["create"] = Factories::V2::Resources.asset(&blk)
|
692
692
|
end
|
693
693
|
|
694
694
|
op
|
695
695
|
end
|
696
696
|
|
697
|
-
# A convenience method for creating an
|
698
|
-
# its "create" field prepopulated with an
|
697
|
+
# A convenience method for creating an AdGroupAdLabelOperation instance with
|
698
|
+
# its "create" field prepopulated with an AdGroupAdLabel instance.
|
699
699
|
#
|
700
|
-
# @overload
|
701
|
-
# creates an operation instance, yielding a newly fabricated
|
700
|
+
# @overload ad_group_ad_label
|
701
|
+
# creates an operation instance, yielding a newly fabricated AdGroupAdLabel
|
702
702
|
# which can be used for setting attributes on the newly created resource
|
703
|
-
# @overload
|
703
|
+
# @overload ad_group_ad_label(res)
|
704
704
|
# creates an operation instance, with the resource to be created
|
705
705
|
# set to the passed value (res)
|
706
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
707
|
-
# a resource instance to be used for creation in this operation.
|
708
|
-
#
|
709
|
-
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] instance that will create the resource
|
710
|
-
def self.ad_group_bid_modifier(res = nil, &blk)
|
711
|
-
require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
|
712
|
-
op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
|
713
|
-
if !res.nil?
|
714
|
-
op["create"] = res
|
715
|
-
elsif !blk.nil?
|
716
|
-
op["create"] = Factories::V2::Resources.ad_group_bid_modifier(&blk)
|
717
|
-
end
|
718
|
-
|
719
|
-
op
|
720
|
-
end
|
721
|
-
|
722
|
-
# A convenience method for creating an CampaignLabelOperation instance with
|
723
|
-
# its "create" field prepopulated with an CampaignLabel instance.
|
724
|
-
#
|
725
|
-
# @overload campaign_label
|
726
|
-
# creates an operation instance, yielding a newly fabricated CampaignLabel
|
727
|
-
# which can be used for setting attributes on the newly created resource
|
728
|
-
# @overload campaign_label(res)
|
729
|
-
# creates an operation instance, with the resource to be created
|
730
|
-
# set to the passed value (res)
|
731
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::CampaignLabel]
|
732
|
-
# a resource instance to be used for creation in this operation.
|
733
|
-
#
|
734
|
-
# @return [Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation] instance that will create the resource
|
735
|
-
def self.campaign_label(res = nil, &blk)
|
736
|
-
require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
|
737
|
-
op = Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
|
738
|
-
if !res.nil?
|
739
|
-
op["create"] = res
|
740
|
-
elsif !blk.nil?
|
741
|
-
op["create"] = Factories::V2::Resources.campaign_label(&blk)
|
742
|
-
end
|
743
|
-
|
744
|
-
op
|
745
|
-
end
|
746
|
-
|
747
|
-
# A convenience method for creating an SharedCriterionOperation instance with
|
748
|
-
# its "create" field prepopulated with an SharedCriterion instance.
|
749
|
-
#
|
750
|
-
# @overload shared_criterion
|
751
|
-
# creates an operation instance, yielding a newly fabricated SharedCriterion
|
752
|
-
# which can be used for setting attributes on the newly created resource
|
753
|
-
# @overload shared_criterion(res)
|
754
|
-
# creates an operation instance, with the resource to be created
|
755
|
-
# set to the passed value (res)
|
756
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::SharedCriterion]
|
757
|
-
# a resource instance to be used for creation in this operation.
|
758
|
-
#
|
759
|
-
# @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] instance that will create the resource
|
760
|
-
def self.shared_criterion(res = nil, &blk)
|
761
|
-
require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
|
762
|
-
op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
|
763
|
-
if !res.nil?
|
764
|
-
op["create"] = res
|
765
|
-
elsif !blk.nil?
|
766
|
-
op["create"] = Factories::V2::Resources.shared_criterion(&blk)
|
767
|
-
end
|
768
|
-
|
769
|
-
op
|
770
|
-
end
|
771
|
-
|
772
|
-
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
773
|
-
# its "create" field prepopulated with an KeywordPlanAdGroup instance.
|
774
|
-
#
|
775
|
-
# @overload keyword_plan_ad_group
|
776
|
-
# creates an operation instance, yielding a newly fabricated KeywordPlanAdGroup
|
777
|
-
# which can be used for setting attributes on the newly created resource
|
778
|
-
# @overload keyword_plan_ad_group(res)
|
779
|
-
# creates an operation instance, with the resource to be created
|
780
|
-
# set to the passed value (res)
|
781
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup]
|
706
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupAdLabel]
|
782
707
|
# a resource instance to be used for creation in this operation.
|
783
708
|
#
|
784
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
785
|
-
def self.
|
786
|
-
require "google/ads/google_ads/v2/services/
|
787
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
709
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] instance that will create the resource
|
710
|
+
def self.ad_group_ad_label(res = nil, &blk)
|
711
|
+
require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
|
712
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
|
788
713
|
if !res.nil?
|
789
714
|
op["create"] = res
|
790
715
|
elsif !blk.nil?
|
791
|
-
op["create"] = Factories::V2::Resources.
|
716
|
+
op["create"] = Factories::V2::Resources.ad_group_ad_label(&blk)
|
792
717
|
end
|
793
718
|
|
794
719
|
op
|
795
720
|
end
|
796
721
|
|
797
|
-
# A convenience method for creating an
|
798
|
-
# its "create" field prepopulated with an
|
722
|
+
# A convenience method for creating an AdGroupAdOperation instance with
|
723
|
+
# its "create" field prepopulated with an AdGroupAd instance.
|
799
724
|
#
|
800
|
-
# @overload
|
801
|
-
# creates an operation instance, yielding a newly fabricated
|
725
|
+
# @overload ad_group_ad
|
726
|
+
# creates an operation instance, yielding a newly fabricated AdGroupAd
|
802
727
|
# which can be used for setting attributes on the newly created resource
|
803
|
-
# @overload
|
728
|
+
# @overload ad_group_ad(res)
|
804
729
|
# creates an operation instance, with the resource to be created
|
805
730
|
# set to the passed value (res)
|
806
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
731
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupAd]
|
807
732
|
# a resource instance to be used for creation in this operation.
|
808
733
|
#
|
809
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
810
|
-
def self.
|
811
|
-
require "google/ads/google_ads/v2/services/
|
812
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
734
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] instance that will create the resource
|
735
|
+
def self.ad_group_ad(res = nil, &blk)
|
736
|
+
require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
|
737
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
|
813
738
|
if !res.nil?
|
814
739
|
op["create"] = res
|
815
740
|
elsif !blk.nil?
|
816
|
-
op["create"] = Factories::V2::Resources.
|
741
|
+
op["create"] = Factories::V2::Resources.ad_group_ad(&blk)
|
817
742
|
end
|
818
743
|
|
819
744
|
op
|
820
745
|
end
|
821
746
|
|
822
|
-
# A convenience method for creating an
|
823
|
-
# its "create" field prepopulated with an
|
747
|
+
# A convenience method for creating an AdGroupBidModifierOperation instance with
|
748
|
+
# its "create" field prepopulated with an AdGroupBidModifier instance.
|
824
749
|
#
|
825
|
-
# @overload
|
826
|
-
# creates an operation instance, yielding a newly fabricated
|
750
|
+
# @overload ad_group_bid_modifier
|
751
|
+
# creates an operation instance, yielding a newly fabricated AdGroupBidModifier
|
827
752
|
# which can be used for setting attributes on the newly created resource
|
828
|
-
# @overload
|
753
|
+
# @overload ad_group_bid_modifier(res)
|
829
754
|
# creates an operation instance, with the resource to be created
|
830
755
|
# set to the passed value (res)
|
831
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
756
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier]
|
832
757
|
# a resource instance to be used for creation in this operation.
|
833
758
|
#
|
834
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
835
|
-
def self.
|
836
|
-
require "google/ads/google_ads/v2/services/
|
837
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
759
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] instance that will create the resource
|
760
|
+
def self.ad_group_bid_modifier(res = nil, &blk)
|
761
|
+
require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
|
762
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
|
838
763
|
if !res.nil?
|
839
764
|
op["create"] = res
|
840
765
|
elsif !blk.nil?
|
841
|
-
op["create"] = Factories::V2::Resources.
|
766
|
+
op["create"] = Factories::V2::Resources.ad_group_bid_modifier(&blk)
|
842
767
|
end
|
843
768
|
|
844
769
|
op
|
@@ -869,56 +794,6 @@ module Google
|
|
869
794
|
op
|
870
795
|
end
|
871
796
|
|
872
|
-
# A convenience method for creating an AdGroupAdLabelOperation instance with
|
873
|
-
# its "create" field prepopulated with an AdGroupAdLabel instance.
|
874
|
-
#
|
875
|
-
# @overload ad_group_ad_label
|
876
|
-
# creates an operation instance, yielding a newly fabricated AdGroupAdLabel
|
877
|
-
# which can be used for setting attributes on the newly created resource
|
878
|
-
# @overload ad_group_ad_label(res)
|
879
|
-
# creates an operation instance, with the resource to be created
|
880
|
-
# set to the passed value (res)
|
881
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupAdLabel]
|
882
|
-
# a resource instance to be used for creation in this operation.
|
883
|
-
#
|
884
|
-
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] instance that will create the resource
|
885
|
-
def self.ad_group_ad_label(res = nil, &blk)
|
886
|
-
require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
|
887
|
-
op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
|
888
|
-
if !res.nil?
|
889
|
-
op["create"] = res
|
890
|
-
elsif !blk.nil?
|
891
|
-
op["create"] = Factories::V2::Resources.ad_group_ad_label(&blk)
|
892
|
-
end
|
893
|
-
|
894
|
-
op
|
895
|
-
end
|
896
|
-
|
897
|
-
# A convenience method for creating an AdGroupAdOperation instance with
|
898
|
-
# its "create" field prepopulated with an AdGroupAd instance.
|
899
|
-
#
|
900
|
-
# @overload ad_group_ad
|
901
|
-
# creates an operation instance, yielding a newly fabricated AdGroupAd
|
902
|
-
# which can be used for setting attributes on the newly created resource
|
903
|
-
# @overload ad_group_ad(res)
|
904
|
-
# creates an operation instance, with the resource to be created
|
905
|
-
# set to the passed value (res)
|
906
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupAd]
|
907
|
-
# a resource instance to be used for creation in this operation.
|
908
|
-
#
|
909
|
-
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] instance that will create the resource
|
910
|
-
def self.ad_group_ad(res = nil, &blk)
|
911
|
-
require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
|
912
|
-
op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
|
913
|
-
if !res.nil?
|
914
|
-
op["create"] = res
|
915
|
-
elsif !blk.nil?
|
916
|
-
op["create"] = Factories::V2::Resources.ad_group_ad(&blk)
|
917
|
-
end
|
918
|
-
|
919
|
-
op
|
920
|
-
end
|
921
|
-
|
922
797
|
# A convenience method for creating an AdGroupExtensionSettingOperation instance with
|
923
798
|
# its "create" field prepopulated with an AdGroupExtensionSetting instance.
|
924
799
|
#
|
@@ -1044,26 +919,26 @@ module Google
|
|
1044
919
|
op
|
1045
920
|
end
|
1046
921
|
|
1047
|
-
# A convenience method for creating an
|
1048
|
-
# its "create" field prepopulated with an
|
922
|
+
# A convenience method for creating an BiddingStrategyOperation instance with
|
923
|
+
# its "create" field prepopulated with an BiddingStrategy instance.
|
1049
924
|
#
|
1050
|
-
# @overload
|
1051
|
-
# creates an operation instance, yielding a newly fabricated
|
925
|
+
# @overload bidding_strategy
|
926
|
+
# creates an operation instance, yielding a newly fabricated BiddingStrategy
|
1052
927
|
# which can be used for setting attributes on the newly created resource
|
1053
|
-
# @overload
|
928
|
+
# @overload bidding_strategy(res)
|
1054
929
|
# creates an operation instance, with the resource to be created
|
1055
930
|
# set to the passed value (res)
|
1056
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
931
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy]
|
1057
932
|
# a resource instance to be used for creation in this operation.
|
1058
933
|
#
|
1059
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1060
|
-
def self.
|
1061
|
-
require "google/ads/google_ads/v2/services/
|
1062
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
934
|
+
# @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] instance that will create the resource
|
935
|
+
def self.bidding_strategy(res = nil, &blk)
|
936
|
+
require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
|
937
|
+
op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
|
1063
938
|
if !res.nil?
|
1064
939
|
op["create"] = res
|
1065
940
|
elsif !blk.nil?
|
1066
|
-
op["create"] = Factories::V2::Resources.
|
941
|
+
op["create"] = Factories::V2::Resources.bidding_strategy(&blk)
|
1067
942
|
end
|
1068
943
|
|
1069
944
|
op
|
@@ -1094,26 +969,51 @@ module Google
|
|
1094
969
|
op
|
1095
970
|
end
|
1096
971
|
|
1097
|
-
# A convenience method for creating an
|
1098
|
-
# its "create" field prepopulated with an
|
972
|
+
# A convenience method for creating an CampaignBudgetOperation instance with
|
973
|
+
# its "create" field prepopulated with an CampaignBudget instance.
|
1099
974
|
#
|
1100
|
-
# @overload
|
1101
|
-
# creates an operation instance, yielding a newly fabricated
|
975
|
+
# @overload campaign_budget
|
976
|
+
# creates an operation instance, yielding a newly fabricated CampaignBudget
|
1102
977
|
# which can be used for setting attributes on the newly created resource
|
1103
|
-
# @overload
|
978
|
+
# @overload campaign_budget(res)
|
1104
979
|
# creates an operation instance, with the resource to be created
|
1105
980
|
# set to the passed value (res)
|
1106
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
981
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CampaignBudget]
|
1107
982
|
# a resource instance to be used for creation in this operation.
|
1108
983
|
#
|
1109
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1110
|
-
def self.
|
1111
|
-
require "google/ads/google_ads/v2/services/
|
1112
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
984
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] instance that will create the resource
|
985
|
+
def self.campaign_budget(res = nil, &blk)
|
986
|
+
require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
|
987
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
|
1113
988
|
if !res.nil?
|
1114
989
|
op["create"] = res
|
1115
990
|
elsif !blk.nil?
|
1116
|
-
op["create"] = Factories::V2::Resources.
|
991
|
+
op["create"] = Factories::V2::Resources.campaign_budget(&blk)
|
992
|
+
end
|
993
|
+
|
994
|
+
op
|
995
|
+
end
|
996
|
+
|
997
|
+
# A convenience method for creating an CampaignDraftOperation instance with
|
998
|
+
# its "create" field prepopulated with an CampaignDraft instance.
|
999
|
+
#
|
1000
|
+
# @overload campaign_draft
|
1001
|
+
# creates an operation instance, yielding a newly fabricated CampaignDraft
|
1002
|
+
# which can be used for setting attributes on the newly created resource
|
1003
|
+
# @overload campaign_draft(res)
|
1004
|
+
# creates an operation instance, with the resource to be created
|
1005
|
+
# set to the passed value (res)
|
1006
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CampaignDraft]
|
1007
|
+
# a resource instance to be used for creation in this operation.
|
1008
|
+
#
|
1009
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] instance that will create the resource
|
1010
|
+
def self.campaign_draft(res = nil, &blk)
|
1011
|
+
require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
|
1012
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
|
1013
|
+
if !res.nil?
|
1014
|
+
op["create"] = res
|
1015
|
+
elsif !blk.nil?
|
1016
|
+
op["create"] = Factories::V2::Resources.campaign_draft(&blk)
|
1117
1017
|
end
|
1118
1018
|
|
1119
1019
|
op
|
@@ -1144,11 +1044,36 @@ module Google
|
|
1144
1044
|
op
|
1145
1045
|
end
|
1146
1046
|
|
1147
|
-
# A convenience method for creating an
|
1148
|
-
# its "create" field prepopulated with an
|
1047
|
+
# A convenience method for creating an CampaignFeedOperation instance with
|
1048
|
+
# its "create" field prepopulated with an CampaignFeed instance.
|
1149
1049
|
#
|
1150
|
-
# @overload
|
1151
|
-
# creates an operation instance, yielding a newly fabricated
|
1050
|
+
# @overload campaign_feed
|
1051
|
+
# creates an operation instance, yielding a newly fabricated CampaignFeed
|
1052
|
+
# which can be used for setting attributes on the newly created resource
|
1053
|
+
# @overload campaign_feed(res)
|
1054
|
+
# creates an operation instance, with the resource to be created
|
1055
|
+
# set to the passed value (res)
|
1056
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CampaignFeed]
|
1057
|
+
# a resource instance to be used for creation in this operation.
|
1058
|
+
#
|
1059
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] instance that will create the resource
|
1060
|
+
def self.campaign_feed(res = nil, &blk)
|
1061
|
+
require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
|
1062
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
|
1063
|
+
if !res.nil?
|
1064
|
+
op["create"] = res
|
1065
|
+
elsif !blk.nil?
|
1066
|
+
op["create"] = Factories::V2::Resources.campaign_feed(&blk)
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
op
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
# A convenience method for creating an CampaignOperation instance with
|
1073
|
+
# its "create" field prepopulated with an Campaign instance.
|
1074
|
+
#
|
1075
|
+
# @overload campaign
|
1076
|
+
# creates an operation instance, yielding a newly fabricated Campaign
|
1152
1077
|
# which can be used for setting attributes on the newly created resource
|
1153
1078
|
# @overload campaign(res)
|
1154
1079
|
# creates an operation instance, with the resource to be created
|
@@ -1194,6 +1119,31 @@ module Google
|
|
1194
1119
|
op
|
1195
1120
|
end
|
1196
1121
|
|
1122
|
+
# A convenience method for creating an ConversionActionOperation instance with
|
1123
|
+
# its "create" field prepopulated with an ConversionAction instance.
|
1124
|
+
#
|
1125
|
+
# @overload conversion_action
|
1126
|
+
# creates an operation instance, yielding a newly fabricated ConversionAction
|
1127
|
+
# which can be used for setting attributes on the newly created resource
|
1128
|
+
# @overload conversion_action(res)
|
1129
|
+
# creates an operation instance, with the resource to be created
|
1130
|
+
# set to the passed value (res)
|
1131
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::ConversionAction]
|
1132
|
+
# a resource instance to be used for creation in this operation.
|
1133
|
+
#
|
1134
|
+
# @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] instance that will create the resource
|
1135
|
+
def self.conversion_action(res = nil, &blk)
|
1136
|
+
require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
|
1137
|
+
op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
|
1138
|
+
if !res.nil?
|
1139
|
+
op["create"] = res
|
1140
|
+
elsif !blk.nil?
|
1141
|
+
op["create"] = Factories::V2::Resources.conversion_action(&blk)
|
1142
|
+
end
|
1143
|
+
|
1144
|
+
op
|
1145
|
+
end
|
1146
|
+
|
1197
1147
|
# A convenience method for creating an CustomerExtensionSettingOperation instance with
|
1198
1148
|
# its "create" field prepopulated with an CustomerExtensionSetting instance.
|
1199
1149
|
#
|
@@ -1319,6 +1269,31 @@ module Google
|
|
1319
1269
|
op
|
1320
1270
|
end
|
1321
1271
|
|
1272
|
+
# A convenience method for creating an FeedItemOperation instance with
|
1273
|
+
# its "create" field prepopulated with an FeedItem instance.
|
1274
|
+
#
|
1275
|
+
# @overload feed_item
|
1276
|
+
# creates an operation instance, yielding a newly fabricated FeedItem
|
1277
|
+
# which can be used for setting attributes on the newly created resource
|
1278
|
+
# @overload feed_item(res)
|
1279
|
+
# creates an operation instance, with the resource to be created
|
1280
|
+
# set to the passed value (res)
|
1281
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::FeedItem]
|
1282
|
+
# a resource instance to be used for creation in this operation.
|
1283
|
+
#
|
1284
|
+
# @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] instance that will create the resource
|
1285
|
+
def self.feed_item(res = nil, &blk)
|
1286
|
+
require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
|
1287
|
+
op = Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
|
1288
|
+
if !res.nil?
|
1289
|
+
op["create"] = res
|
1290
|
+
elsif !blk.nil?
|
1291
|
+
op["create"] = Factories::V2::Resources.feed_item(&blk)
|
1292
|
+
end
|
1293
|
+
|
1294
|
+
op
|
1295
|
+
end
|
1296
|
+
|
1322
1297
|
# A convenience method for creating an FeedItemTargetOperation instance with
|
1323
1298
|
# its "create" field prepopulated with an FeedItemTarget instance.
|
1324
1299
|
#
|
@@ -1344,26 +1319,26 @@ module Google
|
|
1344
1319
|
op
|
1345
1320
|
end
|
1346
1321
|
|
1347
|
-
# A convenience method for creating an
|
1348
|
-
# its "create" field prepopulated with an
|
1322
|
+
# A convenience method for creating an FeedOperation instance with
|
1323
|
+
# its "create" field prepopulated with an Feed instance.
|
1349
1324
|
#
|
1350
|
-
# @overload
|
1351
|
-
# creates an operation instance, yielding a newly fabricated
|
1325
|
+
# @overload feed
|
1326
|
+
# creates an operation instance, yielding a newly fabricated Feed
|
1352
1327
|
# which can be used for setting attributes on the newly created resource
|
1353
|
-
# @overload
|
1328
|
+
# @overload feed(res)
|
1354
1329
|
# creates an operation instance, with the resource to be created
|
1355
1330
|
# set to the passed value (res)
|
1356
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1331
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::Feed]
|
1357
1332
|
# a resource instance to be used for creation in this operation.
|
1358
1333
|
#
|
1359
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1360
|
-
def self.
|
1361
|
-
require "google/ads/google_ads/v2/services/
|
1362
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1334
|
+
# @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] instance that will create the resource
|
1335
|
+
def self.feed(res = nil, &blk)
|
1336
|
+
require "google/ads/google_ads/v2/services/feed_service_pb.rb"
|
1337
|
+
op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
|
1363
1338
|
if !res.nil?
|
1364
1339
|
op["create"] = res
|
1365
1340
|
elsif !blk.nil?
|
1366
|
-
op["create"] = Factories::V2::Resources.
|
1341
|
+
op["create"] = Factories::V2::Resources.feed(&blk)
|
1367
1342
|
end
|
1368
1343
|
|
1369
1344
|
op
|
@@ -1419,6 +1394,31 @@ module Google
|
|
1419
1394
|
op
|
1420
1395
|
end
|
1421
1396
|
|
1397
|
+
# A convenience method for creating an SharedCriterionOperation instance with
|
1398
|
+
# its "create" field prepopulated with an SharedCriterion instance.
|
1399
|
+
#
|
1400
|
+
# @overload shared_criterion
|
1401
|
+
# creates an operation instance, yielding a newly fabricated SharedCriterion
|
1402
|
+
# which can be used for setting attributes on the newly created resource
|
1403
|
+
# @overload shared_criterion(res)
|
1404
|
+
# creates an operation instance, with the resource to be created
|
1405
|
+
# set to the passed value (res)
|
1406
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::SharedCriterion]
|
1407
|
+
# a resource instance to be used for creation in this operation.
|
1408
|
+
#
|
1409
|
+
# @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] instance that will create the resource
|
1410
|
+
def self.shared_criterion(res = nil, &blk)
|
1411
|
+
require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
|
1412
|
+
op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
|
1413
|
+
if !res.nil?
|
1414
|
+
op["create"] = res
|
1415
|
+
elsif !blk.nil?
|
1416
|
+
op["create"] = Factories::V2::Resources.shared_criterion(&blk)
|
1417
|
+
end
|
1418
|
+
|
1419
|
+
op
|
1420
|
+
end
|
1421
|
+
|
1422
1422
|
# A convenience method for creating an SharedSetOperation instance with
|
1423
1423
|
# its "create" field prepopulated with an SharedSet instance.
|
1424
1424
|
#
|
@@ -1519,289 +1519,133 @@ module Google
|
|
1519
1519
|
op
|
1520
1520
|
end
|
1521
1521
|
|
1522
|
-
# A convenience method for creating an
|
1523
|
-
# its "create" field prepopulated with an
|
1522
|
+
# A convenience method for creating an CustomerClientLinkOperation instance with
|
1523
|
+
# its "create" field prepopulated with an CustomerClientLink instance.
|
1524
1524
|
#
|
1525
|
-
# @overload
|
1526
|
-
# creates an operation instance, yielding a newly fabricated
|
1525
|
+
# @overload customer_client_link
|
1526
|
+
# creates an operation instance, yielding a newly fabricated CustomerClientLink
|
1527
1527
|
# which can be used for setting attributes on the newly created resource
|
1528
|
-
# @overload
|
1528
|
+
# @overload customer_client_link(res)
|
1529
1529
|
# creates an operation instance, with the resource to be created
|
1530
1530
|
# set to the passed value (res)
|
1531
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1531
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink]
|
1532
1532
|
# a resource instance to be used for creation in this operation.
|
1533
1533
|
#
|
1534
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1535
|
-
def self.
|
1536
|
-
require "google/ads/google_ads/v2/services/
|
1537
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1534
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] instance that will create the resource
|
1535
|
+
def self.customer_client_link(res = nil, &blk)
|
1536
|
+
require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
|
1537
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
|
1538
1538
|
if !res.nil?
|
1539
1539
|
op["create"] = res
|
1540
1540
|
elsif !blk.nil?
|
1541
|
-
op["create"] = Factories::V2::Resources.
|
1541
|
+
op["create"] = Factories::V2::Resources.customer_client_link(&blk)
|
1542
1542
|
end
|
1543
1543
|
|
1544
1544
|
op
|
1545
1545
|
end
|
1546
1546
|
|
1547
|
-
# A convenience method for creating an
|
1548
|
-
# its "create" field prepopulated with an
|
1547
|
+
# A convenience method for creating an AccountBudgetProposalOperation instance with
|
1548
|
+
# its "create" field prepopulated with an AccountBudgetProposal instance.
|
1549
1549
|
#
|
1550
|
-
# @overload
|
1551
|
-
# creates an operation instance, yielding a newly fabricated
|
1550
|
+
# @overload account_budget_proposal
|
1551
|
+
# creates an operation instance, yielding a newly fabricated AccountBudgetProposal
|
1552
1552
|
# which can be used for setting attributes on the newly created resource
|
1553
|
-
# @overload
|
1553
|
+
# @overload account_budget_proposal(res)
|
1554
1554
|
# creates an operation instance, with the resource to be created
|
1555
1555
|
# set to the passed value (res)
|
1556
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1556
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::AccountBudgetProposal]
|
1557
1557
|
# a resource instance to be used for creation in this operation.
|
1558
1558
|
#
|
1559
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1560
|
-
def self.
|
1561
|
-
require "google/ads/google_ads/v2/services/
|
1562
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1559
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation] instance that will create the resource
|
1560
|
+
def self.account_budget_proposal(res = nil, &blk)
|
1561
|
+
require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
|
1562
|
+
op = Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
|
1563
1563
|
if !res.nil?
|
1564
1564
|
op["create"] = res
|
1565
1565
|
elsif !blk.nil?
|
1566
|
-
op["create"] = Factories::V2::Resources.
|
1566
|
+
op["create"] = Factories::V2::Resources.account_budget_proposal(&blk)
|
1567
1567
|
end
|
1568
1568
|
|
1569
1569
|
op
|
1570
1570
|
end
|
1571
1571
|
|
1572
|
-
# A convenience method for creating an
|
1573
|
-
# its "create" field prepopulated with an
|
1572
|
+
# A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with
|
1573
|
+
# its "create" field prepopulated with an KeywordPlanNegativeKeyword instance.
|
1574
1574
|
#
|
1575
|
-
# @overload
|
1576
|
-
# creates an operation instance, yielding a newly fabricated
|
1575
|
+
# @overload keyword_plan_negative_keyword
|
1576
|
+
# creates an operation instance, yielding a newly fabricated KeywordPlanNegativeKeyword
|
1577
1577
|
# which can be used for setting attributes on the newly created resource
|
1578
|
-
# @overload
|
1578
|
+
# @overload keyword_plan_negative_keyword(res)
|
1579
1579
|
# creates an operation instance, with the resource to be created
|
1580
1580
|
# set to the passed value (res)
|
1581
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1581
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword]
|
1582
1582
|
# a resource instance to be used for creation in this operation.
|
1583
1583
|
#
|
1584
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1585
|
-
def self.
|
1586
|
-
require "google/ads/google_ads/v2/services/
|
1587
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1584
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] instance that will create the resource
|
1585
|
+
def self.keyword_plan_negative_keyword(res = nil, &blk)
|
1586
|
+
require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
|
1587
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
|
1588
1588
|
if !res.nil?
|
1589
1589
|
op["create"] = res
|
1590
1590
|
elsif !blk.nil?
|
1591
|
-
op["create"] = Factories::V2::Resources.
|
1591
|
+
op["create"] = Factories::V2::Resources.keyword_plan_negative_keyword(&blk)
|
1592
1592
|
end
|
1593
1593
|
|
1594
1594
|
op
|
1595
1595
|
end
|
1596
1596
|
|
1597
|
-
# A convenience method for creating an
|
1598
|
-
# its "create" field prepopulated with an
|
1597
|
+
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
1598
|
+
# its "create" field prepopulated with an KeywordPlanAdGroup instance.
|
1599
1599
|
#
|
1600
|
-
# @overload
|
1601
|
-
# creates an operation instance, yielding a newly fabricated
|
1600
|
+
# @overload keyword_plan_ad_group
|
1601
|
+
# creates an operation instance, yielding a newly fabricated KeywordPlanAdGroup
|
1602
1602
|
# which can be used for setting attributes on the newly created resource
|
1603
|
-
# @overload
|
1603
|
+
# @overload keyword_plan_ad_group(res)
|
1604
1604
|
# creates an operation instance, with the resource to be created
|
1605
1605
|
# set to the passed value (res)
|
1606
|
-
# @param res [Google::Ads::GoogleAds::V2::Resources::
|
1606
|
+
# @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup]
|
1607
1607
|
# a resource instance to be used for creation in this operation.
|
1608
1608
|
#
|
1609
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1610
|
-
def self.
|
1611
|
-
require "google/ads/google_ads/v2/services/
|
1612
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1609
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] instance that will create the resource
|
1610
|
+
def self.keyword_plan_ad_group(res = nil, &blk)
|
1611
|
+
require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
|
1612
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
|
1613
1613
|
if !res.nil?
|
1614
|
-
op["create"] = res
|
1615
|
-
elsif !blk.nil?
|
1616
|
-
op["create"] = Factories::V2::Resources.
|
1617
|
-
end
|
1618
|
-
|
1619
|
-
op
|
1620
|
-
end
|
1621
|
-
end
|
1622
|
-
|
1623
|
-
module UpdateResource
|
1624
|
-
# A convenience method for creating an KeywordPlanKeywordOperation instance with
|
1625
|
-
# its "update" field prepopulated with an KeywordPlanKeyword instance, and
|
1626
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
1627
|
-
#
|
1628
|
-
# @overload #keyword_plan_keyword(path, &blk)
|
1629
|
-
# @param path [String] a resource path for the resource to update
|
1630
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a new instance of the resource for this update operation, on
|
1631
|
-
# which fields can be set to update
|
1632
|
-
#
|
1633
|
-
# @overload #keyword_plan_keyword(resource, &blk)
|
1634
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a resource instance to update
|
1635
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1636
|
-
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation instance to update the resource
|
1637
|
-
def self.keyword_plan_keyword(resource_or_path, &blk)
|
1638
|
-
require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
|
1639
|
-
res = case resource_or_path
|
1640
|
-
when Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword
|
1641
|
-
resource_or_path
|
1642
|
-
# got a resource path
|
1643
|
-
when String
|
1644
|
-
obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword.new
|
1645
|
-
obj.resource_name = resource_or_path
|
1646
|
-
obj
|
1647
|
-
else
|
1648
|
-
unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword === res
|
1649
|
-
raise ArgumentError.new(
|
1650
|
-
"Called #{__method__} with instance of wrong type:"\
|
1651
|
-
" #{res.class} want #{operation.update_class}"\
|
1652
|
-
" or String representing resource name"
|
1653
|
-
)
|
1654
|
-
end
|
1655
|
-
end
|
1656
|
-
|
1657
|
-
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
|
1658
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1659
|
-
op["update"] = res
|
1660
|
-
op
|
1661
|
-
end
|
1662
|
-
|
1663
|
-
# A convenience method for creating an FeedOperation instance with
|
1664
|
-
# its "update" field prepopulated with an Feed instance, and
|
1665
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
1666
|
-
#
|
1667
|
-
# @overload #feed(path, &blk)
|
1668
|
-
# @param path [String] a resource path for the resource to update
|
1669
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::Feed] a new instance of the resource for this update operation, on
|
1670
|
-
# which fields can be set to update
|
1671
|
-
#
|
1672
|
-
# @overload #feed(resource, &blk)
|
1673
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::Feed] a resource instance to update
|
1674
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1675
|
-
# @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation instance to update the resource
|
1676
|
-
def self.feed(resource_or_path, &blk)
|
1677
|
-
require "google/ads/google_ads/v2/services/feed_service_pb.rb"
|
1678
|
-
res = case resource_or_path
|
1679
|
-
when Google::Ads::GoogleAds::V2::Resources::Feed
|
1680
|
-
resource_or_path
|
1681
|
-
# got a resource path
|
1682
|
-
when String
|
1683
|
-
obj = Google::Ads::GoogleAds::V2::Resources::Feed.new
|
1684
|
-
obj.resource_name = resource_or_path
|
1685
|
-
obj
|
1686
|
-
else
|
1687
|
-
unless Google::Ads::GoogleAds::V2::Resources::Feed === res
|
1688
|
-
raise ArgumentError.new(
|
1689
|
-
"Called #{__method__} with instance of wrong type:"\
|
1690
|
-
" #{res.class} want #{operation.update_class}"\
|
1691
|
-
" or String representing resource name"
|
1692
|
-
)
|
1693
|
-
end
|
1694
|
-
end
|
1695
|
-
|
1696
|
-
op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
|
1697
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1698
|
-
op["update"] = res
|
1699
|
-
op
|
1700
|
-
end
|
1701
|
-
|
1702
|
-
# A convenience method for creating an ConversionActionOperation instance with
|
1703
|
-
# its "update" field prepopulated with an ConversionAction instance, and
|
1704
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
1705
|
-
#
|
1706
|
-
# @overload #conversion_action(path, &blk)
|
1707
|
-
# @param path [String] a resource path for the resource to update
|
1708
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::ConversionAction] a new instance of the resource for this update operation, on
|
1709
|
-
# which fields can be set to update
|
1710
|
-
#
|
1711
|
-
# @overload #conversion_action(resource, &blk)
|
1712
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::ConversionAction] a resource instance to update
|
1713
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1714
|
-
# @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] the operation instance to update the resource
|
1715
|
-
def self.conversion_action(resource_or_path, &blk)
|
1716
|
-
require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
|
1717
|
-
res = case resource_or_path
|
1718
|
-
when Google::Ads::GoogleAds::V2::Resources::ConversionAction
|
1719
|
-
resource_or_path
|
1720
|
-
# got a resource path
|
1721
|
-
when String
|
1722
|
-
obj = Google::Ads::GoogleAds::V2::Resources::ConversionAction.new
|
1723
|
-
obj.resource_name = resource_or_path
|
1724
|
-
obj
|
1725
|
-
else
|
1726
|
-
unless Google::Ads::GoogleAds::V2::Resources::ConversionAction === res
|
1727
|
-
raise ArgumentError.new(
|
1728
|
-
"Called #{__method__} with instance of wrong type:"\
|
1729
|
-
" #{res.class} want #{operation.update_class}"\
|
1730
|
-
" or String representing resource name"
|
1731
|
-
)
|
1732
|
-
end
|
1733
|
-
end
|
1734
|
-
|
1735
|
-
op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
|
1736
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1737
|
-
op["update"] = res
|
1738
|
-
op
|
1739
|
-
end
|
1740
|
-
|
1741
|
-
# A convenience method for creating an BiddingStrategyOperation instance with
|
1742
|
-
# its "update" field prepopulated with an BiddingStrategy instance, and
|
1743
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
1744
|
-
#
|
1745
|
-
# @overload #bidding_strategy(path, &blk)
|
1746
|
-
# @param path [String] a resource path for the resource to update
|
1747
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy] a new instance of the resource for this update operation, on
|
1748
|
-
# which fields can be set to update
|
1749
|
-
#
|
1750
|
-
# @overload #bidding_strategy(resource, &blk)
|
1751
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy] a resource instance to update
|
1752
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1753
|
-
# @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] the operation instance to update the resource
|
1754
|
-
def self.bidding_strategy(resource_or_path, &blk)
|
1755
|
-
require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
|
1756
|
-
res = case resource_or_path
|
1757
|
-
when Google::Ads::GoogleAds::V2::Resources::BiddingStrategy
|
1758
|
-
resource_or_path
|
1759
|
-
# got a resource path
|
1760
|
-
when String
|
1761
|
-
obj = Google::Ads::GoogleAds::V2::Resources::BiddingStrategy.new
|
1762
|
-
obj.resource_name = resource_or_path
|
1763
|
-
obj
|
1764
|
-
else
|
1765
|
-
unless Google::Ads::GoogleAds::V2::Resources::BiddingStrategy === res
|
1766
|
-
raise ArgumentError.new(
|
1767
|
-
"Called #{__method__} with instance of wrong type:"\
|
1768
|
-
" #{res.class} want #{operation.update_class}"\
|
1769
|
-
" or String representing resource name"
|
1770
|
-
)
|
1771
|
-
end
|
1614
|
+
op["create"] = res
|
1615
|
+
elsif !blk.nil?
|
1616
|
+
op["create"] = Factories::V2::Resources.keyword_plan_ad_group(&blk)
|
1772
1617
|
end
|
1773
1618
|
|
1774
|
-
op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
|
1775
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1776
|
-
op["update"] = res
|
1777
1619
|
op
|
1778
1620
|
end
|
1621
|
+
end
|
1779
1622
|
|
1780
|
-
|
1781
|
-
#
|
1623
|
+
module UpdateResource
|
1624
|
+
# A convenience method for creating an CampaignExperimentOperation instance with
|
1625
|
+
# its "update" field prepopulated with an CampaignExperiment instance, and
|
1782
1626
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1783
1627
|
#
|
1784
|
-
# @overload #
|
1628
|
+
# @overload #campaign_experiment(path, &blk)
|
1785
1629
|
# @param path [String] a resource path for the resource to update
|
1786
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1630
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CampaignExperiment] a new instance of the resource for this update operation, on
|
1787
1631
|
# which fields can be set to update
|
1788
1632
|
#
|
1789
|
-
# @overload #
|
1790
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1633
|
+
# @overload #campaign_experiment(resource, &blk)
|
1634
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignExperiment] a resource instance to update
|
1791
1635
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1792
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1793
|
-
def self.
|
1794
|
-
require "google/ads/google_ads/v2/services/
|
1636
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation] the operation instance to update the resource
|
1637
|
+
def self.campaign_experiment(resource_or_path, &blk)
|
1638
|
+
require "google/ads/google_ads/v2/services/campaign_experiment_service_pb.rb"
|
1795
1639
|
res = case resource_or_path
|
1796
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1640
|
+
when Google::Ads::GoogleAds::V2::Resources::CampaignExperiment
|
1797
1641
|
resource_or_path
|
1798
1642
|
# got a resource path
|
1799
1643
|
when String
|
1800
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1644
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CampaignExperiment.new
|
1801
1645
|
obj.resource_name = resource_or_path
|
1802
1646
|
obj
|
1803
1647
|
else
|
1804
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1648
|
+
unless Google::Ads::GoogleAds::V2::Resources::CampaignExperiment === res
|
1805
1649
|
raise ArgumentError.new(
|
1806
1650
|
"Called #{__method__} with instance of wrong type:"\
|
1807
1651
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1810,37 +1654,37 @@ module Google
|
|
1810
1654
|
end
|
1811
1655
|
end
|
1812
1656
|
|
1813
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1657
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation.new
|
1814
1658
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1815
1659
|
op["update"] = res
|
1816
1660
|
op
|
1817
1661
|
end
|
1818
1662
|
|
1819
|
-
# A convenience method for creating an
|
1820
|
-
# its "update" field prepopulated with an
|
1663
|
+
# A convenience method for creating an KeywordPlanKeywordOperation instance with
|
1664
|
+
# its "update" field prepopulated with an KeywordPlanKeyword instance, and
|
1821
1665
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1822
1666
|
#
|
1823
|
-
# @overload #
|
1667
|
+
# @overload #keyword_plan_keyword(path, &blk)
|
1824
1668
|
# @param path [String] a resource path for the resource to update
|
1825
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1669
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a new instance of the resource for this update operation, on
|
1826
1670
|
# which fields can be set to update
|
1827
1671
|
#
|
1828
|
-
# @overload #
|
1829
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1672
|
+
# @overload #keyword_plan_keyword(resource, &blk)
|
1673
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a resource instance to update
|
1830
1674
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1831
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1832
|
-
def self.
|
1833
|
-
require "google/ads/google_ads/v2/services/
|
1675
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation instance to update the resource
|
1676
|
+
def self.keyword_plan_keyword(resource_or_path, &blk)
|
1677
|
+
require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
|
1834
1678
|
res = case resource_or_path
|
1835
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1679
|
+
when Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword
|
1836
1680
|
resource_or_path
|
1837
1681
|
# got a resource path
|
1838
1682
|
when String
|
1839
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1683
|
+
obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword.new
|
1840
1684
|
obj.resource_name = resource_or_path
|
1841
1685
|
obj
|
1842
1686
|
else
|
1843
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1687
|
+
unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword === res
|
1844
1688
|
raise ArgumentError.new(
|
1845
1689
|
"Called #{__method__} with instance of wrong type:"\
|
1846
1690
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1849,37 +1693,37 @@ module Google
|
|
1849
1693
|
end
|
1850
1694
|
end
|
1851
1695
|
|
1852
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1696
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
|
1853
1697
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1854
1698
|
op["update"] = res
|
1855
1699
|
op
|
1856
1700
|
end
|
1857
1701
|
|
1858
|
-
# A convenience method for creating an
|
1859
|
-
# its "update" field prepopulated with an
|
1702
|
+
# A convenience method for creating an KeywordPlanOperation instance with
|
1703
|
+
# its "update" field prepopulated with an KeywordPlan instance, and
|
1860
1704
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1861
1705
|
#
|
1862
|
-
# @overload #
|
1706
|
+
# @overload #keyword_plan(path, &blk)
|
1863
1707
|
# @param path [String] a resource path for the resource to update
|
1864
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1708
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] a new instance of the resource for this update operation, on
|
1865
1709
|
# which fields can be set to update
|
1866
1710
|
#
|
1867
|
-
# @overload #
|
1868
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1711
|
+
# @overload #keyword_plan(resource, &blk)
|
1712
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] a resource instance to update
|
1869
1713
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1870
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1871
|
-
def self.
|
1872
|
-
require "google/ads/google_ads/v2/services/
|
1714
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] the operation instance to update the resource
|
1715
|
+
def self.keyword_plan(resource_or_path, &blk)
|
1716
|
+
require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
|
1873
1717
|
res = case resource_or_path
|
1874
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1718
|
+
when Google::Ads::GoogleAds::V2::Resources::KeywordPlan
|
1875
1719
|
resource_or_path
|
1876
1720
|
# got a resource path
|
1877
1721
|
when String
|
1878
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1722
|
+
obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlan.new
|
1879
1723
|
obj.resource_name = resource_or_path
|
1880
1724
|
obj
|
1881
1725
|
else
|
1882
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1726
|
+
unless Google::Ads::GoogleAds::V2::Resources::KeywordPlan === res
|
1883
1727
|
raise ArgumentError.new(
|
1884
1728
|
"Called #{__method__} with instance of wrong type:"\
|
1885
1729
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1888,37 +1732,37 @@ module Google
|
|
1888
1732
|
end
|
1889
1733
|
end
|
1890
1734
|
|
1891
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1735
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
|
1892
1736
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1893
1737
|
op["update"] = res
|
1894
1738
|
op
|
1895
1739
|
end
|
1896
1740
|
|
1897
|
-
# A convenience method for creating an
|
1898
|
-
# its "update" field prepopulated with an
|
1741
|
+
# A convenience method for creating an LabelOperation instance with
|
1742
|
+
# its "update" field prepopulated with an Label instance, and
|
1899
1743
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1900
1744
|
#
|
1901
|
-
# @overload #
|
1745
|
+
# @overload #label(path, &blk)
|
1902
1746
|
# @param path [String] a resource path for the resource to update
|
1903
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1747
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::Label] a new instance of the resource for this update operation, on
|
1904
1748
|
# which fields can be set to update
|
1905
1749
|
#
|
1906
|
-
# @overload #
|
1907
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1750
|
+
# @overload #label(resource, &blk)
|
1751
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::Label] a resource instance to update
|
1908
1752
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1909
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1910
|
-
def self.
|
1911
|
-
require "google/ads/google_ads/v2/services/
|
1753
|
+
# @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] the operation instance to update the resource
|
1754
|
+
def self.label(resource_or_path, &blk)
|
1755
|
+
require "google/ads/google_ads/v2/services/label_service_pb.rb"
|
1912
1756
|
res = case resource_or_path
|
1913
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1757
|
+
when Google::Ads::GoogleAds::V2::Resources::Label
|
1914
1758
|
resource_or_path
|
1915
1759
|
# got a resource path
|
1916
1760
|
when String
|
1917
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1761
|
+
obj = Google::Ads::GoogleAds::V2::Resources::Label.new
|
1918
1762
|
obj.resource_name = resource_or_path
|
1919
1763
|
obj
|
1920
1764
|
else
|
1921
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1765
|
+
unless Google::Ads::GoogleAds::V2::Resources::Label === res
|
1922
1766
|
raise ArgumentError.new(
|
1923
1767
|
"Called #{__method__} with instance of wrong type:"\
|
1924
1768
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1927,37 +1771,37 @@ module Google
|
|
1927
1771
|
end
|
1928
1772
|
end
|
1929
1773
|
|
1930
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1774
|
+
op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
|
1931
1775
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1932
1776
|
op["update"] = res
|
1933
1777
|
op
|
1934
1778
|
end
|
1935
1779
|
|
1936
|
-
# A convenience method for creating an
|
1937
|
-
# its "update" field prepopulated with an
|
1780
|
+
# A convenience method for creating an CampaignCriterionOperation instance with
|
1781
|
+
# its "update" field prepopulated with an CampaignCriterion instance, and
|
1938
1782
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1939
1783
|
#
|
1940
|
-
# @overload #
|
1784
|
+
# @overload #campaign_criterion(path, &blk)
|
1941
1785
|
# @param path [String] a resource path for the resource to update
|
1942
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1786
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CampaignCriterion] a new instance of the resource for this update operation, on
|
1943
1787
|
# which fields can be set to update
|
1944
1788
|
#
|
1945
|
-
# @overload #
|
1946
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1789
|
+
# @overload #campaign_criterion(resource, &blk)
|
1790
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignCriterion] a resource instance to update
|
1947
1791
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1948
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1949
|
-
def self.
|
1950
|
-
require "google/ads/google_ads/v2/services/
|
1792
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation] the operation instance to update the resource
|
1793
|
+
def self.campaign_criterion(resource_or_path, &blk)
|
1794
|
+
require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
|
1951
1795
|
res = case resource_or_path
|
1952
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1796
|
+
when Google::Ads::GoogleAds::V2::Resources::CampaignCriterion
|
1953
1797
|
resource_or_path
|
1954
1798
|
# got a resource path
|
1955
1799
|
when String
|
1956
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1800
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CampaignCriterion.new
|
1957
1801
|
obj.resource_name = resource_or_path
|
1958
1802
|
obj
|
1959
1803
|
else
|
1960
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1804
|
+
unless Google::Ads::GoogleAds::V2::Resources::CampaignCriterion === res
|
1961
1805
|
raise ArgumentError.new(
|
1962
1806
|
"Called #{__method__} with instance of wrong type:"\
|
1963
1807
|
" #{res.class} want #{operation.update_class}"\
|
@@ -1966,37 +1810,37 @@ module Google
|
|
1966
1810
|
end
|
1967
1811
|
end
|
1968
1812
|
|
1969
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1813
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
|
1970
1814
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
1971
1815
|
op["update"] = res
|
1972
1816
|
op
|
1973
1817
|
end
|
1974
1818
|
|
1975
|
-
# A convenience method for creating an
|
1976
|
-
# its "update" field prepopulated with an
|
1819
|
+
# A convenience method for creating an CustomInterestOperation instance with
|
1820
|
+
# its "update" field prepopulated with an CustomInterest instance, and
|
1977
1821
|
# its "update_mask" field populated as needed to send the updates to the API.
|
1978
1822
|
#
|
1979
|
-
# @overload #
|
1823
|
+
# @overload #custom_interest(path, &blk)
|
1980
1824
|
# @param path [String] a resource path for the resource to update
|
1981
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1825
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CustomInterest] a new instance of the resource for this update operation, on
|
1982
1826
|
# which fields can be set to update
|
1983
1827
|
#
|
1984
|
-
# @overload #
|
1985
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1828
|
+
# @overload #custom_interest(resource, &blk)
|
1829
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CustomInterest] a resource instance to update
|
1986
1830
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
1987
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
1988
|
-
def self.
|
1989
|
-
require "google/ads/google_ads/v2/services/
|
1831
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation instance to update the resource
|
1832
|
+
def self.custom_interest(resource_or_path, &blk)
|
1833
|
+
require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
|
1990
1834
|
res = case resource_or_path
|
1991
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1835
|
+
when Google::Ads::GoogleAds::V2::Resources::CustomInterest
|
1992
1836
|
resource_or_path
|
1993
1837
|
# got a resource path
|
1994
1838
|
when String
|
1995
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1839
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CustomInterest.new
|
1996
1840
|
obj.resource_name = resource_or_path
|
1997
1841
|
obj
|
1998
1842
|
else
|
1999
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1843
|
+
unless Google::Ads::GoogleAds::V2::Resources::CustomInterest === res
|
2000
1844
|
raise ArgumentError.new(
|
2001
1845
|
"Called #{__method__} with instance of wrong type:"\
|
2002
1846
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2005,37 +1849,37 @@ module Google
|
|
2005
1849
|
end
|
2006
1850
|
end
|
2007
1851
|
|
2008
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1852
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
|
2009
1853
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2010
1854
|
op["update"] = res
|
2011
1855
|
op
|
2012
1856
|
end
|
2013
1857
|
|
2014
|
-
# A convenience method for creating an
|
2015
|
-
# its "update" field prepopulated with an
|
1858
|
+
# A convenience method for creating an AdGroupAdOperation instance with
|
1859
|
+
# its "update" field prepopulated with an AdGroupAd instance, and
|
2016
1860
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2017
1861
|
#
|
2018
|
-
# @overload #
|
1862
|
+
# @overload #ad_group_ad(path, &blk)
|
2019
1863
|
# @param path [String] a resource path for the resource to update
|
2020
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1864
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupAd] a new instance of the resource for this update operation, on
|
2021
1865
|
# which fields can be set to update
|
2022
1866
|
#
|
2023
|
-
# @overload #
|
2024
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1867
|
+
# @overload #ad_group_ad(resource, &blk)
|
1868
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupAd] a resource instance to update
|
2025
1869
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2026
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2027
|
-
def self.
|
2028
|
-
require "google/ads/google_ads/v2/services/
|
1870
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] the operation instance to update the resource
|
1871
|
+
def self.ad_group_ad(resource_or_path, &blk)
|
1872
|
+
require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
|
2029
1873
|
res = case resource_or_path
|
2030
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1874
|
+
when Google::Ads::GoogleAds::V2::Resources::AdGroupAd
|
2031
1875
|
resource_or_path
|
2032
1876
|
# got a resource path
|
2033
1877
|
when String
|
2034
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1878
|
+
obj = Google::Ads::GoogleAds::V2::Resources::AdGroupAd.new
|
2035
1879
|
obj.resource_name = resource_or_path
|
2036
1880
|
obj
|
2037
1881
|
else
|
2038
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1882
|
+
unless Google::Ads::GoogleAds::V2::Resources::AdGroupAd === res
|
2039
1883
|
raise ArgumentError.new(
|
2040
1884
|
"Called #{__method__} with instance of wrong type:"\
|
2041
1885
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2044,37 +1888,37 @@ module Google
|
|
2044
1888
|
end
|
2045
1889
|
end
|
2046
1890
|
|
2047
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1891
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
|
2048
1892
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2049
1893
|
op["update"] = res
|
2050
1894
|
op
|
2051
1895
|
end
|
2052
1896
|
|
2053
|
-
# A convenience method for creating an
|
2054
|
-
# its "update" field prepopulated with an
|
1897
|
+
# A convenience method for creating an AdGroupBidModifierOperation instance with
|
1898
|
+
# its "update" field prepopulated with an AdGroupBidModifier instance, and
|
2055
1899
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2056
1900
|
#
|
2057
|
-
# @overload #
|
1901
|
+
# @overload #ad_group_bid_modifier(path, &blk)
|
2058
1902
|
# @param path [String] a resource path for the resource to update
|
2059
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
1903
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a new instance of the resource for this update operation, on
|
2060
1904
|
# which fields can be set to update
|
2061
1905
|
#
|
2062
|
-
# @overload #
|
2063
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
1906
|
+
# @overload #ad_group_bid_modifier(resource, &blk)
|
1907
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a resource instance to update
|
2064
1908
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2065
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2066
|
-
def self.
|
2067
|
-
require "google/ads/google_ads/v2/services/
|
1909
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] the operation instance to update the resource
|
1910
|
+
def self.ad_group_bid_modifier(resource_or_path, &blk)
|
1911
|
+
require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
|
2068
1912
|
res = case resource_or_path
|
2069
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1913
|
+
when Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier
|
2070
1914
|
resource_or_path
|
2071
1915
|
# got a resource path
|
2072
1916
|
when String
|
2073
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1917
|
+
obj = Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier.new
|
2074
1918
|
obj.resource_name = resource_or_path
|
2075
1919
|
obj
|
2076
1920
|
else
|
2077
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1921
|
+
unless Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier === res
|
2078
1922
|
raise ArgumentError.new(
|
2079
1923
|
"Called #{__method__} with instance of wrong type:"\
|
2080
1924
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2083,7 +1927,7 @@ module Google
|
|
2083
1927
|
end
|
2084
1928
|
end
|
2085
1929
|
|
2086
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1930
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
|
2087
1931
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2088
1932
|
op["update"] = res
|
2089
1933
|
op
|
@@ -2103,56 +1947,17 @@ module Google
|
|
2103
1947
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2104
1948
|
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation] the operation instance to update the resource
|
2105
1949
|
def self.ad_group_criterion(resource_or_path, &blk)
|
2106
|
-
require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
|
2107
|
-
res = case resource_or_path
|
2108
|
-
when Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion
|
2109
|
-
resource_or_path
|
2110
|
-
# got a resource path
|
2111
|
-
when String
|
2112
|
-
obj = Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion.new
|
2113
|
-
obj.resource_name = resource_or_path
|
2114
|
-
obj
|
2115
|
-
else
|
2116
|
-
unless Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion === res
|
2117
|
-
raise ArgumentError.new(
|
2118
|
-
"Called #{__method__} with instance of wrong type:"\
|
2119
|
-
" #{res.class} want #{operation.update_class}"\
|
2120
|
-
" or String representing resource name"
|
2121
|
-
)
|
2122
|
-
end
|
2123
|
-
end
|
2124
|
-
|
2125
|
-
op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
|
2126
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2127
|
-
op["update"] = res
|
2128
|
-
op
|
2129
|
-
end
|
2130
|
-
|
2131
|
-
# A convenience method for creating an AdGroupAdOperation instance with
|
2132
|
-
# its "update" field prepopulated with an AdGroupAd instance, and
|
2133
|
-
# its "update_mask" field populated as needed to send the updates to the API.
|
2134
|
-
#
|
2135
|
-
# @overload #ad_group_ad(path, &blk)
|
2136
|
-
# @param path [String] a resource path for the resource to update
|
2137
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupAd] a new instance of the resource for this update operation, on
|
2138
|
-
# which fields can be set to update
|
2139
|
-
#
|
2140
|
-
# @overload #ad_group_ad(resource, &blk)
|
2141
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupAd] a resource instance to update
|
2142
|
-
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2143
|
-
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] the operation instance to update the resource
|
2144
|
-
def self.ad_group_ad(resource_or_path, &blk)
|
2145
|
-
require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
|
1950
|
+
require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
|
2146
1951
|
res = case resource_or_path
|
2147
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
1952
|
+
when Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion
|
2148
1953
|
resource_or_path
|
2149
1954
|
# got a resource path
|
2150
1955
|
when String
|
2151
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
1956
|
+
obj = Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion.new
|
2152
1957
|
obj.resource_name = resource_or_path
|
2153
1958
|
obj
|
2154
1959
|
else
|
2155
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
1960
|
+
unless Google::Ads::GoogleAds::V2::Resources::AdGroupCriterion === res
|
2156
1961
|
raise ArgumentError.new(
|
2157
1962
|
"Called #{__method__} with instance of wrong type:"\
|
2158
1963
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2161,7 +1966,7 @@ module Google
|
|
2161
1966
|
end
|
2162
1967
|
end
|
2163
1968
|
|
2164
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
1969
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
|
2165
1970
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2166
1971
|
op["update"] = res
|
2167
1972
|
op
|
@@ -2323,6 +2128,45 @@ module Google
|
|
2323
2128
|
op
|
2324
2129
|
end
|
2325
2130
|
|
2131
|
+
# A convenience method for creating an BiddingStrategyOperation instance with
|
2132
|
+
# its "update" field prepopulated with an BiddingStrategy instance, and
|
2133
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2134
|
+
#
|
2135
|
+
# @overload #bidding_strategy(path, &blk)
|
2136
|
+
# @param path [String] a resource path for the resource to update
|
2137
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy] a new instance of the resource for this update operation, on
|
2138
|
+
# which fields can be set to update
|
2139
|
+
#
|
2140
|
+
# @overload #bidding_strategy(resource, &blk)
|
2141
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::BiddingStrategy] a resource instance to update
|
2142
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2143
|
+
# @return [Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation] the operation instance to update the resource
|
2144
|
+
def self.bidding_strategy(resource_or_path, &blk)
|
2145
|
+
require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
|
2146
|
+
res = case resource_or_path
|
2147
|
+
when Google::Ads::GoogleAds::V2::Resources::BiddingStrategy
|
2148
|
+
resource_or_path
|
2149
|
+
# got a resource path
|
2150
|
+
when String
|
2151
|
+
obj = Google::Ads::GoogleAds::V2::Resources::BiddingStrategy.new
|
2152
|
+
obj.resource_name = resource_or_path
|
2153
|
+
obj
|
2154
|
+
else
|
2155
|
+
unless Google::Ads::GoogleAds::V2::Resources::BiddingStrategy === res
|
2156
|
+
raise ArgumentError.new(
|
2157
|
+
"Called #{__method__} with instance of wrong type:"\
|
2158
|
+
" #{res.class} want #{operation.update_class}"\
|
2159
|
+
" or String representing resource name"
|
2160
|
+
)
|
2161
|
+
end
|
2162
|
+
end
|
2163
|
+
|
2164
|
+
op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
|
2165
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2166
|
+
op["update"] = res
|
2167
|
+
op
|
2168
|
+
end
|
2169
|
+
|
2326
2170
|
# A convenience method for creating an CampaignBidModifierOperation instance with
|
2327
2171
|
# its "update" field prepopulated with an CampaignBidModifier instance, and
|
2328
2172
|
# its "update_mask" field populated as needed to send the updates to the API.
|
@@ -2362,31 +2206,31 @@ module Google
|
|
2362
2206
|
op
|
2363
2207
|
end
|
2364
2208
|
|
2365
|
-
# A convenience method for creating an
|
2366
|
-
# its "update" field prepopulated with an
|
2209
|
+
# A convenience method for creating an CampaignBudgetOperation instance with
|
2210
|
+
# its "update" field prepopulated with an CampaignBudget instance, and
|
2367
2211
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2368
2212
|
#
|
2369
|
-
# @overload #
|
2213
|
+
# @overload #campaign_budget(path, &blk)
|
2370
2214
|
# @param path [String] a resource path for the resource to update
|
2371
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2215
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CampaignBudget] a new instance of the resource for this update operation, on
|
2372
2216
|
# which fields can be set to update
|
2373
2217
|
#
|
2374
|
-
# @overload #
|
2375
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2218
|
+
# @overload #campaign_budget(resource, &blk)
|
2219
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignBudget] a resource instance to update
|
2376
2220
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2377
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2378
|
-
def self.
|
2379
|
-
require "google/ads/google_ads/v2/services/
|
2221
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] the operation instance to update the resource
|
2222
|
+
def self.campaign_budget(resource_or_path, &blk)
|
2223
|
+
require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
|
2380
2224
|
res = case resource_or_path
|
2381
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2225
|
+
when Google::Ads::GoogleAds::V2::Resources::CampaignBudget
|
2382
2226
|
resource_or_path
|
2383
2227
|
# got a resource path
|
2384
2228
|
when String
|
2385
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2229
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CampaignBudget.new
|
2386
2230
|
obj.resource_name = resource_or_path
|
2387
2231
|
obj
|
2388
2232
|
else
|
2389
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2233
|
+
unless Google::Ads::GoogleAds::V2::Resources::CampaignBudget === res
|
2390
2234
|
raise ArgumentError.new(
|
2391
2235
|
"Called #{__method__} with instance of wrong type:"\
|
2392
2236
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2395,37 +2239,37 @@ module Google
|
|
2395
2239
|
end
|
2396
2240
|
end
|
2397
2241
|
|
2398
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2242
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
|
2399
2243
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2400
2244
|
op["update"] = res
|
2401
2245
|
op
|
2402
2246
|
end
|
2403
2247
|
|
2404
|
-
# A convenience method for creating an
|
2405
|
-
# its "update" field prepopulated with an
|
2248
|
+
# A convenience method for creating an CampaignDraftOperation instance with
|
2249
|
+
# its "update" field prepopulated with an CampaignDraft instance, and
|
2406
2250
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2407
2251
|
#
|
2408
|
-
# @overload #
|
2252
|
+
# @overload #campaign_draft(path, &blk)
|
2409
2253
|
# @param path [String] a resource path for the resource to update
|
2410
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2254
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CampaignDraft] a new instance of the resource for this update operation, on
|
2411
2255
|
# which fields can be set to update
|
2412
2256
|
#
|
2413
|
-
# @overload #
|
2414
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2257
|
+
# @overload #campaign_draft(resource, &blk)
|
2258
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignDraft] a resource instance to update
|
2415
2259
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2416
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2417
|
-
def self.
|
2418
|
-
require "google/ads/google_ads/v2/services/
|
2260
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] the operation instance to update the resource
|
2261
|
+
def self.campaign_draft(resource_or_path, &blk)
|
2262
|
+
require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
|
2419
2263
|
res = case resource_or_path
|
2420
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2264
|
+
when Google::Ads::GoogleAds::V2::Resources::CampaignDraft
|
2421
2265
|
resource_or_path
|
2422
2266
|
# got a resource path
|
2423
2267
|
when String
|
2424
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2268
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CampaignDraft.new
|
2425
2269
|
obj.resource_name = resource_or_path
|
2426
2270
|
obj
|
2427
2271
|
else
|
2428
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2272
|
+
unless Google::Ads::GoogleAds::V2::Resources::CampaignDraft === res
|
2429
2273
|
raise ArgumentError.new(
|
2430
2274
|
"Called #{__method__} with instance of wrong type:"\
|
2431
2275
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2434,7 +2278,7 @@ module Google
|
|
2434
2278
|
end
|
2435
2279
|
end
|
2436
2280
|
|
2437
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2281
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
|
2438
2282
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2439
2283
|
op["update"] = res
|
2440
2284
|
op
|
@@ -2479,6 +2323,45 @@ module Google
|
|
2479
2323
|
op
|
2480
2324
|
end
|
2481
2325
|
|
2326
|
+
# A convenience method for creating an CampaignFeedOperation instance with
|
2327
|
+
# its "update" field prepopulated with an CampaignFeed instance, and
|
2328
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2329
|
+
#
|
2330
|
+
# @overload #campaign_feed(path, &blk)
|
2331
|
+
# @param path [String] a resource path for the resource to update
|
2332
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CampaignFeed] a new instance of the resource for this update operation, on
|
2333
|
+
# which fields can be set to update
|
2334
|
+
#
|
2335
|
+
# @overload #campaign_feed(resource, &blk)
|
2336
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CampaignFeed] a resource instance to update
|
2337
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2338
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] the operation instance to update the resource
|
2339
|
+
def self.campaign_feed(resource_or_path, &blk)
|
2340
|
+
require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
|
2341
|
+
res = case resource_or_path
|
2342
|
+
when Google::Ads::GoogleAds::V2::Resources::CampaignFeed
|
2343
|
+
resource_or_path
|
2344
|
+
# got a resource path
|
2345
|
+
when String
|
2346
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CampaignFeed.new
|
2347
|
+
obj.resource_name = resource_or_path
|
2348
|
+
obj
|
2349
|
+
else
|
2350
|
+
unless Google::Ads::GoogleAds::V2::Resources::CampaignFeed === res
|
2351
|
+
raise ArgumentError.new(
|
2352
|
+
"Called #{__method__} with instance of wrong type:"\
|
2353
|
+
" #{res.class} want #{operation.update_class}"\
|
2354
|
+
" or String representing resource name"
|
2355
|
+
)
|
2356
|
+
end
|
2357
|
+
end
|
2358
|
+
|
2359
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
|
2360
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2361
|
+
op["update"] = res
|
2362
|
+
op
|
2363
|
+
end
|
2364
|
+
|
2482
2365
|
# A convenience method for creating an CampaignOperation instance with
|
2483
2366
|
# its "update" field prepopulated with an Campaign instance, and
|
2484
2367
|
# its "update_mask" field populated as needed to send the updates to the API.
|
@@ -2518,6 +2401,45 @@ module Google
|
|
2518
2401
|
op
|
2519
2402
|
end
|
2520
2403
|
|
2404
|
+
# A convenience method for creating an ConversionActionOperation instance with
|
2405
|
+
# its "update" field prepopulated with an ConversionAction instance, and
|
2406
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2407
|
+
#
|
2408
|
+
# @overload #conversion_action(path, &blk)
|
2409
|
+
# @param path [String] a resource path for the resource to update
|
2410
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::ConversionAction] a new instance of the resource for this update operation, on
|
2411
|
+
# which fields can be set to update
|
2412
|
+
#
|
2413
|
+
# @overload #conversion_action(resource, &blk)
|
2414
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::ConversionAction] a resource instance to update
|
2415
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2416
|
+
# @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] the operation instance to update the resource
|
2417
|
+
def self.conversion_action(resource_or_path, &blk)
|
2418
|
+
require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
|
2419
|
+
res = case resource_or_path
|
2420
|
+
when Google::Ads::GoogleAds::V2::Resources::ConversionAction
|
2421
|
+
resource_or_path
|
2422
|
+
# got a resource path
|
2423
|
+
when String
|
2424
|
+
obj = Google::Ads::GoogleAds::V2::Resources::ConversionAction.new
|
2425
|
+
obj.resource_name = resource_or_path
|
2426
|
+
obj
|
2427
|
+
else
|
2428
|
+
unless Google::Ads::GoogleAds::V2::Resources::ConversionAction === res
|
2429
|
+
raise ArgumentError.new(
|
2430
|
+
"Called #{__method__} with instance of wrong type:"\
|
2431
|
+
" #{res.class} want #{operation.update_class}"\
|
2432
|
+
" or String representing resource name"
|
2433
|
+
)
|
2434
|
+
end
|
2435
|
+
end
|
2436
|
+
|
2437
|
+
op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
|
2438
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2439
|
+
op["update"] = res
|
2440
|
+
op
|
2441
|
+
end
|
2442
|
+
|
2521
2443
|
# A convenience method for creating an CustomerExtensionSettingOperation instance with
|
2522
2444
|
# its "update" field prepopulated with an CustomerExtensionSetting instance, and
|
2523
2445
|
# its "update_mask" field populated as needed to send the updates to the API.
|
@@ -2596,6 +2518,45 @@ module Google
|
|
2596
2518
|
op
|
2597
2519
|
end
|
2598
2520
|
|
2521
|
+
# A convenience method for creating an CustomerOperation instance with
|
2522
|
+
# its "update" field prepopulated with an Customer instance, and
|
2523
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2524
|
+
#
|
2525
|
+
# @overload #customer(path, &blk)
|
2526
|
+
# @param path [String] a resource path for the resource to update
|
2527
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::Customer] a new instance of the resource for this update operation, on
|
2528
|
+
# which fields can be set to update
|
2529
|
+
#
|
2530
|
+
# @overload #customer(resource, &blk)
|
2531
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::Customer] a resource instance to update
|
2532
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2533
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomerOperation] the operation instance to update the resource
|
2534
|
+
def self.customer(resource_or_path, &blk)
|
2535
|
+
require "google/ads/google_ads/v2/services/customer_service_pb.rb"
|
2536
|
+
res = case resource_or_path
|
2537
|
+
when Google::Ads::GoogleAds::V2::Resources::Customer
|
2538
|
+
resource_or_path
|
2539
|
+
# got a resource path
|
2540
|
+
when String
|
2541
|
+
obj = Google::Ads::GoogleAds::V2::Resources::Customer.new
|
2542
|
+
obj.resource_name = resource_or_path
|
2543
|
+
obj
|
2544
|
+
else
|
2545
|
+
unless Google::Ads::GoogleAds::V2::Resources::Customer === res
|
2546
|
+
raise ArgumentError.new(
|
2547
|
+
"Called #{__method__} with instance of wrong type:"\
|
2548
|
+
" #{res.class} want #{operation.update_class}"\
|
2549
|
+
" or String representing resource name"
|
2550
|
+
)
|
2551
|
+
end
|
2552
|
+
end
|
2553
|
+
|
2554
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
|
2555
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2556
|
+
op["update"] = res
|
2557
|
+
op
|
2558
|
+
end
|
2559
|
+
|
2599
2560
|
# A convenience method for creating an ExtensionFeedItemOperation instance with
|
2600
2561
|
# its "update" field prepopulated with an ExtensionFeedItem instance, and
|
2601
2562
|
# its "update_mask" field populated as needed to send the updates to the API.
|
@@ -2605,22 +2566,61 @@ module Google
|
|
2605
2566
|
# @yield [Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem] a new instance of the resource for this update operation, on
|
2606
2567
|
# which fields can be set to update
|
2607
2568
|
#
|
2608
|
-
# @overload #extension_feed_item(resource, &blk)
|
2609
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem] a resource instance to update
|
2569
|
+
# @overload #extension_feed_item(resource, &blk)
|
2570
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem] a resource instance to update
|
2571
|
+
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2572
|
+
# @return [Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation] the operation instance to update the resource
|
2573
|
+
def self.extension_feed_item(resource_or_path, &blk)
|
2574
|
+
require "google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb"
|
2575
|
+
res = case resource_or_path
|
2576
|
+
when Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem
|
2577
|
+
resource_or_path
|
2578
|
+
# got a resource path
|
2579
|
+
when String
|
2580
|
+
obj = Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem.new
|
2581
|
+
obj.resource_name = resource_or_path
|
2582
|
+
obj
|
2583
|
+
else
|
2584
|
+
unless Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem === res
|
2585
|
+
raise ArgumentError.new(
|
2586
|
+
"Called #{__method__} with instance of wrong type:"\
|
2587
|
+
" #{res.class} want #{operation.update_class}"\
|
2588
|
+
" or String representing resource name"
|
2589
|
+
)
|
2590
|
+
end
|
2591
|
+
end
|
2592
|
+
|
2593
|
+
op = Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation.new
|
2594
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2595
|
+
op["update"] = res
|
2596
|
+
op
|
2597
|
+
end
|
2598
|
+
|
2599
|
+
# A convenience method for creating an FeedItemOperation instance with
|
2600
|
+
# its "update" field prepopulated with an FeedItem instance, and
|
2601
|
+
# its "update_mask" field populated as needed to send the updates to the API.
|
2602
|
+
#
|
2603
|
+
# @overload #feed_item(path, &blk)
|
2604
|
+
# @param path [String] a resource path for the resource to update
|
2605
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::FeedItem] a new instance of the resource for this update operation, on
|
2606
|
+
# which fields can be set to update
|
2607
|
+
#
|
2608
|
+
# @overload #feed_item(resource, &blk)
|
2609
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::FeedItem] a resource instance to update
|
2610
2610
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2611
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2612
|
-
def self.
|
2613
|
-
require "google/ads/google_ads/v2/services/
|
2611
|
+
# @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] the operation instance to update the resource
|
2612
|
+
def self.feed_item(resource_or_path, &blk)
|
2613
|
+
require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
|
2614
2614
|
res = case resource_or_path
|
2615
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2615
|
+
when Google::Ads::GoogleAds::V2::Resources::FeedItem
|
2616
2616
|
resource_or_path
|
2617
2617
|
# got a resource path
|
2618
2618
|
when String
|
2619
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2619
|
+
obj = Google::Ads::GoogleAds::V2::Resources::FeedItem.new
|
2620
2620
|
obj.resource_name = resource_or_path
|
2621
2621
|
obj
|
2622
2622
|
else
|
2623
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2623
|
+
unless Google::Ads::GoogleAds::V2::Resources::FeedItem === res
|
2624
2624
|
raise ArgumentError.new(
|
2625
2625
|
"Called #{__method__} with instance of wrong type:"\
|
2626
2626
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2629,37 +2629,37 @@ module Google
|
|
2629
2629
|
end
|
2630
2630
|
end
|
2631
2631
|
|
2632
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2632
|
+
op = Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
|
2633
2633
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2634
2634
|
op["update"] = res
|
2635
2635
|
op
|
2636
2636
|
end
|
2637
2637
|
|
2638
|
-
# A convenience method for creating an
|
2639
|
-
# its "update" field prepopulated with an
|
2638
|
+
# A convenience method for creating an FeedOperation instance with
|
2639
|
+
# its "update" field prepopulated with an Feed instance, and
|
2640
2640
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2641
2641
|
#
|
2642
|
-
# @overload #
|
2642
|
+
# @overload #feed(path, &blk)
|
2643
2643
|
# @param path [String] a resource path for the resource to update
|
2644
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2644
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::Feed] a new instance of the resource for this update operation, on
|
2645
2645
|
# which fields can be set to update
|
2646
2646
|
#
|
2647
|
-
# @overload #
|
2648
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2647
|
+
# @overload #feed(resource, &blk)
|
2648
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::Feed] a resource instance to update
|
2649
2649
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2650
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2651
|
-
def self.
|
2652
|
-
require "google/ads/google_ads/v2/services/
|
2650
|
+
# @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation instance to update the resource
|
2651
|
+
def self.feed(resource_or_path, &blk)
|
2652
|
+
require "google/ads/google_ads/v2/services/feed_service_pb.rb"
|
2653
2653
|
res = case resource_or_path
|
2654
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2654
|
+
when Google::Ads::GoogleAds::V2::Resources::Feed
|
2655
2655
|
resource_or_path
|
2656
2656
|
# got a resource path
|
2657
2657
|
when String
|
2658
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2658
|
+
obj = Google::Ads::GoogleAds::V2::Resources::Feed.new
|
2659
2659
|
obj.resource_name = resource_or_path
|
2660
2660
|
obj
|
2661
2661
|
else
|
2662
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2662
|
+
unless Google::Ads::GoogleAds::V2::Resources::Feed === res
|
2663
2663
|
raise ArgumentError.new(
|
2664
2664
|
"Called #{__method__} with instance of wrong type:"\
|
2665
2665
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2668,7 +2668,7 @@ module Google
|
|
2668
2668
|
end
|
2669
2669
|
end
|
2670
2670
|
|
2671
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2671
|
+
op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
|
2672
2672
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2673
2673
|
op["update"] = res
|
2674
2674
|
op
|
@@ -2830,31 +2830,31 @@ module Google
|
|
2830
2830
|
op
|
2831
2831
|
end
|
2832
2832
|
|
2833
|
-
# A convenience method for creating an
|
2834
|
-
# its "update" field prepopulated with an
|
2833
|
+
# A convenience method for creating an AdOperation instance with
|
2834
|
+
# its "update" field prepopulated with an Ad instance, and
|
2835
2835
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2836
2836
|
#
|
2837
|
-
# @overload #
|
2837
|
+
# @overload #ad(path, &blk)
|
2838
2838
|
# @param path [String] a resource path for the resource to update
|
2839
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2839
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::Ad] a new instance of the resource for this update operation, on
|
2840
2840
|
# which fields can be set to update
|
2841
2841
|
#
|
2842
|
-
# @overload #
|
2843
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2842
|
+
# @overload #ad(resource, &blk)
|
2843
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::Ad] a resource instance to update
|
2844
2844
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2845
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2846
|
-
def self.
|
2847
|
-
require "google/ads/google_ads/v2/services/
|
2845
|
+
# @return [Google::Ads::GoogleAds::V2::Services::AdOperation] the operation instance to update the resource
|
2846
|
+
def self.ad(resource_or_path, &blk)
|
2847
|
+
require "google/ads/google_ads/v2/services/ad_service_pb.rb"
|
2848
2848
|
res = case resource_or_path
|
2849
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2849
|
+
when Google::Ads::GoogleAds::V2::Resources::Ad
|
2850
2850
|
resource_or_path
|
2851
2851
|
# got a resource path
|
2852
2852
|
when String
|
2853
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2853
|
+
obj = Google::Ads::GoogleAds::V2::Resources::Ad.new
|
2854
2854
|
obj.resource_name = resource_or_path
|
2855
2855
|
obj
|
2856
2856
|
else
|
2857
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2857
|
+
unless Google::Ads::GoogleAds::V2::Resources::Ad === res
|
2858
2858
|
raise ArgumentError.new(
|
2859
2859
|
"Called #{__method__} with instance of wrong type:"\
|
2860
2860
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2863,37 +2863,37 @@ module Google
|
|
2863
2863
|
end
|
2864
2864
|
end
|
2865
2865
|
|
2866
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2866
|
+
op = Google::Ads::GoogleAds::V2::Services::AdOperation.new
|
2867
2867
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2868
2868
|
op["update"] = res
|
2869
2869
|
op
|
2870
2870
|
end
|
2871
2871
|
|
2872
|
-
# A convenience method for creating an
|
2873
|
-
# its "update" field prepopulated with an
|
2872
|
+
# A convenience method for creating an CustomerClientLinkOperation instance with
|
2873
|
+
# its "update" field prepopulated with an CustomerClientLink instance, and
|
2874
2874
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2875
2875
|
#
|
2876
|
-
# @overload #
|
2876
|
+
# @overload #customer_client_link(path, &blk)
|
2877
2877
|
# @param path [String] a resource path for the resource to update
|
2878
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2878
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
|
2879
2879
|
# which fields can be set to update
|
2880
2880
|
#
|
2881
|
-
# @overload #
|
2882
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2881
|
+
# @overload #customer_client_link(resource, &blk)
|
2882
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink] a resource instance to update
|
2883
2883
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2884
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2885
|
-
def self.
|
2886
|
-
require "google/ads/google_ads/v2/services/
|
2884
|
+
# @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] the operation instance to update the resource
|
2885
|
+
def self.customer_client_link(resource_or_path, &blk)
|
2886
|
+
require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
|
2887
2887
|
res = case resource_or_path
|
2888
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2888
|
+
when Google::Ads::GoogleAds::V2::Resources::CustomerClientLink
|
2889
2889
|
resource_or_path
|
2890
2890
|
# got a resource path
|
2891
2891
|
when String
|
2892
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2892
|
+
obj = Google::Ads::GoogleAds::V2::Resources::CustomerClientLink.new
|
2893
2893
|
obj.resource_name = resource_or_path
|
2894
2894
|
obj
|
2895
2895
|
else
|
2896
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2896
|
+
unless Google::Ads::GoogleAds::V2::Resources::CustomerClientLink === res
|
2897
2897
|
raise ArgumentError.new(
|
2898
2898
|
"Called #{__method__} with instance of wrong type:"\
|
2899
2899
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2902,7 +2902,7 @@ module Google
|
|
2902
2902
|
end
|
2903
2903
|
end
|
2904
2904
|
|
2905
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2905
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
|
2906
2906
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2907
2907
|
op["update"] = res
|
2908
2908
|
op
|
@@ -2947,31 +2947,31 @@ module Google
|
|
2947
2947
|
op
|
2948
2948
|
end
|
2949
2949
|
|
2950
|
-
# A convenience method for creating an
|
2951
|
-
# its "update" field prepopulated with an
|
2950
|
+
# A convenience method for creating an MerchantCenterLinkOperation instance with
|
2951
|
+
# its "update" field prepopulated with an MerchantCenterLink instance, and
|
2952
2952
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2953
2953
|
#
|
2954
|
-
# @overload #
|
2954
|
+
# @overload #merchant_center_link(path, &blk)
|
2955
2955
|
# @param path [String] a resource path for the resource to update
|
2956
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2956
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on
|
2957
2957
|
# which fields can be set to update
|
2958
2958
|
#
|
2959
|
-
# @overload #
|
2960
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2959
|
+
# @overload #merchant_center_link(resource, &blk)
|
2960
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink] a resource instance to update
|
2961
2961
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
2962
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
2963
|
-
def self.
|
2964
|
-
require "google/ads/google_ads/v2/services/
|
2962
|
+
# @return [Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation] the operation instance to update the resource
|
2963
|
+
def self.merchant_center_link(resource_or_path, &blk)
|
2964
|
+
require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
|
2965
2965
|
res = case resource_or_path
|
2966
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
2966
|
+
when Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink
|
2967
2967
|
resource_or_path
|
2968
2968
|
# got a resource path
|
2969
2969
|
when String
|
2970
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
2970
|
+
obj = Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink.new
|
2971
2971
|
obj.resource_name = resource_or_path
|
2972
2972
|
obj
|
2973
2973
|
else
|
2974
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
2974
|
+
unless Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink === res
|
2975
2975
|
raise ArgumentError.new(
|
2976
2976
|
"Called #{__method__} with instance of wrong type:"\
|
2977
2977
|
" #{res.class} want #{operation.update_class}"\
|
@@ -2980,37 +2980,37 @@ module Google
|
|
2980
2980
|
end
|
2981
2981
|
end
|
2982
2982
|
|
2983
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
2983
|
+
op = Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
|
2984
2984
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
2985
2985
|
op["update"] = res
|
2986
2986
|
op
|
2987
2987
|
end
|
2988
2988
|
|
2989
|
-
# A convenience method for creating an
|
2990
|
-
# its "update" field prepopulated with an
|
2989
|
+
# A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with
|
2990
|
+
# its "update" field prepopulated with an KeywordPlanNegativeKeyword instance, and
|
2991
2991
|
# its "update_mask" field populated as needed to send the updates to the API.
|
2992
2992
|
#
|
2993
|
-
# @overload #
|
2993
|
+
# @overload #keyword_plan_negative_keyword(path, &blk)
|
2994
2994
|
# @param path [String] a resource path for the resource to update
|
2995
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
2995
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword] a new instance of the resource for this update operation, on
|
2996
2996
|
# which fields can be set to update
|
2997
2997
|
#
|
2998
|
-
# @overload #
|
2999
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
2998
|
+
# @overload #keyword_plan_negative_keyword(resource, &blk)
|
2999
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword] a resource instance to update
|
3000
3000
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3001
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
3002
|
-
def self.
|
3003
|
-
require "google/ads/google_ads/v2/services/
|
3001
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] the operation instance to update the resource
|
3002
|
+
def self.keyword_plan_negative_keyword(resource_or_path, &blk)
|
3003
|
+
require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
|
3004
3004
|
res = case resource_or_path
|
3005
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
3005
|
+
when Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword
|
3006
3006
|
resource_or_path
|
3007
3007
|
# got a resource path
|
3008
3008
|
when String
|
3009
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
3009
|
+
obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword.new
|
3010
3010
|
obj.resource_name = resource_or_path
|
3011
3011
|
obj
|
3012
3012
|
else
|
3013
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
3013
|
+
unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword === res
|
3014
3014
|
raise ArgumentError.new(
|
3015
3015
|
"Called #{__method__} with instance of wrong type:"\
|
3016
3016
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3019,37 +3019,37 @@ module Google
|
|
3019
3019
|
end
|
3020
3020
|
end
|
3021
3021
|
|
3022
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3022
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
|
3023
3023
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3024
3024
|
op["update"] = res
|
3025
3025
|
op
|
3026
3026
|
end
|
3027
3027
|
|
3028
|
-
# A convenience method for creating an
|
3029
|
-
# its "update" field prepopulated with an
|
3028
|
+
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
|
3029
|
+
# its "update" field prepopulated with an KeywordPlanAdGroup instance, and
|
3030
3030
|
# its "update_mask" field populated as needed to send the updates to the API.
|
3031
3031
|
#
|
3032
|
-
# @overload #
|
3032
|
+
# @overload #keyword_plan_ad_group(path, &blk)
|
3033
3033
|
# @param path [String] a resource path for the resource to update
|
3034
|
-
# @yield [Google::Ads::GoogleAds::V2::Resources::
|
3034
|
+
# @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup] a new instance of the resource for this update operation, on
|
3035
3035
|
# which fields can be set to update
|
3036
3036
|
#
|
3037
|
-
# @overload #
|
3038
|
-
# @param resource [Google::Ads::GoogleAds::V2::Resources::
|
3037
|
+
# @overload #keyword_plan_ad_group(resource, &blk)
|
3038
|
+
# @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup] a resource instance to update
|
3039
3039
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3040
|
-
# @return [Google::Ads::GoogleAds::V2::Services::
|
3041
|
-
def self.
|
3042
|
-
require "google/ads/google_ads/v2/services/
|
3040
|
+
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] the operation instance to update the resource
|
3041
|
+
def self.keyword_plan_ad_group(resource_or_path, &blk)
|
3042
|
+
require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
|
3043
3043
|
res = case resource_or_path
|
3044
|
-
when Google::Ads::GoogleAds::V2::Resources::
|
3044
|
+
when Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup
|
3045
3045
|
resource_or_path
|
3046
3046
|
# got a resource path
|
3047
3047
|
when String
|
3048
|
-
obj = Google::Ads::GoogleAds::V2::Resources::
|
3048
|
+
obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup.new
|
3049
3049
|
obj.resource_name = resource_or_path
|
3050
3050
|
obj
|
3051
3051
|
else
|
3052
|
-
unless Google::Ads::GoogleAds::V2::Resources::
|
3052
|
+
unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanAdGroup === res
|
3053
3053
|
raise ArgumentError.new(
|
3054
3054
|
"Called #{__method__} with instance of wrong type:"\
|
3055
3055
|
" #{res.class} want #{operation.update_class}"\
|
@@ -3058,7 +3058,7 @@ module Google
|
|
3058
3058
|
end
|
3059
3059
|
end
|
3060
3060
|
|
3061
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3061
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
|
3062
3062
|
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
|
3063
3063
|
op["update"] = res
|
3064
3064
|
op
|
@@ -3077,200 +3077,134 @@ module Google
|
|
3077
3077
|
op
|
3078
3078
|
end
|
3079
3079
|
|
3080
|
-
# A convenience method for creationg an
|
3081
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3082
|
-
#
|
3083
|
-
# @param path [String] the resource name of the resource to delete.
|
3084
|
-
def self.keyword_plan_keyword(path)
|
3085
|
-
require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
|
3086
|
-
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
|
3087
|
-
op["remove"] = path
|
3088
|
-
op
|
3089
|
-
end
|
3090
|
-
|
3091
|
-
# A convenience method for creationg an FeedMappingOperation instance with
|
3092
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3093
|
-
#
|
3094
|
-
# @param path [String] the resource name of the resource to delete.
|
3095
|
-
def self.feed_mapping(path)
|
3096
|
-
require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
|
3097
|
-
op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
|
3098
|
-
op["remove"] = path
|
3099
|
-
op
|
3100
|
-
end
|
3101
|
-
|
3102
|
-
# A convenience method for creationg an FeedOperation instance with
|
3103
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3104
|
-
#
|
3105
|
-
# @param path [String] the resource name of the resource to delete.
|
3106
|
-
def self.feed(path)
|
3107
|
-
require "google/ads/google_ads/v2/services/feed_service_pb.rb"
|
3108
|
-
op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
|
3109
|
-
op["remove"] = path
|
3110
|
-
op
|
3111
|
-
end
|
3112
|
-
|
3113
|
-
# A convenience method for creationg an AdGroupCriterionLabelOperation instance with
|
3114
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3115
|
-
#
|
3116
|
-
# @param path [String] the resource name of the resource to delete.
|
3117
|
-
def self.ad_group_criterion_label(path)
|
3118
|
-
require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
|
3119
|
-
op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
|
3120
|
-
op["remove"] = path
|
3121
|
-
op
|
3122
|
-
end
|
3123
|
-
|
3124
|
-
# A convenience method for creationg an ConversionActionOperation instance with
|
3125
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3126
|
-
#
|
3127
|
-
# @param path [String] the resource name of the resource to delete.
|
3128
|
-
def self.conversion_action(path)
|
3129
|
-
require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
|
3130
|
-
op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
|
3131
|
-
op["remove"] = path
|
3132
|
-
op
|
3133
|
-
end
|
3134
|
-
|
3135
|
-
# A convenience method for creationg an BiddingStrategyOperation instance with
|
3136
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3137
|
-
#
|
3138
|
-
# @param path [String] the resource name of the resource to delete.
|
3139
|
-
def self.bidding_strategy(path)
|
3140
|
-
require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
|
3141
|
-
op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
|
3142
|
-
op["remove"] = path
|
3143
|
-
op
|
3144
|
-
end
|
3145
|
-
|
3146
|
-
# A convenience method for creationg an AccountBudgetProposalOperation instance with
|
3080
|
+
# A convenience method for creationg an CampaignExperimentOperation instance with
|
3147
3081
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3148
3082
|
#
|
3149
3083
|
# @param path [String] the resource name of the resource to delete.
|
3150
|
-
def self.
|
3151
|
-
require "google/ads/google_ads/v2/services/
|
3152
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3084
|
+
def self.campaign_experiment(path)
|
3085
|
+
require "google/ads/google_ads/v2/services/campaign_experiment_service_pb.rb"
|
3086
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation.new
|
3153
3087
|
op["remove"] = path
|
3154
3088
|
op
|
3155
3089
|
end
|
3156
3090
|
|
3157
|
-
# A convenience method for creationg an
|
3091
|
+
# A convenience method for creationg an KeywordPlanKeywordOperation instance with
|
3158
3092
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3159
3093
|
#
|
3160
3094
|
# @param path [String] the resource name of the resource to delete.
|
3161
|
-
def self.
|
3162
|
-
require "google/ads/google_ads/v2/services/
|
3163
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3095
|
+
def self.keyword_plan_keyword(path)
|
3096
|
+
require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
|
3097
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
|
3164
3098
|
op["remove"] = path
|
3165
3099
|
op
|
3166
3100
|
end
|
3167
3101
|
|
3168
|
-
# A convenience method for creationg an
|
3102
|
+
# A convenience method for creationg an KeywordPlanOperation instance with
|
3169
3103
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3170
3104
|
#
|
3171
3105
|
# @param path [String] the resource name of the resource to delete.
|
3172
|
-
def self.
|
3173
|
-
require "google/ads/google_ads/v2/services/
|
3174
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3106
|
+
def self.keyword_plan(path)
|
3107
|
+
require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
|
3108
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
|
3175
3109
|
op["remove"] = path
|
3176
3110
|
op
|
3177
3111
|
end
|
3178
3112
|
|
3179
|
-
# A convenience method for creationg an
|
3113
|
+
# A convenience method for creationg an LabelOperation instance with
|
3180
3114
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3181
3115
|
#
|
3182
3116
|
# @param path [String] the resource name of the resource to delete.
|
3183
|
-
def self.
|
3184
|
-
require "google/ads/google_ads/v2/services/
|
3185
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3117
|
+
def self.label(path)
|
3118
|
+
require "google/ads/google_ads/v2/services/label_service_pb.rb"
|
3119
|
+
op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
|
3186
3120
|
op["remove"] = path
|
3187
3121
|
op
|
3188
3122
|
end
|
3189
3123
|
|
3190
|
-
# A convenience method for creationg an
|
3124
|
+
# A convenience method for creationg an CampaignCriterionOperation instance with
|
3191
3125
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3192
3126
|
#
|
3193
3127
|
# @param path [String] the resource name of the resource to delete.
|
3194
|
-
def self.
|
3195
|
-
require "google/ads/google_ads/v2/services/
|
3196
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3128
|
+
def self.campaign_criterion(path)
|
3129
|
+
require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
|
3130
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
|
3197
3131
|
op["remove"] = path
|
3198
3132
|
op
|
3199
3133
|
end
|
3200
3134
|
|
3201
|
-
# A convenience method for creationg an
|
3135
|
+
# A convenience method for creationg an CampaignLabelOperation instance with
|
3202
3136
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3203
3137
|
#
|
3204
3138
|
# @param path [String] the resource name of the resource to delete.
|
3205
|
-
def self.
|
3206
|
-
require "google/ads/google_ads/v2/services/
|
3207
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3139
|
+
def self.campaign_label(path)
|
3140
|
+
require "google/ads/google_ads/v2/services/campaign_label_service_pb.rb"
|
3141
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignLabelOperation.new
|
3208
3142
|
op["remove"] = path
|
3209
3143
|
op
|
3210
3144
|
end
|
3211
3145
|
|
3212
|
-
# A convenience method for creationg an
|
3146
|
+
# A convenience method for creationg an CustomInterestOperation instance with
|
3213
3147
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3214
3148
|
#
|
3215
3149
|
# @param path [String] the resource name of the resource to delete.
|
3216
|
-
def self.
|
3217
|
-
require "google/ads/google_ads/v2/services/
|
3218
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3150
|
+
def self.custom_interest(path)
|
3151
|
+
require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
|
3152
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
|
3219
3153
|
op["remove"] = path
|
3220
3154
|
op
|
3221
3155
|
end
|
3222
3156
|
|
3223
|
-
# A convenience method for creationg an
|
3157
|
+
# A convenience method for creationg an ApplyRecommendationOperation instance with
|
3224
3158
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3225
3159
|
#
|
3226
3160
|
# @param path [String] the resource name of the resource to delete.
|
3227
|
-
def self.
|
3228
|
-
require "google/ads/google_ads/v2/services/
|
3229
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3161
|
+
def self.apply_recommendation(path)
|
3162
|
+
require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
|
3163
|
+
op = Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation.new
|
3230
3164
|
op["remove"] = path
|
3231
3165
|
op
|
3232
3166
|
end
|
3233
3167
|
|
3234
|
-
# A convenience method for creationg an
|
3168
|
+
# A convenience method for creationg an DismissRecommendationOperation instance with
|
3235
3169
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3236
3170
|
#
|
3237
3171
|
# @param path [String] the resource name of the resource to delete.
|
3238
|
-
def self.
|
3239
|
-
require "google/ads/google_ads/v2/services/
|
3240
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3172
|
+
def self.dismiss_recommendation(path)
|
3173
|
+
require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
|
3174
|
+
op = Google::Ads::GoogleAds::V2::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
|
3241
3175
|
op["remove"] = path
|
3242
3176
|
op
|
3243
3177
|
end
|
3244
3178
|
|
3245
|
-
# A convenience method for creationg an
|
3179
|
+
# A convenience method for creationg an FeedMappingOperation instance with
|
3246
3180
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3247
3181
|
#
|
3248
3182
|
# @param path [String] the resource name of the resource to delete.
|
3249
|
-
def self.
|
3250
|
-
require "google/ads/google_ads/v2/services/
|
3251
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3183
|
+
def self.feed_mapping(path)
|
3184
|
+
require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
|
3185
|
+
op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
|
3252
3186
|
op["remove"] = path
|
3253
3187
|
op
|
3254
3188
|
end
|
3255
3189
|
|
3256
|
-
# A convenience method for creationg an
|
3190
|
+
# A convenience method for creationg an AdGroupCriterionLabelOperation instance with
|
3257
3191
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3258
3192
|
#
|
3259
3193
|
# @param path [String] the resource name of the resource to delete.
|
3260
|
-
def self.
|
3261
|
-
require "google/ads/google_ads/v2/services/
|
3262
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3194
|
+
def self.ad_group_criterion_label(path)
|
3195
|
+
require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
|
3196
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
|
3263
3197
|
op["remove"] = path
|
3264
3198
|
op
|
3265
3199
|
end
|
3266
3200
|
|
3267
|
-
# A convenience method for creationg an
|
3201
|
+
# A convenience method for creationg an AssetOperation instance with
|
3268
3202
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3269
3203
|
#
|
3270
3204
|
# @param path [String] the resource name of the resource to delete.
|
3271
|
-
def self.
|
3272
|
-
require "google/ads/google_ads/v2/services/
|
3273
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3205
|
+
def self.asset(path)
|
3206
|
+
require "google/ads/google_ads/v2/services/asset_service_pb.rb"
|
3207
|
+
op = Google::Ads::GoogleAds::V2::Services::AssetOperation.new
|
3274
3208
|
op["remove"] = path
|
3275
3209
|
op
|
3276
3210
|
end
|
@@ -3297,6 +3231,28 @@ module Google
|
|
3297
3231
|
op
|
3298
3232
|
end
|
3299
3233
|
|
3234
|
+
# A convenience method for creationg an AdGroupBidModifierOperation instance with
|
3235
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3236
|
+
#
|
3237
|
+
# @param path [String] the resource name of the resource to delete.
|
3238
|
+
def self.ad_group_bid_modifier(path)
|
3239
|
+
require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
|
3240
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
|
3241
|
+
op["remove"] = path
|
3242
|
+
op
|
3243
|
+
end
|
3244
|
+
|
3245
|
+
# A convenience method for creationg an AdGroupCriterionOperation instance with
|
3246
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3247
|
+
#
|
3248
|
+
# @param path [String] the resource name of the resource to delete.
|
3249
|
+
def self.ad_group_criterion(path)
|
3250
|
+
require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
|
3251
|
+
op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation.new
|
3252
|
+
op["remove"] = path
|
3253
|
+
op
|
3254
|
+
end
|
3255
|
+
|
3300
3256
|
# A convenience method for creationg an AdGroupExtensionSettingOperation instance with
|
3301
3257
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3302
3258
|
#
|
@@ -3352,13 +3308,13 @@ module Google
|
|
3352
3308
|
op
|
3353
3309
|
end
|
3354
3310
|
|
3355
|
-
# A convenience method for creationg an
|
3311
|
+
# A convenience method for creationg an BiddingStrategyOperation instance with
|
3356
3312
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3357
3313
|
#
|
3358
3314
|
# @param path [String] the resource name of the resource to delete.
|
3359
|
-
def self.
|
3360
|
-
require "google/ads/google_ads/v2/services/
|
3361
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3315
|
+
def self.bidding_strategy(path)
|
3316
|
+
require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
|
3317
|
+
op = Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
|
3362
3318
|
op["remove"] = path
|
3363
3319
|
op
|
3364
3320
|
end
|
@@ -3374,24 +3330,24 @@ module Google
|
|
3374
3330
|
op
|
3375
3331
|
end
|
3376
3332
|
|
3377
|
-
# A convenience method for creationg an
|
3333
|
+
# A convenience method for creationg an CampaignBudgetOperation instance with
|
3378
3334
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3379
3335
|
#
|
3380
3336
|
# @param path [String] the resource name of the resource to delete.
|
3381
|
-
def self.
|
3382
|
-
require "google/ads/google_ads/v2/services/
|
3383
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3337
|
+
def self.campaign_budget(path)
|
3338
|
+
require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
|
3339
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation.new
|
3384
3340
|
op["remove"] = path
|
3385
3341
|
op
|
3386
3342
|
end
|
3387
3343
|
|
3388
|
-
# A convenience method for creationg an
|
3344
|
+
# A convenience method for creationg an CampaignDraftOperation instance with
|
3389
3345
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3390
3346
|
#
|
3391
3347
|
# @param path [String] the resource name of the resource to delete.
|
3392
|
-
def self.
|
3393
|
-
require "google/ads/google_ads/v2/services/
|
3394
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3348
|
+
def self.campaign_draft(path)
|
3349
|
+
require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
|
3350
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
|
3395
3351
|
op["remove"] = path
|
3396
3352
|
op
|
3397
3353
|
end
|
@@ -3407,6 +3363,17 @@ module Google
|
|
3407
3363
|
op
|
3408
3364
|
end
|
3409
3365
|
|
3366
|
+
# A convenience method for creationg an CampaignFeedOperation instance with
|
3367
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3368
|
+
#
|
3369
|
+
# @param path [String] the resource name of the resource to delete.
|
3370
|
+
def self.campaign_feed(path)
|
3371
|
+
require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
|
3372
|
+
op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
|
3373
|
+
op["remove"] = path
|
3374
|
+
op
|
3375
|
+
end
|
3376
|
+
|
3410
3377
|
# A convenience method for creationg an CampaignOperation instance with
|
3411
3378
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3412
3379
|
#
|
@@ -3429,6 +3396,17 @@ module Google
|
|
3429
3396
|
op
|
3430
3397
|
end
|
3431
3398
|
|
3399
|
+
# A convenience method for creationg an ConversionActionOperation instance with
|
3400
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3401
|
+
#
|
3402
|
+
# @param path [String] the resource name of the resource to delete.
|
3403
|
+
def self.conversion_action(path)
|
3404
|
+
require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
|
3405
|
+
op = Google::Ads::GoogleAds::V2::Services::ConversionActionOperation.new
|
3406
|
+
op["remove"] = path
|
3407
|
+
op
|
3408
|
+
end
|
3409
|
+
|
3432
3410
|
# A convenience method for creationg an CustomerExtensionSettingOperation instance with
|
3433
3411
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3434
3412
|
#
|
@@ -3473,6 +3451,17 @@ module Google
|
|
3473
3451
|
op
|
3474
3452
|
end
|
3475
3453
|
|
3454
|
+
# A convenience method for creationg an CustomerOperation instance with
|
3455
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3456
|
+
#
|
3457
|
+
# @param path [String] the resource name of the resource to delete.
|
3458
|
+
def self.customer(path)
|
3459
|
+
require "google/ads/google_ads/v2/services/customer_service_pb.rb"
|
3460
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
|
3461
|
+
op["remove"] = path
|
3462
|
+
op
|
3463
|
+
end
|
3464
|
+
|
3476
3465
|
# A convenience method for creationg an ExtensionFeedItemOperation instance with
|
3477
3466
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3478
3467
|
#
|
@@ -3484,6 +3473,17 @@ module Google
|
|
3484
3473
|
op
|
3485
3474
|
end
|
3486
3475
|
|
3476
|
+
# A convenience method for creationg an FeedItemOperation instance with
|
3477
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3478
|
+
#
|
3479
|
+
# @param path [String] the resource name of the resource to delete.
|
3480
|
+
def self.feed_item(path)
|
3481
|
+
require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
|
3482
|
+
op = Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
|
3483
|
+
op["remove"] = path
|
3484
|
+
op
|
3485
|
+
end
|
3486
|
+
|
3487
3487
|
# A convenience method for creationg an FeedItemTargetOperation instance with
|
3488
3488
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3489
3489
|
#
|
@@ -3495,13 +3495,13 @@ module Google
|
|
3495
3495
|
op
|
3496
3496
|
end
|
3497
3497
|
|
3498
|
-
# A convenience method for creationg an
|
3498
|
+
# A convenience method for creationg an FeedOperation instance with
|
3499
3499
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3500
3500
|
#
|
3501
3501
|
# @param path [String] the resource name of the resource to delete.
|
3502
|
-
def self.
|
3503
|
-
require "google/ads/google_ads/v2/services/
|
3504
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3502
|
+
def self.feed(path)
|
3503
|
+
require "google/ads/google_ads/v2/services/feed_service_pb.rb"
|
3504
|
+
op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
|
3505
3505
|
op["remove"] = path
|
3506
3506
|
op
|
3507
3507
|
end
|
@@ -3528,6 +3528,17 @@ module Google
|
|
3528
3528
|
op
|
3529
3529
|
end
|
3530
3530
|
|
3531
|
+
# A convenience method for creationg an SharedCriterionOperation instance with
|
3532
|
+
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3533
|
+
#
|
3534
|
+
# @param path [String] the resource name of the resource to delete.
|
3535
|
+
def self.shared_criterion(path)
|
3536
|
+
require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
|
3537
|
+
op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
|
3538
|
+
op["remove"] = path
|
3539
|
+
op
|
3540
|
+
end
|
3541
|
+
|
3531
3542
|
# A convenience method for creationg an SharedSetOperation instance with
|
3532
3543
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3533
3544
|
#
|
@@ -3561,35 +3572,24 @@ module Google
|
|
3561
3572
|
op
|
3562
3573
|
end
|
3563
3574
|
|
3564
|
-
# A convenience method for creationg an
|
3565
|
-
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3566
|
-
#
|
3567
|
-
# @param path [String] the resource name of the resource to delete.
|
3568
|
-
def self.apply_recommendation(path)
|
3569
|
-
require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
|
3570
|
-
op = Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation.new
|
3571
|
-
op["remove"] = path
|
3572
|
-
op
|
3573
|
-
end
|
3574
|
-
|
3575
|
-
# A convenience method for creationg an DismissRecommendationOperation instance with
|
3575
|
+
# A convenience method for creationg an KeywordPlanCampaignOperation instance with
|
3576
3576
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3577
3577
|
#
|
3578
3578
|
# @param path [String] the resource name of the resource to delete.
|
3579
|
-
def self.
|
3580
|
-
require "google/ads/google_ads/v2/services/
|
3581
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3579
|
+
def self.keyword_plan_campaign(path)
|
3580
|
+
require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
|
3581
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
|
3582
3582
|
op["remove"] = path
|
3583
3583
|
op
|
3584
3584
|
end
|
3585
3585
|
|
3586
|
-
# A convenience method for creationg an
|
3586
|
+
# A convenience method for creationg an AdOperation instance with
|
3587
3587
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3588
3588
|
#
|
3589
3589
|
# @param path [String] the resource name of the resource to delete.
|
3590
|
-
def self.
|
3591
|
-
require "google/ads/google_ads/v2/services/
|
3592
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3590
|
+
def self.ad(path)
|
3591
|
+
require "google/ads/google_ads/v2/services/ad_service_pb.rb"
|
3592
|
+
op = Google::Ads::GoogleAds::V2::Services::AdOperation.new
|
3593
3593
|
op["remove"] = path
|
3594
3594
|
op
|
3595
3595
|
end
|
@@ -3605,24 +3605,24 @@ module Google
|
|
3605
3605
|
op
|
3606
3606
|
end
|
3607
3607
|
|
3608
|
-
# A convenience method for creationg an
|
3608
|
+
# A convenience method for creationg an CustomerClientLinkOperation instance with
|
3609
3609
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3610
3610
|
#
|
3611
3611
|
# @param path [String] the resource name of the resource to delete.
|
3612
|
-
def self.
|
3613
|
-
require "google/ads/google_ads/v2/services/
|
3614
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3612
|
+
def self.customer_client_link(path)
|
3613
|
+
require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
|
3614
|
+
op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
|
3615
3615
|
op["remove"] = path
|
3616
3616
|
op
|
3617
3617
|
end
|
3618
3618
|
|
3619
|
-
# A convenience method for creationg an
|
3619
|
+
# A convenience method for creationg an AccountBudgetProposalOperation instance with
|
3620
3620
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3621
3621
|
#
|
3622
3622
|
# @param path [String] the resource name of the resource to delete.
|
3623
|
-
def self.
|
3624
|
-
require "google/ads/google_ads/v2/services/
|
3625
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3623
|
+
def self.account_budget_proposal(path)
|
3624
|
+
require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
|
3625
|
+
op = Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
|
3626
3626
|
op["remove"] = path
|
3627
3627
|
op
|
3628
3628
|
end
|
@@ -3638,35 +3638,35 @@ module Google
|
|
3638
3638
|
op
|
3639
3639
|
end
|
3640
3640
|
|
3641
|
-
# A convenience method for creationg an
|
3641
|
+
# A convenience method for creationg an MerchantCenterLinkOperation instance with
|
3642
3642
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3643
3643
|
#
|
3644
3644
|
# @param path [String] the resource name of the resource to delete.
|
3645
|
-
def self.
|
3646
|
-
require "google/ads/google_ads/v2/services/
|
3647
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3645
|
+
def self.merchant_center_link(path)
|
3646
|
+
require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
|
3647
|
+
op = Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
|
3648
3648
|
op["remove"] = path
|
3649
3649
|
op
|
3650
3650
|
end
|
3651
3651
|
|
3652
|
-
# A convenience method for creationg an
|
3652
|
+
# A convenience method for creationg an KeywordPlanNegativeKeywordOperation instance with
|
3653
3653
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3654
3654
|
#
|
3655
3655
|
# @param path [String] the resource name of the resource to delete.
|
3656
|
-
def self.
|
3657
|
-
require "google/ads/google_ads/v2/services/
|
3658
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3656
|
+
def self.keyword_plan_negative_keyword(path)
|
3657
|
+
require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
|
3658
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
|
3659
3659
|
op["remove"] = path
|
3660
3660
|
op
|
3661
3661
|
end
|
3662
3662
|
|
3663
|
-
# A convenience method for creationg an
|
3663
|
+
# A convenience method for creationg an KeywordPlanAdGroupOperation instance with
|
3664
3664
|
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
|
3665
3665
|
#
|
3666
3666
|
# @param path [String] the resource name of the resource to delete.
|
3667
|
-
def self.
|
3668
|
-
require "google/ads/google_ads/v2/services/
|
3669
|
-
op = Google::Ads::GoogleAds::V2::Services::
|
3667
|
+
def self.keyword_plan_ad_group(path)
|
3668
|
+
require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
|
3669
|
+
op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
|
3670
3670
|
op["remove"] = path
|
3671
3671
|
op
|
3672
3672
|
end
|