google-ads-ad_manager 5.3.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 +4 -4
- data/lib/google/ads/ad_manager/version.rb +1 -1
- data/lib/google/ads/ad_manager.rb +253 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 31b9daa9a2e9c87f1616e08050b964954516ef79db5562e13282d710b7a82246
|
|
4
|
+
data.tar.gz: 483fc778b84f5fe18ec8c4748e3ae0e08b95e85393dbca9d88334230b96d6677
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce69d4ef6a34438dfe4cf96e78e5f30ef9b1a8d6e80497e39079a3bf63bba85871c8bbf1228880a488fd39e98bbd75de78b8bbc5d302ceae20eac9d16e22ede2
|
|
7
|
+
data.tar.gz: 9a4dfa0a6d727f801fba73b8d827185b1ba554d87e3afc3738844fe35e021ead9b602c3dfb96699e83c7477a15dfa160d1895da1cb20b49fe85ec910f683b7e8
|
|
@@ -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`.
|
|
@@ -1289,6 +1289,69 @@ module Google
|
|
|
1289
1289
|
false
|
|
1290
1290
|
end
|
|
1291
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
|
+
|
|
1292
1355
|
##
|
|
1293
1356
|
# Create a new client object for CreativeSetService.
|
|
1294
1357
|
#
|
|
@@ -2108,6 +2171,69 @@ module Google
|
|
|
2108
2171
|
false
|
|
2109
2172
|
end
|
|
2110
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
|
+
|
|
2111
2237
|
##
|
|
2112
2238
|
# Create a new client object for GeoTargetService.
|
|
2113
2239
|
#
|
|
@@ -2234,6 +2360,69 @@ module Google
|
|
|
2234
2360
|
false
|
|
2235
2361
|
end
|
|
2236
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
|
+
|
|
2237
2426
|
##
|
|
2238
2427
|
# Create a new client object for LineItemService.
|
|
2239
2428
|
#
|
|
@@ -2297,6 +2486,69 @@ module Google
|
|
|
2297
2486
|
false
|
|
2298
2487
|
end
|
|
2299
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
|
+
|
|
2300
2552
|
##
|
|
2301
2553
|
# Create a new client object for LinkedDeviceService.
|
|
2302
2554
|
#
|