google-ads-googleads 8.0.0 → 8.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1486ef9b9f358297e9d47646256f3a2e28f0490649f7609a303afab08acb7d74
4
- data.tar.gz: ea57bf38a0d3be613d2f6edff92b8d61df975b35aba6f63fb5992d2ada5fb6f3
3
+ metadata.gz: 70523833f626f34b97369e69db8b6d8e5eaa38d32926b5e9523e8849b3886362
4
+ data.tar.gz: d5a6284d0efc3e807b6ca30dbd71844c98319c4094d90a1bbdf14a67f9987bba
5
5
  SHA512:
6
- metadata.gz: 2cea614b80767074fcfc1c2f0db5e858201054e8a42e241f8cfbb00c3dae79082401b2b79b511703d8282c5377cbd131b4603960a544b770310e92c90c1b51c9
7
- data.tar.gz: 289a5dd6247607ea6a6d6c826a23a8e541d7c6846bb91ad3c68d7b258d0340b2a71210e1ef461158457889be5e38dcac97e5e351c133839da10344935db66e04
6
+ metadata.gz: 69995336819672197c64807ea5014677393565a4ddb3d42b509049ed70c9ce75f4d398505c6218b400d2be7d04ec0d5c3f0be10a8c99f03069436877b5568954
7
+ data.tar.gz: ae87788b2bb7199b030792f3c570a0fb3b5d1eb20e135169e34828d8e07dad4c7b91fa70e2302c8e34e82f7e3ae6fe5ce8532b30bc4745ae04047a498b83a14f
data/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ 8.1.0:
2
+ - Added support for loading configuration from environment variables in
3
+ addition to existing methods.
4
+ - Added support for creating operations to support block syntax like we do
5
+ for resources.
6
+
1
7
  8.0.0:
2
8
  - Compatibility with v6 of the API: https://developers.google.com/google-ads/api/docs/release-notes
3
9
  - Removed support for v2.
data/README.md CHANGED
@@ -113,6 +113,9 @@ To fetch a specific service, for example CampaignService:
113
113
  See the provided [examples][] for more detailed demonstrations of how to use the
114
114
  library.
115
115
 
116
+ **Note:** You can ignore comments with `[START...]` and `[END...]` in
117
+ examples—they are specifically used by Google.
118
+
116
119
  Once you're familiar with the [examples][], we also recommend familiarizing
117
120
  yourself with [factories][], which provides a set of high level convenience
118
121
  methods for working with the Google Ads API
@@ -60,6 +60,16 @@ Google::Ads::GoogleAds::Config.new do |c|
60
60
  # value.
61
61
  # c.login_customer_id = 'INSERT_LOGIN_CUSTOMER_ID_HERE'
62
62
 
63
+ # This header is only required for methods that update the resources of an
64
+ # entity when permissioned via Linked Accounts in the Google Ads UI
65
+ # (account_link resource in the Google Ads API). Set this value to the
66
+ # customer ID of the data provider that updates the resources of the specified
67
+ # customer ID. It should be set without dashes, for example: 1234567890
68
+ # instead of 123-456-7890.
69
+ # Read https://support.google.com/google-ads/answer/7365001 to learn more
70
+ # about Linked Accounts.
71
+ # c.linked_customer_id = "INSERT_LINKED_CUSTOMER_ID_HERE"
72
+
63
73
  # Logging-related fields. You may also specify a logger after instantiation
64
74
  # by using client.logger=.
65
75
 
@@ -31,6 +31,7 @@ module Google
31
31
 
32
32
  attr_accessor :developer_token
33
33
  attr_accessor :login_customer_id
34
+ attr_accessor :linked_customer_id
34
35
 
35
36
  attr_accessor :log_level
36
37
  attr_accessor :log_target
@@ -41,6 +42,8 @@ module Google
41
42
 
42
43
  attr_accessor :use_insecure_channel
43
44
 
45
+ attr_accessor :api_endpoint
46
+
44
47
  def initialize(&block)
45
48
  @refresh_token = nil
46
49
  @client_id = nil
@@ -51,6 +54,7 @@ module Google
51
54
 
52
55
  @developer_token = nil
53
56
  @login_customer_id = nil
57
+ @linked_customer_id = nil
54
58
 
55
59
  @log_level = nil
56
60
  @log_target = nil
@@ -61,6 +65,8 @@ module Google
61
65
 
62
66
  @use_insecure_channel = false
63
67
 
68
+ @api_endpoint = nil
69
+
64
70
  yield self if block_given?
65
71
  end
66
72
 
@@ -9,7 +9,13 @@ module Google
9
9
  # @return [Google::Ads::GoogleAds::V3::Resources::FeedAttributeOperation] the operation
10
10
  def self.feed_attribute
11
11
  require "google/ads/google_ads/v3/resources/feed_pb"
12
- Google::Ads::GoogleAds::V3::Resources::FeedAttributeOperation.new
12
+ if block_given?
13
+ op = Google::Ads::GoogleAds::V3::Resources::FeedAttributeOperation.new
14
+ yield op
15
+ op
16
+ else
17
+ Google::Ads::GoogleAds::V3::Resources::FeedAttributeOperation.new
18
+ end
13
19
  end
14
20
 
15
21
  # Create a new TargetRestrictionOperation
@@ -17,7 +23,13 @@ module Google
17
23
  # @return [Google::Ads::GoogleAds::V3::Common::TargetRestrictionOperation] the operation
18
24
  def self.target_restriction
19
25
  require "google/ads/google_ads/v3/common/targeting_setting_pb"
20
- Google::Ads::GoogleAds::V3::Common::TargetRestrictionOperation.new
26
+ if block_given?
27
+ op = Google::Ads::GoogleAds::V3::Common::TargetRestrictionOperation.new
28
+ yield op
29
+ op
30
+ else
31
+ Google::Ads::GoogleAds::V3::Common::TargetRestrictionOperation.new
32
+ end
21
33
  end
22
34
 
23
35
  # Create a new CustomerClientLinkOperation
@@ -25,7 +37,13 @@ module Google
25
37
  # @return [Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation] the operation
26
38
  def self.customer_client_link
27
39
  require "google/ads/google_ads/v3/services/customer_client_link_service_pb"
28
- Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation.new
40
+ if block_given?
41
+ op = Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation.new
42
+ yield op
43
+ op
44
+ else
45
+ Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation.new
46
+ end
29
47
  end
30
48
 
31
49
  # Create a new CustomInterestOperation
@@ -33,7 +51,13 @@ module Google
33
51
  # @return [Google::Ads::GoogleAds::V3::Services::CustomInterestOperation] the operation
34
52
  def self.custom_interest
35
53
  require "google/ads/google_ads/v3/services/custom_interest_service_pb"
36
- Google::Ads::GoogleAds::V3::Services::CustomInterestOperation.new
54
+ if block_given?
55
+ op = Google::Ads::GoogleAds::V3::Services::CustomInterestOperation.new
56
+ yield op
57
+ op
58
+ else
59
+ Google::Ads::GoogleAds::V3::Services::CustomInterestOperation.new
60
+ end
37
61
  end
38
62
 
39
63
  # Create a new CustomerNegativeCriterionOperation
@@ -41,7 +65,13 @@ module Google
41
65
  # @return [Google::Ads::GoogleAds::V3::Services::CustomerNegativeCriterionOperation] the operation
42
66
  def self.customer_negative_criterion
43
67
  require "google/ads/google_ads/v3/services/customer_negative_criterion_service_pb"
44
- Google::Ads::GoogleAds::V3::Services::CustomerNegativeCriterionOperation.new
68
+ if block_given?
69
+ op = Google::Ads::GoogleAds::V3::Services::CustomerNegativeCriterionOperation.new
70
+ yield op
71
+ op
72
+ else
73
+ Google::Ads::GoogleAds::V3::Services::CustomerNegativeCriterionOperation.new
74
+ end
45
75
  end
46
76
 
47
77
  # Create a new SharedCriterionOperation
@@ -49,7 +79,13 @@ module Google
49
79
  # @return [Google::Ads::GoogleAds::V3::Services::SharedCriterionOperation] the operation
50
80
  def self.shared_criterion
51
81
  require "google/ads/google_ads/v3/services/shared_criterion_service_pb"
52
- Google::Ads::GoogleAds::V3::Services::SharedCriterionOperation.new
82
+ if block_given?
83
+ op = Google::Ads::GoogleAds::V3::Services::SharedCriterionOperation.new
84
+ yield op
85
+ op
86
+ else
87
+ Google::Ads::GoogleAds::V3::Services::SharedCriterionOperation.new
88
+ end
53
89
  end
54
90
 
55
91
  # Create a new FeedMappingOperation
@@ -57,7 +93,13 @@ module Google
57
93
  # @return [Google::Ads::GoogleAds::V3::Services::FeedMappingOperation] the operation
58
94
  def self.feed_mapping
59
95
  require "google/ads/google_ads/v3/services/feed_mapping_service_pb"
60
- Google::Ads::GoogleAds::V3::Services::FeedMappingOperation.new
96
+ if block_given?
97
+ op = Google::Ads::GoogleAds::V3::Services::FeedMappingOperation.new
98
+ yield op
99
+ op
100
+ else
101
+ Google::Ads::GoogleAds::V3::Services::FeedMappingOperation.new
102
+ end
61
103
  end
62
104
 
63
105
  # Create a new AdGroupOperation
@@ -65,7 +107,13 @@ module Google
65
107
  # @return [Google::Ads::GoogleAds::V3::Services::AdGroupOperation] the operation
66
108
  def self.ad_group
67
109
  require "google/ads/google_ads/v3/services/ad_group_service_pb"
68
- Google::Ads::GoogleAds::V3::Services::AdGroupOperation.new
110
+ if block_given?
111
+ op = Google::Ads::GoogleAds::V3::Services::AdGroupOperation.new
112
+ yield op
113
+ op
114
+ else
115
+ Google::Ads::GoogleAds::V3::Services::AdGroupOperation.new
116
+ end
69
117
  end
70
118
 
71
119
  # Create a new CampaignBidModifierOperation
@@ -73,7 +121,13 @@ module Google
73
121
  # @return [Google::Ads::GoogleAds::V3::Services::CampaignBidModifierOperation] the operation
74
122
  def self.campaign_bid_modifier
75
123
  require "google/ads/google_ads/v3/services/campaign_bid_modifier_service_pb"
76
- Google::Ads::GoogleAds::V3::Services::CampaignBidModifierOperation.new
124
+ if block_given?
125
+ op = Google::Ads::GoogleAds::V3::Services::CampaignBidModifierOperation.new
126
+ yield op
127
+ op
128
+ else
129
+ Google::Ads::GoogleAds::V3::Services::CampaignBidModifierOperation.new
130
+ end
77
131
  end
78
132
 
79
133
  # Create a new CustomerManagerLinkOperation
@@ -81,7 +135,13 @@ module Google
81
135
  # @return [Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkOperation] the operation
82
136
  def self.customer_manager_link
83
137
  require "google/ads/google_ads/v3/services/customer_manager_link_service_pb"
84
- Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkOperation.new
138
+ if block_given?
139
+ op = Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkOperation.new
140
+ yield op
141
+ op
142
+ else
143
+ Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkOperation.new
144
+ end
85
145
  end
86
146
 
87
147
  # Create a new CampaignDraftOperation
@@ -89,7 +149,13 @@ module Google
89
149
  # @return [Google::Ads::GoogleAds::V3::Services::CampaignDraftOperation] the operation
90
150
  def self.campaign_draft
91
151
  require "google/ads/google_ads/v3/services/campaign_draft_service_pb"
92
- Google::Ads::GoogleAds::V3::Services::CampaignDraftOperation.new
152
+ if block_given?
153
+ op = Google::Ads::GoogleAds::V3::Services::CampaignDraftOperation.new
154
+ yield op
155
+ op
156
+ else
157
+ Google::Ads::GoogleAds::V3::Services::CampaignDraftOperation.new
158
+ end
93
159
  end
94
160
 
95
161
  # Create a new UserListOperation
@@ -97,7 +163,13 @@ module Google
97
163
  # @return [Google::Ads::GoogleAds::V3::Services::UserListOperation] the operation
98
164
  def self.user_list
99
165
  require "google/ads/google_ads/v3/services/user_list_service_pb"
100
- Google::Ads::GoogleAds::V3::Services::UserListOperation.new
166
+ if block_given?
167
+ op = Google::Ads::GoogleAds::V3::Services::UserListOperation.new
168
+ yield op
169
+ op
170
+ else
171
+ Google::Ads::GoogleAds::V3::Services::UserListOperation.new
172
+ end
101
173
  end
102
174
 
103
175
  # Create a new CustomerOperation
@@ -105,7 +177,13 @@ module Google
105
177
  # @return [Google::Ads::GoogleAds::V3::Services::CustomerOperation] the operation
106
178
  def self.customer
107
179
  require "google/ads/google_ads/v3/services/customer_service_pb"
108
- Google::Ads::GoogleAds::V3::Services::CustomerOperation.new
180
+ if block_given?
181
+ op = Google::Ads::GoogleAds::V3::Services::CustomerOperation.new
182
+ yield op
183
+ op
184
+ else
185
+ Google::Ads::GoogleAds::V3::Services::CustomerOperation.new
186
+ end
109
187
  end
110
188
 
111
189
  # Create a new SharedSetOperation
@@ -113,7 +191,13 @@ module Google
113
191
  # @return [Google::Ads::GoogleAds::V3::Services::SharedSetOperation] the operation
114
192
  def self.shared_set
115
193
  require "google/ads/google_ads/v3/services/shared_set_service_pb"
116
- Google::Ads::GoogleAds::V3::Services::SharedSetOperation.new
194
+ if block_given?
195
+ op = Google::Ads::GoogleAds::V3::Services::SharedSetOperation.new
196
+ yield op
197
+ op
198
+ else
199
+ Google::Ads::GoogleAds::V3::Services::SharedSetOperation.new
200
+ end
117
201
  end
118
202
 
119
203
  # Create a new AdGroupCriterionLabelOperation
@@ -121,7 +205,13 @@ module Google
121
205
  # @return [Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation] the operation
122
206
  def self.ad_group_criterion_label
123
207
  require "google/ads/google_ads/v3/services/ad_group_criterion_label_service_pb"
124
- Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation.new
208
+ if block_given?
209
+ op = Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation.new
210
+ yield op
211
+ op
212
+ else
213
+ Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation.new
214
+ end
125
215
  end
126
216
 
127
217
  # Create a new LabelOperation
@@ -129,7 +219,13 @@ module Google
129
219
  # @return [Google::Ads::GoogleAds::V3::Services::LabelOperation] the operation
130
220
  def self.label
131
221
  require "google/ads/google_ads/v3/services/label_service_pb"
132
- Google::Ads::GoogleAds::V3::Services::LabelOperation.new
222
+ if block_given?
223
+ op = Google::Ads::GoogleAds::V3::Services::LabelOperation.new
224
+ yield op
225
+ op
226
+ else
227
+ Google::Ads::GoogleAds::V3::Services::LabelOperation.new
228
+ end
133
229
  end
134
230
 
135
231
  # Create a new AdOperation
@@ -137,7 +233,13 @@ module Google
137
233
  # @return [Google::Ads::GoogleAds::V3::Services::AdOperation] the operation
138
234
  def self.ad
139
235
  require "google/ads/google_ads/v3/services/ad_service_pb"
140
- Google::Ads::GoogleAds::V3::Services::AdOperation.new
236
+ if block_given?
237
+ op = Google::Ads::GoogleAds::V3::Services::AdOperation.new
238
+ yield op
239
+ op
240
+ else
241
+ Google::Ads::GoogleAds::V3::Services::AdOperation.new
242
+ end
141
243
  end
142
244
 
143
245
  # Create a new AdGroupAdLabelOperation
@@ -145,7 +247,13 @@ module Google
145
247
  # @return [Google::Ads::GoogleAds::V3::Services::AdGroupAdLabelOperation] the operation
146
248
  def self.ad_group_ad_label
147
249
  require "google/ads/google_ads/v3/services/ad_group_ad_label_service_pb"
148
- Google::Ads::GoogleAds::V3::Services::AdGroupAdLabelOperation.new
250
+ if block_given?
251
+ op = Google::Ads::GoogleAds::V3::Services::AdGroupAdLabelOperation.new
252
+ yield op
253
+ op
254
+ else
255
+ Google::Ads::GoogleAds::V3::Services::AdGroupAdLabelOperation.new
256
+ end
149
257
  end
150
258
 
151
259
  # Create a new AdGroupAdOperation
@@ -153,7 +261,13 @@ module Google
153
261
  # @return [Google::Ads::GoogleAds::V3::Services::AdGroupAdOperation] the operation
154
262
  def self.ad_group_ad
155
263
  require "google/ads/google_ads/v3/services/ad_group_ad_service_pb"
156
- Google::Ads::GoogleAds::V3::Services::AdGroupAdOperation.new
264
+ if block_given?
265
+ op = Google::Ads::GoogleAds::V3::Services::AdGroupAdOperation.new
266
+ yield op
267
+ op
268
+ else
269
+ Google::Ads::GoogleAds::V3::Services::AdGroupAdOperation.new
270
+ end
157
271
  end
158
272
 
159
273
  # Create a new AdGroupBidModifierOperation
@@ -161,7 +275,13 @@ module Google
161
275
  # @return [Google::Ads::GoogleAds::V3::Services::AdGroupBidModifierOperation] the operation
162
276
  def self.ad_group_bid_modifier
163
277
  require "google/ads/google_ads/v3/services/ad_group_bid_modifier_service_pb"
164
- Google::Ads::GoogleAds::V3::Services::AdGroupBidModifierOperation.new
278
+ if block_given?
279
+ op = Google::Ads::GoogleAds::V3::Services::AdGroupBidModifierOperation.new
280
+ yield op
281
+ op
282
+ else
283
+ Google::Ads::GoogleAds::V3::Services::AdGroupBidModifierOperation.new
284
+ end
165
285
  end
166
286
 
167
287
  # Create a new AdGroupCriterionOperation
@@ -169,7 +289,13 @@ module Google
169
289
  # @return [Google::Ads::GoogleAds::V3::Services::AdGroupCriterionOperation] the operation
170
290
  def self.ad_group_criterion
171
291
  require "google/ads/google_ads/v3/services/ad_group_criterion_service_pb"
172
- Google::Ads::GoogleAds::V3::Services::AdGroupCriterionOperation.new
292
+ if block_given?
293
+ op = Google::Ads::GoogleAds::V3::Services::AdGroupCriterionOperation.new
294
+ yield op
295
+ op
296
+ else
297
+ Google::Ads::GoogleAds::V3::Services::AdGroupCriterionOperation.new
298
+ end
173
299
  end
174
300
 
175
301
  # Create a new AdGroupExtensionSettingOperation
@@ -177,7 +303,13 @@ module Google
177
303
  # @return [Google::Ads::GoogleAds::V3::Services::AdGroupExtensionSettingOperation] the operation
178
304
  def self.ad_group_extension_setting
179
305
  require "google/ads/google_ads/v3/services/ad_group_extension_setting_service_pb"
180
- Google::Ads::GoogleAds::V3::Services::AdGroupExtensionSettingOperation.new
306
+ if block_given?
307
+ op = Google::Ads::GoogleAds::V3::Services::AdGroupExtensionSettingOperation.new
308
+ yield op
309
+ op
310
+ else
311
+ Google::Ads::GoogleAds::V3::Services::AdGroupExtensionSettingOperation.new
312
+ end
181
313
  end
182
314
 
183
315
  # Create a new AdGroupFeedOperation
@@ -185,7 +317,13 @@ module Google
185
317
  # @return [Google::Ads::GoogleAds::V3::Services::AdGroupFeedOperation] the operation
186
318
  def self.ad_group_feed
187
319
  require "google/ads/google_ads/v3/services/ad_group_feed_service_pb"
188
- Google::Ads::GoogleAds::V3::Services::AdGroupFeedOperation.new
320
+ if block_given?
321
+ op = Google::Ads::GoogleAds::V3::Services::AdGroupFeedOperation.new
322
+ yield op
323
+ op
324
+ else
325
+ Google::Ads::GoogleAds::V3::Services::AdGroupFeedOperation.new
326
+ end
189
327
  end
190
328
 
191
329
  # Create a new AdGroupLabelOperation
@@ -193,7 +331,13 @@ module Google
193
331
  # @return [Google::Ads::GoogleAds::V3::Services::AdGroupLabelOperation] the operation
194
332
  def self.ad_group_label
195
333
  require "google/ads/google_ads/v3/services/ad_group_label_service_pb"
196
- Google::Ads::GoogleAds::V3::Services::AdGroupLabelOperation.new
334
+ if block_given?
335
+ op = Google::Ads::GoogleAds::V3::Services::AdGroupLabelOperation.new
336
+ yield op
337
+ op
338
+ else
339
+ Google::Ads::GoogleAds::V3::Services::AdGroupLabelOperation.new
340
+ end
197
341
  end
198
342
 
199
343
  # Create a new AdParameterOperation
@@ -201,7 +345,13 @@ module Google
201
345
  # @return [Google::Ads::GoogleAds::V3::Services::AdParameterOperation] the operation
202
346
  def self.ad_parameter
203
347
  require "google/ads/google_ads/v3/services/ad_parameter_service_pb"
204
- Google::Ads::GoogleAds::V3::Services::AdParameterOperation.new
348
+ if block_given?
349
+ op = Google::Ads::GoogleAds::V3::Services::AdParameterOperation.new
350
+ yield op
351
+ op
352
+ else
353
+ Google::Ads::GoogleAds::V3::Services::AdParameterOperation.new
354
+ end
205
355
  end
206
356
 
207
357
  # Create a new AssetOperation
@@ -209,7 +359,13 @@ module Google
209
359
  # @return [Google::Ads::GoogleAds::V3::Services::AssetOperation] the operation
210
360
  def self.asset
211
361
  require "google/ads/google_ads/v3/services/asset_service_pb"
212
- Google::Ads::GoogleAds::V3::Services::AssetOperation.new
362
+ if block_given?
363
+ op = Google::Ads::GoogleAds::V3::Services::AssetOperation.new
364
+ yield op
365
+ op
366
+ else
367
+ Google::Ads::GoogleAds::V3::Services::AssetOperation.new
368
+ end
213
369
  end
214
370
 
215
371
  # Create a new BiddingStrategyOperation
@@ -217,7 +373,13 @@ module Google
217
373
  # @return [Google::Ads::GoogleAds::V3::Services::BiddingStrategyOperation] the operation
218
374
  def self.bidding_strategy
219
375
  require "google/ads/google_ads/v3/services/bidding_strategy_service_pb"
220
- Google::Ads::GoogleAds::V3::Services::BiddingStrategyOperation.new
376
+ if block_given?
377
+ op = Google::Ads::GoogleAds::V3::Services::BiddingStrategyOperation.new
378
+ yield op
379
+ op
380
+ else
381
+ Google::Ads::GoogleAds::V3::Services::BiddingStrategyOperation.new
382
+ end
221
383
  end
222
384
 
223
385
  # Create a new CampaignBudgetOperation
@@ -225,7 +387,13 @@ module Google
225
387
  # @return [Google::Ads::GoogleAds::V3::Services::CampaignBudgetOperation] the operation
226
388
  def self.campaign_budget
227
389
  require "google/ads/google_ads/v3/services/campaign_budget_service_pb"
228
- Google::Ads::GoogleAds::V3::Services::CampaignBudgetOperation.new
390
+ if block_given?
391
+ op = Google::Ads::GoogleAds::V3::Services::CampaignBudgetOperation.new
392
+ yield op
393
+ op
394
+ else
395
+ Google::Ads::GoogleAds::V3::Services::CampaignBudgetOperation.new
396
+ end
229
397
  end
230
398
 
231
399
  # Create a new CampaignCriterionOperation
@@ -233,7 +401,13 @@ module Google
233
401
  # @return [Google::Ads::GoogleAds::V3::Services::CampaignCriterionOperation] the operation
234
402
  def self.campaign_criterion
235
403
  require "google/ads/google_ads/v3/services/campaign_criterion_service_pb"
236
- Google::Ads::GoogleAds::V3::Services::CampaignCriterionOperation.new
404
+ if block_given?
405
+ op = Google::Ads::GoogleAds::V3::Services::CampaignCriterionOperation.new
406
+ yield op
407
+ op
408
+ else
409
+ Google::Ads::GoogleAds::V3::Services::CampaignCriterionOperation.new
410
+ end
237
411
  end
238
412
 
239
413
  # Create a new CampaignExperimentOperation
@@ -241,7 +415,13 @@ module Google
241
415
  # @return [Google::Ads::GoogleAds::V3::Services::CampaignExperimentOperation] the operation
242
416
  def self.campaign_experiment
243
417
  require "google/ads/google_ads/v3/services/campaign_experiment_service_pb"
244
- Google::Ads::GoogleAds::V3::Services::CampaignExperimentOperation.new
418
+ if block_given?
419
+ op = Google::Ads::GoogleAds::V3::Services::CampaignExperimentOperation.new
420
+ yield op
421
+ op
422
+ else
423
+ Google::Ads::GoogleAds::V3::Services::CampaignExperimentOperation.new
424
+ end
245
425
  end
246
426
 
247
427
  # Create a new CampaignExtensionSettingOperation
@@ -249,7 +429,13 @@ module Google
249
429
  # @return [Google::Ads::GoogleAds::V3::Services::CampaignExtensionSettingOperation] the operation
250
430
  def self.campaign_extension_setting
251
431
  require "google/ads/google_ads/v3/services/campaign_extension_setting_service_pb"
252
- Google::Ads::GoogleAds::V3::Services::CampaignExtensionSettingOperation.new
432
+ if block_given?
433
+ op = Google::Ads::GoogleAds::V3::Services::CampaignExtensionSettingOperation.new
434
+ yield op
435
+ op
436
+ else
437
+ Google::Ads::GoogleAds::V3::Services::CampaignExtensionSettingOperation.new
438
+ end
253
439
  end
254
440
 
255
441
  # Create a new CampaignFeedOperation
@@ -257,7 +443,13 @@ module Google
257
443
  # @return [Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation] the operation
258
444
  def self.campaign_feed
259
445
  require "google/ads/google_ads/v3/services/campaign_feed_service_pb"
260
- Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation.new
446
+ if block_given?
447
+ op = Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation.new
448
+ yield op
449
+ op
450
+ else
451
+ Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation.new
452
+ end
261
453
  end
262
454
 
263
455
  # Create a new CampaignLabelOperation
@@ -265,7 +457,13 @@ module Google
265
457
  # @return [Google::Ads::GoogleAds::V3::Services::CampaignLabelOperation] the operation
266
458
  def self.campaign_label
267
459
  require "google/ads/google_ads/v3/services/campaign_label_service_pb"
268
- Google::Ads::GoogleAds::V3::Services::CampaignLabelOperation.new
460
+ if block_given?
461
+ op = Google::Ads::GoogleAds::V3::Services::CampaignLabelOperation.new
462
+ yield op
463
+ op
464
+ else
465
+ Google::Ads::GoogleAds::V3::Services::CampaignLabelOperation.new
466
+ end
269
467
  end
270
468
 
271
469
  # Create a new CampaignOperation
@@ -273,7 +471,13 @@ module Google
273
471
  # @return [Google::Ads::GoogleAds::V3::Services::CampaignOperation] the operation
274
472
  def self.campaign
275
473
  require "google/ads/google_ads/v3/services/campaign_service_pb"
276
- Google::Ads::GoogleAds::V3::Services::CampaignOperation.new
474
+ if block_given?
475
+ op = Google::Ads::GoogleAds::V3::Services::CampaignOperation.new
476
+ yield op
477
+ op
478
+ else
479
+ Google::Ads::GoogleAds::V3::Services::CampaignOperation.new
480
+ end
277
481
  end
278
482
 
279
483
  # Create a new CampaignSharedSetOperation
@@ -281,7 +485,13 @@ module Google
281
485
  # @return [Google::Ads::GoogleAds::V3::Services::CampaignSharedSetOperation] the operation
282
486
  def self.campaign_shared_set
283
487
  require "google/ads/google_ads/v3/services/campaign_shared_set_service_pb"
284
- Google::Ads::GoogleAds::V3::Services::CampaignSharedSetOperation.new
488
+ if block_given?
489
+ op = Google::Ads::GoogleAds::V3::Services::CampaignSharedSetOperation.new
490
+ yield op
491
+ op
492
+ else
493
+ Google::Ads::GoogleAds::V3::Services::CampaignSharedSetOperation.new
494
+ end
285
495
  end
286
496
 
287
497
  # Create a new ConversionActionOperation
@@ -289,7 +499,13 @@ module Google
289
499
  # @return [Google::Ads::GoogleAds::V3::Services::ConversionActionOperation] the operation
290
500
  def self.conversion_action
291
501
  require "google/ads/google_ads/v3/services/conversion_action_service_pb"
292
- Google::Ads::GoogleAds::V3::Services::ConversionActionOperation.new
502
+ if block_given?
503
+ op = Google::Ads::GoogleAds::V3::Services::ConversionActionOperation.new
504
+ yield op
505
+ op
506
+ else
507
+ Google::Ads::GoogleAds::V3::Services::ConversionActionOperation.new
508
+ end
293
509
  end
294
510
 
295
511
  # Create a new CustomerExtensionSettingOperation
@@ -297,7 +513,13 @@ module Google
297
513
  # @return [Google::Ads::GoogleAds::V3::Services::CustomerExtensionSettingOperation] the operation
298
514
  def self.customer_extension_setting
299
515
  require "google/ads/google_ads/v3/services/customer_extension_setting_service_pb"
300
- Google::Ads::GoogleAds::V3::Services::CustomerExtensionSettingOperation.new
516
+ if block_given?
517
+ op = Google::Ads::GoogleAds::V3::Services::CustomerExtensionSettingOperation.new
518
+ yield op
519
+ op
520
+ else
521
+ Google::Ads::GoogleAds::V3::Services::CustomerExtensionSettingOperation.new
522
+ end
301
523
  end
302
524
 
303
525
  # Create a new CustomerFeedOperation
@@ -305,7 +527,13 @@ module Google
305
527
  # @return [Google::Ads::GoogleAds::V3::Services::CustomerFeedOperation] the operation
306
528
  def self.customer_feed
307
529
  require "google/ads/google_ads/v3/services/customer_feed_service_pb"
308
- Google::Ads::GoogleAds::V3::Services::CustomerFeedOperation.new
530
+ if block_given?
531
+ op = Google::Ads::GoogleAds::V3::Services::CustomerFeedOperation.new
532
+ yield op
533
+ op
534
+ else
535
+ Google::Ads::GoogleAds::V3::Services::CustomerFeedOperation.new
536
+ end
309
537
  end
310
538
 
311
539
  # Create a new CustomerLabelOperation
@@ -313,7 +541,13 @@ module Google
313
541
  # @return [Google::Ads::GoogleAds::V3::Services::CustomerLabelOperation] the operation
314
542
  def self.customer_label
315
543
  require "google/ads/google_ads/v3/services/customer_label_service_pb"
316
- Google::Ads::GoogleAds::V3::Services::CustomerLabelOperation.new
544
+ if block_given?
545
+ op = Google::Ads::GoogleAds::V3::Services::CustomerLabelOperation.new
546
+ yield op
547
+ op
548
+ else
549
+ Google::Ads::GoogleAds::V3::Services::CustomerLabelOperation.new
550
+ end
317
551
  end
318
552
 
319
553
  # Create a new ExtensionFeedItemOperation
@@ -321,7 +555,13 @@ module Google
321
555
  # @return [Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation] the operation
322
556
  def self.extension_feed_item
323
557
  require "google/ads/google_ads/v3/services/extension_feed_item_service_pb"
324
- Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation.new
558
+ if block_given?
559
+ op = Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation.new
560
+ yield op
561
+ op
562
+ else
563
+ Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation.new
564
+ end
325
565
  end
326
566
 
327
567
  # Create a new FeedItemOperation
@@ -329,7 +569,13 @@ module Google
329
569
  # @return [Google::Ads::GoogleAds::V3::Services::FeedItemOperation] the operation
330
570
  def self.feed_item
331
571
  require "google/ads/google_ads/v3/services/feed_item_service_pb"
332
- Google::Ads::GoogleAds::V3::Services::FeedItemOperation.new
572
+ if block_given?
573
+ op = Google::Ads::GoogleAds::V3::Services::FeedItemOperation.new
574
+ yield op
575
+ op
576
+ else
577
+ Google::Ads::GoogleAds::V3::Services::FeedItemOperation.new
578
+ end
333
579
  end
334
580
 
335
581
  # Create a new FeedItemTargetOperation
@@ -337,7 +583,13 @@ module Google
337
583
  # @return [Google::Ads::GoogleAds::V3::Services::FeedItemTargetOperation] the operation
338
584
  def self.feed_item_target
339
585
  require "google/ads/google_ads/v3/services/feed_item_target_service_pb"
340
- Google::Ads::GoogleAds::V3::Services::FeedItemTargetOperation.new
586
+ if block_given?
587
+ op = Google::Ads::GoogleAds::V3::Services::FeedItemTargetOperation.new
588
+ yield op
589
+ op
590
+ else
591
+ Google::Ads::GoogleAds::V3::Services::FeedItemTargetOperation.new
592
+ end
341
593
  end
342
594
 
343
595
  # Create a new FeedOperation
@@ -345,7 +597,13 @@ module Google
345
597
  # @return [Google::Ads::GoogleAds::V3::Services::FeedOperation] the operation
346
598
  def self.feed
347
599
  require "google/ads/google_ads/v3/services/feed_service_pb"
348
- Google::Ads::GoogleAds::V3::Services::FeedOperation.new
600
+ if block_given?
601
+ op = Google::Ads::GoogleAds::V3::Services::FeedOperation.new
602
+ yield op
603
+ op
604
+ else
605
+ Google::Ads::GoogleAds::V3::Services::FeedOperation.new
606
+ end
349
607
  end
350
608
 
351
609
  # Create a new MediaFileOperation
@@ -353,7 +611,13 @@ module Google
353
611
  # @return [Google::Ads::GoogleAds::V3::Services::MediaFileOperation] the operation
354
612
  def self.media_file
355
613
  require "google/ads/google_ads/v3/services/media_file_service_pb"
356
- Google::Ads::GoogleAds::V3::Services::MediaFileOperation.new
614
+ if block_given?
615
+ op = Google::Ads::GoogleAds::V3::Services::MediaFileOperation.new
616
+ yield op
617
+ op
618
+ else
619
+ Google::Ads::GoogleAds::V3::Services::MediaFileOperation.new
620
+ end
357
621
  end
358
622
 
359
623
  # Create a new RemarketingActionOperation
@@ -361,7 +625,13 @@ module Google
361
625
  # @return [Google::Ads::GoogleAds::V3::Services::RemarketingActionOperation] the operation
362
626
  def self.remarketing_action
363
627
  require "google/ads/google_ads/v3/services/remarketing_action_service_pb"
364
- Google::Ads::GoogleAds::V3::Services::RemarketingActionOperation.new
628
+ if block_given?
629
+ op = Google::Ads::GoogleAds::V3::Services::RemarketingActionOperation.new
630
+ yield op
631
+ op
632
+ else
633
+ Google::Ads::GoogleAds::V3::Services::RemarketingActionOperation.new
634
+ end
365
635
  end
366
636
 
367
637
  # Create a new MutateOperation
@@ -369,7 +639,13 @@ module Google
369
639
  # @return [Google::Ads::GoogleAds::V3::Services::MutateOperation] the operation
370
640
  def self.mutate
371
641
  require "google/ads/google_ads/v3/services/google_ads_service_pb"
372
- Google::Ads::GoogleAds::V3::Services::MutateOperation.new
642
+ if block_given?
643
+ op = Google::Ads::GoogleAds::V3::Services::MutateOperation.new
644
+ yield op
645
+ op
646
+ else
647
+ Google::Ads::GoogleAds::V3::Services::MutateOperation.new
648
+ end
373
649
  end
374
650
 
375
651
  # Create a new OfflineUserDataJobOperation
@@ -377,7 +653,13 @@ module Google
377
653
  # @return [Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation] the operation
378
654
  def self.offline_user_data_job
379
655
  require "google/ads/google_ads/v3/services/offline_user_data_job_service_pb"
380
- Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation.new
656
+ if block_given?
657
+ op = Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation.new
658
+ yield op
659
+ op
660
+ else
661
+ Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation.new
662
+ end
381
663
  end
382
664
 
383
665
  # Create a new UserDataOperation
@@ -385,7 +667,13 @@ module Google
385
667
  # @return [Google::Ads::GoogleAds::V3::Services::UserDataOperation] the operation
386
668
  def self.user_data
387
669
  require "google/ads/google_ads/v3/services/user_data_service_pb"
388
- Google::Ads::GoogleAds::V3::Services::UserDataOperation.new
670
+ if block_given?
671
+ op = Google::Ads::GoogleAds::V3::Services::UserDataOperation.new
672
+ yield op
673
+ op
674
+ else
675
+ Google::Ads::GoogleAds::V3::Services::UserDataOperation.new
676
+ end
389
677
  end
390
678
 
391
679
  # Create a new KeywordPlanAdGroupOperation
@@ -393,7 +681,13 @@ module Google
393
681
  # @return [Google::Ads::GoogleAds::V3::Services::KeywordPlanAdGroupOperation] the operation
394
682
  def self.keyword_plan_ad_group
395
683
  require "google/ads/google_ads/v3/services/keyword_plan_ad_group_service_pb"
396
- Google::Ads::GoogleAds::V3::Services::KeywordPlanAdGroupOperation.new
684
+ if block_given?
685
+ op = Google::Ads::GoogleAds::V3::Services::KeywordPlanAdGroupOperation.new
686
+ yield op
687
+ op
688
+ else
689
+ Google::Ads::GoogleAds::V3::Services::KeywordPlanAdGroupOperation.new
690
+ end
397
691
  end
398
692
 
399
693
  # Create a new KeywordPlanNegativeKeywordOperation
@@ -401,7 +695,13 @@ module Google
401
695
  # @return [Google::Ads::GoogleAds::V3::Services::KeywordPlanNegativeKeywordOperation] the operation
402
696
  def self.keyword_plan_negative_keyword
403
697
  require "google/ads/google_ads/v3/services/keyword_plan_negative_keyword_service_pb"
404
- Google::Ads::GoogleAds::V3::Services::KeywordPlanNegativeKeywordOperation.new
698
+ if block_given?
699
+ op = Google::Ads::GoogleAds::V3::Services::KeywordPlanNegativeKeywordOperation.new
700
+ yield op
701
+ op
702
+ else
703
+ Google::Ads::GoogleAds::V3::Services::KeywordPlanNegativeKeywordOperation.new
704
+ end
405
705
  end
406
706
 
407
707
  # Create a new KeywordPlanKeywordOperation
@@ -409,7 +709,13 @@ module Google
409
709
  # @return [Google::Ads::GoogleAds::V3::Services::KeywordPlanKeywordOperation] the operation
410
710
  def self.keyword_plan_keyword
411
711
  require "google/ads/google_ads/v3/services/keyword_plan_keyword_service_pb"
412
- Google::Ads::GoogleAds::V3::Services::KeywordPlanKeywordOperation.new
712
+ if block_given?
713
+ op = Google::Ads::GoogleAds::V3::Services::KeywordPlanKeywordOperation.new
714
+ yield op
715
+ op
716
+ else
717
+ Google::Ads::GoogleAds::V3::Services::KeywordPlanKeywordOperation.new
718
+ end
413
719
  end
414
720
 
415
721
  # Create a new KeywordPlanCampaignOperation
@@ -417,7 +723,13 @@ module Google
417
723
  # @return [Google::Ads::GoogleAds::V3::Services::KeywordPlanCampaignOperation] the operation
418
724
  def self.keyword_plan_campaign
419
725
  require "google/ads/google_ads/v3/services/keyword_plan_campaign_service_pb"
420
- Google::Ads::GoogleAds::V3::Services::KeywordPlanCampaignOperation.new
726
+ if block_given?
727
+ op = Google::Ads::GoogleAds::V3::Services::KeywordPlanCampaignOperation.new
728
+ yield op
729
+ op
730
+ else
731
+ Google::Ads::GoogleAds::V3::Services::KeywordPlanCampaignOperation.new
732
+ end
421
733
  end
422
734
 
423
735
  # Create a new AccountBudgetProposalOperation
@@ -425,7 +737,13 @@ module Google
425
737
  # @return [Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalOperation] the operation
426
738
  def self.account_budget_proposal
427
739
  require "google/ads/google_ads/v3/services/account_budget_proposal_service_pb"
428
- Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalOperation.new
740
+ if block_given?
741
+ op = Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalOperation.new
742
+ yield op
743
+ op
744
+ else
745
+ Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalOperation.new
746
+ end
429
747
  end
430
748
 
431
749
  # Create a new ApplyRecommendationOperation
@@ -433,7 +751,13 @@ module Google
433
751
  # @return [Google::Ads::GoogleAds::V3::Services::ApplyRecommendationOperation] the operation
434
752
  def self.apply_recommendation
435
753
  require "google/ads/google_ads/v3/services/recommendation_service_pb"
436
- Google::Ads::GoogleAds::V3::Services::ApplyRecommendationOperation.new
754
+ if block_given?
755
+ op = Google::Ads::GoogleAds::V3::Services::ApplyRecommendationOperation.new
756
+ yield op
757
+ op
758
+ else
759
+ Google::Ads::GoogleAds::V3::Services::ApplyRecommendationOperation.new
760
+ end
437
761
  end
438
762
 
439
763
  # Create a new DismissRecommendationOperation
@@ -441,7 +765,13 @@ module Google
441
765
  # @return [Google::Ads::GoogleAds::V3::Services::DismissRecommendationRequest::DismissRecommendationOperation] the operation
442
766
  def self.dismiss_recommendation
443
767
  require "google/ads/google_ads/v3/services/recommendation_service_pb"
444
- Google::Ads::GoogleAds::V3::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
768
+ if block_given?
769
+ op = Google::Ads::GoogleAds::V3::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
770
+ yield op
771
+ op
772
+ else
773
+ Google::Ads::GoogleAds::V3::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
774
+ end
445
775
  end
446
776
 
447
777
  # Create a new MerchantCenterLinkOperation
@@ -449,7 +779,13 @@ module Google
449
779
  # @return [Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkOperation] the operation
450
780
  def self.merchant_center_link
451
781
  require "google/ads/google_ads/v3/services/merchant_center_link_service_pb"
452
- Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkOperation.new
782
+ if block_given?
783
+ op = Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkOperation.new
784
+ yield op
785
+ op
786
+ else
787
+ Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkOperation.new
788
+ end
453
789
  end
454
790
 
455
791
  # Create a new BillingSetupOperation
@@ -457,7 +793,13 @@ module Google
457
793
  # @return [Google::Ads::GoogleAds::V3::Services::BillingSetupOperation] the operation
458
794
  def self.billing_setup
459
795
  require "google/ads/google_ads/v3/services/billing_setup_service_pb"
460
- Google::Ads::GoogleAds::V3::Services::BillingSetupOperation.new
796
+ if block_given?
797
+ op = Google::Ads::GoogleAds::V3::Services::BillingSetupOperation.new
798
+ yield op
799
+ op
800
+ else
801
+ Google::Ads::GoogleAds::V3::Services::BillingSetupOperation.new
802
+ end
461
803
  end
462
804
 
463
805
  # Create a new KeywordPlanOperation
@@ -465,7 +807,13 @@ module Google
465
807
  # @return [Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation] the operation
466
808
  def self.keyword_plan
467
809
  require "google/ads/google_ads/v3/services/keyword_plan_service_pb"
468
- Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation.new
810
+ if block_given?
811
+ op = Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation.new
812
+ yield op
813
+ op
814
+ else
815
+ Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation.new
816
+ end
469
817
  end
470
818
 
471
819
  # Get a reference module containing convenience methods for creating
@@ -509,10 +857,12 @@ module Google
509
857
  def self.customer_client_link(res = nil, &blk)
510
858
  require "google/ads/google_ads/v3/services/customer_client_link_service_pb"
511
859
  op = Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation.new
512
- if !res.nil?
513
- op["create"] = res
860
+ op["create"] = if !res.nil?
861
+ res
514
862
  elsif !blk.nil?
515
- op["create"] = Factories::V3::Resources.customer_client_link(&blk)
863
+ Factories::V3::Resources.customer_client_link(&blk)
864
+ else
865
+ Factories::V3::Resources.customer_client_link
516
866
  end
517
867
 
518
868
  op
@@ -534,10 +884,12 @@ module Google
534
884
  def self.custom_interest(res = nil, &blk)
535
885
  require "google/ads/google_ads/v3/services/custom_interest_service_pb"
536
886
  op = Google::Ads::GoogleAds::V3::Services::CustomInterestOperation.new
537
- if !res.nil?
538
- op["create"] = res
887
+ op["create"] = if !res.nil?
888
+ res
539
889
  elsif !blk.nil?
540
- op["create"] = Factories::V3::Resources.custom_interest(&blk)
890
+ Factories::V3::Resources.custom_interest(&blk)
891
+ else
892
+ Factories::V3::Resources.custom_interest
541
893
  end
542
894
 
543
895
  op
@@ -559,10 +911,12 @@ module Google
559
911
  def self.customer_negative_criterion(res = nil, &blk)
560
912
  require "google/ads/google_ads/v3/services/customer_negative_criterion_service_pb"
561
913
  op = Google::Ads::GoogleAds::V3::Services::CustomerNegativeCriterionOperation.new
562
- if !res.nil?
563
- op["create"] = res
914
+ op["create"] = if !res.nil?
915
+ res
564
916
  elsif !blk.nil?
565
- op["create"] = Factories::V3::Resources.customer_negative_criterion(&blk)
917
+ Factories::V3::Resources.customer_negative_criterion(&blk)
918
+ else
919
+ Factories::V3::Resources.customer_negative_criterion
566
920
  end
567
921
 
568
922
  op
@@ -584,10 +938,12 @@ module Google
584
938
  def self.shared_criterion(res = nil, &blk)
585
939
  require "google/ads/google_ads/v3/services/shared_criterion_service_pb"
586
940
  op = Google::Ads::GoogleAds::V3::Services::SharedCriterionOperation.new
587
- if !res.nil?
588
- op["create"] = res
941
+ op["create"] = if !res.nil?
942
+ res
589
943
  elsif !blk.nil?
590
- op["create"] = Factories::V3::Resources.shared_criterion(&blk)
944
+ Factories::V3::Resources.shared_criterion(&blk)
945
+ else
946
+ Factories::V3::Resources.shared_criterion
591
947
  end
592
948
 
593
949
  op
@@ -609,10 +965,12 @@ module Google
609
965
  def self.feed_mapping(res = nil, &blk)
610
966
  require "google/ads/google_ads/v3/services/feed_mapping_service_pb"
611
967
  op = Google::Ads::GoogleAds::V3::Services::FeedMappingOperation.new
612
- if !res.nil?
613
- op["create"] = res
968
+ op["create"] = if !res.nil?
969
+ res
614
970
  elsif !blk.nil?
615
- op["create"] = Factories::V3::Resources.feed_mapping(&blk)
971
+ Factories::V3::Resources.feed_mapping(&blk)
972
+ else
973
+ Factories::V3::Resources.feed_mapping
616
974
  end
617
975
 
618
976
  op
@@ -634,10 +992,12 @@ module Google
634
992
  def self.ad_group(res = nil, &blk)
635
993
  require "google/ads/google_ads/v3/services/ad_group_service_pb"
636
994
  op = Google::Ads::GoogleAds::V3::Services::AdGroupOperation.new
637
- if !res.nil?
638
- op["create"] = res
995
+ op["create"] = if !res.nil?
996
+ res
639
997
  elsif !blk.nil?
640
- op["create"] = Factories::V3::Resources.ad_group(&blk)
998
+ Factories::V3::Resources.ad_group(&blk)
999
+ else
1000
+ Factories::V3::Resources.ad_group
641
1001
  end
642
1002
 
643
1003
  op
@@ -659,10 +1019,12 @@ module Google
659
1019
  def self.campaign_bid_modifier(res = nil, &blk)
660
1020
  require "google/ads/google_ads/v3/services/campaign_bid_modifier_service_pb"
661
1021
  op = Google::Ads::GoogleAds::V3::Services::CampaignBidModifierOperation.new
662
- if !res.nil?
663
- op["create"] = res
1022
+ op["create"] = if !res.nil?
1023
+ res
664
1024
  elsif !blk.nil?
665
- op["create"] = Factories::V3::Resources.campaign_bid_modifier(&blk)
1025
+ Factories::V3::Resources.campaign_bid_modifier(&blk)
1026
+ else
1027
+ Factories::V3::Resources.campaign_bid_modifier
666
1028
  end
667
1029
 
668
1030
  op
@@ -684,10 +1046,12 @@ module Google
684
1046
  def self.campaign_draft(res = nil, &blk)
685
1047
  require "google/ads/google_ads/v3/services/campaign_draft_service_pb"
686
1048
  op = Google::Ads::GoogleAds::V3::Services::CampaignDraftOperation.new
687
- if !res.nil?
688
- op["create"] = res
1049
+ op["create"] = if !res.nil?
1050
+ res
689
1051
  elsif !blk.nil?
690
- op["create"] = Factories::V3::Resources.campaign_draft(&blk)
1052
+ Factories::V3::Resources.campaign_draft(&blk)
1053
+ else
1054
+ Factories::V3::Resources.campaign_draft
691
1055
  end
692
1056
 
693
1057
  op
@@ -709,10 +1073,12 @@ module Google
709
1073
  def self.user_list(res = nil, &blk)
710
1074
  require "google/ads/google_ads/v3/services/user_list_service_pb"
711
1075
  op = Google::Ads::GoogleAds::V3::Services::UserListOperation.new
712
- if !res.nil?
713
- op["create"] = res
1076
+ op["create"] = if !res.nil?
1077
+ res
714
1078
  elsif !blk.nil?
715
- op["create"] = Factories::V3::Resources.user_list(&blk)
1079
+ Factories::V3::Resources.user_list(&blk)
1080
+ else
1081
+ Factories::V3::Resources.user_list
716
1082
  end
717
1083
 
718
1084
  op
@@ -734,10 +1100,12 @@ module Google
734
1100
  def self.shared_set(res = nil, &blk)
735
1101
  require "google/ads/google_ads/v3/services/shared_set_service_pb"
736
1102
  op = Google::Ads::GoogleAds::V3::Services::SharedSetOperation.new
737
- if !res.nil?
738
- op["create"] = res
1103
+ op["create"] = if !res.nil?
1104
+ res
739
1105
  elsif !blk.nil?
740
- op["create"] = Factories::V3::Resources.shared_set(&blk)
1106
+ Factories::V3::Resources.shared_set(&blk)
1107
+ else
1108
+ Factories::V3::Resources.shared_set
741
1109
  end
742
1110
 
743
1111
  op
@@ -759,10 +1127,12 @@ module Google
759
1127
  def self.ad_group_criterion_label(res = nil, &blk)
760
1128
  require "google/ads/google_ads/v3/services/ad_group_criterion_label_service_pb"
761
1129
  op = Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation.new
762
- if !res.nil?
763
- op["create"] = res
1130
+ op["create"] = if !res.nil?
1131
+ res
764
1132
  elsif !blk.nil?
765
- op["create"] = Factories::V3::Resources.ad_group_criterion_label(&blk)
1133
+ Factories::V3::Resources.ad_group_criterion_label(&blk)
1134
+ else
1135
+ Factories::V3::Resources.ad_group_criterion_label
766
1136
  end
767
1137
 
768
1138
  op
@@ -784,10 +1154,12 @@ module Google
784
1154
  def self.label(res = nil, &blk)
785
1155
  require "google/ads/google_ads/v3/services/label_service_pb"
786
1156
  op = Google::Ads::GoogleAds::V3::Services::LabelOperation.new
787
- if !res.nil?
788
- op["create"] = res
1157
+ op["create"] = if !res.nil?
1158
+ res
789
1159
  elsif !blk.nil?
790
- op["create"] = Factories::V3::Resources.label(&blk)
1160
+ Factories::V3::Resources.label(&blk)
1161
+ else
1162
+ Factories::V3::Resources.label
791
1163
  end
792
1164
 
793
1165
  op
@@ -809,10 +1181,12 @@ module Google
809
1181
  def self.ad_group_ad_label(res = nil, &blk)
810
1182
  require "google/ads/google_ads/v3/services/ad_group_ad_label_service_pb"
811
1183
  op = Google::Ads::GoogleAds::V3::Services::AdGroupAdLabelOperation.new
812
- if !res.nil?
813
- op["create"] = res
1184
+ op["create"] = if !res.nil?
1185
+ res
814
1186
  elsif !blk.nil?
815
- op["create"] = Factories::V3::Resources.ad_group_ad_label(&blk)
1187
+ Factories::V3::Resources.ad_group_ad_label(&blk)
1188
+ else
1189
+ Factories::V3::Resources.ad_group_ad_label
816
1190
  end
817
1191
 
818
1192
  op
@@ -834,10 +1208,12 @@ module Google
834
1208
  def self.ad_group_ad(res = nil, &blk)
835
1209
  require "google/ads/google_ads/v3/services/ad_group_ad_service_pb"
836
1210
  op = Google::Ads::GoogleAds::V3::Services::AdGroupAdOperation.new
837
- if !res.nil?
838
- op["create"] = res
1211
+ op["create"] = if !res.nil?
1212
+ res
839
1213
  elsif !blk.nil?
840
- op["create"] = Factories::V3::Resources.ad_group_ad(&blk)
1214
+ Factories::V3::Resources.ad_group_ad(&blk)
1215
+ else
1216
+ Factories::V3::Resources.ad_group_ad
841
1217
  end
842
1218
 
843
1219
  op
@@ -859,10 +1235,12 @@ module Google
859
1235
  def self.ad_group_bid_modifier(res = nil, &blk)
860
1236
  require "google/ads/google_ads/v3/services/ad_group_bid_modifier_service_pb"
861
1237
  op = Google::Ads::GoogleAds::V3::Services::AdGroupBidModifierOperation.new
862
- if !res.nil?
863
- op["create"] = res
1238
+ op["create"] = if !res.nil?
1239
+ res
864
1240
  elsif !blk.nil?
865
- op["create"] = Factories::V3::Resources.ad_group_bid_modifier(&blk)
1241
+ Factories::V3::Resources.ad_group_bid_modifier(&blk)
1242
+ else
1243
+ Factories::V3::Resources.ad_group_bid_modifier
866
1244
  end
867
1245
 
868
1246
  op
@@ -884,10 +1262,12 @@ module Google
884
1262
  def self.ad_group_criterion(res = nil, &blk)
885
1263
  require "google/ads/google_ads/v3/services/ad_group_criterion_service_pb"
886
1264
  op = Google::Ads::GoogleAds::V3::Services::AdGroupCriterionOperation.new
887
- if !res.nil?
888
- op["create"] = res
1265
+ op["create"] = if !res.nil?
1266
+ res
889
1267
  elsif !blk.nil?
890
- op["create"] = Factories::V3::Resources.ad_group_criterion(&blk)
1268
+ Factories::V3::Resources.ad_group_criterion(&blk)
1269
+ else
1270
+ Factories::V3::Resources.ad_group_criterion
891
1271
  end
892
1272
 
893
1273
  op
@@ -909,10 +1289,12 @@ module Google
909
1289
  def self.ad_group_extension_setting(res = nil, &blk)
910
1290
  require "google/ads/google_ads/v3/services/ad_group_extension_setting_service_pb"
911
1291
  op = Google::Ads::GoogleAds::V3::Services::AdGroupExtensionSettingOperation.new
912
- if !res.nil?
913
- op["create"] = res
1292
+ op["create"] = if !res.nil?
1293
+ res
914
1294
  elsif !blk.nil?
915
- op["create"] = Factories::V3::Resources.ad_group_extension_setting(&blk)
1295
+ Factories::V3::Resources.ad_group_extension_setting(&blk)
1296
+ else
1297
+ Factories::V3::Resources.ad_group_extension_setting
916
1298
  end
917
1299
 
918
1300
  op
@@ -934,10 +1316,12 @@ module Google
934
1316
  def self.ad_group_feed(res = nil, &blk)
935
1317
  require "google/ads/google_ads/v3/services/ad_group_feed_service_pb"
936
1318
  op = Google::Ads::GoogleAds::V3::Services::AdGroupFeedOperation.new
937
- if !res.nil?
938
- op["create"] = res
1319
+ op["create"] = if !res.nil?
1320
+ res
939
1321
  elsif !blk.nil?
940
- op["create"] = Factories::V3::Resources.ad_group_feed(&blk)
1322
+ Factories::V3::Resources.ad_group_feed(&blk)
1323
+ else
1324
+ Factories::V3::Resources.ad_group_feed
941
1325
  end
942
1326
 
943
1327
  op
@@ -959,10 +1343,12 @@ module Google
959
1343
  def self.ad_group_label(res = nil, &blk)
960
1344
  require "google/ads/google_ads/v3/services/ad_group_label_service_pb"
961
1345
  op = Google::Ads::GoogleAds::V3::Services::AdGroupLabelOperation.new
962
- if !res.nil?
963
- op["create"] = res
1346
+ op["create"] = if !res.nil?
1347
+ res
964
1348
  elsif !blk.nil?
965
- op["create"] = Factories::V3::Resources.ad_group_label(&blk)
1349
+ Factories::V3::Resources.ad_group_label(&blk)
1350
+ else
1351
+ Factories::V3::Resources.ad_group_label
966
1352
  end
967
1353
 
968
1354
  op
@@ -984,10 +1370,12 @@ module Google
984
1370
  def self.ad_parameter(res = nil, &blk)
985
1371
  require "google/ads/google_ads/v3/services/ad_parameter_service_pb"
986
1372
  op = Google::Ads::GoogleAds::V3::Services::AdParameterOperation.new
987
- if !res.nil?
988
- op["create"] = res
1373
+ op["create"] = if !res.nil?
1374
+ res
989
1375
  elsif !blk.nil?
990
- op["create"] = Factories::V3::Resources.ad_parameter(&blk)
1376
+ Factories::V3::Resources.ad_parameter(&blk)
1377
+ else
1378
+ Factories::V3::Resources.ad_parameter
991
1379
  end
992
1380
 
993
1381
  op
@@ -1009,10 +1397,12 @@ module Google
1009
1397
  def self.asset(res = nil, &blk)
1010
1398
  require "google/ads/google_ads/v3/services/asset_service_pb"
1011
1399
  op = Google::Ads::GoogleAds::V3::Services::AssetOperation.new
1012
- if !res.nil?
1013
- op["create"] = res
1400
+ op["create"] = if !res.nil?
1401
+ res
1014
1402
  elsif !blk.nil?
1015
- op["create"] = Factories::V3::Resources.asset(&blk)
1403
+ Factories::V3::Resources.asset(&blk)
1404
+ else
1405
+ Factories::V3::Resources.asset
1016
1406
  end
1017
1407
 
1018
1408
  op
@@ -1034,10 +1424,12 @@ module Google
1034
1424
  def self.bidding_strategy(res = nil, &blk)
1035
1425
  require "google/ads/google_ads/v3/services/bidding_strategy_service_pb"
1036
1426
  op = Google::Ads::GoogleAds::V3::Services::BiddingStrategyOperation.new
1037
- if !res.nil?
1038
- op["create"] = res
1427
+ op["create"] = if !res.nil?
1428
+ res
1039
1429
  elsif !blk.nil?
1040
- op["create"] = Factories::V3::Resources.bidding_strategy(&blk)
1430
+ Factories::V3::Resources.bidding_strategy(&blk)
1431
+ else
1432
+ Factories::V3::Resources.bidding_strategy
1041
1433
  end
1042
1434
 
1043
1435
  op
@@ -1059,10 +1451,12 @@ module Google
1059
1451
  def self.campaign_budget(res = nil, &blk)
1060
1452
  require "google/ads/google_ads/v3/services/campaign_budget_service_pb"
1061
1453
  op = Google::Ads::GoogleAds::V3::Services::CampaignBudgetOperation.new
1062
- if !res.nil?
1063
- op["create"] = res
1454
+ op["create"] = if !res.nil?
1455
+ res
1064
1456
  elsif !blk.nil?
1065
- op["create"] = Factories::V3::Resources.campaign_budget(&blk)
1457
+ Factories::V3::Resources.campaign_budget(&blk)
1458
+ else
1459
+ Factories::V3::Resources.campaign_budget
1066
1460
  end
1067
1461
 
1068
1462
  op
@@ -1084,10 +1478,12 @@ module Google
1084
1478
  def self.campaign_criterion(res = nil, &blk)
1085
1479
  require "google/ads/google_ads/v3/services/campaign_criterion_service_pb"
1086
1480
  op = Google::Ads::GoogleAds::V3::Services::CampaignCriterionOperation.new
1087
- if !res.nil?
1088
- op["create"] = res
1481
+ op["create"] = if !res.nil?
1482
+ res
1089
1483
  elsif !blk.nil?
1090
- op["create"] = Factories::V3::Resources.campaign_criterion(&blk)
1484
+ Factories::V3::Resources.campaign_criterion(&blk)
1485
+ else
1486
+ Factories::V3::Resources.campaign_criterion
1091
1487
  end
1092
1488
 
1093
1489
  op
@@ -1109,10 +1505,12 @@ module Google
1109
1505
  def self.campaign_extension_setting(res = nil, &blk)
1110
1506
  require "google/ads/google_ads/v3/services/campaign_extension_setting_service_pb"
1111
1507
  op = Google::Ads::GoogleAds::V3::Services::CampaignExtensionSettingOperation.new
1112
- if !res.nil?
1113
- op["create"] = res
1508
+ op["create"] = if !res.nil?
1509
+ res
1114
1510
  elsif !blk.nil?
1115
- op["create"] = Factories::V3::Resources.campaign_extension_setting(&blk)
1511
+ Factories::V3::Resources.campaign_extension_setting(&blk)
1512
+ else
1513
+ Factories::V3::Resources.campaign_extension_setting
1116
1514
  end
1117
1515
 
1118
1516
  op
@@ -1134,10 +1532,12 @@ module Google
1134
1532
  def self.campaign_feed(res = nil, &blk)
1135
1533
  require "google/ads/google_ads/v3/services/campaign_feed_service_pb"
1136
1534
  op = Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation.new
1137
- if !res.nil?
1138
- op["create"] = res
1535
+ op["create"] = if !res.nil?
1536
+ res
1139
1537
  elsif !blk.nil?
1140
- op["create"] = Factories::V3::Resources.campaign_feed(&blk)
1538
+ Factories::V3::Resources.campaign_feed(&blk)
1539
+ else
1540
+ Factories::V3::Resources.campaign_feed
1141
1541
  end
1142
1542
 
1143
1543
  op
@@ -1159,10 +1559,12 @@ module Google
1159
1559
  def self.campaign_label(res = nil, &blk)
1160
1560
  require "google/ads/google_ads/v3/services/campaign_label_service_pb"
1161
1561
  op = Google::Ads::GoogleAds::V3::Services::CampaignLabelOperation.new
1162
- if !res.nil?
1163
- op["create"] = res
1562
+ op["create"] = if !res.nil?
1563
+ res
1164
1564
  elsif !blk.nil?
1165
- op["create"] = Factories::V3::Resources.campaign_label(&blk)
1565
+ Factories::V3::Resources.campaign_label(&blk)
1566
+ else
1567
+ Factories::V3::Resources.campaign_label
1166
1568
  end
1167
1569
 
1168
1570
  op
@@ -1184,10 +1586,12 @@ module Google
1184
1586
  def self.campaign(res = nil, &blk)
1185
1587
  require "google/ads/google_ads/v3/services/campaign_service_pb"
1186
1588
  op = Google::Ads::GoogleAds::V3::Services::CampaignOperation.new
1187
- if !res.nil?
1188
- op["create"] = res
1589
+ op["create"] = if !res.nil?
1590
+ res
1189
1591
  elsif !blk.nil?
1190
- op["create"] = Factories::V3::Resources.campaign(&blk)
1592
+ Factories::V3::Resources.campaign(&blk)
1593
+ else
1594
+ Factories::V3::Resources.campaign
1191
1595
  end
1192
1596
 
1193
1597
  op
@@ -1209,10 +1613,12 @@ module Google
1209
1613
  def self.campaign_shared_set(res = nil, &blk)
1210
1614
  require "google/ads/google_ads/v3/services/campaign_shared_set_service_pb"
1211
1615
  op = Google::Ads::GoogleAds::V3::Services::CampaignSharedSetOperation.new
1212
- if !res.nil?
1213
- op["create"] = res
1616
+ op["create"] = if !res.nil?
1617
+ res
1214
1618
  elsif !blk.nil?
1215
- op["create"] = Factories::V3::Resources.campaign_shared_set(&blk)
1619
+ Factories::V3::Resources.campaign_shared_set(&blk)
1620
+ else
1621
+ Factories::V3::Resources.campaign_shared_set
1216
1622
  end
1217
1623
 
1218
1624
  op
@@ -1234,10 +1640,12 @@ module Google
1234
1640
  def self.conversion_action(res = nil, &blk)
1235
1641
  require "google/ads/google_ads/v3/services/conversion_action_service_pb"
1236
1642
  op = Google::Ads::GoogleAds::V3::Services::ConversionActionOperation.new
1237
- if !res.nil?
1238
- op["create"] = res
1643
+ op["create"] = if !res.nil?
1644
+ res
1239
1645
  elsif !blk.nil?
1240
- op["create"] = Factories::V3::Resources.conversion_action(&blk)
1646
+ Factories::V3::Resources.conversion_action(&blk)
1647
+ else
1648
+ Factories::V3::Resources.conversion_action
1241
1649
  end
1242
1650
 
1243
1651
  op
@@ -1259,10 +1667,12 @@ module Google
1259
1667
  def self.customer_extension_setting(res = nil, &blk)
1260
1668
  require "google/ads/google_ads/v3/services/customer_extension_setting_service_pb"
1261
1669
  op = Google::Ads::GoogleAds::V3::Services::CustomerExtensionSettingOperation.new
1262
- if !res.nil?
1263
- op["create"] = res
1670
+ op["create"] = if !res.nil?
1671
+ res
1264
1672
  elsif !blk.nil?
1265
- op["create"] = Factories::V3::Resources.customer_extension_setting(&blk)
1673
+ Factories::V3::Resources.customer_extension_setting(&blk)
1674
+ else
1675
+ Factories::V3::Resources.customer_extension_setting
1266
1676
  end
1267
1677
 
1268
1678
  op
@@ -1284,10 +1694,12 @@ module Google
1284
1694
  def self.customer_feed(res = nil, &blk)
1285
1695
  require "google/ads/google_ads/v3/services/customer_feed_service_pb"
1286
1696
  op = Google::Ads::GoogleAds::V3::Services::CustomerFeedOperation.new
1287
- if !res.nil?
1288
- op["create"] = res
1697
+ op["create"] = if !res.nil?
1698
+ res
1289
1699
  elsif !blk.nil?
1290
- op["create"] = Factories::V3::Resources.customer_feed(&blk)
1700
+ Factories::V3::Resources.customer_feed(&blk)
1701
+ else
1702
+ Factories::V3::Resources.customer_feed
1291
1703
  end
1292
1704
 
1293
1705
  op
@@ -1309,10 +1721,12 @@ module Google
1309
1721
  def self.customer_label(res = nil, &blk)
1310
1722
  require "google/ads/google_ads/v3/services/customer_label_service_pb"
1311
1723
  op = Google::Ads::GoogleAds::V3::Services::CustomerLabelOperation.new
1312
- if !res.nil?
1313
- op["create"] = res
1724
+ op["create"] = if !res.nil?
1725
+ res
1314
1726
  elsif !blk.nil?
1315
- op["create"] = Factories::V3::Resources.customer_label(&blk)
1727
+ Factories::V3::Resources.customer_label(&blk)
1728
+ else
1729
+ Factories::V3::Resources.customer_label
1316
1730
  end
1317
1731
 
1318
1732
  op
@@ -1334,10 +1748,12 @@ module Google
1334
1748
  def self.extension_feed_item(res = nil, &blk)
1335
1749
  require "google/ads/google_ads/v3/services/extension_feed_item_service_pb"
1336
1750
  op = Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation.new
1337
- if !res.nil?
1338
- op["create"] = res
1751
+ op["create"] = if !res.nil?
1752
+ res
1339
1753
  elsif !blk.nil?
1340
- op["create"] = Factories::V3::Resources.extension_feed_item(&blk)
1754
+ Factories::V3::Resources.extension_feed_item(&blk)
1755
+ else
1756
+ Factories::V3::Resources.extension_feed_item
1341
1757
  end
1342
1758
 
1343
1759
  op
@@ -1359,10 +1775,12 @@ module Google
1359
1775
  def self.feed_item(res = nil, &blk)
1360
1776
  require "google/ads/google_ads/v3/services/feed_item_service_pb"
1361
1777
  op = Google::Ads::GoogleAds::V3::Services::FeedItemOperation.new
1362
- if !res.nil?
1363
- op["create"] = res
1778
+ op["create"] = if !res.nil?
1779
+ res
1364
1780
  elsif !blk.nil?
1365
- op["create"] = Factories::V3::Resources.feed_item(&blk)
1781
+ Factories::V3::Resources.feed_item(&blk)
1782
+ else
1783
+ Factories::V3::Resources.feed_item
1366
1784
  end
1367
1785
 
1368
1786
  op
@@ -1384,10 +1802,12 @@ module Google
1384
1802
  def self.feed_item_target(res = nil, &blk)
1385
1803
  require "google/ads/google_ads/v3/services/feed_item_target_service_pb"
1386
1804
  op = Google::Ads::GoogleAds::V3::Services::FeedItemTargetOperation.new
1387
- if !res.nil?
1388
- op["create"] = res
1805
+ op["create"] = if !res.nil?
1806
+ res
1389
1807
  elsif !blk.nil?
1390
- op["create"] = Factories::V3::Resources.feed_item_target(&blk)
1808
+ Factories::V3::Resources.feed_item_target(&blk)
1809
+ else
1810
+ Factories::V3::Resources.feed_item_target
1391
1811
  end
1392
1812
 
1393
1813
  op
@@ -1409,10 +1829,12 @@ module Google
1409
1829
  def self.feed(res = nil, &blk)
1410
1830
  require "google/ads/google_ads/v3/services/feed_service_pb"
1411
1831
  op = Google::Ads::GoogleAds::V3::Services::FeedOperation.new
1412
- if !res.nil?
1413
- op["create"] = res
1832
+ op["create"] = if !res.nil?
1833
+ res
1414
1834
  elsif !blk.nil?
1415
- op["create"] = Factories::V3::Resources.feed(&blk)
1835
+ Factories::V3::Resources.feed(&blk)
1836
+ else
1837
+ Factories::V3::Resources.feed
1416
1838
  end
1417
1839
 
1418
1840
  op
@@ -1434,10 +1856,12 @@ module Google
1434
1856
  def self.media_file(res = nil, &blk)
1435
1857
  require "google/ads/google_ads/v3/services/media_file_service_pb"
1436
1858
  op = Google::Ads::GoogleAds::V3::Services::MediaFileOperation.new
1437
- if !res.nil?
1438
- op["create"] = res
1859
+ op["create"] = if !res.nil?
1860
+ res
1439
1861
  elsif !blk.nil?
1440
- op["create"] = Factories::V3::Resources.media_file(&blk)
1862
+ Factories::V3::Resources.media_file(&blk)
1863
+ else
1864
+ Factories::V3::Resources.media_file
1441
1865
  end
1442
1866
 
1443
1867
  op
@@ -1459,10 +1883,12 @@ module Google
1459
1883
  def self.remarketing_action(res = nil, &blk)
1460
1884
  require "google/ads/google_ads/v3/services/remarketing_action_service_pb"
1461
1885
  op = Google::Ads::GoogleAds::V3::Services::RemarketingActionOperation.new
1462
- if !res.nil?
1463
- op["create"] = res
1886
+ op["create"] = if !res.nil?
1887
+ res
1464
1888
  elsif !blk.nil?
1465
- op["create"] = Factories::V3::Resources.remarketing_action(&blk)
1889
+ Factories::V3::Resources.remarketing_action(&blk)
1890
+ else
1891
+ Factories::V3::Resources.remarketing_action
1466
1892
  end
1467
1893
 
1468
1894
  op
@@ -1484,10 +1910,12 @@ module Google
1484
1910
  def self.offline_user_data_job(res = nil, &blk)
1485
1911
  require "google/ads/google_ads/v3/services/offline_user_data_job_service_pb"
1486
1912
  op = Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation.new
1487
- if !res.nil?
1488
- op["create"] = res
1913
+ op["create"] = if !res.nil?
1914
+ res
1489
1915
  elsif !blk.nil?
1490
- op["create"] = Factories::V3::Resources.user_data(&blk)
1916
+ Factories::V3::Resources.user_data(&blk)
1917
+ else
1918
+ Factories::V3::Resources.user_data
1491
1919
  end
1492
1920
 
1493
1921
  op
@@ -1509,10 +1937,12 @@ module Google
1509
1937
  def self.user_data(res = nil, &blk)
1510
1938
  require "google/ads/google_ads/v3/services/user_data_service_pb"
1511
1939
  op = Google::Ads::GoogleAds::V3::Services::UserDataOperation.new
1512
- if !res.nil?
1513
- op["create"] = res
1940
+ op["create"] = if !res.nil?
1941
+ res
1514
1942
  elsif !blk.nil?
1515
- op["create"] = Factories::V3::Resources.user_data(&blk)
1943
+ Factories::V3::Resources.user_data(&blk)
1944
+ else
1945
+ Factories::V3::Resources.user_data
1516
1946
  end
1517
1947
 
1518
1948
  op
@@ -1534,10 +1964,12 @@ module Google
1534
1964
  def self.keyword_plan_ad_group(res = nil, &blk)
1535
1965
  require "google/ads/google_ads/v3/services/keyword_plan_ad_group_service_pb"
1536
1966
  op = Google::Ads::GoogleAds::V3::Services::KeywordPlanAdGroupOperation.new
1537
- if !res.nil?
1538
- op["create"] = res
1967
+ op["create"] = if !res.nil?
1968
+ res
1539
1969
  elsif !blk.nil?
1540
- op["create"] = Factories::V3::Resources.keyword_plan_ad_group(&blk)
1970
+ Factories::V3::Resources.keyword_plan_ad_group(&blk)
1971
+ else
1972
+ Factories::V3::Resources.keyword_plan_ad_group
1541
1973
  end
1542
1974
 
1543
1975
  op
@@ -1559,10 +1991,12 @@ module Google
1559
1991
  def self.keyword_plan_negative_keyword(res = nil, &blk)
1560
1992
  require "google/ads/google_ads/v3/services/keyword_plan_negative_keyword_service_pb"
1561
1993
  op = Google::Ads::GoogleAds::V3::Services::KeywordPlanNegativeKeywordOperation.new
1562
- if !res.nil?
1563
- op["create"] = res
1994
+ op["create"] = if !res.nil?
1995
+ res
1564
1996
  elsif !blk.nil?
1565
- op["create"] = Factories::V3::Resources.keyword_plan_negative_keyword(&blk)
1997
+ Factories::V3::Resources.keyword_plan_negative_keyword(&blk)
1998
+ else
1999
+ Factories::V3::Resources.keyword_plan_negative_keyword
1566
2000
  end
1567
2001
 
1568
2002
  op
@@ -1584,10 +2018,12 @@ module Google
1584
2018
  def self.keyword_plan_keyword(res = nil, &blk)
1585
2019
  require "google/ads/google_ads/v3/services/keyword_plan_keyword_service_pb"
1586
2020
  op = Google::Ads::GoogleAds::V3::Services::KeywordPlanKeywordOperation.new
1587
- if !res.nil?
1588
- op["create"] = res
2021
+ op["create"] = if !res.nil?
2022
+ res
1589
2023
  elsif !blk.nil?
1590
- op["create"] = Factories::V3::Resources.keyword_plan_keyword(&blk)
2024
+ Factories::V3::Resources.keyword_plan_keyword(&blk)
2025
+ else
2026
+ Factories::V3::Resources.keyword_plan_keyword
1591
2027
  end
1592
2028
 
1593
2029
  op
@@ -1609,10 +2045,12 @@ module Google
1609
2045
  def self.keyword_plan_campaign(res = nil, &blk)
1610
2046
  require "google/ads/google_ads/v3/services/keyword_plan_campaign_service_pb"
1611
2047
  op = Google::Ads::GoogleAds::V3::Services::KeywordPlanCampaignOperation.new
1612
- if !res.nil?
1613
- op["create"] = res
2048
+ op["create"] = if !res.nil?
2049
+ res
1614
2050
  elsif !blk.nil?
1615
- op["create"] = Factories::V3::Resources.keyword_plan_campaign(&blk)
2051
+ Factories::V3::Resources.keyword_plan_campaign(&blk)
2052
+ else
2053
+ Factories::V3::Resources.keyword_plan_campaign
1616
2054
  end
1617
2055
 
1618
2056
  op
@@ -1634,10 +2072,12 @@ module Google
1634
2072
  def self.account_budget_proposal(res = nil, &blk)
1635
2073
  require "google/ads/google_ads/v3/services/account_budget_proposal_service_pb"
1636
2074
  op = Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalOperation.new
1637
- if !res.nil?
1638
- op["create"] = res
2075
+ op["create"] = if !res.nil?
2076
+ res
1639
2077
  elsif !blk.nil?
1640
- op["create"] = Factories::V3::Resources.account_budget_proposal(&blk)
2078
+ Factories::V3::Resources.account_budget_proposal(&blk)
2079
+ else
2080
+ Factories::V3::Resources.account_budget_proposal
1641
2081
  end
1642
2082
 
1643
2083
  op
@@ -1659,10 +2099,12 @@ module Google
1659
2099
  def self.billing_setup(res = nil, &blk)
1660
2100
  require "google/ads/google_ads/v3/services/billing_setup_service_pb"
1661
2101
  op = Google::Ads::GoogleAds::V3::Services::BillingSetupOperation.new
1662
- if !res.nil?
1663
- op["create"] = res
2102
+ op["create"] = if !res.nil?
2103
+ res
1664
2104
  elsif !blk.nil?
1665
- op["create"] = Factories::V3::Resources.billing_setup(&blk)
2105
+ Factories::V3::Resources.billing_setup(&blk)
2106
+ else
2107
+ Factories::V3::Resources.billing_setup
1666
2108
  end
1667
2109
 
1668
2110
  op
@@ -1684,10 +2126,12 @@ module Google
1684
2126
  def self.keyword_plan(res = nil, &blk)
1685
2127
  require "google/ads/google_ads/v3/services/keyword_plan_service_pb"
1686
2128
  op = Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation.new
1687
- if !res.nil?
1688
- op["create"] = res
2129
+ op["create"] = if !res.nil?
2130
+ res
1689
2131
  elsif !blk.nil?
1690
- op["create"] = Factories::V3::Resources.keyword_plan(&blk)
2132
+ Factories::V3::Resources.keyword_plan(&blk)
2133
+ else
2134
+ Factories::V3::Resources.keyword_plan
1691
2135
  end
1692
2136
 
1693
2137
  op
@@ -3140,7 +3584,7 @@ module Google
3140
3584
  end
3141
3585
 
3142
3586
  module RemoveResource
3143
- # A convenience method for creationg an FeedAttributeOperation instance with
3587
+ # A convenience method for creating an FeedAttributeOperation instance with
3144
3588
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3145
3589
  #
3146
3590
  # @param path [String] the resource name of the resource to delete.
@@ -3151,7 +3595,7 @@ module Google
3151
3595
  op
3152
3596
  end
3153
3597
 
3154
- # A convenience method for creationg an TargetRestrictionOperation instance with
3598
+ # A convenience method for creating an TargetRestrictionOperation instance with
3155
3599
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3156
3600
  #
3157
3601
  # @param path [String] the resource name of the resource to delete.
@@ -3162,7 +3606,7 @@ module Google
3162
3606
  op
3163
3607
  end
3164
3608
 
3165
- # A convenience method for creationg an CustomerClientLinkOperation instance with
3609
+ # A convenience method for creating an CustomerClientLinkOperation instance with
3166
3610
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3167
3611
  #
3168
3612
  # @param path [String] the resource name of the resource to delete.
@@ -3173,7 +3617,7 @@ module Google
3173
3617
  op
3174
3618
  end
3175
3619
 
3176
- # A convenience method for creationg an CustomInterestOperation instance with
3620
+ # A convenience method for creating an CustomInterestOperation instance with
3177
3621
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3178
3622
  #
3179
3623
  # @param path [String] the resource name of the resource to delete.
@@ -3184,7 +3628,7 @@ module Google
3184
3628
  op
3185
3629
  end
3186
3630
 
3187
- # A convenience method for creationg an CustomerNegativeCriterionOperation instance with
3631
+ # A convenience method for creating an CustomerNegativeCriterionOperation instance with
3188
3632
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3189
3633
  #
3190
3634
  # @param path [String] the resource name of the resource to delete.
@@ -3195,7 +3639,7 @@ module Google
3195
3639
  op
3196
3640
  end
3197
3641
 
3198
- # A convenience method for creationg an SharedCriterionOperation instance with
3642
+ # A convenience method for creating an SharedCriterionOperation instance with
3199
3643
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3200
3644
  #
3201
3645
  # @param path [String] the resource name of the resource to delete.
@@ -3206,7 +3650,7 @@ module Google
3206
3650
  op
3207
3651
  end
3208
3652
 
3209
- # A convenience method for creationg an FeedMappingOperation instance with
3653
+ # A convenience method for creating an FeedMappingOperation instance with
3210
3654
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3211
3655
  #
3212
3656
  # @param path [String] the resource name of the resource to delete.
@@ -3217,7 +3661,7 @@ module Google
3217
3661
  op
3218
3662
  end
3219
3663
 
3220
- # A convenience method for creationg an AdGroupOperation instance with
3664
+ # A convenience method for creating an AdGroupOperation instance with
3221
3665
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3222
3666
  #
3223
3667
  # @param path [String] the resource name of the resource to delete.
@@ -3228,7 +3672,7 @@ module Google
3228
3672
  op
3229
3673
  end
3230
3674
 
3231
- # A convenience method for creationg an CampaignBidModifierOperation instance with
3675
+ # A convenience method for creating an CampaignBidModifierOperation instance with
3232
3676
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3233
3677
  #
3234
3678
  # @param path [String] the resource name of the resource to delete.
@@ -3239,7 +3683,7 @@ module Google
3239
3683
  op
3240
3684
  end
3241
3685
 
3242
- # A convenience method for creationg an CustomerManagerLinkOperation instance with
3686
+ # A convenience method for creating an CustomerManagerLinkOperation instance with
3243
3687
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3244
3688
  #
3245
3689
  # @param path [String] the resource name of the resource to delete.
@@ -3250,7 +3694,7 @@ module Google
3250
3694
  op
3251
3695
  end
3252
3696
 
3253
- # A convenience method for creationg an CampaignDraftOperation instance with
3697
+ # A convenience method for creating an CampaignDraftOperation instance with
3254
3698
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3255
3699
  #
3256
3700
  # @param path [String] the resource name of the resource to delete.
@@ -3261,7 +3705,7 @@ module Google
3261
3705
  op
3262
3706
  end
3263
3707
 
3264
- # A convenience method for creationg an UserListOperation instance with
3708
+ # A convenience method for creating an UserListOperation instance with
3265
3709
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3266
3710
  #
3267
3711
  # @param path [String] the resource name of the resource to delete.
@@ -3272,7 +3716,7 @@ module Google
3272
3716
  op
3273
3717
  end
3274
3718
 
3275
- # A convenience method for creationg an CustomerOperation instance with
3719
+ # A convenience method for creating an CustomerOperation instance with
3276
3720
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3277
3721
  #
3278
3722
  # @param path [String] the resource name of the resource to delete.
@@ -3283,7 +3727,7 @@ module Google
3283
3727
  op
3284
3728
  end
3285
3729
 
3286
- # A convenience method for creationg an SharedSetOperation instance with
3730
+ # A convenience method for creating an SharedSetOperation instance with
3287
3731
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3288
3732
  #
3289
3733
  # @param path [String] the resource name of the resource to delete.
@@ -3294,7 +3738,7 @@ module Google
3294
3738
  op
3295
3739
  end
3296
3740
 
3297
- # A convenience method for creationg an AdGroupCriterionLabelOperation instance with
3741
+ # A convenience method for creating an AdGroupCriterionLabelOperation instance with
3298
3742
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3299
3743
  #
3300
3744
  # @param path [String] the resource name of the resource to delete.
@@ -3305,7 +3749,7 @@ module Google
3305
3749
  op
3306
3750
  end
3307
3751
 
3308
- # A convenience method for creationg an LabelOperation instance with
3752
+ # A convenience method for creating an LabelOperation instance with
3309
3753
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3310
3754
  #
3311
3755
  # @param path [String] the resource name of the resource to delete.
@@ -3316,7 +3760,7 @@ module Google
3316
3760
  op
3317
3761
  end
3318
3762
 
3319
- # A convenience method for creationg an AdOperation instance with
3763
+ # A convenience method for creating an AdOperation instance with
3320
3764
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3321
3765
  #
3322
3766
  # @param path [String] the resource name of the resource to delete.
@@ -3327,7 +3771,7 @@ module Google
3327
3771
  op
3328
3772
  end
3329
3773
 
3330
- # A convenience method for creationg an AdGroupAdLabelOperation instance with
3774
+ # A convenience method for creating an AdGroupAdLabelOperation instance with
3331
3775
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3332
3776
  #
3333
3777
  # @param path [String] the resource name of the resource to delete.
@@ -3338,7 +3782,7 @@ module Google
3338
3782
  op
3339
3783
  end
3340
3784
 
3341
- # A convenience method for creationg an AdGroupAdOperation instance with
3785
+ # A convenience method for creating an AdGroupAdOperation instance with
3342
3786
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3343
3787
  #
3344
3788
  # @param path [String] the resource name of the resource to delete.
@@ -3349,7 +3793,7 @@ module Google
3349
3793
  op
3350
3794
  end
3351
3795
 
3352
- # A convenience method for creationg an AdGroupBidModifierOperation instance with
3796
+ # A convenience method for creating an AdGroupBidModifierOperation instance with
3353
3797
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3354
3798
  #
3355
3799
  # @param path [String] the resource name of the resource to delete.
@@ -3360,7 +3804,7 @@ module Google
3360
3804
  op
3361
3805
  end
3362
3806
 
3363
- # A convenience method for creationg an AdGroupCriterionOperation instance with
3807
+ # A convenience method for creating an AdGroupCriterionOperation instance with
3364
3808
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3365
3809
  #
3366
3810
  # @param path [String] the resource name of the resource to delete.
@@ -3371,7 +3815,7 @@ module Google
3371
3815
  op
3372
3816
  end
3373
3817
 
3374
- # A convenience method for creationg an AdGroupExtensionSettingOperation instance with
3818
+ # A convenience method for creating an AdGroupExtensionSettingOperation instance with
3375
3819
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3376
3820
  #
3377
3821
  # @param path [String] the resource name of the resource to delete.
@@ -3382,7 +3826,7 @@ module Google
3382
3826
  op
3383
3827
  end
3384
3828
 
3385
- # A convenience method for creationg an AdGroupFeedOperation instance with
3829
+ # A convenience method for creating an AdGroupFeedOperation instance with
3386
3830
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3387
3831
  #
3388
3832
  # @param path [String] the resource name of the resource to delete.
@@ -3393,7 +3837,7 @@ module Google
3393
3837
  op
3394
3838
  end
3395
3839
 
3396
- # A convenience method for creationg an AdGroupLabelOperation instance with
3840
+ # A convenience method for creating an AdGroupLabelOperation instance with
3397
3841
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3398
3842
  #
3399
3843
  # @param path [String] the resource name of the resource to delete.
@@ -3404,7 +3848,7 @@ module Google
3404
3848
  op
3405
3849
  end
3406
3850
 
3407
- # A convenience method for creationg an AdParameterOperation instance with
3851
+ # A convenience method for creating an AdParameterOperation instance with
3408
3852
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3409
3853
  #
3410
3854
  # @param path [String] the resource name of the resource to delete.
@@ -3415,7 +3859,7 @@ module Google
3415
3859
  op
3416
3860
  end
3417
3861
 
3418
- # A convenience method for creationg an AssetOperation instance with
3862
+ # A convenience method for creating an AssetOperation instance with
3419
3863
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3420
3864
  #
3421
3865
  # @param path [String] the resource name of the resource to delete.
@@ -3426,7 +3870,7 @@ module Google
3426
3870
  op
3427
3871
  end
3428
3872
 
3429
- # A convenience method for creationg an BiddingStrategyOperation instance with
3873
+ # A convenience method for creating an BiddingStrategyOperation instance with
3430
3874
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3431
3875
  #
3432
3876
  # @param path [String] the resource name of the resource to delete.
@@ -3437,7 +3881,7 @@ module Google
3437
3881
  op
3438
3882
  end
3439
3883
 
3440
- # A convenience method for creationg an CampaignBudgetOperation instance with
3884
+ # A convenience method for creating an CampaignBudgetOperation instance with
3441
3885
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3442
3886
  #
3443
3887
  # @param path [String] the resource name of the resource to delete.
@@ -3448,7 +3892,7 @@ module Google
3448
3892
  op
3449
3893
  end
3450
3894
 
3451
- # A convenience method for creationg an CampaignCriterionOperation instance with
3895
+ # A convenience method for creating an CampaignCriterionOperation instance with
3452
3896
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3453
3897
  #
3454
3898
  # @param path [String] the resource name of the resource to delete.
@@ -3459,7 +3903,7 @@ module Google
3459
3903
  op
3460
3904
  end
3461
3905
 
3462
- # A convenience method for creationg an CampaignExperimentOperation instance with
3906
+ # A convenience method for creating an CampaignExperimentOperation instance with
3463
3907
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3464
3908
  #
3465
3909
  # @param path [String] the resource name of the resource to delete.
@@ -3470,7 +3914,7 @@ module Google
3470
3914
  op
3471
3915
  end
3472
3916
 
3473
- # A convenience method for creationg an CampaignExtensionSettingOperation instance with
3917
+ # A convenience method for creating an CampaignExtensionSettingOperation instance with
3474
3918
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3475
3919
  #
3476
3920
  # @param path [String] the resource name of the resource to delete.
@@ -3481,7 +3925,7 @@ module Google
3481
3925
  op
3482
3926
  end
3483
3927
 
3484
- # A convenience method for creationg an CampaignFeedOperation instance with
3928
+ # A convenience method for creating an CampaignFeedOperation instance with
3485
3929
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3486
3930
  #
3487
3931
  # @param path [String] the resource name of the resource to delete.
@@ -3492,7 +3936,7 @@ module Google
3492
3936
  op
3493
3937
  end
3494
3938
 
3495
- # A convenience method for creationg an CampaignLabelOperation instance with
3939
+ # A convenience method for creating an CampaignLabelOperation instance with
3496
3940
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3497
3941
  #
3498
3942
  # @param path [String] the resource name of the resource to delete.
@@ -3503,7 +3947,7 @@ module Google
3503
3947
  op
3504
3948
  end
3505
3949
 
3506
- # A convenience method for creationg an CampaignOperation instance with
3950
+ # A convenience method for creating an CampaignOperation instance with
3507
3951
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3508
3952
  #
3509
3953
  # @param path [String] the resource name of the resource to delete.
@@ -3514,7 +3958,7 @@ module Google
3514
3958
  op
3515
3959
  end
3516
3960
 
3517
- # A convenience method for creationg an CampaignSharedSetOperation instance with
3961
+ # A convenience method for creating an CampaignSharedSetOperation instance with
3518
3962
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3519
3963
  #
3520
3964
  # @param path [String] the resource name of the resource to delete.
@@ -3525,7 +3969,7 @@ module Google
3525
3969
  op
3526
3970
  end
3527
3971
 
3528
- # A convenience method for creationg an ConversionActionOperation instance with
3972
+ # A convenience method for creating an ConversionActionOperation instance with
3529
3973
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3530
3974
  #
3531
3975
  # @param path [String] the resource name of the resource to delete.
@@ -3536,7 +3980,7 @@ module Google
3536
3980
  op
3537
3981
  end
3538
3982
 
3539
- # A convenience method for creationg an CustomerExtensionSettingOperation instance with
3983
+ # A convenience method for creating an CustomerExtensionSettingOperation instance with
3540
3984
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3541
3985
  #
3542
3986
  # @param path [String] the resource name of the resource to delete.
@@ -3547,7 +3991,7 @@ module Google
3547
3991
  op
3548
3992
  end
3549
3993
 
3550
- # A convenience method for creationg an CustomerFeedOperation instance with
3994
+ # A convenience method for creating an CustomerFeedOperation instance with
3551
3995
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3552
3996
  #
3553
3997
  # @param path [String] the resource name of the resource to delete.
@@ -3558,7 +4002,7 @@ module Google
3558
4002
  op
3559
4003
  end
3560
4004
 
3561
- # A convenience method for creationg an CustomerLabelOperation instance with
4005
+ # A convenience method for creating an CustomerLabelOperation instance with
3562
4006
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3563
4007
  #
3564
4008
  # @param path [String] the resource name of the resource to delete.
@@ -3569,7 +4013,7 @@ module Google
3569
4013
  op
3570
4014
  end
3571
4015
 
3572
- # A convenience method for creationg an ExtensionFeedItemOperation instance with
4016
+ # A convenience method for creating an ExtensionFeedItemOperation instance with
3573
4017
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3574
4018
  #
3575
4019
  # @param path [String] the resource name of the resource to delete.
@@ -3580,7 +4024,7 @@ module Google
3580
4024
  op
3581
4025
  end
3582
4026
 
3583
- # A convenience method for creationg an FeedItemOperation instance with
4027
+ # A convenience method for creating an FeedItemOperation instance with
3584
4028
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3585
4029
  #
3586
4030
  # @param path [String] the resource name of the resource to delete.
@@ -3591,7 +4035,7 @@ module Google
3591
4035
  op
3592
4036
  end
3593
4037
 
3594
- # A convenience method for creationg an FeedItemTargetOperation instance with
4038
+ # A convenience method for creating an FeedItemTargetOperation instance with
3595
4039
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3596
4040
  #
3597
4041
  # @param path [String] the resource name of the resource to delete.
@@ -3602,7 +4046,7 @@ module Google
3602
4046
  op
3603
4047
  end
3604
4048
 
3605
- # A convenience method for creationg an FeedOperation instance with
4049
+ # A convenience method for creating an FeedOperation instance with
3606
4050
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3607
4051
  #
3608
4052
  # @param path [String] the resource name of the resource to delete.
@@ -3613,7 +4057,7 @@ module Google
3613
4057
  op
3614
4058
  end
3615
4059
 
3616
- # A convenience method for creationg an MediaFileOperation instance with
4060
+ # A convenience method for creating an MediaFileOperation instance with
3617
4061
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3618
4062
  #
3619
4063
  # @param path [String] the resource name of the resource to delete.
@@ -3624,7 +4068,7 @@ module Google
3624
4068
  op
3625
4069
  end
3626
4070
 
3627
- # A convenience method for creationg an RemarketingActionOperation instance with
4071
+ # A convenience method for creating an RemarketingActionOperation instance with
3628
4072
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3629
4073
  #
3630
4074
  # @param path [String] the resource name of the resource to delete.
@@ -3635,7 +4079,7 @@ module Google
3635
4079
  op
3636
4080
  end
3637
4081
 
3638
- # A convenience method for creationg an MutateOperation instance with
4082
+ # A convenience method for creating an MutateOperation instance with
3639
4083
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3640
4084
  #
3641
4085
  # @param path [String] the resource name of the resource to delete.
@@ -3646,7 +4090,7 @@ module Google
3646
4090
  op
3647
4091
  end
3648
4092
 
3649
- # A convenience method for creationg an OfflineUserDataJobOperation instance with
4093
+ # A convenience method for creating an OfflineUserDataJobOperation instance with
3650
4094
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3651
4095
  #
3652
4096
  # @param path [String] the resource name of the resource to delete.
@@ -3657,7 +4101,7 @@ module Google
3657
4101
  op
3658
4102
  end
3659
4103
 
3660
- # A convenience method for creationg an UserDataOperation instance with
4104
+ # A convenience method for creating an UserDataOperation instance with
3661
4105
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3662
4106
  #
3663
4107
  # @param path [String] the resource name of the resource to delete.
@@ -3668,7 +4112,7 @@ module Google
3668
4112
  op
3669
4113
  end
3670
4114
 
3671
- # A convenience method for creationg an KeywordPlanAdGroupOperation instance with
4115
+ # A convenience method for creating an KeywordPlanAdGroupOperation instance with
3672
4116
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3673
4117
  #
3674
4118
  # @param path [String] the resource name of the resource to delete.
@@ -3679,7 +4123,7 @@ module Google
3679
4123
  op
3680
4124
  end
3681
4125
 
3682
- # A convenience method for creationg an KeywordPlanNegativeKeywordOperation instance with
4126
+ # A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with
3683
4127
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3684
4128
  #
3685
4129
  # @param path [String] the resource name of the resource to delete.
@@ -3690,7 +4134,7 @@ module Google
3690
4134
  op
3691
4135
  end
3692
4136
 
3693
- # A convenience method for creationg an KeywordPlanKeywordOperation instance with
4137
+ # A convenience method for creating an KeywordPlanKeywordOperation instance with
3694
4138
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3695
4139
  #
3696
4140
  # @param path [String] the resource name of the resource to delete.
@@ -3701,7 +4145,7 @@ module Google
3701
4145
  op
3702
4146
  end
3703
4147
 
3704
- # A convenience method for creationg an KeywordPlanCampaignOperation instance with
4148
+ # A convenience method for creating an KeywordPlanCampaignOperation instance with
3705
4149
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3706
4150
  #
3707
4151
  # @param path [String] the resource name of the resource to delete.
@@ -3712,7 +4156,7 @@ module Google
3712
4156
  op
3713
4157
  end
3714
4158
 
3715
- # A convenience method for creationg an AccountBudgetProposalOperation instance with
4159
+ # A convenience method for creating an AccountBudgetProposalOperation instance with
3716
4160
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3717
4161
  #
3718
4162
  # @param path [String] the resource name of the resource to delete.
@@ -3723,7 +4167,7 @@ module Google
3723
4167
  op
3724
4168
  end
3725
4169
 
3726
- # A convenience method for creationg an ApplyRecommendationOperation instance with
4170
+ # A convenience method for creating an ApplyRecommendationOperation instance with
3727
4171
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3728
4172
  #
3729
4173
  # @param path [String] the resource name of the resource to delete.
@@ -3734,7 +4178,7 @@ module Google
3734
4178
  op
3735
4179
  end
3736
4180
 
3737
- # A convenience method for creationg an DismissRecommendationOperation instance with
4181
+ # A convenience method for creating an DismissRecommendationOperation instance with
3738
4182
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3739
4183
  #
3740
4184
  # @param path [String] the resource name of the resource to delete.
@@ -3745,7 +4189,7 @@ module Google
3745
4189
  op
3746
4190
  end
3747
4191
 
3748
- # A convenience method for creationg an MerchantCenterLinkOperation instance with
4192
+ # A convenience method for creating an MerchantCenterLinkOperation instance with
3749
4193
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3750
4194
  #
3751
4195
  # @param path [String] the resource name of the resource to delete.
@@ -3756,7 +4200,7 @@ module Google
3756
4200
  op
3757
4201
  end
3758
4202
 
3759
- # A convenience method for creationg an BillingSetupOperation instance with
4203
+ # A convenience method for creating an BillingSetupOperation instance with
3760
4204
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3761
4205
  #
3762
4206
  # @param path [String] the resource name of the resource to delete.
@@ -3767,7 +4211,7 @@ module Google
3767
4211
  op
3768
4212
  end
3769
4213
 
3770
- # A convenience method for creationg an KeywordPlanOperation instance with
4214
+ # A convenience method for creating an KeywordPlanOperation instance with
3771
4215
  # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
3772
4216
  #
3773
4217
  # @param path [String] the resource name of the resource to delete.