google-ads-ad_manager-v1 1.1.0 → 2.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/AUTHENTICATION.md +4 -4
- data/README.md +4 -4
- data/lib/google/ads/ad_manager/v1/ad_break_service/credentials.rb +47 -0
- data/lib/google/ads/ad_manager/v1/ad_break_service/paths.rb +69 -0
- data/lib/google/ads/ad_manager/v1/ad_break_service/rest/client.rb +854 -0
- data/lib/google/ads/ad_manager/v1/ad_break_service/rest/service_stub.rb +432 -0
- data/lib/google/ads/ad_manager/v1/ad_break_service/rest.rb +52 -0
- data/lib/google/ads/ad_manager/v1/ad_break_service.rb +48 -0
- data/lib/google/ads/ad_manager/v1/ad_unit_service/credentials.rb +3 -0
- data/lib/google/ads/ad_manager/v1/bandwidth_group_service/credentials.rb +47 -0
- data/lib/google/ads/ad_manager/v1/bandwidth_group_service/paths.rb +64 -0
- data/lib/google/ads/ad_manager/v1/bandwidth_group_service/rest/client.rb +538 -0
- data/lib/google/ads/ad_manager/v1/bandwidth_group_service/rest/service_stub.rb +203 -0
- data/lib/google/ads/ad_manager/v1/bandwidth_group_service/rest.rb +52 -0
- data/lib/google/ads/ad_manager/v1/bandwidth_group_service.rb +48 -0
- data/lib/google/ads/ad_manager/v1/company_service/credentials.rb +3 -0
- data/lib/google/ads/ad_manager/v1/custom_field_service/credentials.rb +3 -0
- data/lib/google/ads/ad_manager/v1/custom_targeting_key_service/credentials.rb +3 -0
- data/lib/google/ads/ad_manager/v1/custom_targeting_value_service/credentials.rb +3 -0
- data/lib/google/ads/ad_manager/v1/custom_targeting_value_service/paths.rb +9 -14
- data/lib/google/ads/ad_manager/v1/custom_targeting_value_service/rest/client.rb +2 -2
- data/lib/google/ads/ad_manager/v1/custom_targeting_value_service/rest/service_stub.rb +14 -0
- data/lib/google/ads/ad_manager/v1/device_category_service/credentials.rb +47 -0
- data/lib/google/ads/ad_manager/v1/device_category_service/paths.rb +64 -0
- data/lib/google/ads/ad_manager/v1/device_category_service/rest/client.rb +538 -0
- data/lib/google/ads/ad_manager/v1/device_category_service/rest/service_stub.rb +203 -0
- data/lib/google/ads/ad_manager/v1/device_category_service/rest.rb +52 -0
- data/lib/google/ads/ad_manager/v1/device_category_service.rb +48 -0
- data/lib/google/ads/ad_manager/v1/entity_signals_mapping_service/credentials.rb +3 -0
- data/lib/google/ads/ad_manager/v1/geo_target_service/credentials.rb +47 -0
- data/lib/google/ads/ad_manager/v1/geo_target_service/paths.rb +64 -0
- data/lib/google/ads/ad_manager/v1/geo_target_service/rest/client.rb +538 -0
- data/lib/google/ads/ad_manager/v1/geo_target_service/rest/service_stub.rb +203 -0
- data/lib/google/ads/ad_manager/v1/geo_target_service/rest.rb +52 -0
- data/lib/google/ads/ad_manager/v1/geo_target_service.rb +48 -0
- data/lib/google/ads/ad_manager/v1/network_service/credentials.rb +3 -0
- data/lib/google/ads/ad_manager/v1/network_service/rest/client.rb +1 -1
- data/lib/google/ads/ad_manager/v1/network_service/rest.rb +1 -1
- data/lib/google/ads/ad_manager/v1/network_service.rb +1 -1
- data/lib/google/ads/ad_manager/v1/operating_system_service/credentials.rb +47 -0
- data/lib/google/ads/ad_manager/v1/operating_system_service/paths.rb +64 -0
- data/lib/google/ads/ad_manager/v1/operating_system_service/rest/client.rb +538 -0
- data/lib/google/ads/ad_manager/v1/operating_system_service/rest/service_stub.rb +203 -0
- data/lib/google/ads/ad_manager/v1/operating_system_service/rest.rb +52 -0
- data/lib/google/ads/ad_manager/v1/operating_system_service.rb +48 -0
- data/lib/google/ads/ad_manager/v1/operating_system_version_service/credentials.rb +47 -0
- data/lib/google/ads/ad_manager/v1/operating_system_version_service/paths.rb +64 -0
- data/lib/google/ads/ad_manager/v1/operating_system_version_service/rest/client.rb +541 -0
- data/lib/google/ads/ad_manager/v1/operating_system_version_service/rest/service_stub.rb +203 -0
- data/lib/google/ads/ad_manager/v1/operating_system_version_service/rest.rb +52 -0
- data/lib/google/ads/ad_manager/v1/operating_system_version_service.rb +48 -0
- data/lib/google/ads/ad_manager/v1/order_service/credentials.rb +3 -0
- data/lib/google/ads/ad_manager/v1/placement_service/credentials.rb +3 -0
- data/lib/google/ads/ad_manager/v1/private_auction_deal_service/credentials.rb +47 -0
- data/lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb +217 -0
- data/lib/google/ads/ad_manager/v1/private_auction_deal_service/rest/client.rb +719 -0
- data/lib/google/ads/ad_manager/v1/private_auction_deal_service/rest/service_stub.rb +327 -0
- data/lib/google/ads/ad_manager/v1/private_auction_deal_service/rest.rb +52 -0
- data/lib/google/ads/ad_manager/v1/private_auction_deal_service.rb +48 -0
- data/lib/google/ads/ad_manager/v1/private_auction_service/credentials.rb +47 -0
- data/lib/google/ads/ad_manager/v1/private_auction_service/paths.rb +81 -0
- data/lib/google/ads/ad_manager/v1/private_auction_service/rest/client.rb +718 -0
- data/lib/google/ads/ad_manager/v1/private_auction_service/rest/service_stub.rb +327 -0
- data/lib/google/ads/ad_manager/v1/private_auction_service/rest.rb +52 -0
- data/lib/google/ads/ad_manager/v1/private_auction_service.rb +48 -0
- data/lib/google/ads/ad_manager/v1/programmatic_buyer_service/credentials.rb +47 -0
- data/lib/google/ads/ad_manager/v1/programmatic_buyer_service/paths.rb +64 -0
- data/lib/google/ads/ad_manager/v1/programmatic_buyer_service/rest/client.rb +539 -0
- data/lib/google/ads/ad_manager/v1/programmatic_buyer_service/rest/service_stub.rb +203 -0
- data/lib/google/ads/ad_manager/v1/programmatic_buyer_service/rest.rb +52 -0
- data/lib/google/ads/ad_manager/v1/programmatic_buyer_service.rb +48 -0
- data/lib/google/ads/ad_manager/v1/report_service/credentials.rb +3 -0
- data/lib/google/ads/ad_manager/v1/report_service/rest/operations.rb +0 -7
- data/lib/google/ads/ad_manager/v1/rest.rb +10 -1
- data/lib/google/ads/ad_manager/v1/role_service/credentials.rb +3 -0
- data/lib/google/ads/ad_manager/v1/taxonomy_category_service/credentials.rb +3 -0
- data/lib/google/ads/ad_manager/v1/user_service/credentials.rb +3 -0
- data/lib/google/ads/ad_manager/v1/version.rb +1 -1
- data/lib/google/ads/ad_manager/v1.rb +10 -1
- data/lib/google/ads/admanager/v1/ad_break_messages_pb.rb +50 -0
- data/lib/google/ads/admanager/v1/ad_break_service_pb.rb +57 -0
- data/lib/google/ads/admanager/v1/ad_break_service_services_pb.rb +93 -0
- data/lib/google/ads/admanager/v1/ad_unit_messages_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/ad_unit_service_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/bandwidth_group_messages_pb.rb +45 -0
- data/lib/google/ads/admanager/v1/bandwidth_group_service_pb.rb +51 -0
- data/lib/google/ads/admanager/v1/bandwidth_group_service_services_pb.rb +47 -0
- data/lib/google/ads/admanager/v1/{company_credit_status_enum_pb.rb → company_enums_pb.rb} +4 -2
- data/lib/google/ads/admanager/v1/company_messages_pb.rb +2 -3
- data/lib/google/ads/admanager/v1/company_service_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/contact_messages_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/custom_field_messages_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/custom_field_service_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/custom_targeting_key_service_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/custom_targeting_value_messages_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/custom_targeting_value_service_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/deal_buyer_permission_type_enum_pb.rb +43 -0
- data/lib/google/ads/admanager/v1/device_category_messages_pb.rb +45 -0
- data/lib/google/ads/admanager/v1/device_category_service_pb.rb +51 -0
- data/lib/google/ads/admanager/v1/device_category_service_services_pb.rb +47 -0
- data/lib/google/ads/admanager/v1/early_ad_break_notification_enums_pb.rb +43 -0
- data/lib/google/ads/admanager/v1/entity_signals_mapping_messages_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/entity_signals_mapping_service_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/geo_target_messages_pb.rb +45 -0
- data/lib/google/ads/admanager/v1/geo_target_service_pb.rb +51 -0
- data/lib/google/ads/admanager/v1/geo_target_service_services_pb.rb +47 -0
- data/lib/google/ads/admanager/v1/{company_type_enum_pb.rb → live_stream_event_messages_pb.rb} +6 -4
- data/lib/google/ads/admanager/v1/network_service_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/network_service_services_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/operating_system_messages_pb.rb +45 -0
- data/lib/google/ads/admanager/v1/operating_system_service_pb.rb +51 -0
- data/lib/google/ads/admanager/v1/operating_system_service_services_pb.rb +47 -0
- data/lib/google/ads/admanager/v1/operating_system_version_messages_pb.rb +45 -0
- data/lib/google/ads/admanager/v1/operating_system_version_service_pb.rb +51 -0
- data/lib/google/ads/admanager/v1/operating_system_version_service_services_pb.rb +47 -0
- data/lib/google/ads/admanager/v1/order_messages_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/order_service_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/placement_messages_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/placement_service_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/private_auction_deal_messages_pb.rb +56 -0
- data/lib/google/ads/admanager/v1/private_auction_deal_service_pb.rb +55 -0
- data/lib/google/ads/admanager/v1/private_auction_deal_service_services_pb.rb +51 -0
- data/lib/google/ads/admanager/v1/private_auction_messages_pb.rb +47 -0
- data/lib/google/ads/admanager/v1/private_auction_service_pb.rb +55 -0
- data/lib/google/ads/admanager/v1/private_auction_service_services_pb.rb +51 -0
- data/lib/google/ads/admanager/v1/private_marketplace_enums_pb.rb +43 -0
- data/lib/google/ads/admanager/v1/programmatic_buyer_messages_pb.rb +45 -0
- data/lib/google/ads/admanager/v1/programmatic_buyer_service_pb.rb +51 -0
- data/lib/google/ads/admanager/v1/programmatic_buyer_service_services_pb.rb +47 -0
- data/lib/google/ads/admanager/v1/report_messages_pb.rb +83 -0
- data/lib/google/ads/admanager/v1/report_service_pb.rb +4 -38
- data/lib/google/ads/admanager/v1/request_platform_enum_pb.rb +43 -0
- data/lib/google/ads/admanager/v1/role_messages_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/role_service_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/targeted_video_bumper_type_enum_pb.rb +43 -0
- data/lib/google/ads/admanager/v1/targeting_pb.rb +63 -0
- data/lib/google/ads/admanager/v1/taxonomy_category_messages_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/taxonomy_category_service_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/team_messages_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/user_messages_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/user_service_pb.rb +1 -1
- data/lib/google/ads/admanager/v1/video_position_enum_pb.rb +43 -0
- data/proto_docs/google/ads/admanager/v1/ad_break_messages.rb +112 -0
- data/proto_docs/google/ads/admanager/v1/ad_break_service.rb +150 -0
- data/proto_docs/google/ads/admanager/v1/ad_unit_messages.rb +10 -9
- data/proto_docs/google/ads/admanager/v1/bandwidth_group_messages.rb +40 -0
- data/proto_docs/google/ads/admanager/v1/bandwidth_group_service.rb +99 -0
- data/proto_docs/google/ads/admanager/v1/{company_credit_status_enum.rb → company_enums.rb} +30 -1
- data/proto_docs/google/ads/admanager/v1/company_messages.rb +3 -3
- data/proto_docs/google/ads/admanager/v1/contact_messages.rb +3 -4
- data/proto_docs/google/ads/admanager/v1/custom_field_messages.rb +3 -3
- data/proto_docs/google/ads/admanager/v1/custom_field_value.rb +0 -1
- data/proto_docs/google/ads/admanager/v1/custom_targeting_value_messages.rb +6 -1
- data/proto_docs/google/ads/admanager/v1/custom_targeting_value_service.rb +2 -2
- data/proto_docs/google/ads/admanager/v1/deal_buyer_permission_type_enum.rb +45 -0
- data/proto_docs/google/ads/admanager/v1/device_category_messages.rb +39 -0
- data/proto_docs/google/ads/admanager/v1/device_category_service.rb +99 -0
- data/proto_docs/google/ads/admanager/v1/early_ad_break_notification_enums.rb +51 -0
- data/proto_docs/google/ads/admanager/v1/entity_signals_mapping_messages.rb +1 -1
- data/proto_docs/google/ads/admanager/v1/geo_target_messages.rb +59 -0
- data/proto_docs/google/ads/admanager/v1/geo_target_service.rb +99 -0
- data/proto_docs/google/ads/admanager/v1/live_stream_event_messages.rb +41 -0
- data/proto_docs/google/ads/admanager/v1/network_messages.rb +1 -1
- data/proto_docs/google/ads/admanager/v1/operating_system_messages.rb +39 -0
- data/proto_docs/google/ads/admanager/v1/operating_system_service.rb +99 -0
- data/proto_docs/google/ads/admanager/v1/operating_system_version_messages.rb +46 -0
- data/proto_docs/google/ads/admanager/v1/operating_system_version_service.rb +102 -0
- data/proto_docs/google/ads/admanager/v1/placement_messages.rb +7 -8
- data/proto_docs/google/ads/admanager/v1/private_auction_deal_messages.rb +98 -0
- data/proto_docs/google/ads/admanager/v1/private_auction_deal_service.rb +130 -0
- data/proto_docs/google/ads/admanager/v1/private_auction_messages.rb +61 -0
- data/proto_docs/google/ads/admanager/v1/private_auction_service.rb +129 -0
- data/proto_docs/google/ads/admanager/v1/{company_type_enum.rb → private_marketplace_enums.rb} +17 -18
- data/proto_docs/google/ads/admanager/v1/programmatic_buyer_messages.rb +61 -0
- data/proto_docs/google/ads/admanager/v1/programmatic_buyer_service.rb +100 -0
- data/proto_docs/google/ads/admanager/v1/report_messages.rb +3587 -0
- data/proto_docs/google/ads/admanager/v1/report_service.rb +0 -3300
- data/proto_docs/google/ads/admanager/v1/request_platform_enum.rb +53 -0
- data/proto_docs/google/ads/admanager/v1/size.rb +6 -10
- data/proto_docs/google/ads/admanager/v1/targeted_video_bumper_type_enum.rb +48 -0
- data/proto_docs/google/ads/admanager/v1/targeting.rb +279 -0
- data/proto_docs/google/ads/admanager/v1/team_messages.rb +0 -4
- data/proto_docs/google/ads/admanager/v1/video_position_enum.rb +51 -0
- data/proto_docs/google/type/money.rb +43 -0
- metadata +122 -6
@@ -0,0 +1,203 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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 "google/ads/admanager/v1/operating_system_version_service_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Ads
|
23
|
+
module AdManager
|
24
|
+
module V1
|
25
|
+
module OperatingSystemVersionService
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the OperatingSystemVersionService service.
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
35
|
+
# These require statements are intentionally placed here to initialize
|
36
|
+
# the REST modules only when it's required.
|
37
|
+
require "gapic/rest"
|
38
|
+
|
39
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
40
|
+
endpoint_template: endpoint_template,
|
41
|
+
universe_domain: universe_domain,
|
42
|
+
credentials: credentials,
|
43
|
+
numeric_enums: true,
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
47
|
+
end
|
48
|
+
|
49
|
+
##
|
50
|
+
# The effective universe domain
|
51
|
+
#
|
52
|
+
# @return [String]
|
53
|
+
#
|
54
|
+
def universe_domain
|
55
|
+
@client_stub.universe_domain
|
56
|
+
end
|
57
|
+
|
58
|
+
##
|
59
|
+
# The effective endpoint
|
60
|
+
#
|
61
|
+
# @return [String]
|
62
|
+
#
|
63
|
+
def endpoint
|
64
|
+
@client_stub.endpoint
|
65
|
+
end
|
66
|
+
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
76
|
+
##
|
77
|
+
# Baseline implementation for the get_operating_system_version REST call
|
78
|
+
#
|
79
|
+
# @param request_pb [::Google::Ads::AdManager::V1::GetOperatingSystemVersionRequest]
|
80
|
+
# A request object representing the call parameters. Required.
|
81
|
+
# @param options [::Gapic::CallOptions]
|
82
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
83
|
+
#
|
84
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
85
|
+
# @yieldparam result [::Google::Ads::AdManager::V1::OperatingSystemVersion]
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
87
|
+
#
|
88
|
+
# @return [::Google::Ads::AdManager::V1::OperatingSystemVersion]
|
89
|
+
# A result object deserialized from the server's reply
|
90
|
+
def get_operating_system_version request_pb, options = nil
|
91
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
92
|
+
|
93
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_operating_system_version_request request_pb
|
94
|
+
query_string_params = if query_string_params.any?
|
95
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
96
|
+
else
|
97
|
+
{}
|
98
|
+
end
|
99
|
+
|
100
|
+
response = @client_stub.make_http_request(
|
101
|
+
verb,
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "get_operating_system_version",
|
106
|
+
options: options
|
107
|
+
)
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
109
|
+
result = ::Google::Ads::AdManager::V1::OperatingSystemVersion.decode_json response.body, ignore_unknown_fields: true
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
##
|
117
|
+
# Baseline implementation for the list_operating_system_versions REST call
|
118
|
+
#
|
119
|
+
# @param request_pb [::Google::Ads::AdManager::V1::ListOperatingSystemVersionsRequest]
|
120
|
+
# A request object representing the call parameters. Required.
|
121
|
+
# @param options [::Gapic::CallOptions]
|
122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
123
|
+
#
|
124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
125
|
+
# @yieldparam result [::Google::Ads::AdManager::V1::ListOperatingSystemVersionsResponse]
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
127
|
+
#
|
128
|
+
# @return [::Google::Ads::AdManager::V1::ListOperatingSystemVersionsResponse]
|
129
|
+
# A result object deserialized from the server's reply
|
130
|
+
def list_operating_system_versions request_pb, options = nil
|
131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
132
|
+
|
133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_operating_system_versions_request request_pb
|
134
|
+
query_string_params = if query_string_params.any?
|
135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
136
|
+
else
|
137
|
+
{}
|
138
|
+
end
|
139
|
+
|
140
|
+
response = @client_stub.make_http_request(
|
141
|
+
verb,
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "list_operating_system_versions",
|
146
|
+
options: options
|
147
|
+
)
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
149
|
+
result = ::Google::Ads::AdManager::V1::ListOperatingSystemVersionsResponse.decode_json response.body, ignore_unknown_fields: true
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
##
|
157
|
+
# @private
|
158
|
+
#
|
159
|
+
# GRPC transcoding helper method for the get_operating_system_version REST call
|
160
|
+
#
|
161
|
+
# @param request_pb [::Google::Ads::AdManager::V1::GetOperatingSystemVersionRequest]
|
162
|
+
# A request object representing the call parameters. Required.
|
163
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
164
|
+
# Uri, Body, Query string parameters
|
165
|
+
def self.transcode_get_operating_system_version_request request_pb
|
166
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
167
|
+
.with_bindings(
|
168
|
+
uri_method: :get,
|
169
|
+
uri_template: "/v1/{name}",
|
170
|
+
matches: [
|
171
|
+
["name", %r{^networks/[^/]+/operatingSystemVersions/[^/]+/?$}, false]
|
172
|
+
]
|
173
|
+
)
|
174
|
+
transcoder.transcode request_pb
|
175
|
+
end
|
176
|
+
|
177
|
+
##
|
178
|
+
# @private
|
179
|
+
#
|
180
|
+
# GRPC transcoding helper method for the list_operating_system_versions REST call
|
181
|
+
#
|
182
|
+
# @param request_pb [::Google::Ads::AdManager::V1::ListOperatingSystemVersionsRequest]
|
183
|
+
# A request object representing the call parameters. Required.
|
184
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
185
|
+
# Uri, Body, Query string parameters
|
186
|
+
def self.transcode_list_operating_system_versions_request request_pb
|
187
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
188
|
+
.with_bindings(
|
189
|
+
uri_method: :get,
|
190
|
+
uri_template: "/v1/{parent}/operatingSystemVersions",
|
191
|
+
matches: [
|
192
|
+
["parent", %r{^networks/[^/]+/?$}, false]
|
193
|
+
]
|
194
|
+
)
|
195
|
+
transcoder.transcode request_pb
|
196
|
+
end
|
197
|
+
end
|
198
|
+
end
|
199
|
+
end
|
200
|
+
end
|
201
|
+
end
|
202
|
+
end
|
203
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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 "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/ads/ad_manager/v1/version"
|
24
|
+
|
25
|
+
require "google/ads/ad_manager/v1/operating_system_version_service/credentials"
|
26
|
+
require "google/ads/ad_manager/v1/operating_system_version_service/paths"
|
27
|
+
require "google/ads/ad_manager/v1/operating_system_version_service/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Ads
|
31
|
+
module AdManager
|
32
|
+
module V1
|
33
|
+
##
|
34
|
+
# Provides methods for handling `OperatingSystemVersion` objects.
|
35
|
+
#
|
36
|
+
# To load this service and instantiate a REST client:
|
37
|
+
#
|
38
|
+
# require "google/ads/ad_manager/v1/operating_system_version_service/rest"
|
39
|
+
# client = ::Google::Ads::AdManager::V1::OperatingSystemVersionService::Rest::Client.new
|
40
|
+
#
|
41
|
+
module OperatingSystemVersionService
|
42
|
+
# Client for the REST transport
|
43
|
+
module Rest
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
52
|
+
require "google/ads/ad_manager/v1/operating_system_version_service/rest/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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 "gapic/config"
|
20
|
+
require "gapic/config/method"
|
21
|
+
|
22
|
+
require "google/ads/ad_manager/v1/version"
|
23
|
+
|
24
|
+
require "google/ads/ad_manager/v1/operating_system_version_service/credentials"
|
25
|
+
require "google/ads/ad_manager/v1/operating_system_version_service/paths"
|
26
|
+
require "google/ads/ad_manager/v1/operating_system_version_service/rest"
|
27
|
+
|
28
|
+
module Google
|
29
|
+
module Ads
|
30
|
+
module AdManager
|
31
|
+
module V1
|
32
|
+
##
|
33
|
+
# Provides methods for handling `OperatingSystemVersion` objects.
|
34
|
+
#
|
35
|
+
# @example Load this service and instantiate a REST client
|
36
|
+
#
|
37
|
+
# require "google/ads/ad_manager/v1/operating_system_version_service/rest"
|
38
|
+
# client = ::Google::Ads::AdManager::V1::OperatingSystemVersionService::Rest::Client.new
|
39
|
+
#
|
40
|
+
module OperatingSystemVersionService
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
helper_path = ::File.join __dir__, "operating_system_version_service", "helpers.rb"
|
48
|
+
require "google/ads/ad_manager/v1/operating_system_version_service/helpers" if ::File.file? helper_path
|
@@ -25,6 +25,9 @@ module Google
|
|
25
25
|
module OrderService
|
26
26
|
# Credentials for the OrderService API.
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/admanager"
|
30
|
+
]
|
28
31
|
self.env_vars = [
|
29
32
|
"GOOGLE_CLOUD_CREDENTIALS",
|
30
33
|
"GOOGLE_CLOUD_KEYFILE",
|
@@ -25,6 +25,9 @@ module Google
|
|
25
25
|
module PlacementService
|
26
26
|
# Credentials for the PlacementService API.
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/admanager"
|
30
|
+
]
|
28
31
|
self.env_vars = [
|
29
32
|
"GOOGLE_CLOUD_CREDENTIALS",
|
30
33
|
"GOOGLE_CLOUD_KEYFILE",
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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 PrivateAuctionDealService
|
26
|
+
# Credentials for the PrivateAuctionDealService API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/admanager"
|
30
|
+
]
|
31
|
+
self.env_vars = [
|
32
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
33
|
+
"GOOGLE_CLOUD_KEYFILE",
|
34
|
+
"GCLOUD_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
37
|
+
"GCLOUD_KEYFILE_JSON"
|
38
|
+
]
|
39
|
+
self.paths = [
|
40
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
41
|
+
]
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,217 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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 PrivateAuctionDealService
|
25
|
+
# Path helper methods for the PrivateAuctionDealService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified AdUnit resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `networks/{network_code}/adUnits/{ad_unit}`
|
33
|
+
#
|
34
|
+
# @param network_code [String]
|
35
|
+
# @param ad_unit [String]
|
36
|
+
#
|
37
|
+
# @return [::String]
|
38
|
+
def ad_unit_path network_code:, ad_unit:
|
39
|
+
raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"
|
40
|
+
|
41
|
+
"networks/#{network_code}/adUnits/#{ad_unit}"
|
42
|
+
end
|
43
|
+
|
44
|
+
##
|
45
|
+
# Create a fully-qualified BandwidthGroup resource string.
|
46
|
+
#
|
47
|
+
# The resource will be in the following format:
|
48
|
+
#
|
49
|
+
# `networks/{network_code}/bandwidthGroups/{bandwidth_group}`
|
50
|
+
#
|
51
|
+
# @param network_code [String]
|
52
|
+
# @param bandwidth_group [String]
|
53
|
+
#
|
54
|
+
# @return [::String]
|
55
|
+
def bandwidth_group_path network_code:, bandwidth_group:
|
56
|
+
raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"
|
57
|
+
|
58
|
+
"networks/#{network_code}/bandwidthGroups/#{bandwidth_group}"
|
59
|
+
end
|
60
|
+
|
61
|
+
##
|
62
|
+
# Create a fully-qualified CustomTargetingKey resource string.
|
63
|
+
#
|
64
|
+
# The resource will be in the following format:
|
65
|
+
#
|
66
|
+
# `networks/{network_code}/customTargetingKeys/{custom_targeting_key}`
|
67
|
+
#
|
68
|
+
# @param network_code [String]
|
69
|
+
# @param custom_targeting_key [String]
|
70
|
+
#
|
71
|
+
# @return [::String]
|
72
|
+
def custom_targeting_key_path network_code:, custom_targeting_key:
|
73
|
+
raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"
|
74
|
+
|
75
|
+
"networks/#{network_code}/customTargetingKeys/#{custom_targeting_key}"
|
76
|
+
end
|
77
|
+
|
78
|
+
##
|
79
|
+
# Create a fully-qualified CustomTargetingValue resource string.
|
80
|
+
#
|
81
|
+
# The resource will be in the following format:
|
82
|
+
#
|
83
|
+
# `networks/{network_code}/customTargetingValues/{custom_targeting_value}`
|
84
|
+
#
|
85
|
+
# @param network_code [String]
|
86
|
+
# @param custom_targeting_value [String]
|
87
|
+
#
|
88
|
+
# @return [::String]
|
89
|
+
def custom_targeting_value_path network_code:, custom_targeting_value:
|
90
|
+
raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"
|
91
|
+
|
92
|
+
"networks/#{network_code}/customTargetingValues/#{custom_targeting_value}"
|
93
|
+
end
|
94
|
+
|
95
|
+
##
|
96
|
+
# Create a fully-qualified DeviceCategory resource string.
|
97
|
+
#
|
98
|
+
# The resource will be in the following format:
|
99
|
+
#
|
100
|
+
# `networks/{network_code}/deviceCategories/{device_category}`
|
101
|
+
#
|
102
|
+
# @param network_code [String]
|
103
|
+
# @param device_category [String]
|
104
|
+
#
|
105
|
+
# @return [::String]
|
106
|
+
def device_category_path network_code:, device_category:
|
107
|
+
raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"
|
108
|
+
|
109
|
+
"networks/#{network_code}/deviceCategories/#{device_category}"
|
110
|
+
end
|
111
|
+
|
112
|
+
##
|
113
|
+
# Create a fully-qualified GeoTarget resource string.
|
114
|
+
#
|
115
|
+
# The resource will be in the following format:
|
116
|
+
#
|
117
|
+
# `networks/{network_code}/geoTargets/{geo_target}`
|
118
|
+
#
|
119
|
+
# @param network_code [String]
|
120
|
+
# @param geo_target [String]
|
121
|
+
#
|
122
|
+
# @return [::String]
|
123
|
+
def geo_target_path network_code:, geo_target:
|
124
|
+
raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"
|
125
|
+
|
126
|
+
"networks/#{network_code}/geoTargets/#{geo_target}"
|
127
|
+
end
|
128
|
+
|
129
|
+
##
|
130
|
+
# Create a fully-qualified Network resource string.
|
131
|
+
#
|
132
|
+
# The resource will be in the following format:
|
133
|
+
#
|
134
|
+
# `networks/{network_code}`
|
135
|
+
#
|
136
|
+
# @param network_code [String]
|
137
|
+
#
|
138
|
+
# @return [::String]
|
139
|
+
def network_path network_code:
|
140
|
+
"networks/#{network_code}"
|
141
|
+
end
|
142
|
+
|
143
|
+
##
|
144
|
+
# Create a fully-qualified OperatingSystem resource string.
|
145
|
+
#
|
146
|
+
# The resource will be in the following format:
|
147
|
+
#
|
148
|
+
# `networks/{network_code}/operatingSystems/{operating_system}`
|
149
|
+
#
|
150
|
+
# @param network_code [String]
|
151
|
+
# @param operating_system [String]
|
152
|
+
#
|
153
|
+
# @return [::String]
|
154
|
+
def operating_system_path network_code:, operating_system:
|
155
|
+
raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"
|
156
|
+
|
157
|
+
"networks/#{network_code}/operatingSystems/#{operating_system}"
|
158
|
+
end
|
159
|
+
|
160
|
+
##
|
161
|
+
# Create a fully-qualified OperatingSystemVersion resource string.
|
162
|
+
#
|
163
|
+
# The resource will be in the following format:
|
164
|
+
#
|
165
|
+
# `networks/{network_code}/operatingSystemVersions/{operating_system_version}`
|
166
|
+
#
|
167
|
+
# @param network_code [String]
|
168
|
+
# @param operating_system_version [String]
|
169
|
+
#
|
170
|
+
# @return [::String]
|
171
|
+
def operating_system_version_path network_code:, operating_system_version:
|
172
|
+
raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"
|
173
|
+
|
174
|
+
"networks/#{network_code}/operatingSystemVersions/#{operating_system_version}"
|
175
|
+
end
|
176
|
+
|
177
|
+
##
|
178
|
+
# Create a fully-qualified Placement resource string.
|
179
|
+
#
|
180
|
+
# The resource will be in the following format:
|
181
|
+
#
|
182
|
+
# `networks/{network_code}/placements/{placement}`
|
183
|
+
#
|
184
|
+
# @param network_code [String]
|
185
|
+
# @param placement [String]
|
186
|
+
#
|
187
|
+
# @return [::String]
|
188
|
+
def placement_path network_code:, placement:
|
189
|
+
raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"
|
190
|
+
|
191
|
+
"networks/#{network_code}/placements/#{placement}"
|
192
|
+
end
|
193
|
+
|
194
|
+
##
|
195
|
+
# Create a fully-qualified PrivateAuctionDeal resource string.
|
196
|
+
#
|
197
|
+
# The resource will be in the following format:
|
198
|
+
#
|
199
|
+
# `networks/{network_code}/privateAuctionDeals/{private_auction_deal}`
|
200
|
+
#
|
201
|
+
# @param network_code [String]
|
202
|
+
# @param private_auction_deal [String]
|
203
|
+
#
|
204
|
+
# @return [::String]
|
205
|
+
def private_auction_deal_path network_code:, private_auction_deal:
|
206
|
+
raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/"
|
207
|
+
|
208
|
+
"networks/#{network_code}/privateAuctionDeals/#{private_auction_deal}"
|
209
|
+
end
|
210
|
+
|
211
|
+
extend self
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
217
|
+
end
|