@google-ads/admanager 0.2.0 → 0.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.
- package/README.md +27 -2
- package/build/protos/google/ads/admanager/v1/ad_break_messages.proto +134 -0
- package/build/protos/google/ads/admanager/v1/ad_break_service.proto +269 -0
- package/build/protos/google/ads/admanager/v1/ad_unit_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +32 -26
- package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/admanager_error.proto +1 -1
- package/build/protos/google/ads/admanager/v1/applied_label.proto +1 -1
- package/build/protos/google/ads/admanager/v1/bandwidth_group_messages.proto +46 -0
- package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/company_enums.proto +123 -0
- package/build/protos/google/ads/admanager/v1/company_messages.proto +6 -7
- package/build/protos/google/ads/admanager/v1/company_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/contact_messages.proto +4 -4
- package/build/protos/google/ads/admanager/v1/custom_field_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +12 -11
- package/build/protos/google/ads/admanager/v1/custom_field_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/custom_field_value.proto +1 -2
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +14 -3
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +14 -6
- package/build/protos/google/ads/admanager/v1/deal_buyer_permission_type_enum.proto +41 -0
- package/build/protos/google/ads/admanager/v1/device_category_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/device_category_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/early_ad_break_notification_enums.proto +47 -0
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_messages.proto +4 -4
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +6 -4
- package/build/protos/google/ads/admanager/v1/environment_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/frequency_cap.proto +1 -1
- package/build/protos/google/ads/admanager/v1/geo_target_messages.proto +70 -0
- package/build/protos/google/ads/admanager/v1/geo_target_service.proto +128 -0
- package/build/protos/google/ads/admanager/v1/label_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/live_stream_event_messages.proto +47 -0
- package/build/protos/google/ads/admanager/v1/network_messages.proto +2 -2
- package/build/protos/google/ads/admanager/v1/network_service.proto +4 -2
- package/build/protos/google/ads/admanager/v1/operating_system_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/operating_system_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/operating_system_version_messages.proto +52 -0
- package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +133 -0
- package/build/protos/google/ads/admanager/v1/order_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/order_messages.proto +24 -20
- package/build/protos/google/ads/admanager/v1/order_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/placement_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/placement_messages.proto +14 -14
- package/build/protos/google/ads/admanager/v1/placement_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/private_auction_deal_messages.proto +119 -0
- package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +184 -0
- package/build/protos/google/ads/admanager/v1/private_auction_messages.proto +74 -0
- package/build/protos/google/ads/admanager/v1/private_auction_service.proto +180 -0
- package/build/protos/google/ads/admanager/v1/private_marketplace_enums.proto +50 -0
- package/build/protos/google/ads/admanager/v1/programmatic_buyer_messages.proto +72 -0
- package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +131 -0
- package/build/protos/google/ads/admanager/v1/report_messages.proto +3536 -0
- package/build/protos/google/ads/admanager/v1/report_service.proto +5 -3247
- package/build/protos/google/ads/admanager/v1/request_platform_enum.proto +49 -0
- package/build/protos/google/ads/admanager/v1/role_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/role_messages.proto +6 -6
- package/build/protos/google/ads/admanager/v1/role_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/size.proto +7 -11
- package/build/protos/google/ads/admanager/v1/size_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/targeted_video_bumper_type_enum.proto +44 -0
- package/build/protos/google/ads/admanager/v1/targeting.proto +328 -0
- package/build/protos/google/ads/admanager/v1/taxonomy_category_messages.proto +7 -6
- package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/team_messages.proto +1 -5
- package/build/protos/google/ads/admanager/v1/time_unit_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/user_messages.proto +10 -9
- package/build/protos/google/ads/admanager/v1/user_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/video_position_enum.proto +47 -0
- package/build/protos/protos.d.ts +15832 -7575
- package/build/protos/protos.js +57744 -36372
- package/build/protos/protos.json +5795 -2511
- package/build/src/index.d.ts +28 -1
- package/build/src/index.js +20 -17
- package/build/src/index.js.map +1 -1
- package/build/src/v1/ad_break_service_client.d.ts +1040 -0
- package/build/src/v1/ad_break_service_client.js +1483 -0
- package/build/src/v1/ad_break_service_client.js.map +1 -0
- package/build/src/v1/ad_break_service_client_config.json +46 -0
- package/build/src/v1/ad_break_service_proto_list.json +74 -0
- package/build/src/v1/ad_unit_service_client.d.ts +331 -91
- package/build/src/v1/ad_unit_service_client.js +417 -95
- package/build/src/v1/ad_unit_service_client.js.map +1 -1
- package/build/src/v1/ad_unit_service_proto_list.json +29 -3
- package/build/src/v1/bandwidth_group_service_client.d.ts +904 -0
- package/build/src/v1/bandwidth_group_service_client.js +1369 -0
- package/build/src/v1/bandwidth_group_service_client.js.map +1 -0
- package/build/src/v1/bandwidth_group_service_client_config.json +34 -0
- package/build/src/v1/bandwidth_group_service_proto_list.json +74 -0
- package/build/src/v1/company_service_client.d.ts +291 -51
- package/build/src/v1/company_service_client.js +404 -75
- package/build/src/v1/company_service_client.js.map +1 -1
- package/build/src/v1/company_service_proto_list.json +29 -3
- package/build/src/v1/custom_field_service_client.d.ts +291 -51
- package/build/src/v1/custom_field_service_client.js +405 -79
- package/build/src/v1/custom_field_service_client.js.map +1 -1
- package/build/src/v1/custom_field_service_proto_list.json +29 -3
- package/build/src/v1/custom_targeting_key_service_client.d.ts +291 -51
- package/build/src/v1/custom_targeting_key_service_client.js +406 -82
- package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_key_service_proto_list.json +29 -3
- package/build/src/v1/custom_targeting_value_service_client.d.ts +298 -58
- package/build/src/v1/custom_targeting_value_service_client.js +408 -84
- package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_value_service_proto_list.json +29 -3
- package/build/src/v1/device_category_service_client.d.ts +904 -0
- package/build/src/v1/device_category_service_client.js +1369 -0
- package/build/src/v1/device_category_service_client.js.map +1 -0
- package/build/src/v1/device_category_service_client_config.json +34 -0
- package/build/src/v1/device_category_service_proto_list.json +74 -0
- package/build/src/v1/entity_signals_mapping_service_client.d.ts +298 -58
- package/build/src/v1/entity_signals_mapping_service_client.js +450 -114
- package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
- package/build/src/v1/entity_signals_mapping_service_proto_list.json +29 -3
- package/build/src/v1/gapic_metadata.json +412 -0
- package/build/src/v1/geo_target_service_client.d.ts +904 -0
- package/build/src/v1/geo_target_service_client.js +1369 -0
- package/build/src/v1/geo_target_service_client.js.map +1 -0
- package/build/src/v1/geo_target_service_client_config.json +34 -0
- package/build/src/v1/geo_target_service_proto_list.json +74 -0
- package/build/src/v1/index.d.ts +9 -0
- package/build/src/v1/index.js +19 -1
- package/build/src/v1/index.js.map +1 -1
- package/build/src/v1/network_service_client.d.ts +252 -12
- package/build/src/v1/network_service_client.js +398 -62
- package/build/src/v1/network_service_client.js.map +1 -1
- package/build/src/v1/network_service_proto_list.json +29 -3
- package/build/src/v1/operating_system_service_client.d.ts +904 -0
- package/build/src/v1/operating_system_service_client.js +1369 -0
- package/build/src/v1/operating_system_service_client.js.map +1 -0
- package/build/src/v1/operating_system_service_client_config.json +34 -0
- package/build/src/v1/operating_system_service_proto_list.json +74 -0
- package/build/src/v1/operating_system_version_service_client.d.ts +911 -0
- package/build/src/v1/operating_system_version_service_client.js +1373 -0
- package/build/src/v1/operating_system_version_service_client.js.map +1 -0
- package/build/src/v1/operating_system_version_service_client_config.json +34 -0
- package/build/src/v1/operating_system_version_service_proto_list.json +74 -0
- package/build/src/v1/order_service_client.d.ts +296 -56
- package/build/src/v1/order_service_client.js +404 -75
- package/build/src/v1/order_service_client.js.map +1 -1
- package/build/src/v1/order_service_proto_list.json +29 -3
- package/build/src/v1/placement_service_client.d.ts +291 -51
- package/build/src/v1/placement_service_client.js +404 -75
- package/build/src/v1/placement_service_client.js.map +1 -1
- package/build/src/v1/placement_service_proto_list.json +29 -3
- package/build/src/v1/private_auction_deal_service_client.d.ts +965 -0
- package/build/src/v1/private_auction_deal_service_client.js +1445 -0
- package/build/src/v1/private_auction_deal_service_client.js.map +1 -0
- package/build/src/v1/private_auction_deal_service_client_config.json +42 -0
- package/build/src/v1/private_auction_deal_service_proto_list.json +74 -0
- package/build/src/v1/private_auction_service_client.d.ts +962 -0
- package/build/src/v1/private_auction_service_client.js +1443 -0
- package/build/src/v1/private_auction_service_client.js.map +1 -0
- package/build/src/v1/private_auction_service_client_config.json +42 -0
- package/build/src/v1/private_auction_service_proto_list.json +74 -0
- package/build/src/v1/programmatic_buyer_service_client.d.ts +905 -0
- package/build/src/v1/programmatic_buyer_service_client.js +1369 -0
- package/build/src/v1/programmatic_buyer_service_client.js.map +1 -0
- package/build/src/v1/programmatic_buyer_service_client_config.json +34 -0
- package/build/src/v1/programmatic_buyer_service_proto_list.json +74 -0
- package/build/src/v1/report_service_client.d.ts +351 -111
- package/build/src/v1/report_service_client.js +477 -163
- package/build/src/v1/report_service_client.js.map +1 -1
- package/build/src/v1/report_service_proto_list.json +29 -3
- package/build/src/v1/role_service_client.d.ts +290 -50
- package/build/src/v1/role_service_client.js +404 -75
- package/build/src/v1/role_service_client.js.map +1 -1
- package/build/src/v1/role_service_proto_list.json +29 -3
- package/build/src/v1/taxonomy_category_service_client.d.ts +291 -51
- package/build/src/v1/taxonomy_category_service_client.js +406 -81
- package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
- package/build/src/v1/taxonomy_category_service_proto_list.json +29 -3
- package/build/src/v1/user_service_client.d.ts +251 -11
- package/build/src/v1/user_service_client.js +389 -58
- package/build/src/v1/user_service_client.js.map +1 -1
- package/build/src/v1/user_service_proto_list.json +29 -3
- package/package.json +4 -4
- package/CHANGELOG.md +0 -33
|
@@ -95,21 +95,12 @@ class CustomTargetingValueServiceClient {
|
|
|
95
95
|
*/
|
|
96
96
|
constructor(opts, gaxInstance) {
|
|
97
97
|
// Ensure that options include all the required fields.
|
|
98
|
-
const staticMembers = this
|
|
99
|
-
|
|
100
|
-
if (opts?.universe_domain &&
|
|
101
|
-
opts?.universeDomain &&
|
|
102
|
-
opts?.universe_domain !== opts?.universeDomain) {
|
|
98
|
+
const staticMembers = this.constructor;
|
|
99
|
+
if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
|
|
103
100
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
104
101
|
}
|
|
105
|
-
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
106
|
-
|
|
107
|
-
: undefined;
|
|
108
|
-
this._universeDomain =
|
|
109
|
-
opts?.universeDomain ??
|
|
110
|
-
opts?.universe_domain ??
|
|
111
|
-
universeDomainEnvVar ??
|
|
112
|
-
'googleapis.com';
|
|
102
|
+
const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
|
|
103
|
+
this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
|
|
113
104
|
this._servicePath = 'admanager.' + this._universeDomain;
|
|
114
105
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
|
115
106
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
|
@@ -122,8 +113,7 @@ class CustomTargetingValueServiceClient {
|
|
|
122
113
|
else {
|
|
123
114
|
opts.fallback = opts.fallback ?? true;
|
|
124
115
|
}
|
|
125
|
-
const fallback = opts?.fallback ??
|
|
126
|
-
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
116
|
+
const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
127
117
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
128
118
|
// Request numeric enum values if REST transport is used.
|
|
129
119
|
opts.numericEnums = true;
|
|
@@ -152,7 +142,10 @@ class CustomTargetingValueServiceClient {
|
|
|
152
142
|
this.auth.defaultScopes = staticMembers.scopes;
|
|
153
143
|
}
|
|
154
144
|
// Determine the client header string.
|
|
155
|
-
const clientHeader = [
|
|
145
|
+
const clientHeader = [
|
|
146
|
+
`gax/${this._gaxModule.version}`,
|
|
147
|
+
`gapic/${version}`,
|
|
148
|
+
];
|
|
156
149
|
if (typeof process === 'object' && 'versions' in process) {
|
|
157
150
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
|
158
151
|
}
|
|
@@ -174,17 +167,27 @@ class CustomTargetingValueServiceClient {
|
|
|
174
167
|
// identifiers to uniquely identify resources within the API.
|
|
175
168
|
// Create useful helper objects for these.
|
|
176
169
|
this.pathTemplates = {
|
|
170
|
+
adBreakPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}'),
|
|
177
171
|
adUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adUnits/{ad_unit}'),
|
|
172
|
+
bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
|
|
178
173
|
companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
|
|
179
174
|
contactPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contacts/{contact}'),
|
|
180
175
|
customFieldPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customFields/{custom_field}'),
|
|
181
176
|
customTargetingKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingKeys/{custom_targeting_key}'),
|
|
182
|
-
customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/
|
|
177
|
+
customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingValues/{custom_targeting_value}'),
|
|
178
|
+
deviceCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCategories/{device_category}'),
|
|
183
179
|
entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
|
|
180
|
+
geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
|
|
184
181
|
labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
|
|
182
|
+
liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
|
|
185
183
|
networkPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}'),
|
|
184
|
+
operatingSystemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystems/{operating_system}'),
|
|
185
|
+
operatingSystemVersionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystemVersions/{operating_system_version}'),
|
|
186
186
|
orderPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/orders/{order}'),
|
|
187
187
|
placementPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/placements/{placement}'),
|
|
188
|
+
privateAuctionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctions/{private_auction}'),
|
|
189
|
+
privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
|
|
190
|
+
programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
|
|
188
191
|
reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
|
|
189
192
|
rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
|
|
190
193
|
taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
|
|
@@ -195,7 +198,7 @@ class CustomTargetingValueServiceClient {
|
|
|
195
198
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
|
196
199
|
// pages). Denote the keys used for pagination and results.
|
|
197
200
|
this.descriptors.page = {
|
|
198
|
-
listCustomTargetingValues: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'customTargetingValues')
|
|
201
|
+
listCustomTargetingValues: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'customTargetingValues')
|
|
199
202
|
};
|
|
200
203
|
// Put together the default options sent with requests.
|
|
201
204
|
this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.CustomTargetingValueService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -224,17 +227,13 @@ class CustomTargetingValueServiceClient {
|
|
|
224
227
|
}
|
|
225
228
|
// Put together the "service stub" for
|
|
226
229
|
// google.ads.admanager.v1.CustomTargetingValueService.
|
|
227
|
-
this.customTargetingValueServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
.CustomTargetingValueService, this._opts, this._providedCustomServicePath);
|
|
230
|
+
this.customTargetingValueServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
|
231
|
+
this._protos.lookupService('google.ads.admanager.v1.CustomTargetingValueService') :
|
|
232
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
233
|
+
this._protos.google.ads.admanager.v1.CustomTargetingValueService, this._opts, this._providedCustomServicePath);
|
|
232
234
|
// Iterate over each of the methods that the service provides
|
|
233
235
|
// and create an API call method for each.
|
|
234
|
-
const customTargetingValueServiceStubMethods = [
|
|
235
|
-
'getCustomTargetingValue',
|
|
236
|
-
'listCustomTargetingValues',
|
|
237
|
-
];
|
|
236
|
+
const customTargetingValueServiceStubMethods = ['getCustomTargetingValue', 'listCustomTargetingValues'];
|
|
238
237
|
for (const methodName of customTargetingValueServiceStubMethods) {
|
|
239
238
|
const callPromise = this.customTargetingValueServiceStub.then(stub => (...args) => {
|
|
240
239
|
if (this._terminated) {
|
|
@@ -245,7 +244,8 @@ class CustomTargetingValueServiceClient {
|
|
|
245
244
|
}, (err) => () => {
|
|
246
245
|
throw err;
|
|
247
246
|
});
|
|
248
|
-
const descriptor = this.descriptors.page[methodName] ||
|
|
247
|
+
const descriptor = this.descriptors.page[methodName] ||
|
|
248
|
+
undefined;
|
|
249
249
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
|
250
250
|
this.innerApiCalls[methodName] = apiCall;
|
|
251
251
|
}
|
|
@@ -257,8 +257,7 @@ class CustomTargetingValueServiceClient {
|
|
|
257
257
|
* @returns {string} The DNS address for this service.
|
|
258
258
|
*/
|
|
259
259
|
static get servicePath() {
|
|
260
|
-
if (typeof process === 'object' &&
|
|
261
|
-
typeof process.emitWarning === 'function') {
|
|
260
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
|
262
261
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
263
262
|
}
|
|
264
263
|
return 'admanager.googleapis.com';
|
|
@@ -269,8 +268,7 @@ class CustomTargetingValueServiceClient {
|
|
|
269
268
|
* @returns {string} The DNS address for this service.
|
|
270
269
|
*/
|
|
271
270
|
static get apiEndpoint() {
|
|
272
|
-
if (typeof process === 'object' &&
|
|
273
|
-
typeof process.emitWarning === 'function') {
|
|
271
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
|
274
272
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
275
273
|
}
|
|
276
274
|
return 'admanager.googleapis.com';
|
|
@@ -298,7 +296,9 @@ class CustomTargetingValueServiceClient {
|
|
|
298
296
|
* @returns {string[]} List of default scopes.
|
|
299
297
|
*/
|
|
300
298
|
static get scopes() {
|
|
301
|
-
return [
|
|
299
|
+
return [
|
|
300
|
+
'https://www.googleapis.com/auth/admanager'
|
|
301
|
+
];
|
|
302
302
|
}
|
|
303
303
|
/**
|
|
304
304
|
* Return the project ID used by this class.
|
|
@@ -324,11 +324,10 @@ class CustomTargetingValueServiceClient {
|
|
|
324
324
|
options = options || {};
|
|
325
325
|
options.otherArgs = options.otherArgs || {};
|
|
326
326
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
327
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
this.initialize();
|
|
327
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
328
|
+
'name': request.name ?? '',
|
|
329
|
+
});
|
|
330
|
+
this.initialize().catch(err => { throw err; });
|
|
332
331
|
this._log.info('getCustomTargetingValue request %j', request);
|
|
333
332
|
const wrappedCallback = callback
|
|
334
333
|
? (error, response, options, rawResponse) => {
|
|
@@ -336,11 +335,16 @@ class CustomTargetingValueServiceClient {
|
|
|
336
335
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
337
336
|
}
|
|
338
337
|
: undefined;
|
|
339
|
-
return this.innerApiCalls
|
|
340
|
-
.getCustomTargetingValue(request, options, wrappedCallback)
|
|
338
|
+
return this.innerApiCalls.getCustomTargetingValue(request, options, wrappedCallback)
|
|
341
339
|
?.then(([response, options, rawResponse]) => {
|
|
342
340
|
this._log.info('getCustomTargetingValue response %j', response);
|
|
343
341
|
return [response, options, rawResponse];
|
|
342
|
+
}).catch((error) => {
|
|
343
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
344
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
345
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
346
|
+
}
|
|
347
|
+
throw error;
|
|
344
348
|
});
|
|
345
349
|
}
|
|
346
350
|
listCustomTargetingValues(request, optionsOrCallback, callback) {
|
|
@@ -356,11 +360,10 @@ class CustomTargetingValueServiceClient {
|
|
|
356
360
|
options = options || {};
|
|
357
361
|
options.otherArgs = options.otherArgs || {};
|
|
358
362
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
359
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
this.initialize();
|
|
363
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
364
|
+
'parent': request.parent ?? '',
|
|
365
|
+
});
|
|
366
|
+
this.initialize().catch(err => { throw err; });
|
|
364
367
|
const wrappedCallback = callback
|
|
365
368
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
366
369
|
this._log.info('listCustomTargetingValues values %j', values);
|
|
@@ -382,7 +385,7 @@ class CustomTargetingValueServiceClient {
|
|
|
382
385
|
* @param {string} request.parent
|
|
383
386
|
* Required. The parent, which owns this collection of CustomTargetingValues.
|
|
384
387
|
* Format:
|
|
385
|
-
* `networks/{network_code}
|
|
388
|
+
* `networks/{network_code}`
|
|
386
389
|
* @param {number} [request.pageSize]
|
|
387
390
|
* Optional. The maximum number of `CustomTargetingValues` to return. The
|
|
388
391
|
* service may return fewer than this value. If unspecified, at most 50
|
|
@@ -422,13 +425,12 @@ class CustomTargetingValueServiceClient {
|
|
|
422
425
|
options = options || {};
|
|
423
426
|
options.otherArgs = options.otherArgs || {};
|
|
424
427
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
425
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
});
|
|
428
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
429
|
+
'parent': request.parent ?? '',
|
|
430
|
+
});
|
|
429
431
|
const defaultCallSettings = this._defaults['listCustomTargetingValues'];
|
|
430
432
|
const callSettings = defaultCallSettings.merge(options);
|
|
431
|
-
this.initialize();
|
|
433
|
+
this.initialize().catch(err => { throw err; });
|
|
432
434
|
this._log.info('listCustomTargetingValues stream %j', request);
|
|
433
435
|
return this.descriptors.page.listCustomTargetingValues.createStream(this.innerApiCalls.listCustomTargetingValues, request, callSettings);
|
|
434
436
|
}
|
|
@@ -441,7 +443,7 @@ class CustomTargetingValueServiceClient {
|
|
|
441
443
|
* @param {string} request.parent
|
|
442
444
|
* Required. The parent, which owns this collection of CustomTargetingValues.
|
|
443
445
|
* Format:
|
|
444
|
-
* `networks/{network_code}
|
|
446
|
+
* `networks/{network_code}`
|
|
445
447
|
* @param {number} [request.pageSize]
|
|
446
448
|
* Optional. The maximum number of `CustomTargetingValues` to return. The
|
|
447
449
|
* service may return fewer than this value. If unspecified, at most 50
|
|
@@ -482,19 +484,63 @@ class CustomTargetingValueServiceClient {
|
|
|
482
484
|
options = options || {};
|
|
483
485
|
options.otherArgs = options.otherArgs || {};
|
|
484
486
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
485
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
});
|
|
487
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
488
|
+
'parent': request.parent ?? '',
|
|
489
|
+
});
|
|
489
490
|
const defaultCallSettings = this._defaults['listCustomTargetingValues'];
|
|
490
491
|
const callSettings = defaultCallSettings.merge(options);
|
|
491
|
-
this.initialize();
|
|
492
|
+
this.initialize().catch(err => { throw err; });
|
|
492
493
|
this._log.info('listCustomTargetingValues iterate %j', request);
|
|
493
494
|
return this.descriptors.page.listCustomTargetingValues.asyncIterate(this.innerApiCalls['listCustomTargetingValues'], request, callSettings);
|
|
494
495
|
}
|
|
495
496
|
// --------------------
|
|
496
497
|
// -- Path templates --
|
|
497
498
|
// --------------------
|
|
499
|
+
/**
|
|
500
|
+
* Return a fully-qualified adBreak resource name string.
|
|
501
|
+
*
|
|
502
|
+
* @param {string} network_code
|
|
503
|
+
* @param {string} asset_key
|
|
504
|
+
* @param {string} ad_break
|
|
505
|
+
* @returns {string} Resource name string.
|
|
506
|
+
*/
|
|
507
|
+
adBreakPath(networkCode, assetKey, adBreak) {
|
|
508
|
+
return this.pathTemplates.adBreakPathTemplate.render({
|
|
509
|
+
network_code: networkCode,
|
|
510
|
+
asset_key: assetKey,
|
|
511
|
+
ad_break: adBreak,
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Parse the network_code from AdBreak resource.
|
|
516
|
+
*
|
|
517
|
+
* @param {string} adBreakName
|
|
518
|
+
* A fully-qualified path representing AdBreak resource.
|
|
519
|
+
* @returns {string} A string representing the network_code.
|
|
520
|
+
*/
|
|
521
|
+
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
522
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* Parse the asset_key from AdBreak resource.
|
|
526
|
+
*
|
|
527
|
+
* @param {string} adBreakName
|
|
528
|
+
* A fully-qualified path representing AdBreak resource.
|
|
529
|
+
* @returns {string} A string representing the asset_key.
|
|
530
|
+
*/
|
|
531
|
+
matchAssetKeyFromAdBreakName(adBreakName) {
|
|
532
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Parse the ad_break from AdBreak resource.
|
|
536
|
+
*
|
|
537
|
+
* @param {string} adBreakName
|
|
538
|
+
* A fully-qualified path representing AdBreak resource.
|
|
539
|
+
* @returns {string} A string representing the ad_break.
|
|
540
|
+
*/
|
|
541
|
+
matchAdBreakFromAdBreakName(adBreakName) {
|
|
542
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
|
|
543
|
+
}
|
|
498
544
|
/**
|
|
499
545
|
* Return a fully-qualified adUnit resource name string.
|
|
500
546
|
*
|
|
@@ -528,6 +574,39 @@ class CustomTargetingValueServiceClient {
|
|
|
528
574
|
matchAdUnitFromAdUnitName(adUnitName) {
|
|
529
575
|
return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
|
|
530
576
|
}
|
|
577
|
+
/**
|
|
578
|
+
* Return a fully-qualified bandwidthGroup resource name string.
|
|
579
|
+
*
|
|
580
|
+
* @param {string} network_code
|
|
581
|
+
* @param {string} bandwidth_group
|
|
582
|
+
* @returns {string} Resource name string.
|
|
583
|
+
*/
|
|
584
|
+
bandwidthGroupPath(networkCode, bandwidthGroup) {
|
|
585
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.render({
|
|
586
|
+
network_code: networkCode,
|
|
587
|
+
bandwidth_group: bandwidthGroup,
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Parse the network_code from BandwidthGroup resource.
|
|
592
|
+
*
|
|
593
|
+
* @param {string} bandwidthGroupName
|
|
594
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
595
|
+
* @returns {string} A string representing the network_code.
|
|
596
|
+
*/
|
|
597
|
+
matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
|
|
598
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Parse the bandwidth_group from BandwidthGroup resource.
|
|
602
|
+
*
|
|
603
|
+
* @param {string} bandwidthGroupName
|
|
604
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
605
|
+
* @returns {string} A string representing the bandwidth_group.
|
|
606
|
+
*/
|
|
607
|
+
matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
|
|
608
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
|
|
609
|
+
}
|
|
531
610
|
/**
|
|
532
611
|
* Return a fully-qualified company resource name string.
|
|
533
612
|
*
|
|
@@ -549,8 +628,7 @@ class CustomTargetingValueServiceClient {
|
|
|
549
628
|
* @returns {string} A string representing the network_code.
|
|
550
629
|
*/
|
|
551
630
|
matchNetworkCodeFromCompanyName(companyName) {
|
|
552
|
-
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
553
|
-
.network_code;
|
|
631
|
+
return this.pathTemplates.companyPathTemplate.match(companyName).network_code;
|
|
554
632
|
}
|
|
555
633
|
/**
|
|
556
634
|
* Parse the company from Company resource.
|
|
@@ -583,8 +661,7 @@ class CustomTargetingValueServiceClient {
|
|
|
583
661
|
* @returns {string} A string representing the network_code.
|
|
584
662
|
*/
|
|
585
663
|
matchNetworkCodeFromContactName(contactName) {
|
|
586
|
-
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
587
|
-
.network_code;
|
|
664
|
+
return this.pathTemplates.contactPathTemplate.match(contactName).network_code;
|
|
588
665
|
}
|
|
589
666
|
/**
|
|
590
667
|
* Parse the contact from Contact resource.
|
|
@@ -617,8 +694,7 @@ class CustomTargetingValueServiceClient {
|
|
|
617
694
|
* @returns {string} A string representing the network_code.
|
|
618
695
|
*/
|
|
619
696
|
matchNetworkCodeFromCustomFieldName(customFieldName) {
|
|
620
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
621
|
-
.network_code;
|
|
697
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName).network_code;
|
|
622
698
|
}
|
|
623
699
|
/**
|
|
624
700
|
* Parse the custom_field from CustomField resource.
|
|
@@ -628,8 +704,7 @@ class CustomTargetingValueServiceClient {
|
|
|
628
704
|
* @returns {string} A string representing the custom_field.
|
|
629
705
|
*/
|
|
630
706
|
matchCustomFieldFromCustomFieldName(customFieldName) {
|
|
631
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
632
|
-
.custom_field;
|
|
707
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName).custom_field;
|
|
633
708
|
}
|
|
634
709
|
/**
|
|
635
710
|
* Return a fully-qualified customTargetingKey resource name string.
|
|
@@ -668,14 +743,12 @@ class CustomTargetingValueServiceClient {
|
|
|
668
743
|
* Return a fully-qualified customTargetingValue resource name string.
|
|
669
744
|
*
|
|
670
745
|
* @param {string} network_code
|
|
671
|
-
* @param {string} custom_targeting_key
|
|
672
746
|
* @param {string} custom_targeting_value
|
|
673
747
|
* @returns {string} Resource name string.
|
|
674
748
|
*/
|
|
675
|
-
customTargetingValuePath(networkCode,
|
|
749
|
+
customTargetingValuePath(networkCode, customTargetingValue) {
|
|
676
750
|
return this.pathTemplates.customTargetingValuePathTemplate.render({
|
|
677
751
|
network_code: networkCode,
|
|
678
|
-
custom_targeting_key: customTargetingKey,
|
|
679
752
|
custom_targeting_value: customTargetingValue,
|
|
680
753
|
});
|
|
681
754
|
}
|
|
@@ -689,16 +762,6 @@ class CustomTargetingValueServiceClient {
|
|
|
689
762
|
matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
|
|
690
763
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
|
|
691
764
|
}
|
|
692
|
-
/**
|
|
693
|
-
* Parse the custom_targeting_key from CustomTargetingValue resource.
|
|
694
|
-
*
|
|
695
|
-
* @param {string} customTargetingValueName
|
|
696
|
-
* A fully-qualified path representing CustomTargetingValue resource.
|
|
697
|
-
* @returns {string} A string representing the custom_targeting_key.
|
|
698
|
-
*/
|
|
699
|
-
matchCustomTargetingKeyFromCustomTargetingValueName(customTargetingValueName) {
|
|
700
|
-
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_key;
|
|
701
|
-
}
|
|
702
765
|
/**
|
|
703
766
|
* Parse the custom_targeting_value from CustomTargetingValue resource.
|
|
704
767
|
*
|
|
@@ -709,6 +772,39 @@ class CustomTargetingValueServiceClient {
|
|
|
709
772
|
matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
|
|
710
773
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
|
|
711
774
|
}
|
|
775
|
+
/**
|
|
776
|
+
* Return a fully-qualified deviceCategory resource name string.
|
|
777
|
+
*
|
|
778
|
+
* @param {string} network_code
|
|
779
|
+
* @param {string} device_category
|
|
780
|
+
* @returns {string} Resource name string.
|
|
781
|
+
*/
|
|
782
|
+
deviceCategoryPath(networkCode, deviceCategory) {
|
|
783
|
+
return this.pathTemplates.deviceCategoryPathTemplate.render({
|
|
784
|
+
network_code: networkCode,
|
|
785
|
+
device_category: deviceCategory,
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Parse the network_code from DeviceCategory resource.
|
|
790
|
+
*
|
|
791
|
+
* @param {string} deviceCategoryName
|
|
792
|
+
* A fully-qualified path representing DeviceCategory resource.
|
|
793
|
+
* @returns {string} A string representing the network_code.
|
|
794
|
+
*/
|
|
795
|
+
matchNetworkCodeFromDeviceCategoryName(deviceCategoryName) {
|
|
796
|
+
return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).network_code;
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* Parse the device_category from DeviceCategory resource.
|
|
800
|
+
*
|
|
801
|
+
* @param {string} deviceCategoryName
|
|
802
|
+
* A fully-qualified path representing DeviceCategory resource.
|
|
803
|
+
* @returns {string} A string representing the device_category.
|
|
804
|
+
*/
|
|
805
|
+
matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
|
|
806
|
+
return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
|
|
807
|
+
}
|
|
712
808
|
/**
|
|
713
809
|
* Return a fully-qualified entitySignalsMapping resource name string.
|
|
714
810
|
*
|
|
@@ -742,6 +838,39 @@ class CustomTargetingValueServiceClient {
|
|
|
742
838
|
matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
|
|
743
839
|
return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
|
|
744
840
|
}
|
|
841
|
+
/**
|
|
842
|
+
* Return a fully-qualified geoTarget resource name string.
|
|
843
|
+
*
|
|
844
|
+
* @param {string} network_code
|
|
845
|
+
* @param {string} geo_target
|
|
846
|
+
* @returns {string} Resource name string.
|
|
847
|
+
*/
|
|
848
|
+
geoTargetPath(networkCode, geoTarget) {
|
|
849
|
+
return this.pathTemplates.geoTargetPathTemplate.render({
|
|
850
|
+
network_code: networkCode,
|
|
851
|
+
geo_target: geoTarget,
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* Parse the network_code from GeoTarget resource.
|
|
856
|
+
*
|
|
857
|
+
* @param {string} geoTargetName
|
|
858
|
+
* A fully-qualified path representing GeoTarget resource.
|
|
859
|
+
* @returns {string} A string representing the network_code.
|
|
860
|
+
*/
|
|
861
|
+
matchNetworkCodeFromGeoTargetName(geoTargetName) {
|
|
862
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).network_code;
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* Parse the geo_target from GeoTarget resource.
|
|
866
|
+
*
|
|
867
|
+
* @param {string} geoTargetName
|
|
868
|
+
* A fully-qualified path representing GeoTarget resource.
|
|
869
|
+
* @returns {string} A string representing the geo_target.
|
|
870
|
+
*/
|
|
871
|
+
matchGeoTargetFromGeoTargetName(geoTargetName) {
|
|
872
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).geo_target;
|
|
873
|
+
}
|
|
745
874
|
/**
|
|
746
875
|
* Return a fully-qualified label resource name string.
|
|
747
876
|
*
|
|
@@ -775,6 +904,39 @@ class CustomTargetingValueServiceClient {
|
|
|
775
904
|
matchLabelFromLabelName(labelName) {
|
|
776
905
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
777
906
|
}
|
|
907
|
+
/**
|
|
908
|
+
* Return a fully-qualified liveStreamEvent resource name string.
|
|
909
|
+
*
|
|
910
|
+
* @param {string} network_code
|
|
911
|
+
* @param {string} live_stream_event
|
|
912
|
+
* @returns {string} Resource name string.
|
|
913
|
+
*/
|
|
914
|
+
liveStreamEventPath(networkCode, liveStreamEvent) {
|
|
915
|
+
return this.pathTemplates.liveStreamEventPathTemplate.render({
|
|
916
|
+
network_code: networkCode,
|
|
917
|
+
live_stream_event: liveStreamEvent,
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Parse the network_code from LiveStreamEvent resource.
|
|
922
|
+
*
|
|
923
|
+
* @param {string} liveStreamEventName
|
|
924
|
+
* A fully-qualified path representing LiveStreamEvent resource.
|
|
925
|
+
* @returns {string} A string representing the network_code.
|
|
926
|
+
*/
|
|
927
|
+
matchNetworkCodeFromLiveStreamEventName(liveStreamEventName) {
|
|
928
|
+
return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).network_code;
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Parse the live_stream_event from LiveStreamEvent resource.
|
|
932
|
+
*
|
|
933
|
+
* @param {string} liveStreamEventName
|
|
934
|
+
* A fully-qualified path representing LiveStreamEvent resource.
|
|
935
|
+
* @returns {string} A string representing the live_stream_event.
|
|
936
|
+
*/
|
|
937
|
+
matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
|
|
938
|
+
return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
|
|
939
|
+
}
|
|
778
940
|
/**
|
|
779
941
|
* Return a fully-qualified network resource name string.
|
|
780
942
|
*
|
|
@@ -794,8 +956,73 @@ class CustomTargetingValueServiceClient {
|
|
|
794
956
|
* @returns {string} A string representing the network_code.
|
|
795
957
|
*/
|
|
796
958
|
matchNetworkCodeFromNetworkName(networkName) {
|
|
797
|
-
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
798
|
-
|
|
959
|
+
return this.pathTemplates.networkPathTemplate.match(networkName).network_code;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* Return a fully-qualified operatingSystem resource name string.
|
|
963
|
+
*
|
|
964
|
+
* @param {string} network_code
|
|
965
|
+
* @param {string} operating_system
|
|
966
|
+
* @returns {string} Resource name string.
|
|
967
|
+
*/
|
|
968
|
+
operatingSystemPath(networkCode, operatingSystem) {
|
|
969
|
+
return this.pathTemplates.operatingSystemPathTemplate.render({
|
|
970
|
+
network_code: networkCode,
|
|
971
|
+
operating_system: operatingSystem,
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
* Parse the network_code from OperatingSystem resource.
|
|
976
|
+
*
|
|
977
|
+
* @param {string} operatingSystemName
|
|
978
|
+
* A fully-qualified path representing OperatingSystem resource.
|
|
979
|
+
* @returns {string} A string representing the network_code.
|
|
980
|
+
*/
|
|
981
|
+
matchNetworkCodeFromOperatingSystemName(operatingSystemName) {
|
|
982
|
+
return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).network_code;
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* Parse the operating_system from OperatingSystem resource.
|
|
986
|
+
*
|
|
987
|
+
* @param {string} operatingSystemName
|
|
988
|
+
* A fully-qualified path representing OperatingSystem resource.
|
|
989
|
+
* @returns {string} A string representing the operating_system.
|
|
990
|
+
*/
|
|
991
|
+
matchOperatingSystemFromOperatingSystemName(operatingSystemName) {
|
|
992
|
+
return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).operating_system;
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* Return a fully-qualified operatingSystemVersion resource name string.
|
|
996
|
+
*
|
|
997
|
+
* @param {string} network_code
|
|
998
|
+
* @param {string} operating_system_version
|
|
999
|
+
* @returns {string} Resource name string.
|
|
1000
|
+
*/
|
|
1001
|
+
operatingSystemVersionPath(networkCode, operatingSystemVersion) {
|
|
1002
|
+
return this.pathTemplates.operatingSystemVersionPathTemplate.render({
|
|
1003
|
+
network_code: networkCode,
|
|
1004
|
+
operating_system_version: operatingSystemVersion,
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* Parse the network_code from OperatingSystemVersion resource.
|
|
1009
|
+
*
|
|
1010
|
+
* @param {string} operatingSystemVersionName
|
|
1011
|
+
* A fully-qualified path representing OperatingSystemVersion resource.
|
|
1012
|
+
* @returns {string} A string representing the network_code.
|
|
1013
|
+
*/
|
|
1014
|
+
matchNetworkCodeFromOperatingSystemVersionName(operatingSystemVersionName) {
|
|
1015
|
+
return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).network_code;
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* Parse the operating_system_version from OperatingSystemVersion resource.
|
|
1019
|
+
*
|
|
1020
|
+
* @param {string} operatingSystemVersionName
|
|
1021
|
+
* A fully-qualified path representing OperatingSystemVersion resource.
|
|
1022
|
+
* @returns {string} A string representing the operating_system_version.
|
|
1023
|
+
*/
|
|
1024
|
+
matchOperatingSystemVersionFromOperatingSystemVersionName(operatingSystemVersionName) {
|
|
1025
|
+
return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).operating_system_version;
|
|
799
1026
|
}
|
|
800
1027
|
/**
|
|
801
1028
|
* Return a fully-qualified order resource name string.
|
|
@@ -851,8 +1078,7 @@ class CustomTargetingValueServiceClient {
|
|
|
851
1078
|
* @returns {string} A string representing the network_code.
|
|
852
1079
|
*/
|
|
853
1080
|
matchNetworkCodeFromPlacementName(placementName) {
|
|
854
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
855
|
-
.network_code;
|
|
1081
|
+
return this.pathTemplates.placementPathTemplate.match(placementName).network_code;
|
|
856
1082
|
}
|
|
857
1083
|
/**
|
|
858
1084
|
* Parse the placement from Placement resource.
|
|
@@ -862,8 +1088,106 @@ class CustomTargetingValueServiceClient {
|
|
|
862
1088
|
* @returns {string} A string representing the placement.
|
|
863
1089
|
*/
|
|
864
1090
|
matchPlacementFromPlacementName(placementName) {
|
|
865
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
866
|
-
|
|
1091
|
+
return this.pathTemplates.placementPathTemplate.match(placementName).placement;
|
|
1092
|
+
}
|
|
1093
|
+
/**
|
|
1094
|
+
* Return a fully-qualified privateAuction resource name string.
|
|
1095
|
+
*
|
|
1096
|
+
* @param {string} network_code
|
|
1097
|
+
* @param {string} private_auction
|
|
1098
|
+
* @returns {string} Resource name string.
|
|
1099
|
+
*/
|
|
1100
|
+
privateAuctionPath(networkCode, privateAuction) {
|
|
1101
|
+
return this.pathTemplates.privateAuctionPathTemplate.render({
|
|
1102
|
+
network_code: networkCode,
|
|
1103
|
+
private_auction: privateAuction,
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* Parse the network_code from PrivateAuction resource.
|
|
1108
|
+
*
|
|
1109
|
+
* @param {string} privateAuctionName
|
|
1110
|
+
* A fully-qualified path representing PrivateAuction resource.
|
|
1111
|
+
* @returns {string} A string representing the network_code.
|
|
1112
|
+
*/
|
|
1113
|
+
matchNetworkCodeFromPrivateAuctionName(privateAuctionName) {
|
|
1114
|
+
return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).network_code;
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Parse the private_auction from PrivateAuction resource.
|
|
1118
|
+
*
|
|
1119
|
+
* @param {string} privateAuctionName
|
|
1120
|
+
* A fully-qualified path representing PrivateAuction resource.
|
|
1121
|
+
* @returns {string} A string representing the private_auction.
|
|
1122
|
+
*/
|
|
1123
|
+
matchPrivateAuctionFromPrivateAuctionName(privateAuctionName) {
|
|
1124
|
+
return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).private_auction;
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
* Return a fully-qualified privateAuctionDeal resource name string.
|
|
1128
|
+
*
|
|
1129
|
+
* @param {string} network_code
|
|
1130
|
+
* @param {string} private_auction_deal
|
|
1131
|
+
* @returns {string} Resource name string.
|
|
1132
|
+
*/
|
|
1133
|
+
privateAuctionDealPath(networkCode, privateAuctionDeal) {
|
|
1134
|
+
return this.pathTemplates.privateAuctionDealPathTemplate.render({
|
|
1135
|
+
network_code: networkCode,
|
|
1136
|
+
private_auction_deal: privateAuctionDeal,
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Parse the network_code from PrivateAuctionDeal resource.
|
|
1141
|
+
*
|
|
1142
|
+
* @param {string} privateAuctionDealName
|
|
1143
|
+
* A fully-qualified path representing PrivateAuctionDeal resource.
|
|
1144
|
+
* @returns {string} A string representing the network_code.
|
|
1145
|
+
*/
|
|
1146
|
+
matchNetworkCodeFromPrivateAuctionDealName(privateAuctionDealName) {
|
|
1147
|
+
return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).network_code;
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Parse the private_auction_deal from PrivateAuctionDeal resource.
|
|
1151
|
+
*
|
|
1152
|
+
* @param {string} privateAuctionDealName
|
|
1153
|
+
* A fully-qualified path representing PrivateAuctionDeal resource.
|
|
1154
|
+
* @returns {string} A string representing the private_auction_deal.
|
|
1155
|
+
*/
|
|
1156
|
+
matchPrivateAuctionDealFromPrivateAuctionDealName(privateAuctionDealName) {
|
|
1157
|
+
return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).private_auction_deal;
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* Return a fully-qualified programmaticBuyer resource name string.
|
|
1161
|
+
*
|
|
1162
|
+
* @param {string} network_code
|
|
1163
|
+
* @param {string} programmatic_buyer
|
|
1164
|
+
* @returns {string} Resource name string.
|
|
1165
|
+
*/
|
|
1166
|
+
programmaticBuyerPath(networkCode, programmaticBuyer) {
|
|
1167
|
+
return this.pathTemplates.programmaticBuyerPathTemplate.render({
|
|
1168
|
+
network_code: networkCode,
|
|
1169
|
+
programmatic_buyer: programmaticBuyer,
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1172
|
+
/**
|
|
1173
|
+
* Parse the network_code from ProgrammaticBuyer resource.
|
|
1174
|
+
*
|
|
1175
|
+
* @param {string} programmaticBuyerName
|
|
1176
|
+
* A fully-qualified path representing ProgrammaticBuyer resource.
|
|
1177
|
+
* @returns {string} A string representing the network_code.
|
|
1178
|
+
*/
|
|
1179
|
+
matchNetworkCodeFromProgrammaticBuyerName(programmaticBuyerName) {
|
|
1180
|
+
return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).network_code;
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Parse the programmatic_buyer from ProgrammaticBuyer resource.
|
|
1184
|
+
*
|
|
1185
|
+
* @param {string} programmaticBuyerName
|
|
1186
|
+
* A fully-qualified path representing ProgrammaticBuyer resource.
|
|
1187
|
+
* @returns {string} A string representing the programmatic_buyer.
|
|
1188
|
+
*/
|
|
1189
|
+
matchProgrammaticBuyerFromProgrammaticBuyerName(programmaticBuyerName) {
|
|
1190
|
+
return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).programmatic_buyer;
|
|
867
1191
|
}
|
|
868
1192
|
/**
|
|
869
1193
|
* Return a fully-qualified report resource name string.
|