google-ads-ad_manager 5.1.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a363132388fac3f60be9c21402bb25edb2aa06846d2c03c9c353a2b31acaadaa
4
- data.tar.gz: 416d1519edf3a12ba980ab15c947bdc887dbcd3903720194f2d0e2f2b9605f72
3
+ metadata.gz: 31b9daa9a2e9c87f1616e08050b964954516ef79db5562e13282d710b7a82246
4
+ data.tar.gz: 483fc778b84f5fe18ec8c4748e3ae0e08b95e85393dbca9d88334230b96d6677
5
5
  SHA512:
6
- metadata.gz: ec7c682582dcd578c261ed388a0ad7d5b49015eb7f64b196e14a3a76f37741c711d34ee01b57967451f85e9d70c2f973902ff7a776e12d9cf35e456a7ca272ea
7
- data.tar.gz: db8ef486005eacfdf109ab3d5b197753a274204a8ad38f7b81197c0140a7514ac63f15db7b1575add6d18ac254257a43feb4df13d4d00382cd5258c7188fa4fc
6
+ metadata.gz: ce69d4ef6a34438dfe4cf96e78e5f30ef9b1a8d6e80497e39079a3bf63bba85871c8bbf1228880a488fd39e98bbd75de78b8bbc5d302ceae20eac9d16e22ede2
7
+ data.tar.gz: 9a4dfa0a6d727f801fba73b8d827185b1ba554d87e3afc3738844fe35e021ead9b602c3dfb96699e83c7477a15dfa160d1895da1cb20b49fe85ec910f683b7e8
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Ads
22
22
  module AdManager
23
- VERSION = "5.1.0"
23
+ VERSION = "5.4.0"
24
24
  end
25
25
  end
26
26
  end
@@ -108,7 +108,7 @@ module Google
108
108
  #
109
109
  # ## About AdReviewCenterAdService
110
110
  #
111
- # Provides methods for handling AdReviewCenterAd objects.
111
+ # Provides methods for handling `AdReviewCenterAd` objects.
112
112
  #
113
113
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
114
114
  # Defaults to `:v1`.
@@ -531,6 +531,69 @@ module Google
531
531
  false
532
532
  end
533
533
 
534
+ ##
535
+ # Create a new client object for BreakTemplateService.
536
+ #
537
+ # By default, this returns an instance of
538
+ # [Google::Ads::AdManager::V1::BreakTemplateService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/BreakTemplateService/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 BreakTemplateService 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 BreakTemplateService service.
547
+ # You can determine whether the method will succeed by calling
548
+ # {Google::Ads::AdManager.break_template_service_available?}.
549
+ #
550
+ # ## About BreakTemplateService
551
+ #
552
+ # Provides methods for handling `BreakTemplate` 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.break_template_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(:BreakTemplateService)
566
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
567
+ end
568
+
569
+ ##
570
+ # Determines whether the BreakTemplateService service is supported by the current client.
571
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.break_template_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 BreakTemplateService service,
574
+ # or if the versioned client gem needs an update to support the BreakTemplateService 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.break_template_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? :BreakTemplateService
589
+ service_module = service_module.const_get :BreakTemplateService
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
+
534
597
  ##
535
598
  # Create a new client object for BrowserLanguageService.
536
599
  #
@@ -1226,6 +1289,69 @@ module Google
1226
1289
  false
1227
1290
  end
1228
1291
 
1292
+ ##
1293
+ # Create a new client object for CreativeService.
1294
+ #
1295
+ # By default, this returns an instance of
1296
+ # [Google::Ads::AdManager::V1::CreativeService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CreativeService/Rest/Client)
1297
+ # for a REST client for version V1 of the API.
1298
+ # However, you can specify a different API version by passing it in the
1299
+ # `version` parameter. If the CreativeService service is
1300
+ # supported by that API version, and the corresponding gem is available, the
1301
+ # appropriate versioned client will be returned.
1302
+ #
1303
+ # Raises an exception if the currently installed versioned client gem for the
1304
+ # given API version does not support the CreativeService service.
1305
+ # You can determine whether the method will succeed by calling
1306
+ # {Google::Ads::AdManager.creative_service_available?}.
1307
+ #
1308
+ # ## About CreativeService
1309
+ #
1310
+ # Provides methods for handling `Creative` objects.
1311
+ #
1312
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1313
+ # Defaults to `:v1`.
1314
+ # @return [::Object] A client object for the specified version.
1315
+ #
1316
+ def self.creative_service version: :v1, &block
1317
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1318
+
1319
+ package_name = Google::Ads::AdManager
1320
+ .constants
1321
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1322
+ .first
1323
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CreativeService)
1324
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1325
+ end
1326
+
1327
+ ##
1328
+ # Determines whether the CreativeService service is supported by the current client.
1329
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.creative_service}.
1330
+ # If false, that method will raise an exception. This could happen if the given
1331
+ # API version does not exist or does not support the CreativeService service,
1332
+ # or if the versioned client gem needs an update to support the CreativeService service.
1333
+ #
1334
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1335
+ # Defaults to `:v1`.
1336
+ # @return [boolean] Whether the service is available.
1337
+ #
1338
+ def self.creative_service_available? version: :v1
1339
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1340
+ package_name = Google::Ads::AdManager
1341
+ .constants
1342
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1343
+ .first
1344
+ return false unless package_name
1345
+ service_module = Google::Ads::AdManager.const_get package_name
1346
+ return false unless service_module.const_defined? :CreativeService
1347
+ service_module = service_module.const_get :CreativeService
1348
+ return false unless service_module.const_defined? :Rest
1349
+ service_module = service_module.const_get :Rest
1350
+ service_module.const_defined? :Client
1351
+ rescue ::LoadError
1352
+ false
1353
+ end
1354
+
1229
1355
  ##
1230
1356
  # Create a new client object for CreativeSetService.
1231
1357
  #
@@ -1730,6 +1856,69 @@ module Google
1730
1856
  false
1731
1857
  end
1732
1858
 
1859
+ ##
1860
+ # Create a new client object for DaiSessionService.
1861
+ #
1862
+ # By default, this returns an instance of
1863
+ # [Google::Ads::AdManager::V1::DaiSessionService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DaiSessionService/Rest/Client)
1864
+ # for a REST client for version V1 of the API.
1865
+ # However, you can specify a different API version by passing it in the
1866
+ # `version` parameter. If the DaiSessionService service is
1867
+ # supported by that API version, and the corresponding gem is available, the
1868
+ # appropriate versioned client will be returned.
1869
+ #
1870
+ # Raises an exception if the currently installed versioned client gem for the
1871
+ # given API version does not support the DaiSessionService service.
1872
+ # You can determine whether the method will succeed by calling
1873
+ # {Google::Ads::AdManager.dai_session_service_available?}.
1874
+ #
1875
+ # ## About DaiSessionService
1876
+ #
1877
+ # Provides methods for handling `DaiSession` objects.
1878
+ #
1879
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1880
+ # Defaults to `:v1`.
1881
+ # @return [::Object] A client object for the specified version.
1882
+ #
1883
+ def self.dai_session_service version: :v1, &block
1884
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1885
+
1886
+ package_name = Google::Ads::AdManager
1887
+ .constants
1888
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1889
+ .first
1890
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DaiSessionService)
1891
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1892
+ end
1893
+
1894
+ ##
1895
+ # Determines whether the DaiSessionService service is supported by the current client.
1896
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.dai_session_service}.
1897
+ # If false, that method will raise an exception. This could happen if the given
1898
+ # API version does not exist or does not support the DaiSessionService service,
1899
+ # or if the versioned client gem needs an update to support the DaiSessionService service.
1900
+ #
1901
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1902
+ # Defaults to `:v1`.
1903
+ # @return [boolean] Whether the service is available.
1904
+ #
1905
+ def self.dai_session_service_available? version: :v1
1906
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
1907
+ package_name = Google::Ads::AdManager
1908
+ .constants
1909
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1910
+ .first
1911
+ return false unless package_name
1912
+ service_module = Google::Ads::AdManager.const_get package_name
1913
+ return false unless service_module.const_defined? :DaiSessionService
1914
+ service_module = service_module.const_get :DaiSessionService
1915
+ return false unless service_module.const_defined? :Rest
1916
+ service_module = service_module.const_get :Rest
1917
+ service_module.const_defined? :Client
1918
+ rescue ::LoadError
1919
+ false
1920
+ end
1921
+
1733
1922
  ##
1734
1923
  # Create a new client object for DeviceCapabilityService.
1735
1924
  #
@@ -1982,6 +2171,69 @@ module Google
1982
2171
  false
1983
2172
  end
1984
2173
 
2174
+ ##
2175
+ # Create a new client object for ForecastService.
2176
+ #
2177
+ # By default, this returns an instance of
2178
+ # [Google::Ads::AdManager::V1::ForecastService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ForecastService/Rest/Client)
2179
+ # for a REST client for version V1 of the API.
2180
+ # However, you can specify a different API version by passing it in the
2181
+ # `version` parameter. If the ForecastService service is
2182
+ # supported by that API version, and the corresponding gem is available, the
2183
+ # appropriate versioned client will be returned.
2184
+ #
2185
+ # Raises an exception if the currently installed versioned client gem for the
2186
+ # given API version does not support the ForecastService service.
2187
+ # You can determine whether the method will succeed by calling
2188
+ # {Google::Ads::AdManager.forecast_service_available?}.
2189
+ #
2190
+ # ## About ForecastService
2191
+ #
2192
+ # Provides methods for handling forecasting actions.
2193
+ #
2194
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2195
+ # Defaults to `:v1`.
2196
+ # @return [::Object] A client object for the specified version.
2197
+ #
2198
+ def self.forecast_service version: :v1, &block
2199
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2200
+
2201
+ package_name = Google::Ads::AdManager
2202
+ .constants
2203
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2204
+ .first
2205
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ForecastService)
2206
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2207
+ end
2208
+
2209
+ ##
2210
+ # Determines whether the ForecastService service is supported by the current client.
2211
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.forecast_service}.
2212
+ # If false, that method will raise an exception. This could happen if the given
2213
+ # API version does not exist or does not support the ForecastService service,
2214
+ # or if the versioned client gem needs an update to support the ForecastService service.
2215
+ #
2216
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2217
+ # Defaults to `:v1`.
2218
+ # @return [boolean] Whether the service is available.
2219
+ #
2220
+ def self.forecast_service_available? version: :v1
2221
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2222
+ package_name = Google::Ads::AdManager
2223
+ .constants
2224
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2225
+ .first
2226
+ return false unless package_name
2227
+ service_module = Google::Ads::AdManager.const_get package_name
2228
+ return false unless service_module.const_defined? :ForecastService
2229
+ service_module = service_module.const_get :ForecastService
2230
+ return false unless service_module.const_defined? :Rest
2231
+ service_module = service_module.const_get :Rest
2232
+ service_module.const_defined? :Client
2233
+ rescue ::LoadError
2234
+ false
2235
+ end
2236
+
1985
2237
  ##
1986
2238
  # Create a new client object for GeoTargetService.
1987
2239
  #
@@ -2108,6 +2360,69 @@ module Google
2108
2360
  false
2109
2361
  end
2110
2362
 
2363
+ ##
2364
+ # Create a new client object for LineItemCreativeAssociationService.
2365
+ #
2366
+ # By default, this returns an instance of
2367
+ # [Google::Ads::AdManager::V1::LineItemCreativeAssociationService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/LineItemCreativeAssociationService/Rest/Client)
2368
+ # for a REST client for version V1 of the API.
2369
+ # However, you can specify a different API version by passing it in the
2370
+ # `version` parameter. If the LineItemCreativeAssociationService service is
2371
+ # supported by that API version, and the corresponding gem is available, the
2372
+ # appropriate versioned client will be returned.
2373
+ #
2374
+ # Raises an exception if the currently installed versioned client gem for the
2375
+ # given API version does not support the LineItemCreativeAssociationService service.
2376
+ # You can determine whether the method will succeed by calling
2377
+ # {Google::Ads::AdManager.line_item_creative_association_service_available?}.
2378
+ #
2379
+ # ## About LineItemCreativeAssociationService
2380
+ #
2381
+ # Provides methods for handling `LineItemCreativeAssociation` objects.
2382
+ #
2383
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2384
+ # Defaults to `:v1`.
2385
+ # @return [::Object] A client object for the specified version.
2386
+ #
2387
+ def self.line_item_creative_association_service version: :v1, &block
2388
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2389
+
2390
+ package_name = Google::Ads::AdManager
2391
+ .constants
2392
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2393
+ .first
2394
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:LineItemCreativeAssociationService)
2395
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2396
+ end
2397
+
2398
+ ##
2399
+ # Determines whether the LineItemCreativeAssociationService service is supported by the current client.
2400
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.line_item_creative_association_service}.
2401
+ # If false, that method will raise an exception. This could happen if the given
2402
+ # API version does not exist or does not support the LineItemCreativeAssociationService service,
2403
+ # or if the versioned client gem needs an update to support the LineItemCreativeAssociationService service.
2404
+ #
2405
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2406
+ # Defaults to `:v1`.
2407
+ # @return [boolean] Whether the service is available.
2408
+ #
2409
+ def self.line_item_creative_association_service_available? version: :v1
2410
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2411
+ package_name = Google::Ads::AdManager
2412
+ .constants
2413
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2414
+ .first
2415
+ return false unless package_name
2416
+ service_module = Google::Ads::AdManager.const_get package_name
2417
+ return false unless service_module.const_defined? :LineItemCreativeAssociationService
2418
+ service_module = service_module.const_get :LineItemCreativeAssociationService
2419
+ return false unless service_module.const_defined? :Rest
2420
+ service_module = service_module.const_get :Rest
2421
+ service_module.const_defined? :Client
2422
+ rescue ::LoadError
2423
+ false
2424
+ end
2425
+
2111
2426
  ##
2112
2427
  # Create a new client object for LineItemService.
2113
2428
  #
@@ -2171,6 +2486,69 @@ module Google
2171
2486
  false
2172
2487
  end
2173
2488
 
2489
+ ##
2490
+ # Create a new client object for LineItemTemplateService.
2491
+ #
2492
+ # By default, this returns an instance of
2493
+ # [Google::Ads::AdManager::V1::LineItemTemplateService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/LineItemTemplateService/Rest/Client)
2494
+ # for a REST client for version V1 of the API.
2495
+ # However, you can specify a different API version by passing it in the
2496
+ # `version` parameter. If the LineItemTemplateService service is
2497
+ # supported by that API version, and the corresponding gem is available, the
2498
+ # appropriate versioned client will be returned.
2499
+ #
2500
+ # Raises an exception if the currently installed versioned client gem for the
2501
+ # given API version does not support the LineItemTemplateService service.
2502
+ # You can determine whether the method will succeed by calling
2503
+ # {Google::Ads::AdManager.line_item_template_service_available?}.
2504
+ #
2505
+ # ## About LineItemTemplateService
2506
+ #
2507
+ # Provides methods for handling `LineItemTemplate` objects.
2508
+ #
2509
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2510
+ # Defaults to `:v1`.
2511
+ # @return [::Object] A client object for the specified version.
2512
+ #
2513
+ def self.line_item_template_service version: :v1, &block
2514
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2515
+
2516
+ package_name = Google::Ads::AdManager
2517
+ .constants
2518
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2519
+ .first
2520
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:LineItemTemplateService)
2521
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2522
+ end
2523
+
2524
+ ##
2525
+ # Determines whether the LineItemTemplateService service is supported by the current client.
2526
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.line_item_template_service}.
2527
+ # If false, that method will raise an exception. This could happen if the given
2528
+ # API version does not exist or does not support the LineItemTemplateService service,
2529
+ # or if the versioned client gem needs an update to support the LineItemTemplateService service.
2530
+ #
2531
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2532
+ # Defaults to `:v1`.
2533
+ # @return [boolean] Whether the service is available.
2534
+ #
2535
+ def self.line_item_template_service_available? version: :v1
2536
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2537
+ package_name = Google::Ads::AdManager
2538
+ .constants
2539
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2540
+ .first
2541
+ return false unless package_name
2542
+ service_module = Google::Ads::AdManager.const_get package_name
2543
+ return false unless service_module.const_defined? :LineItemTemplateService
2544
+ service_module = service_module.const_get :LineItemTemplateService
2545
+ return false unless service_module.const_defined? :Rest
2546
+ service_module = service_module.const_get :Rest
2547
+ service_module.const_defined? :Client
2548
+ rescue ::LoadError
2549
+ false
2550
+ end
2551
+
2174
2552
  ##
2175
2553
  # Create a new client object for LinkedDeviceService.
2176
2554
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-ads-ad_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC