google-ads-ad_manager 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
  #
@@ -207,8 +396,890 @@ module Google
207
396
  .first
208
397
  return false unless package_name
209
398
  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
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
212
1283
  return false unless service_module.const_defined? :Rest
213
1284
  service_module = service_module.const_get :Rest
214
1285
  service_module.const_defined? :Client
@@ -217,52 +1288,52 @@ module Google
217
1288
  end
218
1289
 
219
1290
  ##
220
- # Create a new client object for CompanyService.
1291
+ # Create a new client object for DeviceCategoryService.
221
1292
  #
222
1293
  # 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)
1294
+ # [Google::Ads::AdManager::V1::DeviceCategoryService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DeviceCategoryService/Rest/Client)
224
1295
  # for a REST client for version V1 of the API.
225
1296
  # However, you can specify a different API version by passing it in the
226
- # `version` parameter. If the CompanyService service is
1297
+ # `version` parameter. If the DeviceCategoryService service is
227
1298
  # supported by that API version, and the corresponding gem is available, the
228
1299
  # appropriate versioned client will be returned.
229
1300
  #
230
1301
  # Raises an exception if the currently installed versioned client gem for the
231
- # given API version does not support the CompanyService service.
1302
+ # given API version does not support the DeviceCategoryService service.
232
1303
  # You can determine whether the method will succeed by calling
233
- # {Google::Ads::AdManager.company_service_available?}.
1304
+ # {Google::Ads::AdManager.device_category_service_available?}.
234
1305
  #
235
- # ## About CompanyService
1306
+ # ## About DeviceCategoryService
236
1307
  #
237
- # Provides methods for handling `Company` objects.
1308
+ # Provides methods for handling `DeviceCategory` objects.
238
1309
  #
239
1310
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
240
1311
  # Defaults to `:v1`.
241
1312
  # @return [::Object] A client object for the specified version.
242
1313
  #
243
- def self.company_service version: :v1, &block
1314
+ def self.device_category_service version: :v1, &block
244
1315
  require "google/ads/ad_manager/#{version.to_s.downcase}"
245
1316
 
246
1317
  package_name = Google::Ads::AdManager
247
1318
  .constants
248
1319
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
249
1320
  .first
250
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CompanyService)
1321
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DeviceCategoryService)
251
1322
  service_module.const_get(:Rest).const_get(:Client).new(&block)
252
1323
  end
253
1324
 
254
1325
  ##
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}.
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}.
257
1328
  # 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.
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.
260
1331
  #
261
1332
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
262
1333
  # Defaults to `:v1`.
263
1334
  # @return [boolean] Whether the service is available.
264
1335
  #
265
- def self.company_service_available? version: :v1
1336
+ def self.device_category_service_available? version: :v1
266
1337
  require "google/ads/ad_manager/#{version.to_s.downcase}"
267
1338
  package_name = Google::Ads::AdManager
268
1339
  .constants
@@ -270,8 +1341,8 @@ module Google
270
1341
  .first
271
1342
  return false unless package_name
272
1343
  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
1344
+ return false unless service_module.const_defined? :DeviceCategoryService
1345
+ service_module = service_module.const_get :DeviceCategoryService
275
1346
  return false unless service_module.const_defined? :Rest
276
1347
  service_module = service_module.const_get :Rest
277
1348
  service_module.const_defined? :Client
@@ -280,52 +1351,52 @@ module Google
280
1351
  end
281
1352
 
282
1353
  ##
283
- # Create a new client object for CustomFieldService.
1354
+ # Create a new client object for DeviceManufacturerService.
284
1355
  #
285
1356
  # 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)
1357
+ # [Google::Ads::AdManager::V1::DeviceManufacturerService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DeviceManufacturerService/Rest/Client)
287
1358
  # for a REST client for version V1 of the API.
288
1359
  # However, you can specify a different API version by passing it in the
289
- # `version` parameter. If the CustomFieldService service is
1360
+ # `version` parameter. If the DeviceManufacturerService service is
290
1361
  # supported by that API version, and the corresponding gem is available, the
291
1362
  # appropriate versioned client will be returned.
292
1363
  #
293
1364
  # Raises an exception if the currently installed versioned client gem for the
294
- # given API version does not support the CustomFieldService service.
1365
+ # given API version does not support the DeviceManufacturerService service.
295
1366
  # You can determine whether the method will succeed by calling
296
- # {Google::Ads::AdManager.custom_field_service_available?}.
1367
+ # {Google::Ads::AdManager.device_manufacturer_service_available?}.
297
1368
  #
298
- # ## About CustomFieldService
1369
+ # ## About DeviceManufacturerService
299
1370
  #
300
- # Provides methods for handling `CustomField` objects.
1371
+ # Provides methods for handling `DeviceManufacturer` objects.
301
1372
  #
302
1373
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
303
1374
  # Defaults to `:v1`.
304
1375
  # @return [::Object] A client object for the specified version.
305
1376
  #
306
- def self.custom_field_service version: :v1, &block
1377
+ def self.device_manufacturer_service version: :v1, &block
307
1378
  require "google/ads/ad_manager/#{version.to_s.downcase}"
308
1379
 
309
1380
  package_name = Google::Ads::AdManager
310
1381
  .constants
311
1382
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
312
1383
  .first
313
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CustomFieldService)
1384
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DeviceManufacturerService)
314
1385
  service_module.const_get(:Rest).const_get(:Client).new(&block)
315
1386
  end
316
1387
 
317
1388
  ##
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}.
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}.
320
1391
  # 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.
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.
323
1394
  #
324
1395
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
325
1396
  # Defaults to `:v1`.
326
1397
  # @return [boolean] Whether the service is available.
327
1398
  #
328
- def self.custom_field_service_available? version: :v1
1399
+ def self.device_manufacturer_service_available? version: :v1
329
1400
  require "google/ads/ad_manager/#{version.to_s.downcase}"
330
1401
  package_name = Google::Ads::AdManager
331
1402
  .constants
@@ -333,8 +1404,8 @@ module Google
333
1404
  .first
334
1405
  return false unless package_name
335
1406
  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
1407
+ return false unless service_module.const_defined? :DeviceManufacturerService
1408
+ service_module = service_module.const_get :DeviceManufacturerService
338
1409
  return false unless service_module.const_defined? :Rest
339
1410
  service_module = service_module.const_get :Rest
340
1411
  service_module.const_defined? :Client
@@ -343,52 +1414,52 @@ module Google
343
1414
  end
344
1415
 
345
1416
  ##
346
- # Create a new client object for CustomTargetingKeyService.
1417
+ # Create a new client object for EntitySignalsMappingService.
347
1418
  #
348
1419
  # 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)
1420
+ # [Google::Ads::AdManager::V1::EntitySignalsMappingService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/EntitySignalsMappingService/Rest/Client)
350
1421
  # for a REST client for version V1 of the API.
351
1422
  # However, you can specify a different API version by passing it in the
352
- # `version` parameter. If the CustomTargetingKeyService service is
1423
+ # `version` parameter. If the EntitySignalsMappingService service is
353
1424
  # supported by that API version, and the corresponding gem is available, the
354
1425
  # appropriate versioned client will be returned.
355
1426
  #
356
1427
  # Raises an exception if the currently installed versioned client gem for the
357
- # given API version does not support the CustomTargetingKeyService service.
1428
+ # given API version does not support the EntitySignalsMappingService service.
358
1429
  # You can determine whether the method will succeed by calling
359
- # {Google::Ads::AdManager.custom_targeting_key_service_available?}.
1430
+ # {Google::Ads::AdManager.entity_signals_mapping_service_available?}.
360
1431
  #
361
- # ## About CustomTargetingKeyService
1432
+ # ## About EntitySignalsMappingService
362
1433
  #
363
- # Provides methods for handling `CustomTargetingKey` objects.
1434
+ # Provides methods for handling `EntitySignalsMapping` objects.
364
1435
  #
365
1436
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
366
1437
  # Defaults to `:v1`.
367
1438
  # @return [::Object] A client object for the specified version.
368
1439
  #
369
- def self.custom_targeting_key_service version: :v1, &block
1440
+ def self.entity_signals_mapping_service version: :v1, &block
370
1441
  require "google/ads/ad_manager/#{version.to_s.downcase}"
371
1442
 
372
1443
  package_name = Google::Ads::AdManager
373
1444
  .constants
374
1445
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
375
1446
  .first
376
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CustomTargetingKeyService)
1447
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:EntitySignalsMappingService)
377
1448
  service_module.const_get(:Rest).const_get(:Client).new(&block)
378
1449
  end
379
1450
 
380
1451
  ##
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}.
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}.
383
1454
  # 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.
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.
386
1457
  #
387
1458
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
388
1459
  # Defaults to `:v1`.
389
1460
  # @return [boolean] Whether the service is available.
390
1461
  #
391
- def self.custom_targeting_key_service_available? version: :v1
1462
+ def self.entity_signals_mapping_service_available? version: :v1
392
1463
  require "google/ads/ad_manager/#{version.to_s.downcase}"
393
1464
  package_name = Google::Ads::AdManager
394
1465
  .constants
@@ -396,8 +1467,8 @@ module Google
396
1467
  .first
397
1468
  return false unless package_name
398
1469
  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
1470
+ return false unless service_module.const_defined? :EntitySignalsMappingService
1471
+ service_module = service_module.const_get :EntitySignalsMappingService
401
1472
  return false unless service_module.const_defined? :Rest
402
1473
  service_module = service_module.const_get :Rest
403
1474
  service_module.const_defined? :Client
@@ -406,52 +1477,52 @@ module Google
406
1477
  end
407
1478
 
408
1479
  ##
409
- # Create a new client object for CustomTargetingValueService.
1480
+ # Create a new client object for GeoTargetService.
410
1481
  #
411
1482
  # 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)
1483
+ # [Google::Ads::AdManager::V1::GeoTargetService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/GeoTargetService/Rest/Client)
413
1484
  # for a REST client for version V1 of the API.
414
1485
  # However, you can specify a different API version by passing it in the
415
- # `version` parameter. If the CustomTargetingValueService service is
1486
+ # `version` parameter. If the GeoTargetService service is
416
1487
  # supported by that API version, and the corresponding gem is available, the
417
1488
  # appropriate versioned client will be returned.
418
1489
  #
419
1490
  # Raises an exception if the currently installed versioned client gem for the
420
- # given API version does not support the CustomTargetingValueService service.
1491
+ # given API version does not support the GeoTargetService service.
421
1492
  # You can determine whether the method will succeed by calling
422
- # {Google::Ads::AdManager.custom_targeting_value_service_available?}.
1493
+ # {Google::Ads::AdManager.geo_target_service_available?}.
423
1494
  #
424
- # ## About CustomTargetingValueService
1495
+ # ## About GeoTargetService
425
1496
  #
426
- # Provides methods for handling `CustomTargetingValue` objects.
1497
+ # Provides methods for handling `GeoTarget` objects.
427
1498
  #
428
1499
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
429
1500
  # Defaults to `:v1`.
430
1501
  # @return [::Object] A client object for the specified version.
431
1502
  #
432
- def self.custom_targeting_value_service version: :v1, &block
1503
+ def self.geo_target_service version: :v1, &block
433
1504
  require "google/ads/ad_manager/#{version.to_s.downcase}"
434
1505
 
435
1506
  package_name = Google::Ads::AdManager
436
1507
  .constants
437
1508
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
438
1509
  .first
439
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CustomTargetingValueService)
1510
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:GeoTargetService)
440
1511
  service_module.const_get(:Rest).const_get(:Client).new(&block)
441
1512
  end
442
1513
 
443
1514
  ##
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}.
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}.
446
1517
  # 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.
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.
449
1520
  #
450
1521
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
451
1522
  # Defaults to `:v1`.
452
1523
  # @return [boolean] Whether the service is available.
453
1524
  #
454
- def self.custom_targeting_value_service_available? version: :v1
1525
+ def self.geo_target_service_available? version: :v1
455
1526
  require "google/ads/ad_manager/#{version.to_s.downcase}"
456
1527
  package_name = Google::Ads::AdManager
457
1528
  .constants
@@ -459,8 +1530,8 @@ module Google
459
1530
  .first
460
1531
  return false unless package_name
461
1532
  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
1533
+ return false unless service_module.const_defined? :GeoTargetService
1534
+ service_module = service_module.const_get :GeoTargetService
464
1535
  return false unless service_module.const_defined? :Rest
465
1536
  service_module = service_module.const_get :Rest
466
1537
  service_module.const_defined? :Client
@@ -469,52 +1540,52 @@ module Google
469
1540
  end
470
1541
 
471
1542
  ##
472
- # Create a new client object for DeviceCategoryService.
1543
+ # Create a new client object for MobileCarrierService.
473
1544
  #
474
1545
  # 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)
1546
+ # [Google::Ads::AdManager::V1::MobileCarrierService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/MobileCarrierService/Rest/Client)
476
1547
  # for a REST client for version V1 of the API.
477
1548
  # However, you can specify a different API version by passing it in the
478
- # `version` parameter. If the DeviceCategoryService service is
1549
+ # `version` parameter. If the MobileCarrierService service is
479
1550
  # supported by that API version, and the corresponding gem is available, the
480
1551
  # appropriate versioned client will be returned.
481
1552
  #
482
1553
  # Raises an exception if the currently installed versioned client gem for the
483
- # given API version does not support the DeviceCategoryService service.
1554
+ # given API version does not support the MobileCarrierService service.
484
1555
  # You can determine whether the method will succeed by calling
485
- # {Google::Ads::AdManager.device_category_service_available?}.
1556
+ # {Google::Ads::AdManager.mobile_carrier_service_available?}.
486
1557
  #
487
- # ## About DeviceCategoryService
1558
+ # ## About MobileCarrierService
488
1559
  #
489
- # Provides methods for handling `DeviceCategory` objects.
1560
+ # Provides methods for handling `MobileCarrier` objects.
490
1561
  #
491
1562
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
492
1563
  # Defaults to `:v1`.
493
1564
  # @return [::Object] A client object for the specified version.
494
1565
  #
495
- def self.device_category_service version: :v1, &block
1566
+ def self.mobile_carrier_service version: :v1, &block
496
1567
  require "google/ads/ad_manager/#{version.to_s.downcase}"
497
1568
 
498
1569
  package_name = Google::Ads::AdManager
499
1570
  .constants
500
1571
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
501
1572
  .first
502
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DeviceCategoryService)
1573
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:MobileCarrierService)
503
1574
  service_module.const_get(:Rest).const_get(:Client).new(&block)
504
1575
  end
505
1576
 
506
1577
  ##
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}.
1578
+ # Determines whether the MobileCarrierService service is supported by the current client.
1579
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.mobile_carrier_service}.
509
1580
  # 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.
1581
+ # API version does not exist or does not support the MobileCarrierService service,
1582
+ # or if the versioned client gem needs an update to support the MobileCarrierService service.
512
1583
  #
513
1584
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
514
1585
  # Defaults to `:v1`.
515
1586
  # @return [boolean] Whether the service is available.
516
1587
  #
517
- def self.device_category_service_available? version: :v1
1588
+ def self.mobile_carrier_service_available? version: :v1
518
1589
  require "google/ads/ad_manager/#{version.to_s.downcase}"
519
1590
  package_name = Google::Ads::AdManager
520
1591
  .constants
@@ -522,8 +1593,8 @@ module Google
522
1593
  .first
523
1594
  return false unless package_name
524
1595
  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
1596
+ return false unless service_module.const_defined? :MobileCarrierService
1597
+ service_module = service_module.const_get :MobileCarrierService
527
1598
  return false unless service_module.const_defined? :Rest
528
1599
  service_module = service_module.const_get :Rest
529
1600
  service_module.const_defined? :Client
@@ -532,52 +1603,52 @@ module Google
532
1603
  end
533
1604
 
534
1605
  ##
535
- # Create a new client object for EntitySignalsMappingService.
1606
+ # Create a new client object for MobileDeviceService.
536
1607
  #
537
1608
  # 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)
1609
+ # [Google::Ads::AdManager::V1::MobileDeviceService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/MobileDeviceService/Rest/Client)
539
1610
  # for a REST client for version V1 of the API.
540
1611
  # However, you can specify a different API version by passing it in the
541
- # `version` parameter. If the EntitySignalsMappingService service is
1612
+ # `version` parameter. If the MobileDeviceService service is
542
1613
  # supported by that API version, and the corresponding gem is available, the
543
1614
  # appropriate versioned client will be returned.
544
1615
  #
545
1616
  # Raises an exception if the currently installed versioned client gem for the
546
- # given API version does not support the EntitySignalsMappingService service.
1617
+ # given API version does not support the MobileDeviceService service.
547
1618
  # You can determine whether the method will succeed by calling
548
- # {Google::Ads::AdManager.entity_signals_mapping_service_available?}.
1619
+ # {Google::Ads::AdManager.mobile_device_service_available?}.
549
1620
  #
550
- # ## About EntitySignalsMappingService
1621
+ # ## About MobileDeviceService
551
1622
  #
552
- # Provides methods for handling `EntitySignalsMapping` objects.
1623
+ # Provides methods for handling `MobileDevice` objects.
553
1624
  #
554
1625
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
555
1626
  # Defaults to `:v1`.
556
1627
  # @return [::Object] A client object for the specified version.
557
1628
  #
558
- def self.entity_signals_mapping_service version: :v1, &block
1629
+ def self.mobile_device_service version: :v1, &block
559
1630
  require "google/ads/ad_manager/#{version.to_s.downcase}"
560
1631
 
561
1632
  package_name = Google::Ads::AdManager
562
1633
  .constants
563
1634
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
564
1635
  .first
565
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:EntitySignalsMappingService)
1636
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:MobileDeviceService)
566
1637
  service_module.const_get(:Rest).const_get(:Client).new(&block)
567
1638
  end
568
1639
 
569
1640
  ##
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}.
1641
+ # Determines whether the MobileDeviceService service is supported by the current client.
1642
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.mobile_device_service}.
572
1643
  # 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.
1644
+ # API version does not exist or does not support the MobileDeviceService service,
1645
+ # or if the versioned client gem needs an update to support the MobileDeviceService service.
575
1646
  #
576
1647
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
577
1648
  # Defaults to `:v1`.
578
1649
  # @return [boolean] Whether the service is available.
579
1650
  #
580
- def self.entity_signals_mapping_service_available? version: :v1
1651
+ def self.mobile_device_service_available? version: :v1
581
1652
  require "google/ads/ad_manager/#{version.to_s.downcase}"
582
1653
  package_name = Google::Ads::AdManager
583
1654
  .constants
@@ -585,8 +1656,8 @@ module Google
585
1656
  .first
586
1657
  return false unless package_name
587
1658
  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
1659
+ return false unless service_module.const_defined? :MobileDeviceService
1660
+ service_module = service_module.const_get :MobileDeviceService
590
1661
  return false unless service_module.const_defined? :Rest
591
1662
  service_module = service_module.const_get :Rest
592
1663
  service_module.const_defined? :Client
@@ -595,52 +1666,52 @@ module Google
595
1666
  end
596
1667
 
597
1668
  ##
598
- # Create a new client object for GeoTargetService.
1669
+ # Create a new client object for MobileDeviceSubmodelService.
599
1670
  #
600
1671
  # 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)
1672
+ # [Google::Ads::AdManager::V1::MobileDeviceSubmodelService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/MobileDeviceSubmodelService/Rest/Client)
602
1673
  # for a REST client for version V1 of the API.
603
1674
  # However, you can specify a different API version by passing it in the
604
- # `version` parameter. If the GeoTargetService service is
1675
+ # `version` parameter. If the MobileDeviceSubmodelService service is
605
1676
  # supported by that API version, and the corresponding gem is available, the
606
1677
  # appropriate versioned client will be returned.
607
1678
  #
608
1679
  # Raises an exception if the currently installed versioned client gem for the
609
- # given API version does not support the GeoTargetService service.
1680
+ # given API version does not support the MobileDeviceSubmodelService service.
610
1681
  # You can determine whether the method will succeed by calling
611
- # {Google::Ads::AdManager.geo_target_service_available?}.
1682
+ # {Google::Ads::AdManager.mobile_device_submodel_service_available?}.
612
1683
  #
613
- # ## About GeoTargetService
1684
+ # ## About MobileDeviceSubmodelService
614
1685
  #
615
- # Provides methods for handling `GeoTarget` objects.
1686
+ # Provides methods for handling `MobileDeviceSubmodel` objects.
616
1687
  #
617
1688
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
618
1689
  # Defaults to `:v1`.
619
1690
  # @return [::Object] A client object for the specified version.
620
1691
  #
621
- def self.geo_target_service version: :v1, &block
1692
+ def self.mobile_device_submodel_service version: :v1, &block
622
1693
  require "google/ads/ad_manager/#{version.to_s.downcase}"
623
1694
 
624
1695
  package_name = Google::Ads::AdManager
625
1696
  .constants
626
1697
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
627
1698
  .first
628
- service_module = Google::Ads::AdManager.const_get(package_name).const_get(:GeoTargetService)
1699
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:MobileDeviceSubmodelService)
629
1700
  service_module.const_get(:Rest).const_get(:Client).new(&block)
630
1701
  end
631
1702
 
632
1703
  ##
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}.
1704
+ # Determines whether the MobileDeviceSubmodelService service is supported by the current client.
1705
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.mobile_device_submodel_service}.
635
1706
  # 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.
1707
+ # API version does not exist or does not support the MobileDeviceSubmodelService service,
1708
+ # or if the versioned client gem needs an update to support the MobileDeviceSubmodelService service.
638
1709
  #
639
1710
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
640
1711
  # Defaults to `:v1`.
641
1712
  # @return [boolean] Whether the service is available.
642
1713
  #
643
- def self.geo_target_service_available? version: :v1
1714
+ def self.mobile_device_submodel_service_available? version: :v1
644
1715
  require "google/ads/ad_manager/#{version.to_s.downcase}"
645
1716
  package_name = Google::Ads::AdManager
646
1717
  .constants
@@ -648,8 +1719,8 @@ module Google
648
1719
  .first
649
1720
  return false unless package_name
650
1721
  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
1722
+ return false unless service_module.const_defined? :MobileDeviceSubmodelService
1723
+ service_module = service_module.const_get :MobileDeviceSubmodelService
653
1724
  return false unless service_module.const_defined? :Rest
654
1725
  service_module = service_module.const_get :Rest
655
1726
  service_module.const_defined? :Client
@@ -1287,6 +2358,69 @@ module Google
1287
2358
  false
1288
2359
  end
1289
2360
 
2361
+ ##
2362
+ # Create a new client object for SiteService.
2363
+ #
2364
+ # By default, this returns an instance of
2365
+ # [Google::Ads::AdManager::V1::SiteService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/SiteService/Rest/Client)
2366
+ # for a REST client for version V1 of the API.
2367
+ # However, you can specify a different API version by passing it in the
2368
+ # `version` parameter. If the SiteService service is
2369
+ # supported by that API version, and the corresponding gem is available, the
2370
+ # appropriate versioned client will be returned.
2371
+ #
2372
+ # Raises an exception if the currently installed versioned client gem for the
2373
+ # given API version does not support the SiteService service.
2374
+ # You can determine whether the method will succeed by calling
2375
+ # {Google::Ads::AdManager.site_service_available?}.
2376
+ #
2377
+ # ## About SiteService
2378
+ #
2379
+ # Provides methods for handling `Site` objects.
2380
+ #
2381
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2382
+ # Defaults to `:v1`.
2383
+ # @return [::Object] A client object for the specified version.
2384
+ #
2385
+ def self.site_service version: :v1, &block
2386
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2387
+
2388
+ package_name = Google::Ads::AdManager
2389
+ .constants
2390
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2391
+ .first
2392
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:SiteService)
2393
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2394
+ end
2395
+
2396
+ ##
2397
+ # Determines whether the SiteService service is supported by the current client.
2398
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.site_service}.
2399
+ # If false, that method will raise an exception. This could happen if the given
2400
+ # API version does not exist or does not support the SiteService service,
2401
+ # or if the versioned client gem needs an update to support the SiteService service.
2402
+ #
2403
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2404
+ # Defaults to `:v1`.
2405
+ # @return [boolean] Whether the service is available.
2406
+ #
2407
+ def self.site_service_available? version: :v1
2408
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2409
+ package_name = Google::Ads::AdManager
2410
+ .constants
2411
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2412
+ .first
2413
+ return false unless package_name
2414
+ service_module = Google::Ads::AdManager.const_get package_name
2415
+ return false unless service_module.const_defined? :SiteService
2416
+ service_module = service_module.const_get :SiteService
2417
+ return false unless service_module.const_defined? :Rest
2418
+ service_module = service_module.const_get :Rest
2419
+ service_module.const_defined? :Client
2420
+ rescue ::LoadError
2421
+ false
2422
+ end
2423
+
1290
2424
  ##
1291
2425
  # Create a new client object for TaxonomyCategoryService.
1292
2426
  #
@@ -1350,6 +2484,69 @@ module Google
1350
2484
  false
1351
2485
  end
1352
2486
 
2487
+ ##
2488
+ # Create a new client object for TeamService.
2489
+ #
2490
+ # By default, this returns an instance of
2491
+ # [Google::Ads::AdManager::V1::TeamService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/TeamService/Rest/Client)
2492
+ # for a REST client for version V1 of the API.
2493
+ # However, you can specify a different API version by passing it in the
2494
+ # `version` parameter. If the TeamService service is
2495
+ # supported by that API version, and the corresponding gem is available, the
2496
+ # appropriate versioned client will be returned.
2497
+ #
2498
+ # Raises an exception if the currently installed versioned client gem for the
2499
+ # given API version does not support the TeamService service.
2500
+ # You can determine whether the method will succeed by calling
2501
+ # {Google::Ads::AdManager.team_service_available?}.
2502
+ #
2503
+ # ## About TeamService
2504
+ #
2505
+ # Provides methods for handling `Team` objects.
2506
+ #
2507
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2508
+ # Defaults to `:v1`.
2509
+ # @return [::Object] A client object for the specified version.
2510
+ #
2511
+ def self.team_service version: :v1, &block
2512
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2513
+
2514
+ package_name = Google::Ads::AdManager
2515
+ .constants
2516
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2517
+ .first
2518
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:TeamService)
2519
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2520
+ end
2521
+
2522
+ ##
2523
+ # Determines whether the TeamService service is supported by the current client.
2524
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.team_service}.
2525
+ # If false, that method will raise an exception. This could happen if the given
2526
+ # API version does not exist or does not support the TeamService service,
2527
+ # or if the versioned client gem needs an update to support the TeamService service.
2528
+ #
2529
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2530
+ # Defaults to `:v1`.
2531
+ # @return [boolean] Whether the service is available.
2532
+ #
2533
+ def self.team_service_available? version: :v1
2534
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2535
+ package_name = Google::Ads::AdManager
2536
+ .constants
2537
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2538
+ .first
2539
+ return false unless package_name
2540
+ service_module = Google::Ads::AdManager.const_get package_name
2541
+ return false unless service_module.const_defined? :TeamService
2542
+ service_module = service_module.const_get :TeamService
2543
+ return false unless service_module.const_defined? :Rest
2544
+ service_module = service_module.const_get :Rest
2545
+ service_module.const_defined? :Client
2546
+ rescue ::LoadError
2547
+ false
2548
+ end
2549
+
1353
2550
  ##
1354
2551
  # Create a new client object for UserService.
1355
2552
  #