google-ads-ad_manager-v1 4.2.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/ads/ad_manager/v1/company_service/rest/client.rb +2 -2
- data/lib/google/ads/ad_manager/v1/contact_service/rest/client.rb +6 -6
- data/lib/google/ads/ad_manager/v1/content_bundle_service/rest/client.rb +179 -0
- data/lib/google/ads/ad_manager/v1/content_bundle_service/rest/service_stub.rb +124 -0
- data/lib/google/ads/ad_manager/v1/creative_set_service/credentials.rb +48 -0
- data/lib/google/ads/ad_manager/v1/creative_set_service/paths.rb +81 -0
- data/lib/google/ads/ad_manager/v1/creative_set_service/rest/client.rb +726 -0
- data/lib/google/ads/ad_manager/v1/creative_set_service/rest/service_stub.rb +327 -0
- data/lib/google/ads/ad_manager/v1/creative_set_service/rest.rb +52 -0
- data/lib/google/ads/ad_manager/v1/creative_set_service.rb +48 -0
- data/lib/google/ads/ad_manager/v1/line_item_service/rest/client.rb +27 -0
- data/lib/google/ads/ad_manager/v1/mcm_earnings_service/rest/client.rb +1 -1
- data/lib/google/ads/ad_manager/v1/network_service/rest/client.rb +2 -2
- data/lib/google/ads/ad_manager/v1/order_service/paths.rb +102 -0
- data/lib/google/ads/ad_manager/v1/order_service/rest/client.rb +1621 -0
- data/lib/google/ads/ad_manager/v1/order_service/rest/service_stub.rb +1127 -11
- data/lib/google/ads/ad_manager/v1/report_service/rest/client.rb +4 -4
- data/lib/google/ads/ad_manager/v1/rest.rb +2 -0
- data/lib/google/ads/ad_manager/v1/role_service/rest/client.rb +2 -2
- data/lib/google/ads/ad_manager/v1/site_service/rest/client.rb +6 -6
- data/lib/google/ads/ad_manager/v1/slate_service/credentials.rb +48 -0
- data/lib/google/ads/ad_manager/v1/slate_service/paths.rb +64 -0
- data/lib/google/ads/ad_manager/v1/slate_service/rest/client.rb +1082 -0
- data/lib/google/ads/ad_manager/v1/slate_service/rest/service_stub.rb +575 -0
- data/lib/google/ads/ad_manager/v1/slate_service/rest.rb +52 -0
- data/lib/google/ads/ad_manager/v1/slate_service.rb +48 -0
- data/lib/google/ads/ad_manager/v1/targeting_preset_service/rest/client.rb +181 -0
- data/lib/google/ads/ad_manager/v1/targeting_preset_service/rest/service_stub.rb +124 -0
- data/lib/google/ads/ad_manager/v1/team_service/rest/client.rb +8 -8
- data/lib/google/ads/ad_manager/v1/third_party_company_service/rest/client.rb +2 -2
- data/lib/google/ads/ad_manager/v1/user_service/rest/client.rb +1 -1
- data/lib/google/ads/ad_manager/v1/version.rb +1 -1
- data/lib/google/ads/ad_manager/v1.rb +2 -0
- data/lib/google/ads/admanager/v1/brand_lift_partner_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/child_content_eligibility_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/company_service_services_pb.rb +2 -2
- data/lib/google/ads/admanager/v1/contact_service_services_pb.rb +6 -6
- data/lib/google/ads/admanager/v1/content_bundle_service_pb.rb +5 -1
- data/lib/google/ads/admanager/v1/content_bundle_service_services_pb.rb +4 -0
- data/lib/google/ads/admanager/v1/creative_messages_pb.rb +24 -0
- data/lib/google/ads/admanager/v1/creative_placeholder_pb.rb +27 -0
- data/lib/google/ads/admanager/v1/creative_set_messages_pb.rb +25 -0
- data/lib/google/ads/admanager/v1/creative_set_service_pb.rb +32 -0
- data/lib/google/ads/admanager/v1/creative_set_service_services_pb.rb +51 -0
- data/lib/google/ads/admanager/v1/creative_targeting_pb.rb +24 -0
- data/lib/google/ads/admanager/v1/custom_pacing_curve_pb.rb +26 -0
- data/lib/google/ads/admanager/v1/custom_pacing_goal_unit_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/delivery_enums_pb.rb +28 -0
- data/lib/google/ads/admanager/v1/delivery_indicator_pb.rb +23 -0
- data/lib/google/ads/admanager/v1/discount_type_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/exclusion_scope_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/grp_provider_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/grp_settings_pb.rb +27 -0
- data/lib/google/ads/admanager/v1/grp_target_gender_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/line_item_allowed_format_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/line_item_deal_info_pb.rb +23 -0
- data/lib/google/ads/admanager/v1/line_item_delivery_forecast_source_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/line_item_discount_pb.rb +24 -0
- data/lib/google/ads/admanager/v1/line_item_enums_pb.rb +7 -1
- data/lib/google/ads/admanager/v1/line_item_messages_pb.rb +21 -1
- data/lib/google/ads/admanager/v1/line_item_stats_pb.rb +23 -0
- data/lib/google/ads/admanager/v1/live_stream_event_enums_pb.rb +3 -1
- data/lib/google/ads/admanager/v1/mcm_earnings_service_services_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/network_service_services_pb.rb +2 -2
- data/lib/google/ads/admanager/v1/nielsen_ctv_pacing_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/order_messages_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/order_service_pb.rb +40 -1
- data/lib/google/ads/admanager/v1/order_service_services_pb.rb +37 -0
- data/lib/google/ads/admanager/v1/pacing_device_categorization_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/reach_partner_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/report_delivery_pb.rb +33 -0
- data/lib/google/ads/admanager/v1/report_messages_pb.rb +2 -10
- data/lib/google/ads/admanager/v1/report_service_services_pb.rb +4 -4
- data/lib/google/ads/admanager/v1/role_service_services_pb.rb +2 -2
- data/lib/google/ads/admanager/v1/site_service_services_pb.rb +6 -6
- data/lib/google/ads/admanager/v1/skippable_ad_type_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/slate_messages_pb.rb +27 -0
- data/lib/google/ads/admanager/v1/slate_service_pb.rb +40 -0
- data/lib/google/ads/admanager/v1/slate_service_services_pb.rb +59 -0
- data/lib/google/ads/admanager/v1/targeting_preset_service_pb.rb +5 -1
- data/lib/google/ads/admanager/v1/targeting_preset_service_services_pb.rb +4 -0
- data/lib/google/ads/admanager/v1/team_service_services_pb.rb +8 -8
- data/lib/google/ads/admanager/v1/third_party_company_service_services_pb.rb +2 -2
- data/lib/google/ads/admanager/v1/third_party_measurement_settings_pb.rb +26 -0
- data/lib/google/ads/admanager/v1/user_service_services_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/video_transcode_status_enum_pb.rb +22 -0
- data/lib/google/ads/admanager/v1/viewability_partner_enum_pb.rb +22 -0
- data/proto_docs/google/ads/admanager/v1/brand_lift_partner_enum.rb +54 -0
- data/proto_docs/google/ads/admanager/v1/child_content_eligibility_enum.rb +46 -0
- data/proto_docs/google/ads/admanager/v1/content_bundle_service.rb +41 -0
- data/proto_docs/google/ads/admanager/v1/creative_messages.rb +40 -0
- data/proto_docs/google/ads/admanager/v1/creative_placeholder.rb +76 -0
- data/proto_docs/google/ads/admanager/v1/creative_set_messages.rb +53 -0
- data/proto_docs/google/ads/admanager/v1/creative_set_service.rb +135 -0
- data/proto_docs/google/ads/admanager/v1/creative_targeting.rb +39 -0
- data/proto_docs/google/ads/admanager/v1/custom_pacing_curve.rb +64 -0
- data/proto_docs/google/ads/admanager/v1/custom_pacing_goal_unit_enum.rb +47 -0
- data/proto_docs/google/ads/admanager/v1/delivery_enums.rb +144 -0
- data/proto_docs/google/ads/admanager/v1/delivery_indicator.rb +38 -0
- data/proto_docs/google/ads/admanager/v1/discount_type_enum.rb +45 -0
- data/proto_docs/google/ads/admanager/v1/exclusion_scope_enum.rb +48 -0
- data/proto_docs/google/ads/admanager/v1/goal_enums.rb +7 -5
- data/proto_docs/google/ads/admanager/v1/grp_provider_enum.rb +46 -0
- data/proto_docs/google/ads/admanager/v1/grp_settings.rb +75 -0
- data/proto_docs/google/ads/admanager/v1/grp_target_gender_enum.rb +48 -0
- data/proto_docs/google/ads/admanager/v1/line_item_allowed_format_enum.rb +49 -0
- data/proto_docs/google/ads/admanager/v1/line_item_deal_info.rb +36 -0
- data/proto_docs/google/ads/admanager/v1/line_item_delivery_forecast_source_enum.rb +51 -0
- data/proto_docs/google/ads/admanager/v1/line_item_discount.rb +42 -0
- data/proto_docs/google/ads/admanager/v1/line_item_enums.rb +150 -0
- data/proto_docs/google/ads/admanager/v1/line_item_messages.rb +300 -7
- data/proto_docs/google/ads/admanager/v1/line_item_service.rb +27 -0
- data/proto_docs/google/ads/admanager/v1/line_item_stats.rb +51 -0
- data/proto_docs/google/ads/admanager/v1/live_stream_event_enums.rb +19 -0
- data/proto_docs/google/ads/admanager/v1/nielsen_ctv_pacing_enum.rb +53 -0
- data/proto_docs/google/ads/admanager/v1/order_messages.rb +13 -0
- data/proto_docs/google/ads/admanager/v1/order_service.rb +418 -0
- data/proto_docs/google/ads/admanager/v1/pacing_device_categorization_enum.rb +46 -0
- data/proto_docs/google/ads/admanager/v1/reach_partner_enum.rb +66 -0
- data/proto_docs/google/ads/admanager/v1/report_definition.rb +7 -7
- data/proto_docs/google/ads/admanager/v1/report_delivery.rb +137 -0
- data/proto_docs/google/ads/admanager/v1/report_messages.rb +0 -111
- data/proto_docs/google/ads/admanager/v1/skippable_ad_type_enum.rb +52 -0
- data/proto_docs/google/ads/admanager/v1/slate_messages.rb +56 -0
- data/proto_docs/google/ads/admanager/v1/slate_service.rb +214 -0
- data/proto_docs/google/ads/admanager/v1/targeting.rb +1 -2
- data/proto_docs/google/ads/admanager/v1/targeting_preset_service.rb +40 -0
- data/proto_docs/google/ads/admanager/v1/third_party_measurement_settings.rb +90 -0
- data/proto_docs/google/ads/admanager/v1/video_transcode_status_enum.rb +54 -0
- data/proto_docs/google/ads/admanager/v1/viewability_partner_enum.rb +59 -0
- metadata +77 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8cf6c7967b33f06b653fd40096ed3726ea1389bc8ed1d0db7ff4e822f3a9df48
|
|
4
|
+
data.tar.gz: 407c7071d0d6fbd57e4111a042cb5ccea9fd84c0c1b401caac58e583f78d90cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff8b5c11dd7a44bcfef97e3237a5cef2b4ed080fa88ee4631c35dd55da93f4f6027f56daa3c3a05dfa43e2873b82ace9122c4b7102c9a8b25a6731b6c5fabb70
|
|
7
|
+
data.tar.gz: f970dd15b30ab51fc0d3749f2cb86d7dfdab026dfde05e2a78a7593048f75f0bea2a85476a47ad773beb68a62e18498b726163576def110167fae44ae2a45fff
|
|
@@ -177,7 +177,7 @@ module Google
|
|
|
177
177
|
# Service calls
|
|
178
178
|
|
|
179
179
|
##
|
|
180
|
-
#
|
|
180
|
+
# Retrieves a `Company` object.
|
|
181
181
|
#
|
|
182
182
|
# @overload get_company(request, options = nil)
|
|
183
183
|
# Pass arguments to `get_company` via a request object, either of type
|
|
@@ -256,7 +256,7 @@ module Google
|
|
|
256
256
|
end
|
|
257
257
|
|
|
258
258
|
##
|
|
259
|
-
#
|
|
259
|
+
# Lists `Company` objects.
|
|
260
260
|
#
|
|
261
261
|
# @overload list_companies(request, options = nil)
|
|
262
262
|
# Pass arguments to `list_companies` via a request object, either of type
|
|
@@ -177,7 +177,7 @@ module Google
|
|
|
177
177
|
# Service calls
|
|
178
178
|
|
|
179
179
|
##
|
|
180
|
-
#
|
|
180
|
+
# Retrieves a `Contact` object.
|
|
181
181
|
#
|
|
182
182
|
# @overload get_contact(request, options = nil)
|
|
183
183
|
# Pass arguments to `get_contact` via a request object, either of type
|
|
@@ -256,7 +256,7 @@ module Google
|
|
|
256
256
|
end
|
|
257
257
|
|
|
258
258
|
##
|
|
259
|
-
#
|
|
259
|
+
# Lists `Contact` objects.
|
|
260
260
|
#
|
|
261
261
|
# @overload list_contacts(request, options = nil)
|
|
262
262
|
# Pass arguments to `list_contacts` via a request object, either of type
|
|
@@ -377,7 +377,7 @@ module Google
|
|
|
377
377
|
end
|
|
378
378
|
|
|
379
379
|
##
|
|
380
|
-
#
|
|
380
|
+
# Creates a `Contact` object.
|
|
381
381
|
#
|
|
382
382
|
# @overload create_contact(request, options = nil)
|
|
383
383
|
# Pass arguments to `create_contact` via a request object, either of type
|
|
@@ -458,7 +458,7 @@ module Google
|
|
|
458
458
|
end
|
|
459
459
|
|
|
460
460
|
##
|
|
461
|
-
#
|
|
461
|
+
# Creates `Contact` objects.
|
|
462
462
|
#
|
|
463
463
|
# @overload batch_create_contacts(request, options = nil)
|
|
464
464
|
# Pass arguments to `batch_create_contacts` via a request object, either of type
|
|
@@ -542,7 +542,7 @@ module Google
|
|
|
542
542
|
end
|
|
543
543
|
|
|
544
544
|
##
|
|
545
|
-
#
|
|
545
|
+
# Updates a `Contact` object.
|
|
546
546
|
#
|
|
547
547
|
# @overload update_contact(request, options = nil)
|
|
548
548
|
# Pass arguments to `update_contact` via a request object, either of type
|
|
@@ -624,7 +624,7 @@ module Google
|
|
|
624
624
|
end
|
|
625
625
|
|
|
626
626
|
##
|
|
627
|
-
#
|
|
627
|
+
# Batch updates `Contact` objects.
|
|
628
628
|
#
|
|
629
629
|
# @overload batch_update_contacts(request, options = nil)
|
|
630
630
|
# Pass arguments to `batch_update_contacts` via a request object, either of type
|
|
@@ -369,6 +369,171 @@ module Google
|
|
|
369
369
|
raise ::Google::Cloud::Error.from_error(e)
|
|
370
370
|
end
|
|
371
371
|
|
|
372
|
+
##
|
|
373
|
+
# Activate a list of `ContentBundle` objects.
|
|
374
|
+
#
|
|
375
|
+
# @overload batch_activate_content_bundles(request, options = nil)
|
|
376
|
+
# Pass arguments to `batch_activate_content_bundles` via a request object, either of type
|
|
377
|
+
# {::Google::Ads::AdManager::V1::BatchActivateContentBundlesRequest} or an equivalent Hash.
|
|
378
|
+
#
|
|
379
|
+
# @param request [::Google::Ads::AdManager::V1::BatchActivateContentBundlesRequest, ::Hash]
|
|
380
|
+
# A request object representing the call parameters. Required. To specify no
|
|
381
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
382
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
383
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
384
|
+
#
|
|
385
|
+
# @overload batch_activate_content_bundles(parent: nil, names: nil)
|
|
386
|
+
# Pass arguments to `batch_activate_content_bundles` via keyword arguments. Note that at
|
|
387
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
388
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
389
|
+
#
|
|
390
|
+
# @param parent [::String]
|
|
391
|
+
# Required. The parent resource where `ContentBundles` will be activated.
|
|
392
|
+
# Format: `networks/{network_code}`
|
|
393
|
+
# @param names [::Array<::String>]
|
|
394
|
+
# Required. The resource names of the `ContentBundle`s to activate.
|
|
395
|
+
# Format: `networks/{network_code}/contentBundles/{content_bundle_id}`
|
|
396
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
397
|
+
# @yieldparam result [::Google::Ads::AdManager::V1::BatchActivateContentBundlesResponse]
|
|
398
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
399
|
+
#
|
|
400
|
+
# @return [::Google::Ads::AdManager::V1::BatchActivateContentBundlesResponse]
|
|
401
|
+
#
|
|
402
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
403
|
+
#
|
|
404
|
+
# @example Basic example
|
|
405
|
+
# require "google/ads/ad_manager/v1"
|
|
406
|
+
#
|
|
407
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
408
|
+
# client = Google::Ads::AdManager::V1::ContentBundleService::Rest::Client.new
|
|
409
|
+
#
|
|
410
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
411
|
+
# request = Google::Ads::AdManager::V1::BatchActivateContentBundlesRequest.new
|
|
412
|
+
#
|
|
413
|
+
# # Call the batch_activate_content_bundles method.
|
|
414
|
+
# result = client.batch_activate_content_bundles request
|
|
415
|
+
#
|
|
416
|
+
# # The returned object is of type Google::Ads::AdManager::V1::BatchActivateContentBundlesResponse.
|
|
417
|
+
# p result
|
|
418
|
+
#
|
|
419
|
+
def batch_activate_content_bundles request, options = nil
|
|
420
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
421
|
+
|
|
422
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchActivateContentBundlesRequest
|
|
423
|
+
|
|
424
|
+
# Converts hash and nil to an options object
|
|
425
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
426
|
+
|
|
427
|
+
# Customize the options with defaults
|
|
428
|
+
call_metadata = @config.rpcs.batch_activate_content_bundles.metadata.to_h
|
|
429
|
+
|
|
430
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
431
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
432
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
433
|
+
gapic_version: ::Google::Ads::AdManager::V1::VERSION,
|
|
434
|
+
transports_version_send: [:rest]
|
|
435
|
+
|
|
436
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
437
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
438
|
+
|
|
439
|
+
options.apply_defaults timeout: @config.rpcs.batch_activate_content_bundles.timeout,
|
|
440
|
+
metadata: call_metadata,
|
|
441
|
+
retry_policy: @config.rpcs.batch_activate_content_bundles.retry_policy
|
|
442
|
+
|
|
443
|
+
options.apply_defaults timeout: @config.timeout,
|
|
444
|
+
metadata: @config.metadata,
|
|
445
|
+
retry_policy: @config.retry_policy
|
|
446
|
+
|
|
447
|
+
@content_bundle_service_stub.batch_activate_content_bundles request, options do |result, operation|
|
|
448
|
+
yield result, operation if block_given?
|
|
449
|
+
end
|
|
450
|
+
rescue ::Gapic::Rest::Error => e
|
|
451
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
##
|
|
455
|
+
# Deactivates a list of `ContentBundle` objects.
|
|
456
|
+
#
|
|
457
|
+
# @overload batch_deactivate_content_bundles(request, options = nil)
|
|
458
|
+
# Pass arguments to `batch_deactivate_content_bundles` via a request object, either of type
|
|
459
|
+
# {::Google::Ads::AdManager::V1::BatchDeactivateContentBundlesRequest} or an equivalent Hash.
|
|
460
|
+
#
|
|
461
|
+
# @param request [::Google::Ads::AdManager::V1::BatchDeactivateContentBundlesRequest, ::Hash]
|
|
462
|
+
# A request object representing the call parameters. Required. To specify no
|
|
463
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
464
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
465
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
466
|
+
#
|
|
467
|
+
# @overload batch_deactivate_content_bundles(parent: nil, names: nil)
|
|
468
|
+
# Pass arguments to `batch_deactivate_content_bundles` via keyword arguments. Note that at
|
|
469
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
470
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
471
|
+
#
|
|
472
|
+
# @param parent [::String]
|
|
473
|
+
# Required. The parent resource where `ContentBundles` will be
|
|
474
|
+
# deactivated.
|
|
475
|
+
# Format: `networks/{network_code}`
|
|
476
|
+
# @param names [::Array<::String>]
|
|
477
|
+
# Required. The resource names of the `ContentBundle`s to deactivate.
|
|
478
|
+
# Format: `networks/{network_code}/contentBundles/{content_bundle_id}`
|
|
479
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
480
|
+
# @yieldparam result [::Google::Ads::AdManager::V1::BatchDeactivateContentBundlesResponse]
|
|
481
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
482
|
+
#
|
|
483
|
+
# @return [::Google::Ads::AdManager::V1::BatchDeactivateContentBundlesResponse]
|
|
484
|
+
#
|
|
485
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
486
|
+
#
|
|
487
|
+
# @example Basic example
|
|
488
|
+
# require "google/ads/ad_manager/v1"
|
|
489
|
+
#
|
|
490
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
491
|
+
# client = Google::Ads::AdManager::V1::ContentBundleService::Rest::Client.new
|
|
492
|
+
#
|
|
493
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
494
|
+
# request = Google::Ads::AdManager::V1::BatchDeactivateContentBundlesRequest.new
|
|
495
|
+
#
|
|
496
|
+
# # Call the batch_deactivate_content_bundles method.
|
|
497
|
+
# result = client.batch_deactivate_content_bundles request
|
|
498
|
+
#
|
|
499
|
+
# # The returned object is of type Google::Ads::AdManager::V1::BatchDeactivateContentBundlesResponse.
|
|
500
|
+
# p result
|
|
501
|
+
#
|
|
502
|
+
def batch_deactivate_content_bundles request, options = nil
|
|
503
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
504
|
+
|
|
505
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchDeactivateContentBundlesRequest
|
|
506
|
+
|
|
507
|
+
# Converts hash and nil to an options object
|
|
508
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
509
|
+
|
|
510
|
+
# Customize the options with defaults
|
|
511
|
+
call_metadata = @config.rpcs.batch_deactivate_content_bundles.metadata.to_h
|
|
512
|
+
|
|
513
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
514
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
515
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
516
|
+
gapic_version: ::Google::Ads::AdManager::V1::VERSION,
|
|
517
|
+
transports_version_send: [:rest]
|
|
518
|
+
|
|
519
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
520
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
521
|
+
|
|
522
|
+
options.apply_defaults timeout: @config.rpcs.batch_deactivate_content_bundles.timeout,
|
|
523
|
+
metadata: call_metadata,
|
|
524
|
+
retry_policy: @config.rpcs.batch_deactivate_content_bundles.retry_policy
|
|
525
|
+
|
|
526
|
+
options.apply_defaults timeout: @config.timeout,
|
|
527
|
+
metadata: @config.metadata,
|
|
528
|
+
retry_policy: @config.retry_policy
|
|
529
|
+
|
|
530
|
+
@content_bundle_service_stub.batch_deactivate_content_bundles request, options do |result, operation|
|
|
531
|
+
yield result, operation if block_given?
|
|
532
|
+
end
|
|
533
|
+
rescue ::Gapic::Rest::Error => e
|
|
534
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
535
|
+
end
|
|
536
|
+
|
|
372
537
|
##
|
|
373
538
|
# Configuration class for the ContentBundleService REST API.
|
|
374
539
|
#
|
|
@@ -527,6 +692,16 @@ module Google
|
|
|
527
692
|
# @return [::Gapic::Config::Method]
|
|
528
693
|
#
|
|
529
694
|
attr_reader :list_content_bundles
|
|
695
|
+
##
|
|
696
|
+
# RPC-specific configuration for `batch_activate_content_bundles`
|
|
697
|
+
# @return [::Gapic::Config::Method]
|
|
698
|
+
#
|
|
699
|
+
attr_reader :batch_activate_content_bundles
|
|
700
|
+
##
|
|
701
|
+
# RPC-specific configuration for `batch_deactivate_content_bundles`
|
|
702
|
+
# @return [::Gapic::Config::Method]
|
|
703
|
+
#
|
|
704
|
+
attr_reader :batch_deactivate_content_bundles
|
|
530
705
|
|
|
531
706
|
# @private
|
|
532
707
|
def initialize parent_rpcs = nil
|
|
@@ -534,6 +709,10 @@ module Google
|
|
|
534
709
|
@get_content_bundle = ::Gapic::Config::Method.new get_content_bundle_config
|
|
535
710
|
list_content_bundles_config = parent_rpcs.list_content_bundles if parent_rpcs.respond_to? :list_content_bundles
|
|
536
711
|
@list_content_bundles = ::Gapic::Config::Method.new list_content_bundles_config
|
|
712
|
+
batch_activate_content_bundles_config = parent_rpcs.batch_activate_content_bundles if parent_rpcs.respond_to? :batch_activate_content_bundles
|
|
713
|
+
@batch_activate_content_bundles = ::Gapic::Config::Method.new batch_activate_content_bundles_config
|
|
714
|
+
batch_deactivate_content_bundles_config = parent_rpcs.batch_deactivate_content_bundles if parent_rpcs.respond_to? :batch_deactivate_content_bundles
|
|
715
|
+
@batch_deactivate_content_bundles = ::Gapic::Config::Method.new batch_deactivate_content_bundles_config
|
|
537
716
|
|
|
538
717
|
yield self if block_given?
|
|
539
718
|
end
|
|
@@ -153,6 +153,86 @@ module Google
|
|
|
153
153
|
end
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
+
##
|
|
157
|
+
# Baseline implementation for the batch_activate_content_bundles REST call
|
|
158
|
+
#
|
|
159
|
+
# @param request_pb [::Google::Ads::AdManager::V1::BatchActivateContentBundlesRequest]
|
|
160
|
+
# A request object representing the call parameters. Required.
|
|
161
|
+
# @param options [::Gapic::CallOptions]
|
|
162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
163
|
+
#
|
|
164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
165
|
+
# @yieldparam result [::Google::Ads::AdManager::V1::BatchActivateContentBundlesResponse]
|
|
166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
167
|
+
#
|
|
168
|
+
# @return [::Google::Ads::AdManager::V1::BatchActivateContentBundlesResponse]
|
|
169
|
+
# A result object deserialized from the server's reply
|
|
170
|
+
def batch_activate_content_bundles request_pb, options = nil
|
|
171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
172
|
+
|
|
173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_batch_activate_content_bundles_request request_pb
|
|
174
|
+
query_string_params = if query_string_params.any?
|
|
175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
176
|
+
else
|
|
177
|
+
{}
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
response = @client_stub.make_http_request(
|
|
181
|
+
verb,
|
|
182
|
+
uri: uri,
|
|
183
|
+
body: body || "",
|
|
184
|
+
params: query_string_params,
|
|
185
|
+
method_name: "batch_activate_content_bundles",
|
|
186
|
+
options: options
|
|
187
|
+
)
|
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
189
|
+
result = ::Google::Ads::AdManager::V1::BatchActivateContentBundlesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
190
|
+
catch :response do
|
|
191
|
+
yield result, operation if block_given?
|
|
192
|
+
result
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
##
|
|
197
|
+
# Baseline implementation for the batch_deactivate_content_bundles REST call
|
|
198
|
+
#
|
|
199
|
+
# @param request_pb [::Google::Ads::AdManager::V1::BatchDeactivateContentBundlesRequest]
|
|
200
|
+
# A request object representing the call parameters. Required.
|
|
201
|
+
# @param options [::Gapic::CallOptions]
|
|
202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
203
|
+
#
|
|
204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
205
|
+
# @yieldparam result [::Google::Ads::AdManager::V1::BatchDeactivateContentBundlesResponse]
|
|
206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
207
|
+
#
|
|
208
|
+
# @return [::Google::Ads::AdManager::V1::BatchDeactivateContentBundlesResponse]
|
|
209
|
+
# A result object deserialized from the server's reply
|
|
210
|
+
def batch_deactivate_content_bundles request_pb, options = nil
|
|
211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
212
|
+
|
|
213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_batch_deactivate_content_bundles_request request_pb
|
|
214
|
+
query_string_params = if query_string_params.any?
|
|
215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
216
|
+
else
|
|
217
|
+
{}
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
response = @client_stub.make_http_request(
|
|
221
|
+
verb,
|
|
222
|
+
uri: uri,
|
|
223
|
+
body: body || "",
|
|
224
|
+
params: query_string_params,
|
|
225
|
+
method_name: "batch_deactivate_content_bundles",
|
|
226
|
+
options: options
|
|
227
|
+
)
|
|
228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
229
|
+
result = ::Google::Ads::AdManager::V1::BatchDeactivateContentBundlesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
230
|
+
catch :response do
|
|
231
|
+
yield result, operation if block_given?
|
|
232
|
+
result
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
|
|
156
236
|
##
|
|
157
237
|
# @private
|
|
158
238
|
#
|
|
@@ -194,6 +274,50 @@ module Google
|
|
|
194
274
|
)
|
|
195
275
|
transcoder.transcode request_pb
|
|
196
276
|
end
|
|
277
|
+
|
|
278
|
+
##
|
|
279
|
+
# @private
|
|
280
|
+
#
|
|
281
|
+
# GRPC transcoding helper method for the batch_activate_content_bundles REST call
|
|
282
|
+
#
|
|
283
|
+
# @param request_pb [::Google::Ads::AdManager::V1::BatchActivateContentBundlesRequest]
|
|
284
|
+
# A request object representing the call parameters. Required.
|
|
285
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
286
|
+
# Uri, Body, Query string parameters
|
|
287
|
+
def self.transcode_batch_activate_content_bundles_request request_pb
|
|
288
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
289
|
+
.with_bindings(
|
|
290
|
+
uri_method: :post,
|
|
291
|
+
uri_template: "/v1/{parent}/contentBundles:batchActivate",
|
|
292
|
+
body: "*",
|
|
293
|
+
matches: [
|
|
294
|
+
["parent", %r{^networks/[^/]+/?$}, false]
|
|
295
|
+
]
|
|
296
|
+
)
|
|
297
|
+
transcoder.transcode request_pb
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
##
|
|
301
|
+
# @private
|
|
302
|
+
#
|
|
303
|
+
# GRPC transcoding helper method for the batch_deactivate_content_bundles REST call
|
|
304
|
+
#
|
|
305
|
+
# @param request_pb [::Google::Ads::AdManager::V1::BatchDeactivateContentBundlesRequest]
|
|
306
|
+
# A request object representing the call parameters. Required.
|
|
307
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
308
|
+
# Uri, Body, Query string parameters
|
|
309
|
+
def self.transcode_batch_deactivate_content_bundles_request request_pb
|
|
310
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
311
|
+
.with_bindings(
|
|
312
|
+
uri_method: :post,
|
|
313
|
+
uri_template: "/v1/{parent}/contentBundles:batchDeactivate",
|
|
314
|
+
body: "*",
|
|
315
|
+
matches: [
|
|
316
|
+
["parent", %r{^networks/[^/]+/?$}, false]
|
|
317
|
+
]
|
|
318
|
+
)
|
|
319
|
+
transcoder.transcode request_pb
|
|
320
|
+
end
|
|
197
321
|
end
|
|
198
322
|
end
|
|
199
323
|
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "googleauth"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Ads
|
|
23
|
+
module AdManager
|
|
24
|
+
module V1
|
|
25
|
+
module CreativeSetService
|
|
26
|
+
# Credentials for the CreativeSetService API.
|
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
|
28
|
+
self.scope = [
|
|
29
|
+
"https://www.googleapis.com/auth/admanager",
|
|
30
|
+
"https://www.googleapis.com/auth/admanager.readonly"
|
|
31
|
+
]
|
|
32
|
+
self.env_vars = [
|
|
33
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
|
34
|
+
"GOOGLE_CLOUD_KEYFILE",
|
|
35
|
+
"GCLOUD_KEYFILE",
|
|
36
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
|
37
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
|
38
|
+
"GCLOUD_KEYFILE_JSON"
|
|
39
|
+
]
|
|
40
|
+
self.paths = [
|
|
41
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
|
42
|
+
]
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Ads
|
|
22
|
+
module AdManager
|
|
23
|
+
module V1
|
|
24
|
+
module CreativeSetService
|
|
25
|
+
# Path helper methods for the CreativeSetService API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified Creative resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `networks/{network_code}/creatives/{creative}`
|
|
33
|
+
#
|
|
34
|
+
# @param network_code [String]
|
|
35
|
+
# @param creative [String]
|
|
36
|
+
#
|
|
37
|
+
# @return [::String]
|
|
38
|
+
def creative_path network_code:, creative:
|
|
39
|
+
raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"
|
|
40
|
+
|
|
41
|
+
"networks/#{network_code}/creatives/#{creative}"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
##
|
|
45
|
+
# Create a fully-qualified CreativeSet resource string.
|
|
46
|
+
#
|
|
47
|
+
# The resource will be in the following format:
|
|
48
|
+
#
|
|
49
|
+
# `networks/{network_code}/creativeSets/{creative_set}`
|
|
50
|
+
#
|
|
51
|
+
# @param network_code [String]
|
|
52
|
+
# @param creative_set [String]
|
|
53
|
+
#
|
|
54
|
+
# @return [::String]
|
|
55
|
+
def creative_set_path network_code:, creative_set:
|
|
56
|
+
raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"
|
|
57
|
+
|
|
58
|
+
"networks/#{network_code}/creativeSets/#{creative_set}"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
##
|
|
62
|
+
# Create a fully-qualified Network resource string.
|
|
63
|
+
#
|
|
64
|
+
# The resource will be in the following format:
|
|
65
|
+
#
|
|
66
|
+
# `networks/{network_code}`
|
|
67
|
+
#
|
|
68
|
+
# @param network_code [String]
|
|
69
|
+
#
|
|
70
|
+
# @return [::String]
|
|
71
|
+
def network_path network_code:
|
|
72
|
+
"networks/#{network_code}"
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
extend self
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|