google-ads-ad_manager 2.0.1 → 3.0.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.
@@ -90,6 +90,69 @@ module Google
90
90
  false
91
91
  end
92
92
 
93
+ ##
94
+ # Create a new client object for AdReviewCenterAdService.
95
+ #
96
+ # By default, this returns an instance of
97
+ # [Google::Ads::AdManager::V1::AdReviewCenterAdService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/AdReviewCenterAdService/Rest/Client)
98
+ # for a REST client for version V1 of the API.
99
+ # However, you can specify a different API version by passing it in the
100
+ # `version` parameter. If the AdReviewCenterAdService service is
101
+ # supported by that API version, and the corresponding gem is available, the
102
+ # appropriate versioned client will be returned.
103
+ #
104
+ # Raises an exception if the currently installed versioned client gem for the
105
+ # given API version does not support the AdReviewCenterAdService service.
106
+ # You can determine whether the method will succeed by calling
107
+ # {Google::Ads::AdManager.ad_review_center_ad_service_available?}.
108
+ #
109
+ # ## About AdReviewCenterAdService
110
+ #
111
+ # Provides methods for handling AdReviewCenterAd objects.
112
+ #
113
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
114
+ # Defaults to `:v1`.
115
+ # @return [::Object] A client object for the specified version.
116
+ #
117
+ def self.ad_review_center_ad_service version: :v1, &block
118
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
119
+
120
+ package_name = Google::Ads::AdManager
121
+ .constants
122
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
123
+ .first
124
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:AdReviewCenterAdService)
125
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
126
+ end
127
+
128
+ ##
129
+ # Determines whether the AdReviewCenterAdService service is supported by the current client.
130
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.ad_review_center_ad_service}.
131
+ # If false, that method will raise an exception. This could happen if the given
132
+ # API version does not exist or does not support the AdReviewCenterAdService service,
133
+ # or if the versioned client gem needs an update to support the AdReviewCenterAdService service.
134
+ #
135
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
136
+ # Defaults to `:v1`.
137
+ # @return [boolean] Whether the service is available.
138
+ #
139
+ def self.ad_review_center_ad_service_available? version: :v1
140
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
141
+ package_name = Google::Ads::AdManager
142
+ .constants
143
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
144
+ .first
145
+ return false unless package_name
146
+ service_module = Google::Ads::AdManager.const_get package_name
147
+ return false unless service_module.const_defined? :AdReviewCenterAdService
148
+ service_module = service_module.const_get :AdReviewCenterAdService
149
+ return false unless service_module.const_defined? :Rest
150
+ service_module = service_module.const_get :Rest
151
+ service_module.const_defined? :Client
152
+ rescue ::LoadError
153
+ false
154
+ end
155
+
93
156
  ##
94
157
  # Create a new client object for AdUnitService.
95
158
  #
@@ -153,6 +216,132 @@ module Google
153
216
  false
154
217
  end
155
218
 
219
+ ##
220
+ # Create a new client object for ApplicationService.
221
+ #
222
+ # By default, this returns an instance of
223
+ # [Google::Ads::AdManager::V1::ApplicationService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ApplicationService/Rest/Client)
224
+ # for a REST client for version V1 of the API.
225
+ # However, you can specify a different API version by passing it in the
226
+ # `version` parameter. If the ApplicationService service is
227
+ # supported by that API version, and the corresponding gem is available, the
228
+ # appropriate versioned client will be returned.
229
+ #
230
+ # Raises an exception if the currently installed versioned client gem for the
231
+ # given API version does not support the ApplicationService service.
232
+ # You can determine whether the method will succeed by calling
233
+ # {Google::Ads::AdManager.application_service_available?}.
234
+ #
235
+ # ## About ApplicationService
236
+ #
237
+ # Provides methods for handling `Application` objects.
238
+ #
239
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
240
+ # Defaults to `:v1`.
241
+ # @return [::Object] A client object for the specified version.
242
+ #
243
+ def self.application_service version: :v1, &block
244
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
245
+
246
+ package_name = Google::Ads::AdManager
247
+ .constants
248
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
249
+ .first
250
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ApplicationService)
251
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
252
+ end
253
+
254
+ ##
255
+ # Determines whether the ApplicationService service is supported by the current client.
256
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.application_service}.
257
+ # If false, that method will raise an exception. This could happen if the given
258
+ # API version does not exist or does not support the ApplicationService service,
259
+ # or if the versioned client gem needs an update to support the ApplicationService service.
260
+ #
261
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
262
+ # Defaults to `:v1`.
263
+ # @return [boolean] Whether the service is available.
264
+ #
265
+ def self.application_service_available? version: :v1
266
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
267
+ package_name = Google::Ads::AdManager
268
+ .constants
269
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
270
+ .first
271
+ return false unless package_name
272
+ service_module = Google::Ads::AdManager.const_get package_name
273
+ return false unless service_module.const_defined? :ApplicationService
274
+ service_module = service_module.const_get :ApplicationService
275
+ return false unless service_module.const_defined? :Rest
276
+ service_module = service_module.const_get :Rest
277
+ service_module.const_defined? :Client
278
+ rescue ::LoadError
279
+ false
280
+ end
281
+
282
+ ##
283
+ # Create a new client object for AudienceSegmentService.
284
+ #
285
+ # By default, this returns an instance of
286
+ # [Google::Ads::AdManager::V1::AudienceSegmentService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/AudienceSegmentService/Rest/Client)
287
+ # for a REST client for version V1 of the API.
288
+ # However, you can specify a different API version by passing it in the
289
+ # `version` parameter. If the AudienceSegmentService service is
290
+ # supported by that API version, and the corresponding gem is available, the
291
+ # appropriate versioned client will be returned.
292
+ #
293
+ # Raises an exception if the currently installed versioned client gem for the
294
+ # given API version does not support the AudienceSegmentService service.
295
+ # You can determine whether the method will succeed by calling
296
+ # {Google::Ads::AdManager.audience_segment_service_available?}.
297
+ #
298
+ # ## About AudienceSegmentService
299
+ #
300
+ # Provides methods for handling `AudienceSegment` objects.
301
+ #
302
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
303
+ # Defaults to `:v1`.
304
+ # @return [::Object] A client object for the specified version.
305
+ #
306
+ def self.audience_segment_service version: :v1, &block
307
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
308
+
309
+ package_name = Google::Ads::AdManager
310
+ .constants
311
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
312
+ .first
313
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:AudienceSegmentService)
314
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
315
+ end
316
+
317
+ ##
318
+ # Determines whether the AudienceSegmentService service is supported by the current client.
319
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.audience_segment_service}.
320
+ # If false, that method will raise an exception. This could happen if the given
321
+ # API version does not exist or does not support the AudienceSegmentService service,
322
+ # or if the versioned client gem needs an update to support the AudienceSegmentService service.
323
+ #
324
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
325
+ # Defaults to `:v1`.
326
+ # @return [boolean] Whether the service is available.
327
+ #
328
+ def self.audience_segment_service_available? version: :v1
329
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
330
+ package_name = Google::Ads::AdManager
331
+ .constants
332
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
333
+ .first
334
+ return false unless package_name
335
+ service_module = Google::Ads::AdManager.const_get package_name
336
+ return false unless service_module.const_defined? :AudienceSegmentService
337
+ service_module = service_module.const_get :AudienceSegmentService
338
+ return false unless service_module.const_defined? :Rest
339
+ service_module = service_module.const_get :Rest
340
+ service_module.const_defined? :Client
341
+ rescue ::LoadError
342
+ false
343
+ end
344
+
156
345
  ##
157
346
  # Create a new client object for BandwidthGroupService.
158
347
  #
@@ -177,29 +366,974 @@ module Google
177
366
  # Defaults to `:v1`.
178
367
  # @return [::Object] A client object for the specified version.
179
368
  #
180
- def self.bandwidth_group_service version: :v1, &block
369
+ def self.bandwidth_group_service version: :v1, &block
370
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
371
+
372
+ package_name = Google::Ads::AdManager
373
+ .constants
374
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
375
+ .first
376
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:BandwidthGroupService)
377
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
378
+ end
379
+
380
+ ##
381
+ # Determines whether the BandwidthGroupService service is supported by the current client.
382
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.bandwidth_group_service}.
383
+ # If false, that method will raise an exception. This could happen if the given
384
+ # API version does not exist or does not support the BandwidthGroupService service,
385
+ # or if the versioned client gem needs an update to support the BandwidthGroupService service.
386
+ #
387
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
388
+ # Defaults to `:v1`.
389
+ # @return [boolean] Whether the service is available.
390
+ #
391
+ def self.bandwidth_group_service_available? version: :v1
392
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
393
+ package_name = Google::Ads::AdManager
394
+ .constants
395
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
396
+ .first
397
+ return false unless package_name
398
+ service_module = Google::Ads::AdManager.const_get package_name
399
+ return false unless service_module.const_defined? :BandwidthGroupService
400
+ service_module = service_module.const_get :BandwidthGroupService
401
+ return false unless service_module.const_defined? :Rest
402
+ service_module = service_module.const_get :Rest
403
+ service_module.const_defined? :Client
404
+ rescue ::LoadError
405
+ false
406
+ end
407
+
408
+ ##
409
+ # Create a new client object for BrowserLanguageService.
410
+ #
411
+ # By default, this returns an instance of
412
+ # [Google::Ads::AdManager::V1::BrowserLanguageService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/BrowserLanguageService/Rest/Client)
413
+ # for a REST client for version V1 of the API.
414
+ # However, you can specify a different API version by passing it in the
415
+ # `version` parameter. If the BrowserLanguageService service is
416
+ # supported by that API version, and the corresponding gem is available, the
417
+ # appropriate versioned client will be returned.
418
+ #
419
+ # Raises an exception if the currently installed versioned client gem for the
420
+ # given API version does not support the BrowserLanguageService service.
421
+ # You can determine whether the method will succeed by calling
422
+ # {Google::Ads::AdManager.browser_language_service_available?}.
423
+ #
424
+ # ## About BrowserLanguageService
425
+ #
426
+ # Provides methods for handling `BrowserLanguage` objects.
427
+ #
428
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
429
+ # Defaults to `:v1`.
430
+ # @return [::Object] A client object for the specified version.
431
+ #
432
+ def self.browser_language_service version: :v1, &block
433
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
434
+
435
+ package_name = Google::Ads::AdManager
436
+ .constants
437
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
438
+ .first
439
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:BrowserLanguageService)
440
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
441
+ end
442
+
443
+ ##
444
+ # Determines whether the BrowserLanguageService service is supported by the current client.
445
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.browser_language_service}.
446
+ # If false, that method will raise an exception. This could happen if the given
447
+ # API version does not exist or does not support the BrowserLanguageService service,
448
+ # or if the versioned client gem needs an update to support the BrowserLanguageService service.
449
+ #
450
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
451
+ # Defaults to `:v1`.
452
+ # @return [boolean] Whether the service is available.
453
+ #
454
+ def self.browser_language_service_available? version: :v1
455
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
456
+ package_name = Google::Ads::AdManager
457
+ .constants
458
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
459
+ .first
460
+ return false unless package_name
461
+ service_module = Google::Ads::AdManager.const_get package_name
462
+ return false unless service_module.const_defined? :BrowserLanguageService
463
+ service_module = service_module.const_get :BrowserLanguageService
464
+ return false unless service_module.const_defined? :Rest
465
+ service_module = service_module.const_get :Rest
466
+ service_module.const_defined? :Client
467
+ rescue ::LoadError
468
+ false
469
+ end
470
+
471
+ ##
472
+ # Create a new client object for BrowserService.
473
+ #
474
+ # By default, this returns an instance of
475
+ # [Google::Ads::AdManager::V1::BrowserService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/BrowserService/Rest/Client)
476
+ # for a REST client for version V1 of the API.
477
+ # However, you can specify a different API version by passing it in the
478
+ # `version` parameter. If the BrowserService service is
479
+ # supported by that API version, and the corresponding gem is available, the
480
+ # appropriate versioned client will be returned.
481
+ #
482
+ # Raises an exception if the currently installed versioned client gem for the
483
+ # given API version does not support the BrowserService service.
484
+ # You can determine whether the method will succeed by calling
485
+ # {Google::Ads::AdManager.browser_service_available?}.
486
+ #
487
+ # ## About BrowserService
488
+ #
489
+ # Provides methods for handling `Browser` objects.
490
+ #
491
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
492
+ # Defaults to `:v1`.
493
+ # @return [::Object] A client object for the specified version.
494
+ #
495
+ def self.browser_service version: :v1, &block
496
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
497
+
498
+ package_name = Google::Ads::AdManager
499
+ .constants
500
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
501
+ .first
502
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:BrowserService)
503
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
504
+ end
505
+
506
+ ##
507
+ # Determines whether the BrowserService service is supported by the current client.
508
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.browser_service}.
509
+ # If false, that method will raise an exception. This could happen if the given
510
+ # API version does not exist or does not support the BrowserService service,
511
+ # or if the versioned client gem needs an update to support the BrowserService service.
512
+ #
513
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
514
+ # Defaults to `:v1`.
515
+ # @return [boolean] Whether the service is available.
516
+ #
517
+ def self.browser_service_available? version: :v1
518
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
519
+ package_name = Google::Ads::AdManager
520
+ .constants
521
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
522
+ .first
523
+ return false unless package_name
524
+ service_module = Google::Ads::AdManager.const_get package_name
525
+ return false unless service_module.const_defined? :BrowserService
526
+ service_module = service_module.const_get :BrowserService
527
+ return false unless service_module.const_defined? :Rest
528
+ service_module = service_module.const_get :Rest
529
+ service_module.const_defined? :Client
530
+ rescue ::LoadError
531
+ false
532
+ end
533
+
534
+ ##
535
+ # Create a new client object for CmsMetadataKeyService.
536
+ #
537
+ # By default, this returns an instance of
538
+ # [Google::Ads::AdManager::V1::CmsMetadataKeyService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CmsMetadataKeyService/Rest/Client)
539
+ # for a REST client for version V1 of the API.
540
+ # However, you can specify a different API version by passing it in the
541
+ # `version` parameter. If the CmsMetadataKeyService service is
542
+ # supported by that API version, and the corresponding gem is available, the
543
+ # appropriate versioned client will be returned.
544
+ #
545
+ # Raises an exception if the currently installed versioned client gem for the
546
+ # given API version does not support the CmsMetadataKeyService service.
547
+ # You can determine whether the method will succeed by calling
548
+ # {Google::Ads::AdManager.cms_metadata_key_service_available?}.
549
+ #
550
+ # ## About CmsMetadataKeyService
551
+ #
552
+ # Provides methods for handling `CmsMetadataKey` objects.
553
+ #
554
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
555
+ # Defaults to `:v1`.
556
+ # @return [::Object] A client object for the specified version.
557
+ #
558
+ def self.cms_metadata_key_service version: :v1, &block
559
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
560
+
561
+ package_name = Google::Ads::AdManager
562
+ .constants
563
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
564
+ .first
565
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CmsMetadataKeyService)
566
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
567
+ end
568
+
569
+ ##
570
+ # Determines whether the CmsMetadataKeyService service is supported by the current client.
571
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.cms_metadata_key_service}.
572
+ # If false, that method will raise an exception. This could happen if the given
573
+ # API version does not exist or does not support the CmsMetadataKeyService service,
574
+ # or if the versioned client gem needs an update to support the CmsMetadataKeyService service.
575
+ #
576
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
577
+ # Defaults to `:v1`.
578
+ # @return [boolean] Whether the service is available.
579
+ #
580
+ def self.cms_metadata_key_service_available? version: :v1
581
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
582
+ package_name = Google::Ads::AdManager
583
+ .constants
584
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
585
+ .first
586
+ return false unless package_name
587
+ service_module = Google::Ads::AdManager.const_get package_name
588
+ return false unless service_module.const_defined? :CmsMetadataKeyService
589
+ service_module = service_module.const_get :CmsMetadataKeyService
590
+ return false unless service_module.const_defined? :Rest
591
+ service_module = service_module.const_get :Rest
592
+ service_module.const_defined? :Client
593
+ rescue ::LoadError
594
+ false
595
+ end
596
+
597
+ ##
598
+ # Create a new client object for CmsMetadataValueService.
599
+ #
600
+ # By default, this returns an instance of
601
+ # [Google::Ads::AdManager::V1::CmsMetadataValueService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CmsMetadataValueService/Rest/Client)
602
+ # for a REST client for version V1 of the API.
603
+ # However, you can specify a different API version by passing it in the
604
+ # `version` parameter. If the CmsMetadataValueService service is
605
+ # supported by that API version, and the corresponding gem is available, the
606
+ # appropriate versioned client will be returned.
607
+ #
608
+ # Raises an exception if the currently installed versioned client gem for the
609
+ # given API version does not support the CmsMetadataValueService service.
610
+ # You can determine whether the method will succeed by calling
611
+ # {Google::Ads::AdManager.cms_metadata_value_service_available?}.
612
+ #
613
+ # ## About CmsMetadataValueService
614
+ #
615
+ # Provides methods for handling `CmsMetadataValue` objects.
616
+ #
617
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
618
+ # Defaults to `:v1`.
619
+ # @return [::Object] A client object for the specified version.
620
+ #
621
+ def self.cms_metadata_value_service version: :v1, &block
622
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
623
+
624
+ package_name = Google::Ads::AdManager
625
+ .constants
626
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
627
+ .first
628
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CmsMetadataValueService)
629
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
630
+ end
631
+
632
+ ##
633
+ # Determines whether the CmsMetadataValueService service is supported by the current client.
634
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.cms_metadata_value_service}.
635
+ # If false, that method will raise an exception. This could happen if the given
636
+ # API version does not exist or does not support the CmsMetadataValueService service,
637
+ # or if the versioned client gem needs an update to support the CmsMetadataValueService service.
638
+ #
639
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
640
+ # Defaults to `:v1`.
641
+ # @return [boolean] Whether the service is available.
642
+ #
643
+ def self.cms_metadata_value_service_available? version: :v1
644
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
645
+ package_name = Google::Ads::AdManager
646
+ .constants
647
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
648
+ .first
649
+ return false unless package_name
650
+ service_module = Google::Ads::AdManager.const_get package_name
651
+ return false unless service_module.const_defined? :CmsMetadataValueService
652
+ service_module = service_module.const_get :CmsMetadataValueService
653
+ return false unless service_module.const_defined? :Rest
654
+ service_module = service_module.const_get :Rest
655
+ service_module.const_defined? :Client
656
+ rescue ::LoadError
657
+ false
658
+ end
659
+
660
+ ##
661
+ # Create a new client object for CompanyService.
662
+ #
663
+ # By default, this returns an instance of
664
+ # [Google::Ads::AdManager::V1::CompanyService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CompanyService/Rest/Client)
665
+ # for a REST client for version V1 of the API.
666
+ # However, you can specify a different API version by passing it in the
667
+ # `version` parameter. If the CompanyService service is
668
+ # supported by that API version, and the corresponding gem is available, the
669
+ # appropriate versioned client will be returned.
670
+ #
671
+ # Raises an exception if the currently installed versioned client gem for the
672
+ # given API version does not support the CompanyService service.
673
+ # You can determine whether the method will succeed by calling
674
+ # {Google::Ads::AdManager.company_service_available?}.
675
+ #
676
+ # ## About CompanyService
677
+ #
678
+ # Provides methods for handling `Company` objects.
679
+ #
680
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
681
+ # Defaults to `:v1`.
682
+ # @return [::Object] A client object for the specified version.
683
+ #
684
+ def self.company_service version: :v1, &block
685
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
686
+
687
+ package_name = Google::Ads::AdManager
688
+ .constants
689
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
690
+ .first
691
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CompanyService)
692
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
693
+ end
694
+
695
+ ##
696
+ # Determines whether the CompanyService service is supported by the current client.
697
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.company_service}.
698
+ # If false, that method will raise an exception. This could happen if the given
699
+ # API version does not exist or does not support the CompanyService service,
700
+ # or if the versioned client gem needs an update to support the CompanyService service.
701
+ #
702
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
703
+ # Defaults to `:v1`.
704
+ # @return [boolean] Whether the service is available.
705
+ #
706
+ def self.company_service_available? version: :v1
707
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
708
+ package_name = Google::Ads::AdManager
709
+ .constants
710
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
711
+ .first
712
+ return false unless package_name
713
+ service_module = Google::Ads::AdManager.const_get package_name
714
+ return false unless service_module.const_defined? :CompanyService
715
+ service_module = service_module.const_get :CompanyService
716
+ return false unless service_module.const_defined? :Rest
717
+ service_module = service_module.const_get :Rest
718
+ service_module.const_defined? :Client
719
+ rescue ::LoadError
720
+ false
721
+ end
722
+
723
+ ##
724
+ # Create a new client object for ContactService.
725
+ #
726
+ # By default, this returns an instance of
727
+ # [Google::Ads::AdManager::V1::ContactService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ContactService/Rest/Client)
728
+ # for a REST client for version V1 of the API.
729
+ # However, you can specify a different API version by passing it in the
730
+ # `version` parameter. If the ContactService service is
731
+ # supported by that API version, and the corresponding gem is available, the
732
+ # appropriate versioned client will be returned.
733
+ #
734
+ # Raises an exception if the currently installed versioned client gem for the
735
+ # given API version does not support the ContactService service.
736
+ # You can determine whether the method will succeed by calling
737
+ # {Google::Ads::AdManager.contact_service_available?}.
738
+ #
739
+ # ## About ContactService
740
+ #
741
+ # Provides methods for handling `Contact` objects.
742
+ #
743
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
744
+ # Defaults to `:v1`.
745
+ # @return [::Object] A client object for the specified version.
746
+ #
747
+ def self.contact_service version: :v1, &block
748
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
749
+
750
+ package_name = Google::Ads::AdManager
751
+ .constants
752
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
753
+ .first
754
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ContactService)
755
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
756
+ end
757
+
758
+ ##
759
+ # Determines whether the ContactService service is supported by the current client.
760
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.contact_service}.
761
+ # If false, that method will raise an exception. This could happen if the given
762
+ # API version does not exist or does not support the ContactService service,
763
+ # or if the versioned client gem needs an update to support the ContactService service.
764
+ #
765
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
766
+ # Defaults to `:v1`.
767
+ # @return [boolean] Whether the service is available.
768
+ #
769
+ def self.contact_service_available? version: :v1
770
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
771
+ package_name = Google::Ads::AdManager
772
+ .constants
773
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
774
+ .first
775
+ return false unless package_name
776
+ service_module = Google::Ads::AdManager.const_get package_name
777
+ return false unless service_module.const_defined? :ContactService
778
+ service_module = service_module.const_get :ContactService
779
+ return false unless service_module.const_defined? :Rest
780
+ service_module = service_module.const_get :Rest
781
+ service_module.const_defined? :Client
782
+ rescue ::LoadError
783
+ false
784
+ end
785
+
786
+ ##
787
+ # Create a new client object for ContentBundleService.
788
+ #
789
+ # By default, this returns an instance of
790
+ # [Google::Ads::AdManager::V1::ContentBundleService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ContentBundleService/Rest/Client)
791
+ # for a REST client for version V1 of the API.
792
+ # However, you can specify a different API version by passing it in the
793
+ # `version` parameter. If the ContentBundleService service is
794
+ # supported by that API version, and the corresponding gem is available, the
795
+ # appropriate versioned client will be returned.
796
+ #
797
+ # Raises an exception if the currently installed versioned client gem for the
798
+ # given API version does not support the ContentBundleService service.
799
+ # You can determine whether the method will succeed by calling
800
+ # {Google::Ads::AdManager.content_bundle_service_available?}.
801
+ #
802
+ # ## About ContentBundleService
803
+ #
804
+ # Provides methods for handling `ContentBundle` objects.
805
+ #
806
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
807
+ # Defaults to `:v1`.
808
+ # @return [::Object] A client object for the specified version.
809
+ #
810
+ def self.content_bundle_service version: :v1, &block
811
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
812
+
813
+ package_name = Google::Ads::AdManager
814
+ .constants
815
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
816
+ .first
817
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ContentBundleService)
818
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
819
+ end
820
+
821
+ ##
822
+ # Determines whether the ContentBundleService service is supported by the current client.
823
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.content_bundle_service}.
824
+ # If false, that method will raise an exception. This could happen if the given
825
+ # API version does not exist or does not support the ContentBundleService service,
826
+ # or if the versioned client gem needs an update to support the ContentBundleService service.
827
+ #
828
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
829
+ # Defaults to `:v1`.
830
+ # @return [boolean] Whether the service is available.
831
+ #
832
+ def self.content_bundle_service_available? version: :v1
833
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
834
+ package_name = Google::Ads::AdManager
835
+ .constants
836
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
837
+ .first
838
+ return false unless package_name
839
+ service_module = Google::Ads::AdManager.const_get package_name
840
+ return false unless service_module.const_defined? :ContentBundleService
841
+ service_module = service_module.const_get :ContentBundleService
842
+ return false unless service_module.const_defined? :Rest
843
+ service_module = service_module.const_get :Rest
844
+ service_module.const_defined? :Client
845
+ rescue ::LoadError
846
+ false
847
+ end
848
+
849
+ ##
850
+ # Create a new client object for ContentLabelService.
851
+ #
852
+ # By default, this returns an instance of
853
+ # [Google::Ads::AdManager::V1::ContentLabelService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ContentLabelService/Rest/Client)
854
+ # for a REST client for version V1 of the API.
855
+ # However, you can specify a different API version by passing it in the
856
+ # `version` parameter. If the ContentLabelService service is
857
+ # supported by that API version, and the corresponding gem is available, the
858
+ # appropriate versioned client will be returned.
859
+ #
860
+ # Raises an exception if the currently installed versioned client gem for the
861
+ # given API version does not support the ContentLabelService service.
862
+ # You can determine whether the method will succeed by calling
863
+ # {Google::Ads::AdManager.content_label_service_available?}.
864
+ #
865
+ # ## About ContentLabelService
866
+ #
867
+ # Provides methods for handling `ContentLabel` objects.
868
+ #
869
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
870
+ # Defaults to `:v1`.
871
+ # @return [::Object] A client object for the specified version.
872
+ #
873
+ def self.content_label_service version: :v1, &block
874
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
875
+
876
+ package_name = Google::Ads::AdManager
877
+ .constants
878
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
879
+ .first
880
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ContentLabelService)
881
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
882
+ end
883
+
884
+ ##
885
+ # Determines whether the ContentLabelService service is supported by the current client.
886
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.content_label_service}.
887
+ # If false, that method will raise an exception. This could happen if the given
888
+ # API version does not exist or does not support the ContentLabelService service,
889
+ # or if the versioned client gem needs an update to support the ContentLabelService service.
890
+ #
891
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
892
+ # Defaults to `:v1`.
893
+ # @return [boolean] Whether the service is available.
894
+ #
895
+ def self.content_label_service_available? version: :v1
896
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
897
+ package_name = Google::Ads::AdManager
898
+ .constants
899
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
900
+ .first
901
+ return false unless package_name
902
+ service_module = Google::Ads::AdManager.const_get package_name
903
+ return false unless service_module.const_defined? :ContentLabelService
904
+ service_module = service_module.const_get :ContentLabelService
905
+ return false unless service_module.const_defined? :Rest
906
+ service_module = service_module.const_get :Rest
907
+ service_module.const_defined? :Client
908
+ rescue ::LoadError
909
+ false
910
+ end
911
+
912
+ ##
913
+ # Create a new client object for ContentService.
914
+ #
915
+ # By default, this returns an instance of
916
+ # [Google::Ads::AdManager::V1::ContentService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ContentService/Rest/Client)
917
+ # for a REST client for version V1 of the API.
918
+ # However, you can specify a different API version by passing it in the
919
+ # `version` parameter. If the ContentService service is
920
+ # supported by that API version, and the corresponding gem is available, the
921
+ # appropriate versioned client will be returned.
922
+ #
923
+ # Raises an exception if the currently installed versioned client gem for the
924
+ # given API version does not support the ContentService service.
925
+ # You can determine whether the method will succeed by calling
926
+ # {Google::Ads::AdManager.content_service_available?}.
927
+ #
928
+ # ## About ContentService
929
+ #
930
+ # Provides methods for handling `Content` objects.
931
+ #
932
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
933
+ # Defaults to `:v1`.
934
+ # @return [::Object] A client object for the specified version.
935
+ #
936
+ def self.content_service version: :v1, &block
937
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
938
+
939
+ package_name = Google::Ads::AdManager
940
+ .constants
941
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
942
+ .first
943
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ContentService)
944
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
945
+ end
946
+
947
+ ##
948
+ # Determines whether the ContentService service is supported by the current client.
949
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.content_service}.
950
+ # If false, that method will raise an exception. This could happen if the given
951
+ # API version does not exist or does not support the ContentService service,
952
+ # or if the versioned client gem needs an update to support the ContentService service.
953
+ #
954
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
955
+ # Defaults to `:v1`.
956
+ # @return [boolean] Whether the service is available.
957
+ #
958
+ def self.content_service_available? version: :v1
959
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
960
+ package_name = Google::Ads::AdManager
961
+ .constants
962
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
963
+ .first
964
+ return false unless package_name
965
+ service_module = Google::Ads::AdManager.const_get package_name
966
+ return false unless service_module.const_defined? :ContentService
967
+ service_module = service_module.const_get :ContentService
968
+ return false unless service_module.const_defined? :Rest
969
+ service_module = service_module.const_get :Rest
970
+ service_module.const_defined? :Client
971
+ rescue ::LoadError
972
+ false
973
+ end
974
+
975
+ ##
976
+ # Create a new client object for CreativeTemplateService.
977
+ #
978
+ # By default, this returns an instance of
979
+ # [Google::Ads::AdManager::V1::CreativeTemplateService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CreativeTemplateService/Rest/Client)
980
+ # for a REST client for version V1 of the API.
981
+ # However, you can specify a different API version by passing it in the
982
+ # `version` parameter. If the CreativeTemplateService service is
983
+ # supported by that API version, and the corresponding gem is available, the
984
+ # appropriate versioned client will be returned.
985
+ #
986
+ # Raises an exception if the currently installed versioned client gem for the
987
+ # given API version does not support the CreativeTemplateService service.
988
+ # You can determine whether the method will succeed by calling
989
+ # {Google::Ads::AdManager.creative_template_service_available?}.
990
+ #
991
+ # ## About CreativeTemplateService
992
+ #
993
+ # Provides methods for handling `CreativeTemplate` objects.
994
+ #
995
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
996
+ # Defaults to `:v1`.
997
+ # @return [::Object] A client object for the specified version.
998
+ #
999
+ def self.creative_template_service version: :v1, &block
1000
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1001
+
1002
+ package_name = Google::Ads::AdManager
1003
+ .constants
1004
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1005
+ .first
1006
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CreativeTemplateService)
1007
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1008
+ end
1009
+
1010
+ ##
1011
+ # Determines whether the CreativeTemplateService service is supported by the current client.
1012
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.creative_template_service}.
1013
+ # If false, that method will raise an exception. This could happen if the given
1014
+ # API version does not exist or does not support the CreativeTemplateService service,
1015
+ # or if the versioned client gem needs an update to support the CreativeTemplateService service.
1016
+ #
1017
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1018
+ # Defaults to `:v1`.
1019
+ # @return [boolean] Whether the service is available.
1020
+ #
1021
+ def self.creative_template_service_available? version: :v1
1022
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1023
+ package_name = Google::Ads::AdManager
1024
+ .constants
1025
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1026
+ .first
1027
+ return false unless package_name
1028
+ service_module = Google::Ads::AdManager.const_get package_name
1029
+ return false unless service_module.const_defined? :CreativeTemplateService
1030
+ service_module = service_module.const_get :CreativeTemplateService
1031
+ return false unless service_module.const_defined? :Rest
1032
+ service_module = service_module.const_get :Rest
1033
+ service_module.const_defined? :Client
1034
+ rescue ::LoadError
1035
+ false
1036
+ end
1037
+
1038
+ ##
1039
+ # Create a new client object for CustomFieldService.
1040
+ #
1041
+ # By default, this returns an instance of
1042
+ # [Google::Ads::AdManager::V1::CustomFieldService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CustomFieldService/Rest/Client)
1043
+ # for a REST client for version V1 of the API.
1044
+ # However, you can specify a different API version by passing it in the
1045
+ # `version` parameter. If the CustomFieldService service is
1046
+ # supported by that API version, and the corresponding gem is available, the
1047
+ # appropriate versioned client will be returned.
1048
+ #
1049
+ # Raises an exception if the currently installed versioned client gem for the
1050
+ # given API version does not support the CustomFieldService service.
1051
+ # You can determine whether the method will succeed by calling
1052
+ # {Google::Ads::AdManager.custom_field_service_available?}.
1053
+ #
1054
+ # ## About CustomFieldService
1055
+ #
1056
+ # Provides methods for handling `CustomField` objects.
1057
+ #
1058
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1059
+ # Defaults to `:v1`.
1060
+ # @return [::Object] A client object for the specified version.
1061
+ #
1062
+ def self.custom_field_service version: :v1, &block
1063
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1064
+
1065
+ package_name = Google::Ads::AdManager
1066
+ .constants
1067
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1068
+ .first
1069
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CustomFieldService)
1070
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1071
+ end
1072
+
1073
+ ##
1074
+ # Determines whether the CustomFieldService service is supported by the current client.
1075
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.custom_field_service}.
1076
+ # If false, that method will raise an exception. This could happen if the given
1077
+ # API version does not exist or does not support the CustomFieldService service,
1078
+ # or if the versioned client gem needs an update to support the CustomFieldService service.
1079
+ #
1080
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1081
+ # Defaults to `:v1`.
1082
+ # @return [boolean] Whether the service is available.
1083
+ #
1084
+ def self.custom_field_service_available? version: :v1
1085
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1086
+ package_name = Google::Ads::AdManager
1087
+ .constants
1088
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1089
+ .first
1090
+ return false unless package_name
1091
+ service_module = Google::Ads::AdManager.const_get package_name
1092
+ return false unless service_module.const_defined? :CustomFieldService
1093
+ service_module = service_module.const_get :CustomFieldService
1094
+ return false unless service_module.const_defined? :Rest
1095
+ service_module = service_module.const_get :Rest
1096
+ service_module.const_defined? :Client
1097
+ rescue ::LoadError
1098
+ false
1099
+ end
1100
+
1101
+ ##
1102
+ # Create a new client object for CustomTargetingKeyService.
1103
+ #
1104
+ # By default, this returns an instance of
1105
+ # [Google::Ads::AdManager::V1::CustomTargetingKeyService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CustomTargetingKeyService/Rest/Client)
1106
+ # for a REST client for version V1 of the API.
1107
+ # However, you can specify a different API version by passing it in the
1108
+ # `version` parameter. If the CustomTargetingKeyService service is
1109
+ # supported by that API version, and the corresponding gem is available, the
1110
+ # appropriate versioned client will be returned.
1111
+ #
1112
+ # Raises an exception if the currently installed versioned client gem for the
1113
+ # given API version does not support the CustomTargetingKeyService service.
1114
+ # You can determine whether the method will succeed by calling
1115
+ # {Google::Ads::AdManager.custom_targeting_key_service_available?}.
1116
+ #
1117
+ # ## About CustomTargetingKeyService
1118
+ #
1119
+ # Provides methods for handling `CustomTargetingKey` objects.
1120
+ #
1121
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1122
+ # Defaults to `:v1`.
1123
+ # @return [::Object] A client object for the specified version.
1124
+ #
1125
+ def self.custom_targeting_key_service version: :v1, &block
1126
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1127
+
1128
+ package_name = Google::Ads::AdManager
1129
+ .constants
1130
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1131
+ .first
1132
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CustomTargetingKeyService)
1133
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1134
+ end
1135
+
1136
+ ##
1137
+ # Determines whether the CustomTargetingKeyService service is supported by the current client.
1138
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.custom_targeting_key_service}.
1139
+ # If false, that method will raise an exception. This could happen if the given
1140
+ # API version does not exist or does not support the CustomTargetingKeyService service,
1141
+ # or if the versioned client gem needs an update to support the CustomTargetingKeyService service.
1142
+ #
1143
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1144
+ # Defaults to `:v1`.
1145
+ # @return [boolean] Whether the service is available.
1146
+ #
1147
+ def self.custom_targeting_key_service_available? version: :v1
1148
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1149
+ package_name = Google::Ads::AdManager
1150
+ .constants
1151
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1152
+ .first
1153
+ return false unless package_name
1154
+ service_module = Google::Ads::AdManager.const_get package_name
1155
+ return false unless service_module.const_defined? :CustomTargetingKeyService
1156
+ service_module = service_module.const_get :CustomTargetingKeyService
1157
+ return false unless service_module.const_defined? :Rest
1158
+ service_module = service_module.const_get :Rest
1159
+ service_module.const_defined? :Client
1160
+ rescue ::LoadError
1161
+ false
1162
+ end
1163
+
1164
+ ##
1165
+ # Create a new client object for CustomTargetingValueService.
1166
+ #
1167
+ # By default, this returns an instance of
1168
+ # [Google::Ads::AdManager::V1::CustomTargetingValueService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CustomTargetingValueService/Rest/Client)
1169
+ # for a REST client for version V1 of the API.
1170
+ # However, you can specify a different API version by passing it in the
1171
+ # `version` parameter. If the CustomTargetingValueService service is
1172
+ # supported by that API version, and the corresponding gem is available, the
1173
+ # appropriate versioned client will be returned.
1174
+ #
1175
+ # Raises an exception if the currently installed versioned client gem for the
1176
+ # given API version does not support the CustomTargetingValueService service.
1177
+ # You can determine whether the method will succeed by calling
1178
+ # {Google::Ads::AdManager.custom_targeting_value_service_available?}.
1179
+ #
1180
+ # ## About CustomTargetingValueService
1181
+ #
1182
+ # Provides methods for handling `CustomTargetingValue` objects.
1183
+ #
1184
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1185
+ # Defaults to `:v1`.
1186
+ # @return [::Object] A client object for the specified version.
1187
+ #
1188
+ def self.custom_targeting_value_service version: :v1, &block
1189
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1190
+
1191
+ package_name = Google::Ads::AdManager
1192
+ .constants
1193
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1194
+ .first
1195
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CustomTargetingValueService)
1196
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1197
+ end
1198
+
1199
+ ##
1200
+ # Determines whether the CustomTargetingValueService service is supported by the current client.
1201
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.custom_targeting_value_service}.
1202
+ # If false, that method will raise an exception. This could happen if the given
1203
+ # API version does not exist or does not support the CustomTargetingValueService service,
1204
+ # or if the versioned client gem needs an update to support the CustomTargetingValueService service.
1205
+ #
1206
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1207
+ # Defaults to `:v1`.
1208
+ # @return [boolean] Whether the service is available.
1209
+ #
1210
+ def self.custom_targeting_value_service_available? version: :v1
1211
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1212
+ package_name = Google::Ads::AdManager
1213
+ .constants
1214
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1215
+ .first
1216
+ return false unless package_name
1217
+ service_module = Google::Ads::AdManager.const_get package_name
1218
+ return false unless service_module.const_defined? :CustomTargetingValueService
1219
+ service_module = service_module.const_get :CustomTargetingValueService
1220
+ return false unless service_module.const_defined? :Rest
1221
+ service_module = service_module.const_get :Rest
1222
+ service_module.const_defined? :Client
1223
+ rescue ::LoadError
1224
+ false
1225
+ end
1226
+
1227
+ ##
1228
+ # Create a new client object for DeviceCapabilityService.
1229
+ #
1230
+ # By default, this returns an instance of
1231
+ # [Google::Ads::AdManager::V1::DeviceCapabilityService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DeviceCapabilityService/Rest/Client)
1232
+ # for a REST client for version V1 of the API.
1233
+ # However, you can specify a different API version by passing it in the
1234
+ # `version` parameter. If the DeviceCapabilityService service is
1235
+ # supported by that API version, and the corresponding gem is available, the
1236
+ # appropriate versioned client will be returned.
1237
+ #
1238
+ # Raises an exception if the currently installed versioned client gem for the
1239
+ # given API version does not support the DeviceCapabilityService service.
1240
+ # You can determine whether the method will succeed by calling
1241
+ # {Google::Ads::AdManager.device_capability_service_available?}.
1242
+ #
1243
+ # ## About DeviceCapabilityService
1244
+ #
1245
+ # Provides methods for handling `DeviceCapability` objects.
1246
+ #
1247
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1248
+ # Defaults to `:v1`.
1249
+ # @return [::Object] A client object for the specified version.
1250
+ #
1251
+ def self.device_capability_service version: :v1, &block
1252
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1253
+
1254
+ package_name = Google::Ads::AdManager
1255
+ .constants
1256
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1257
+ .first
1258
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DeviceCapabilityService)
1259
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1260
+ end
1261
+
1262
+ ##
1263
+ # Determines whether the DeviceCapabilityService service is supported by the current client.
1264
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.device_capability_service}.
1265
+ # If false, that method will raise an exception. This could happen if the given
1266
+ # API version does not exist or does not support the DeviceCapabilityService service,
1267
+ # or if the versioned client gem needs an update to support the DeviceCapabilityService service.
1268
+ #
1269
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1270
+ # Defaults to `:v1`.
1271
+ # @return [boolean] Whether the service is available.
1272
+ #
1273
+ def self.device_capability_service_available? version: :v1
1274
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1275
+ package_name = Google::Ads::AdManager
1276
+ .constants
1277
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1278
+ .first
1279
+ return false unless package_name
1280
+ service_module = Google::Ads::AdManager.const_get package_name
1281
+ return false unless service_module.const_defined? :DeviceCapabilityService
1282
+ service_module = service_module.const_get :DeviceCapabilityService
1283
+ return false unless service_module.const_defined? :Rest
1284
+ service_module = service_module.const_get :Rest
1285
+ service_module.const_defined? :Client
1286
+ rescue ::LoadError
1287
+ false
1288
+ end
1289
+
1290
+ ##
1291
+ # Create a new client object for DeviceCategoryService.
1292
+ #
1293
+ # By default, this returns an instance of
1294
+ # [Google::Ads::AdManager::V1::DeviceCategoryService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DeviceCategoryService/Rest/Client)
1295
+ # for a REST client for version V1 of the API.
1296
+ # However, you can specify a different API version by passing it in the
1297
+ # `version` parameter. If the DeviceCategoryService service is
1298
+ # supported by that API version, and the corresponding gem is available, the
1299
+ # appropriate versioned client will be returned.
1300
+ #
1301
+ # Raises an exception if the currently installed versioned client gem for the
1302
+ # given API version does not support the DeviceCategoryService service.
1303
+ # You can determine whether the method will succeed by calling
1304
+ # {Google::Ads::AdManager.device_category_service_available?}.
1305
+ #
1306
+ # ## About DeviceCategoryService
1307
+ #
1308
+ # Provides methods for handling `DeviceCategory` objects.
1309
+ #
1310
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1311
+ # Defaults to `:v1`.
1312
+ # @return [::Object] A client object for the specified version.
1313
+ #
1314
+ def self.device_category_service version: :v1, &block
181
1315
  require "google/ads/ad_manager/#{version.to_s.downcase}"
182
1316
 
183
1317
  package_name = Google::Ads::AdManager
184
1318
  .constants
185
1319
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
186
1320
  .first
187
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:BandwidthGroupService)
1321
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DeviceCategoryService)
188
1322
  service_module.const_get(:Rest).const_get(:Client).new(&block)
189
1323
  end
190
1324
 
191
1325
  ##
192
- # Determines whether the BandwidthGroupService service is supported by the current client.
193
- # If true, you can retrieve a client object by calling {Google::Ads::AdManager.bandwidth_group_service}.
1326
+ # Determines whether the DeviceCategoryService service is supported by the current client.
1327
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.device_category_service}.
194
1328
  # If false, that method will raise an exception. This could happen if the given
195
- # API version does not exist or does not support the BandwidthGroupService service,
196
- # or if the versioned client gem needs an update to support the BandwidthGroupService service.
1329
+ # API version does not exist or does not support the DeviceCategoryService service,
1330
+ # or if the versioned client gem needs an update to support the DeviceCategoryService service.
197
1331
  #
198
1332
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
199
1333
  # Defaults to `:v1`.
200
1334
  # @return [boolean] Whether the service is available.
201
1335
  #
202
- def self.bandwidth_group_service_available? version: :v1
1336
+ def self.device_category_service_available? version: :v1
203
1337
  require "google/ads/ad_manager/#{version.to_s.downcase}"
204
1338
  package_name = Google::Ads::AdManager
205
1339
  .constants
@@ -207,8 +1341,8 @@ module Google
207
1341
  .first
208
1342
  return false unless package_name
209
1343
  service_module = Google::Ads::AdManager.const_get package_name
210
- return false unless service_module.const_defined? :BandwidthGroupService
211
- service_module = service_module.const_get :BandwidthGroupService
1344
+ return false unless service_module.const_defined? :DeviceCategoryService
1345
+ service_module = service_module.const_get :DeviceCategoryService
212
1346
  return false unless service_module.const_defined? :Rest
213
1347
  service_module = service_module.const_get :Rest
214
1348
  service_module.const_defined? :Client
@@ -217,52 +1351,52 @@ module Google
217
1351
  end
218
1352
 
219
1353
  ##
220
- # Create a new client object for CompanyService.
1354
+ # Create a new client object for DeviceManufacturerService.
221
1355
  #
222
1356
  # By default, this returns an instance of
223
- # [Google::Ads::AdManager::V1::CompanyService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CompanyService/Rest/Client)
1357
+ # [Google::Ads::AdManager::V1::DeviceManufacturerService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DeviceManufacturerService/Rest/Client)
224
1358
  # for a REST client for version V1 of the API.
225
1359
  # However, you can specify a different API version by passing it in the
226
- # `version` parameter. If the CompanyService service is
1360
+ # `version` parameter. If the DeviceManufacturerService service is
227
1361
  # supported by that API version, and the corresponding gem is available, the
228
1362
  # appropriate versioned client will be returned.
229
1363
  #
230
1364
  # Raises an exception if the currently installed versioned client gem for the
231
- # given API version does not support the CompanyService service.
1365
+ # given API version does not support the DeviceManufacturerService service.
232
1366
  # You can determine whether the method will succeed by calling
233
- # {Google::Ads::AdManager.company_service_available?}.
1367
+ # {Google::Ads::AdManager.device_manufacturer_service_available?}.
234
1368
  #
235
- # ## About CompanyService
1369
+ # ## About DeviceManufacturerService
236
1370
  #
237
- # Provides methods for handling `Company` objects.
1371
+ # Provides methods for handling `DeviceManufacturer` objects.
238
1372
  #
239
1373
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
240
1374
  # Defaults to `:v1`.
241
1375
  # @return [::Object] A client object for the specified version.
242
1376
  #
243
- def self.company_service version: :v1, &block
1377
+ def self.device_manufacturer_service version: :v1, &block
244
1378
  require "google/ads/ad_manager/#{version.to_s.downcase}"
245
1379
 
246
1380
  package_name = Google::Ads::AdManager
247
1381
  .constants
248
1382
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
249
1383
  .first
250
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CompanyService)
1384
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DeviceManufacturerService)
251
1385
  service_module.const_get(:Rest).const_get(:Client).new(&block)
252
1386
  end
253
1387
 
254
1388
  ##
255
- # Determines whether the CompanyService service is supported by the current client.
256
- # If true, you can retrieve a client object by calling {Google::Ads::AdManager.company_service}.
1389
+ # Determines whether the DeviceManufacturerService service is supported by the current client.
1390
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.device_manufacturer_service}.
257
1391
  # If false, that method will raise an exception. This could happen if the given
258
- # API version does not exist or does not support the CompanyService service,
259
- # or if the versioned client gem needs an update to support the CompanyService service.
1392
+ # API version does not exist or does not support the DeviceManufacturerService service,
1393
+ # or if the versioned client gem needs an update to support the DeviceManufacturerService service.
260
1394
  #
261
1395
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
262
1396
  # Defaults to `:v1`.
263
1397
  # @return [boolean] Whether the service is available.
264
1398
  #
265
- def self.company_service_available? version: :v1
1399
+ def self.device_manufacturer_service_available? version: :v1
266
1400
  require "google/ads/ad_manager/#{version.to_s.downcase}"
267
1401
  package_name = Google::Ads::AdManager
268
1402
  .constants
@@ -270,8 +1404,8 @@ module Google
270
1404
  .first
271
1405
  return false unless package_name
272
1406
  service_module = Google::Ads::AdManager.const_get package_name
273
- return false unless service_module.const_defined? :CompanyService
274
- service_module = service_module.const_get :CompanyService
1407
+ return false unless service_module.const_defined? :DeviceManufacturerService
1408
+ service_module = service_module.const_get :DeviceManufacturerService
275
1409
  return false unless service_module.const_defined? :Rest
276
1410
  service_module = service_module.const_get :Rest
277
1411
  service_module.const_defined? :Client
@@ -280,52 +1414,52 @@ module Google
280
1414
  end
281
1415
 
282
1416
  ##
283
- # Create a new client object for CustomFieldService.
1417
+ # Create a new client object for EntitySignalsMappingService.
284
1418
  #
285
1419
  # By default, this returns an instance of
286
- # [Google::Ads::AdManager::V1::CustomFieldService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CustomFieldService/Rest/Client)
1420
+ # [Google::Ads::AdManager::V1::EntitySignalsMappingService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/EntitySignalsMappingService/Rest/Client)
287
1421
  # for a REST client for version V1 of the API.
288
1422
  # However, you can specify a different API version by passing it in the
289
- # `version` parameter. If the CustomFieldService service is
1423
+ # `version` parameter. If the EntitySignalsMappingService service is
290
1424
  # supported by that API version, and the corresponding gem is available, the
291
1425
  # appropriate versioned client will be returned.
292
1426
  #
293
1427
  # Raises an exception if the currently installed versioned client gem for the
294
- # given API version does not support the CustomFieldService service.
1428
+ # given API version does not support the EntitySignalsMappingService service.
295
1429
  # You can determine whether the method will succeed by calling
296
- # {Google::Ads::AdManager.custom_field_service_available?}.
1430
+ # {Google::Ads::AdManager.entity_signals_mapping_service_available?}.
297
1431
  #
298
- # ## About CustomFieldService
1432
+ # ## About EntitySignalsMappingService
299
1433
  #
300
- # Provides methods for handling `CustomField` objects.
1434
+ # Provides methods for handling `EntitySignalsMapping` objects.
301
1435
  #
302
1436
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
303
1437
  # Defaults to `:v1`.
304
1438
  # @return [::Object] A client object for the specified version.
305
1439
  #
306
- def self.custom_field_service version: :v1, &block
1440
+ def self.entity_signals_mapping_service version: :v1, &block
307
1441
  require "google/ads/ad_manager/#{version.to_s.downcase}"
308
1442
 
309
1443
  package_name = Google::Ads::AdManager
310
1444
  .constants
311
1445
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
312
1446
  .first
313
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CustomFieldService)
1447
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:EntitySignalsMappingService)
314
1448
  service_module.const_get(:Rest).const_get(:Client).new(&block)
315
1449
  end
316
1450
 
317
1451
  ##
318
- # Determines whether the CustomFieldService service is supported by the current client.
319
- # If true, you can retrieve a client object by calling {Google::Ads::AdManager.custom_field_service}.
1452
+ # Determines whether the EntitySignalsMappingService service is supported by the current client.
1453
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.entity_signals_mapping_service}.
320
1454
  # If false, that method will raise an exception. This could happen if the given
321
- # API version does not exist or does not support the CustomFieldService service,
322
- # or if the versioned client gem needs an update to support the CustomFieldService service.
1455
+ # API version does not exist or does not support the EntitySignalsMappingService service,
1456
+ # or if the versioned client gem needs an update to support the EntitySignalsMappingService service.
323
1457
  #
324
1458
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
325
1459
  # Defaults to `:v1`.
326
1460
  # @return [boolean] Whether the service is available.
327
1461
  #
328
- def self.custom_field_service_available? version: :v1
1462
+ def self.entity_signals_mapping_service_available? version: :v1
329
1463
  require "google/ads/ad_manager/#{version.to_s.downcase}"
330
1464
  package_name = Google::Ads::AdManager
331
1465
  .constants
@@ -333,8 +1467,8 @@ module Google
333
1467
  .first
334
1468
  return false unless package_name
335
1469
  service_module = Google::Ads::AdManager.const_get package_name
336
- return false unless service_module.const_defined? :CustomFieldService
337
- service_module = service_module.const_get :CustomFieldService
1470
+ return false unless service_module.const_defined? :EntitySignalsMappingService
1471
+ service_module = service_module.const_get :EntitySignalsMappingService
338
1472
  return false unless service_module.const_defined? :Rest
339
1473
  service_module = service_module.const_get :Rest
340
1474
  service_module.const_defined? :Client
@@ -343,52 +1477,52 @@ module Google
343
1477
  end
344
1478
 
345
1479
  ##
346
- # Create a new client object for CustomTargetingKeyService.
1480
+ # Create a new client object for GeoTargetService.
347
1481
  #
348
1482
  # By default, this returns an instance of
349
- # [Google::Ads::AdManager::V1::CustomTargetingKeyService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CustomTargetingKeyService/Rest/Client)
1483
+ # [Google::Ads::AdManager::V1::GeoTargetService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/GeoTargetService/Rest/Client)
350
1484
  # for a REST client for version V1 of the API.
351
1485
  # However, you can specify a different API version by passing it in the
352
- # `version` parameter. If the CustomTargetingKeyService service is
1486
+ # `version` parameter. If the GeoTargetService service is
353
1487
  # supported by that API version, and the corresponding gem is available, the
354
1488
  # appropriate versioned client will be returned.
355
1489
  #
356
1490
  # Raises an exception if the currently installed versioned client gem for the
357
- # given API version does not support the CustomTargetingKeyService service.
1491
+ # given API version does not support the GeoTargetService service.
358
1492
  # You can determine whether the method will succeed by calling
359
- # {Google::Ads::AdManager.custom_targeting_key_service_available?}.
1493
+ # {Google::Ads::AdManager.geo_target_service_available?}.
360
1494
  #
361
- # ## About CustomTargetingKeyService
1495
+ # ## About GeoTargetService
362
1496
  #
363
- # Provides methods for handling `CustomTargetingKey` objects.
1497
+ # Provides methods for handling `GeoTarget` objects.
364
1498
  #
365
1499
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
366
1500
  # Defaults to `:v1`.
367
1501
  # @return [::Object] A client object for the specified version.
368
1502
  #
369
- def self.custom_targeting_key_service version: :v1, &block
1503
+ def self.geo_target_service version: :v1, &block
370
1504
  require "google/ads/ad_manager/#{version.to_s.downcase}"
371
1505
 
372
1506
  package_name = Google::Ads::AdManager
373
1507
  .constants
374
1508
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
375
1509
  .first
376
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CustomTargetingKeyService)
1510
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:GeoTargetService)
377
1511
  service_module.const_get(:Rest).const_get(:Client).new(&block)
378
1512
  end
379
1513
 
380
1514
  ##
381
- # Determines whether the CustomTargetingKeyService service is supported by the current client.
382
- # If true, you can retrieve a client object by calling {Google::Ads::AdManager.custom_targeting_key_service}.
1515
+ # Determines whether the GeoTargetService service is supported by the current client.
1516
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.geo_target_service}.
383
1517
  # If false, that method will raise an exception. This could happen if the given
384
- # API version does not exist or does not support the CustomTargetingKeyService service,
385
- # or if the versioned client gem needs an update to support the CustomTargetingKeyService service.
1518
+ # API version does not exist or does not support the GeoTargetService service,
1519
+ # or if the versioned client gem needs an update to support the GeoTargetService service.
386
1520
  #
387
1521
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
388
1522
  # Defaults to `:v1`.
389
1523
  # @return [boolean] Whether the service is available.
390
1524
  #
391
- def self.custom_targeting_key_service_available? version: :v1
1525
+ def self.geo_target_service_available? version: :v1
392
1526
  require "google/ads/ad_manager/#{version.to_s.downcase}"
393
1527
  package_name = Google::Ads::AdManager
394
1528
  .constants
@@ -396,8 +1530,8 @@ module Google
396
1530
  .first
397
1531
  return false unless package_name
398
1532
  service_module = Google::Ads::AdManager.const_get package_name
399
- return false unless service_module.const_defined? :CustomTargetingKeyService
400
- service_module = service_module.const_get :CustomTargetingKeyService
1533
+ return false unless service_module.const_defined? :GeoTargetService
1534
+ service_module = service_module.const_get :GeoTargetService
401
1535
  return false unless service_module.const_defined? :Rest
402
1536
  service_module = service_module.const_get :Rest
403
1537
  service_module.const_defined? :Client
@@ -406,52 +1540,52 @@ module Google
406
1540
  end
407
1541
 
408
1542
  ##
409
- # Create a new client object for CustomTargetingValueService.
1543
+ # Create a new client object for LineItemService.
410
1544
  #
411
1545
  # By default, this returns an instance of
412
- # [Google::Ads::AdManager::V1::CustomTargetingValueService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CustomTargetingValueService/Rest/Client)
1546
+ # [Google::Ads::AdManager::V1::LineItemService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/LineItemService/Rest/Client)
413
1547
  # for a REST client for version V1 of the API.
414
1548
  # However, you can specify a different API version by passing it in the
415
- # `version` parameter. If the CustomTargetingValueService service is
1549
+ # `version` parameter. If the LineItemService service is
416
1550
  # supported by that API version, and the corresponding gem is available, the
417
1551
  # appropriate versioned client will be returned.
418
1552
  #
419
1553
  # Raises an exception if the currently installed versioned client gem for the
420
- # given API version does not support the CustomTargetingValueService service.
1554
+ # given API version does not support the LineItemService service.
421
1555
  # You can determine whether the method will succeed by calling
422
- # {Google::Ads::AdManager.custom_targeting_value_service_available?}.
1556
+ # {Google::Ads::AdManager.line_item_service_available?}.
423
1557
  #
424
- # ## About CustomTargetingValueService
1558
+ # ## About LineItemService
425
1559
  #
426
- # Provides methods for handling `CustomTargetingValue` objects.
1560
+ # Provides methods for handling `LineItem` objects.
427
1561
  #
428
1562
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
429
1563
  # Defaults to `:v1`.
430
1564
  # @return [::Object] A client object for the specified version.
431
1565
  #
432
- def self.custom_targeting_value_service version: :v1, &block
1566
+ def self.line_item_service version: :v1, &block
433
1567
  require "google/ads/ad_manager/#{version.to_s.downcase}"
434
1568
 
435
1569
  package_name = Google::Ads::AdManager
436
1570
  .constants
437
1571
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
438
1572
  .first
439
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CustomTargetingValueService)
1573
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:LineItemService)
440
1574
  service_module.const_get(:Rest).const_get(:Client).new(&block)
441
1575
  end
442
1576
 
443
1577
  ##
444
- # Determines whether the CustomTargetingValueService service is supported by the current client.
445
- # If true, you can retrieve a client object by calling {Google::Ads::AdManager.custom_targeting_value_service}.
1578
+ # Determines whether the LineItemService service is supported by the current client.
1579
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.line_item_service}.
446
1580
  # If false, that method will raise an exception. This could happen if the given
447
- # API version does not exist or does not support the CustomTargetingValueService service,
448
- # or if the versioned client gem needs an update to support the CustomTargetingValueService service.
1581
+ # API version does not exist or does not support the LineItemService service,
1582
+ # or if the versioned client gem needs an update to support the LineItemService service.
449
1583
  #
450
1584
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
451
1585
  # Defaults to `:v1`.
452
1586
  # @return [boolean] Whether the service is available.
453
1587
  #
454
- def self.custom_targeting_value_service_available? version: :v1
1588
+ def self.line_item_service_available? version: :v1
455
1589
  require "google/ads/ad_manager/#{version.to_s.downcase}"
456
1590
  package_name = Google::Ads::AdManager
457
1591
  .constants
@@ -459,8 +1593,8 @@ module Google
459
1593
  .first
460
1594
  return false unless package_name
461
1595
  service_module = Google::Ads::AdManager.const_get package_name
462
- return false unless service_module.const_defined? :CustomTargetingValueService
463
- service_module = service_module.const_get :CustomTargetingValueService
1596
+ return false unless service_module.const_defined? :LineItemService
1597
+ service_module = service_module.const_get :LineItemService
464
1598
  return false unless service_module.const_defined? :Rest
465
1599
  service_module = service_module.const_get :Rest
466
1600
  service_module.const_defined? :Client
@@ -469,52 +1603,52 @@ module Google
469
1603
  end
470
1604
 
471
1605
  ##
472
- # Create a new client object for DeviceCategoryService.
1606
+ # Create a new client object for MobileCarrierService.
473
1607
  #
474
1608
  # By default, this returns an instance of
475
- # [Google::Ads::AdManager::V1::DeviceCategoryService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DeviceCategoryService/Rest/Client)
1609
+ # [Google::Ads::AdManager::V1::MobileCarrierService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/MobileCarrierService/Rest/Client)
476
1610
  # for a REST client for version V1 of the API.
477
1611
  # However, you can specify a different API version by passing it in the
478
- # `version` parameter. If the DeviceCategoryService service is
1612
+ # `version` parameter. If the MobileCarrierService service is
479
1613
  # supported by that API version, and the corresponding gem is available, the
480
1614
  # appropriate versioned client will be returned.
481
1615
  #
482
1616
  # Raises an exception if the currently installed versioned client gem for the
483
- # given API version does not support the DeviceCategoryService service.
1617
+ # given API version does not support the MobileCarrierService service.
484
1618
  # You can determine whether the method will succeed by calling
485
- # {Google::Ads::AdManager.device_category_service_available?}.
1619
+ # {Google::Ads::AdManager.mobile_carrier_service_available?}.
486
1620
  #
487
- # ## About DeviceCategoryService
1621
+ # ## About MobileCarrierService
488
1622
  #
489
- # Provides methods for handling `DeviceCategory` objects.
1623
+ # Provides methods for handling `MobileCarrier` objects.
490
1624
  #
491
1625
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
492
1626
  # Defaults to `:v1`.
493
1627
  # @return [::Object] A client object for the specified version.
494
1628
  #
495
- def self.device_category_service version: :v1, &block
1629
+ def self.mobile_carrier_service version: :v1, &block
496
1630
  require "google/ads/ad_manager/#{version.to_s.downcase}"
497
1631
 
498
1632
  package_name = Google::Ads::AdManager
499
1633
  .constants
500
1634
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
501
1635
  .first
502
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DeviceCategoryService)
1636
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:MobileCarrierService)
503
1637
  service_module.const_get(:Rest).const_get(:Client).new(&block)
504
1638
  end
505
1639
 
506
1640
  ##
507
- # Determines whether the DeviceCategoryService service is supported by the current client.
508
- # If true, you can retrieve a client object by calling {Google::Ads::AdManager.device_category_service}.
1641
+ # Determines whether the MobileCarrierService service is supported by the current client.
1642
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.mobile_carrier_service}.
509
1643
  # If false, that method will raise an exception. This could happen if the given
510
- # API version does not exist or does not support the DeviceCategoryService service,
511
- # or if the versioned client gem needs an update to support the DeviceCategoryService service.
1644
+ # API version does not exist or does not support the MobileCarrierService service,
1645
+ # or if the versioned client gem needs an update to support the MobileCarrierService service.
512
1646
  #
513
1647
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
514
1648
  # Defaults to `:v1`.
515
1649
  # @return [boolean] Whether the service is available.
516
1650
  #
517
- def self.device_category_service_available? version: :v1
1651
+ def self.mobile_carrier_service_available? version: :v1
518
1652
  require "google/ads/ad_manager/#{version.to_s.downcase}"
519
1653
  package_name = Google::Ads::AdManager
520
1654
  .constants
@@ -522,8 +1656,8 @@ module Google
522
1656
  .first
523
1657
  return false unless package_name
524
1658
  service_module = Google::Ads::AdManager.const_get package_name
525
- return false unless service_module.const_defined? :DeviceCategoryService
526
- service_module = service_module.const_get :DeviceCategoryService
1659
+ return false unless service_module.const_defined? :MobileCarrierService
1660
+ service_module = service_module.const_get :MobileCarrierService
527
1661
  return false unless service_module.const_defined? :Rest
528
1662
  service_module = service_module.const_get :Rest
529
1663
  service_module.const_defined? :Client
@@ -532,52 +1666,52 @@ module Google
532
1666
  end
533
1667
 
534
1668
  ##
535
- # Create a new client object for EntitySignalsMappingService.
1669
+ # Create a new client object for MobileDeviceService.
536
1670
  #
537
1671
  # By default, this returns an instance of
538
- # [Google::Ads::AdManager::V1::EntitySignalsMappingService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/EntitySignalsMappingService/Rest/Client)
1672
+ # [Google::Ads::AdManager::V1::MobileDeviceService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/MobileDeviceService/Rest/Client)
539
1673
  # for a REST client for version V1 of the API.
540
1674
  # However, you can specify a different API version by passing it in the
541
- # `version` parameter. If the EntitySignalsMappingService service is
1675
+ # `version` parameter. If the MobileDeviceService service is
542
1676
  # supported by that API version, and the corresponding gem is available, the
543
1677
  # appropriate versioned client will be returned.
544
1678
  #
545
1679
  # Raises an exception if the currently installed versioned client gem for the
546
- # given API version does not support the EntitySignalsMappingService service.
1680
+ # given API version does not support the MobileDeviceService service.
547
1681
  # You can determine whether the method will succeed by calling
548
- # {Google::Ads::AdManager.entity_signals_mapping_service_available?}.
1682
+ # {Google::Ads::AdManager.mobile_device_service_available?}.
549
1683
  #
550
- # ## About EntitySignalsMappingService
1684
+ # ## About MobileDeviceService
551
1685
  #
552
- # Provides methods for handling `EntitySignalsMapping` objects.
1686
+ # Provides methods for handling `MobileDevice` objects.
553
1687
  #
554
1688
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
555
1689
  # Defaults to `:v1`.
556
1690
  # @return [::Object] A client object for the specified version.
557
1691
  #
558
- def self.entity_signals_mapping_service version: :v1, &block
1692
+ def self.mobile_device_service version: :v1, &block
559
1693
  require "google/ads/ad_manager/#{version.to_s.downcase}"
560
1694
 
561
1695
  package_name = Google::Ads::AdManager
562
1696
  .constants
563
1697
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
564
1698
  .first
565
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:EntitySignalsMappingService)
1699
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:MobileDeviceService)
566
1700
  service_module.const_get(:Rest).const_get(:Client).new(&block)
567
1701
  end
568
1702
 
569
1703
  ##
570
- # Determines whether the EntitySignalsMappingService service is supported by the current client.
571
- # If true, you can retrieve a client object by calling {Google::Ads::AdManager.entity_signals_mapping_service}.
1704
+ # Determines whether the MobileDeviceService service is supported by the current client.
1705
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.mobile_device_service}.
572
1706
  # If false, that method will raise an exception. This could happen if the given
573
- # API version does not exist or does not support the EntitySignalsMappingService service,
574
- # or if the versioned client gem needs an update to support the EntitySignalsMappingService service.
1707
+ # API version does not exist or does not support the MobileDeviceService service,
1708
+ # or if the versioned client gem needs an update to support the MobileDeviceService service.
575
1709
  #
576
1710
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
577
1711
  # Defaults to `:v1`.
578
1712
  # @return [boolean] Whether the service is available.
579
1713
  #
580
- def self.entity_signals_mapping_service_available? version: :v1
1714
+ def self.mobile_device_service_available? version: :v1
581
1715
  require "google/ads/ad_manager/#{version.to_s.downcase}"
582
1716
  package_name = Google::Ads::AdManager
583
1717
  .constants
@@ -585,8 +1719,8 @@ module Google
585
1719
  .first
586
1720
  return false unless package_name
587
1721
  service_module = Google::Ads::AdManager.const_get package_name
588
- return false unless service_module.const_defined? :EntitySignalsMappingService
589
- service_module = service_module.const_get :EntitySignalsMappingService
1722
+ return false unless service_module.const_defined? :MobileDeviceService
1723
+ service_module = service_module.const_get :MobileDeviceService
590
1724
  return false unless service_module.const_defined? :Rest
591
1725
  service_module = service_module.const_get :Rest
592
1726
  service_module.const_defined? :Client
@@ -595,52 +1729,52 @@ module Google
595
1729
  end
596
1730
 
597
1731
  ##
598
- # Create a new client object for GeoTargetService.
1732
+ # Create a new client object for MobileDeviceSubmodelService.
599
1733
  #
600
1734
  # By default, this returns an instance of
601
- # [Google::Ads::AdManager::V1::GeoTargetService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/GeoTargetService/Rest/Client)
1735
+ # [Google::Ads::AdManager::V1::MobileDeviceSubmodelService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/MobileDeviceSubmodelService/Rest/Client)
602
1736
  # for a REST client for version V1 of the API.
603
1737
  # However, you can specify a different API version by passing it in the
604
- # `version` parameter. If the GeoTargetService service is
1738
+ # `version` parameter. If the MobileDeviceSubmodelService service is
605
1739
  # supported by that API version, and the corresponding gem is available, the
606
1740
  # appropriate versioned client will be returned.
607
1741
  #
608
1742
  # Raises an exception if the currently installed versioned client gem for the
609
- # given API version does not support the GeoTargetService service.
1743
+ # given API version does not support the MobileDeviceSubmodelService service.
610
1744
  # You can determine whether the method will succeed by calling
611
- # {Google::Ads::AdManager.geo_target_service_available?}.
1745
+ # {Google::Ads::AdManager.mobile_device_submodel_service_available?}.
612
1746
  #
613
- # ## About GeoTargetService
1747
+ # ## About MobileDeviceSubmodelService
614
1748
  #
615
- # Provides methods for handling `GeoTarget` objects.
1749
+ # Provides methods for handling `MobileDeviceSubmodel` objects.
616
1750
  #
617
1751
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
618
1752
  # Defaults to `:v1`.
619
1753
  # @return [::Object] A client object for the specified version.
620
1754
  #
621
- def self.geo_target_service version: :v1, &block
1755
+ def self.mobile_device_submodel_service version: :v1, &block
622
1756
  require "google/ads/ad_manager/#{version.to_s.downcase}"
623
1757
 
624
1758
  package_name = Google::Ads::AdManager
625
1759
  .constants
626
1760
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
627
1761
  .first
628
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:GeoTargetService)
1762
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:MobileDeviceSubmodelService)
629
1763
  service_module.const_get(:Rest).const_get(:Client).new(&block)
630
1764
  end
631
1765
 
632
1766
  ##
633
- # Determines whether the GeoTargetService service is supported by the current client.
634
- # If true, you can retrieve a client object by calling {Google::Ads::AdManager.geo_target_service}.
1767
+ # Determines whether the MobileDeviceSubmodelService service is supported by the current client.
1768
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.mobile_device_submodel_service}.
635
1769
  # If false, that method will raise an exception. This could happen if the given
636
- # API version does not exist or does not support the GeoTargetService service,
637
- # or if the versioned client gem needs an update to support the GeoTargetService service.
1770
+ # API version does not exist or does not support the MobileDeviceSubmodelService service,
1771
+ # or if the versioned client gem needs an update to support the MobileDeviceSubmodelService service.
638
1772
  #
639
1773
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
640
1774
  # Defaults to `:v1`.
641
1775
  # @return [boolean] Whether the service is available.
642
1776
  #
643
- def self.geo_target_service_available? version: :v1
1777
+ def self.mobile_device_submodel_service_available? version: :v1
644
1778
  require "google/ads/ad_manager/#{version.to_s.downcase}"
645
1779
  package_name = Google::Ads::AdManager
646
1780
  .constants
@@ -648,8 +1782,8 @@ module Google
648
1782
  .first
649
1783
  return false unless package_name
650
1784
  service_module = Google::Ads::AdManager.const_get package_name
651
- return false unless service_module.const_defined? :GeoTargetService
652
- service_module = service_module.const_get :GeoTargetService
1785
+ return false unless service_module.const_defined? :MobileDeviceSubmodelService
1786
+ service_module = service_module.const_get :MobileDeviceSubmodelService
653
1787
  return false unless service_module.const_defined? :Rest
654
1788
  service_module = service_module.const_get :Rest
655
1789
  service_module.const_defined? :Client
@@ -1287,6 +2421,69 @@ module Google
1287
2421
  false
1288
2422
  end
1289
2423
 
2424
+ ##
2425
+ # Create a new client object for SiteService.
2426
+ #
2427
+ # By default, this returns an instance of
2428
+ # [Google::Ads::AdManager::V1::SiteService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/SiteService/Rest/Client)
2429
+ # for a REST client for version V1 of the API.
2430
+ # However, you can specify a different API version by passing it in the
2431
+ # `version` parameter. If the SiteService service is
2432
+ # supported by that API version, and the corresponding gem is available, the
2433
+ # appropriate versioned client will be returned.
2434
+ #
2435
+ # Raises an exception if the currently installed versioned client gem for the
2436
+ # given API version does not support the SiteService service.
2437
+ # You can determine whether the method will succeed by calling
2438
+ # {Google::Ads::AdManager.site_service_available?}.
2439
+ #
2440
+ # ## About SiteService
2441
+ #
2442
+ # Provides methods for handling `Site` objects.
2443
+ #
2444
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2445
+ # Defaults to `:v1`.
2446
+ # @return [::Object] A client object for the specified version.
2447
+ #
2448
+ def self.site_service version: :v1, &block
2449
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2450
+
2451
+ package_name = Google::Ads::AdManager
2452
+ .constants
2453
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2454
+ .first
2455
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:SiteService)
2456
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2457
+ end
2458
+
2459
+ ##
2460
+ # Determines whether the SiteService service is supported by the current client.
2461
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.site_service}.
2462
+ # If false, that method will raise an exception. This could happen if the given
2463
+ # API version does not exist or does not support the SiteService service,
2464
+ # or if the versioned client gem needs an update to support the SiteService service.
2465
+ #
2466
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2467
+ # Defaults to `:v1`.
2468
+ # @return [boolean] Whether the service is available.
2469
+ #
2470
+ def self.site_service_available? version: :v1
2471
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2472
+ package_name = Google::Ads::AdManager
2473
+ .constants
2474
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2475
+ .first
2476
+ return false unless package_name
2477
+ service_module = Google::Ads::AdManager.const_get package_name
2478
+ return false unless service_module.const_defined? :SiteService
2479
+ service_module = service_module.const_get :SiteService
2480
+ return false unless service_module.const_defined? :Rest
2481
+ service_module = service_module.const_get :Rest
2482
+ service_module.const_defined? :Client
2483
+ rescue ::LoadError
2484
+ false
2485
+ end
2486
+
1290
2487
  ##
1291
2488
  # Create a new client object for TaxonomyCategoryService.
1292
2489
  #
@@ -1350,6 +2547,69 @@ module Google
1350
2547
  false
1351
2548
  end
1352
2549
 
2550
+ ##
2551
+ # Create a new client object for TeamService.
2552
+ #
2553
+ # By default, this returns an instance of
2554
+ # [Google::Ads::AdManager::V1::TeamService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/TeamService/Rest/Client)
2555
+ # for a REST client for version V1 of the API.
2556
+ # However, you can specify a different API version by passing it in the
2557
+ # `version` parameter. If the TeamService service is
2558
+ # supported by that API version, and the corresponding gem is available, the
2559
+ # appropriate versioned client will be returned.
2560
+ #
2561
+ # Raises an exception if the currently installed versioned client gem for the
2562
+ # given API version does not support the TeamService service.
2563
+ # You can determine whether the method will succeed by calling
2564
+ # {Google::Ads::AdManager.team_service_available?}.
2565
+ #
2566
+ # ## About TeamService
2567
+ #
2568
+ # Provides methods for handling `Team` objects.
2569
+ #
2570
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2571
+ # Defaults to `:v1`.
2572
+ # @return [::Object] A client object for the specified version.
2573
+ #
2574
+ def self.team_service version: :v1, &block
2575
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2576
+
2577
+ package_name = Google::Ads::AdManager
2578
+ .constants
2579
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2580
+ .first
2581
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:TeamService)
2582
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2583
+ end
2584
+
2585
+ ##
2586
+ # Determines whether the TeamService service is supported by the current client.
2587
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.team_service}.
2588
+ # If false, that method will raise an exception. This could happen if the given
2589
+ # API version does not exist or does not support the TeamService service,
2590
+ # or if the versioned client gem needs an update to support the TeamService service.
2591
+ #
2592
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2593
+ # Defaults to `:v1`.
2594
+ # @return [boolean] Whether the service is available.
2595
+ #
2596
+ def self.team_service_available? version: :v1
2597
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2598
+ package_name = Google::Ads::AdManager
2599
+ .constants
2600
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2601
+ .first
2602
+ return false unless package_name
2603
+ service_module = Google::Ads::AdManager.const_get package_name
2604
+ return false unless service_module.const_defined? :TeamService
2605
+ service_module = service_module.const_get :TeamService
2606
+ return false unless service_module.const_defined? :Rest
2607
+ service_module = service_module.const_get :Rest
2608
+ service_module.const_defined? :Client
2609
+ rescue ::LoadError
2610
+ false
2611
+ end
2612
+
1353
2613
  ##
1354
2614
  # Create a new client object for UserService.
1355
2615
  #