@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 EntitySignalsMappingServiceClient {
|
|
|
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 EntitySignalsMappingServiceClient {
|
|
|
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 EntitySignalsMappingServiceClient {
|
|
|
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 EntitySignalsMappingServiceClient {
|
|
|
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 EntitySignalsMappingServiceClient {
|
|
|
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
|
-
listEntitySignalsMappings: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'entitySignalsMappings')
|
|
201
|
+
listEntitySignalsMappings: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'entitySignalsMappings')
|
|
199
202
|
};
|
|
200
203
|
// Put together the default options sent with requests.
|
|
201
204
|
this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.EntitySignalsMappingService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -224,21 +227,13 @@ class EntitySignalsMappingServiceClient {
|
|
|
224
227
|
}
|
|
225
228
|
// Put together the "service stub" for
|
|
226
229
|
// google.ads.admanager.v1.EntitySignalsMappingService.
|
|
227
|
-
this.entitySignalsMappingServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
.EntitySignalsMappingService, this._opts, this._providedCustomServicePath);
|
|
230
|
+
this.entitySignalsMappingServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
|
231
|
+
this._protos.lookupService('google.ads.admanager.v1.EntitySignalsMappingService') :
|
|
232
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
233
|
+
this._protos.google.ads.admanager.v1.EntitySignalsMappingService, 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 entitySignalsMappingServiceStubMethods = [
|
|
235
|
-
'getEntitySignalsMapping',
|
|
236
|
-
'listEntitySignalsMappings',
|
|
237
|
-
'createEntitySignalsMapping',
|
|
238
|
-
'updateEntitySignalsMapping',
|
|
239
|
-
'batchCreateEntitySignalsMappings',
|
|
240
|
-
'batchUpdateEntitySignalsMappings',
|
|
241
|
-
];
|
|
236
|
+
const entitySignalsMappingServiceStubMethods = ['getEntitySignalsMapping', 'listEntitySignalsMappings', 'createEntitySignalsMapping', 'updateEntitySignalsMapping', 'batchCreateEntitySignalsMappings', 'batchUpdateEntitySignalsMappings'];
|
|
242
237
|
for (const methodName of entitySignalsMappingServiceStubMethods) {
|
|
243
238
|
const callPromise = this.entitySignalsMappingServiceStub.then(stub => (...args) => {
|
|
244
239
|
if (this._terminated) {
|
|
@@ -249,7 +244,8 @@ class EntitySignalsMappingServiceClient {
|
|
|
249
244
|
}, (err) => () => {
|
|
250
245
|
throw err;
|
|
251
246
|
});
|
|
252
|
-
const descriptor = this.descriptors.page[methodName] ||
|
|
247
|
+
const descriptor = this.descriptors.page[methodName] ||
|
|
248
|
+
undefined;
|
|
253
249
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
|
254
250
|
this.innerApiCalls[methodName] = apiCall;
|
|
255
251
|
}
|
|
@@ -261,8 +257,7 @@ class EntitySignalsMappingServiceClient {
|
|
|
261
257
|
* @returns {string} The DNS address for this service.
|
|
262
258
|
*/
|
|
263
259
|
static get servicePath() {
|
|
264
|
-
if (typeof process === 'object' &&
|
|
265
|
-
typeof process.emitWarning === 'function') {
|
|
260
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
|
266
261
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
267
262
|
}
|
|
268
263
|
return 'admanager.googleapis.com';
|
|
@@ -273,8 +268,7 @@ class EntitySignalsMappingServiceClient {
|
|
|
273
268
|
* @returns {string} The DNS address for this service.
|
|
274
269
|
*/
|
|
275
270
|
static get apiEndpoint() {
|
|
276
|
-
if (typeof process === 'object' &&
|
|
277
|
-
typeof process.emitWarning === 'function') {
|
|
271
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
|
278
272
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
279
273
|
}
|
|
280
274
|
return 'admanager.googleapis.com';
|
|
@@ -302,7 +296,9 @@ class EntitySignalsMappingServiceClient {
|
|
|
302
296
|
* @returns {string[]} List of default scopes.
|
|
303
297
|
*/
|
|
304
298
|
static get scopes() {
|
|
305
|
-
return [
|
|
299
|
+
return [
|
|
300
|
+
'https://www.googleapis.com/auth/admanager'
|
|
301
|
+
];
|
|
306
302
|
}
|
|
307
303
|
/**
|
|
308
304
|
* Return the project ID used by this class.
|
|
@@ -328,11 +324,10 @@ class EntitySignalsMappingServiceClient {
|
|
|
328
324
|
options = options || {};
|
|
329
325
|
options.otherArgs = options.otherArgs || {};
|
|
330
326
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
331
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
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; });
|
|
336
331
|
this._log.info('getEntitySignalsMapping request %j', request);
|
|
337
332
|
const wrappedCallback = callback
|
|
338
333
|
? (error, response, options, rawResponse) => {
|
|
@@ -340,11 +335,16 @@ class EntitySignalsMappingServiceClient {
|
|
|
340
335
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
341
336
|
}
|
|
342
337
|
: undefined;
|
|
343
|
-
return this.innerApiCalls
|
|
344
|
-
.getEntitySignalsMapping(request, options, wrappedCallback)
|
|
338
|
+
return this.innerApiCalls.getEntitySignalsMapping(request, options, wrappedCallback)
|
|
345
339
|
?.then(([response, options, rawResponse]) => {
|
|
346
340
|
this._log.info('getEntitySignalsMapping response %j', response);
|
|
347
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;
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
350
|
createEntitySignalsMapping(request, optionsOrCallback, callback) {
|
|
@@ -360,11 +360,10 @@ class EntitySignalsMappingServiceClient {
|
|
|
360
360
|
options = options || {};
|
|
361
361
|
options.otherArgs = options.otherArgs || {};
|
|
362
362
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
363
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
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; });
|
|
368
367
|
this._log.info('createEntitySignalsMapping request %j', request);
|
|
369
368
|
const wrappedCallback = callback
|
|
370
369
|
? (error, response, options, rawResponse) => {
|
|
@@ -372,11 +371,16 @@ class EntitySignalsMappingServiceClient {
|
|
|
372
371
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
373
372
|
}
|
|
374
373
|
: undefined;
|
|
375
|
-
return this.innerApiCalls
|
|
376
|
-
.createEntitySignalsMapping(request, options, wrappedCallback)
|
|
374
|
+
return this.innerApiCalls.createEntitySignalsMapping(request, options, wrappedCallback)
|
|
377
375
|
?.then(([response, options, rawResponse]) => {
|
|
378
376
|
this._log.info('createEntitySignalsMapping response %j', response);
|
|
379
377
|
return [response, options, rawResponse];
|
|
378
|
+
}).catch((error) => {
|
|
379
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
380
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
381
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
382
|
+
}
|
|
383
|
+
throw error;
|
|
380
384
|
});
|
|
381
385
|
}
|
|
382
386
|
updateEntitySignalsMapping(request, optionsOrCallback, callback) {
|
|
@@ -392,11 +396,10 @@ class EntitySignalsMappingServiceClient {
|
|
|
392
396
|
options = options || {};
|
|
393
397
|
options.otherArgs = options.otherArgs || {};
|
|
394
398
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
395
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
this.initialize();
|
|
399
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
400
|
+
'entity_signals_mapping.name': request.entitySignalsMapping.name ?? '',
|
|
401
|
+
});
|
|
402
|
+
this.initialize().catch(err => { throw err; });
|
|
400
403
|
this._log.info('updateEntitySignalsMapping request %j', request);
|
|
401
404
|
const wrappedCallback = callback
|
|
402
405
|
? (error, response, options, rawResponse) => {
|
|
@@ -404,11 +407,16 @@ class EntitySignalsMappingServiceClient {
|
|
|
404
407
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
405
408
|
}
|
|
406
409
|
: undefined;
|
|
407
|
-
return this.innerApiCalls
|
|
408
|
-
.updateEntitySignalsMapping(request, options, wrappedCallback)
|
|
410
|
+
return this.innerApiCalls.updateEntitySignalsMapping(request, options, wrappedCallback)
|
|
409
411
|
?.then(([response, options, rawResponse]) => {
|
|
410
412
|
this._log.info('updateEntitySignalsMapping response %j', response);
|
|
411
413
|
return [response, options, rawResponse];
|
|
414
|
+
}).catch((error) => {
|
|
415
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
416
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
417
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
418
|
+
}
|
|
419
|
+
throw error;
|
|
412
420
|
});
|
|
413
421
|
}
|
|
414
422
|
batchCreateEntitySignalsMappings(request, optionsOrCallback, callback) {
|
|
@@ -424,11 +432,10 @@ class EntitySignalsMappingServiceClient {
|
|
|
424
432
|
options = options || {};
|
|
425
433
|
options.otherArgs = options.otherArgs || {};
|
|
426
434
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
427
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
this.initialize();
|
|
435
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
436
|
+
'parent': request.parent ?? '',
|
|
437
|
+
});
|
|
438
|
+
this.initialize().catch(err => { throw err; });
|
|
432
439
|
this._log.info('batchCreateEntitySignalsMappings request %j', request);
|
|
433
440
|
const wrappedCallback = callback
|
|
434
441
|
? (error, response, options, rawResponse) => {
|
|
@@ -436,11 +443,16 @@ class EntitySignalsMappingServiceClient {
|
|
|
436
443
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
437
444
|
}
|
|
438
445
|
: undefined;
|
|
439
|
-
return this.innerApiCalls
|
|
440
|
-
.batchCreateEntitySignalsMappings(request, options, wrappedCallback)
|
|
446
|
+
return this.innerApiCalls.batchCreateEntitySignalsMappings(request, options, wrappedCallback)
|
|
441
447
|
?.then(([response, options, rawResponse]) => {
|
|
442
448
|
this._log.info('batchCreateEntitySignalsMappings response %j', response);
|
|
443
449
|
return [response, options, rawResponse];
|
|
450
|
+
}).catch((error) => {
|
|
451
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
452
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
453
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
454
|
+
}
|
|
455
|
+
throw error;
|
|
444
456
|
});
|
|
445
457
|
}
|
|
446
458
|
batchUpdateEntitySignalsMappings(request, optionsOrCallback, callback) {
|
|
@@ -456,11 +468,10 @@ class EntitySignalsMappingServiceClient {
|
|
|
456
468
|
options = options || {};
|
|
457
469
|
options.otherArgs = options.otherArgs || {};
|
|
458
470
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
459
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
this.initialize();
|
|
471
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
472
|
+
'parent': request.parent ?? '',
|
|
473
|
+
});
|
|
474
|
+
this.initialize().catch(err => { throw err; });
|
|
464
475
|
this._log.info('batchUpdateEntitySignalsMappings request %j', request);
|
|
465
476
|
const wrappedCallback = callback
|
|
466
477
|
? (error, response, options, rawResponse) => {
|
|
@@ -468,11 +479,16 @@ class EntitySignalsMappingServiceClient {
|
|
|
468
479
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
469
480
|
}
|
|
470
481
|
: undefined;
|
|
471
|
-
return this.innerApiCalls
|
|
472
|
-
.batchUpdateEntitySignalsMappings(request, options, wrappedCallback)
|
|
482
|
+
return this.innerApiCalls.batchUpdateEntitySignalsMappings(request, options, wrappedCallback)
|
|
473
483
|
?.then(([response, options, rawResponse]) => {
|
|
474
484
|
this._log.info('batchUpdateEntitySignalsMappings response %j', response);
|
|
475
485
|
return [response, options, rawResponse];
|
|
486
|
+
}).catch((error) => {
|
|
487
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
488
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
489
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
490
|
+
}
|
|
491
|
+
throw error;
|
|
476
492
|
});
|
|
477
493
|
}
|
|
478
494
|
listEntitySignalsMappings(request, optionsOrCallback, callback) {
|
|
@@ -488,11 +504,10 @@ class EntitySignalsMappingServiceClient {
|
|
|
488
504
|
options = options || {};
|
|
489
505
|
options.otherArgs = options.otherArgs || {};
|
|
490
506
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
491
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
this.initialize();
|
|
507
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
508
|
+
'parent': request.parent ?? '',
|
|
509
|
+
});
|
|
510
|
+
this.initialize().catch(err => { throw err; });
|
|
496
511
|
const wrappedCallback = callback
|
|
497
512
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
498
513
|
this._log.info('listEntitySignalsMappings values %j', values);
|
|
@@ -553,13 +568,12 @@ class EntitySignalsMappingServiceClient {
|
|
|
553
568
|
options = options || {};
|
|
554
569
|
options.otherArgs = options.otherArgs || {};
|
|
555
570
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
556
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
});
|
|
571
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
572
|
+
'parent': request.parent ?? '',
|
|
573
|
+
});
|
|
560
574
|
const defaultCallSettings = this._defaults['listEntitySignalsMappings'];
|
|
561
575
|
const callSettings = defaultCallSettings.merge(options);
|
|
562
|
-
this.initialize();
|
|
576
|
+
this.initialize().catch(err => { throw err; });
|
|
563
577
|
this._log.info('listEntitySignalsMappings stream %j', request);
|
|
564
578
|
return this.descriptors.page.listEntitySignalsMappings.createStream(this.innerApiCalls.listEntitySignalsMappings, request, callSettings);
|
|
565
579
|
}
|
|
@@ -612,19 +626,63 @@ class EntitySignalsMappingServiceClient {
|
|
|
612
626
|
options = options || {};
|
|
613
627
|
options.otherArgs = options.otherArgs || {};
|
|
614
628
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
615
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
});
|
|
629
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
630
|
+
'parent': request.parent ?? '',
|
|
631
|
+
});
|
|
619
632
|
const defaultCallSettings = this._defaults['listEntitySignalsMappings'];
|
|
620
633
|
const callSettings = defaultCallSettings.merge(options);
|
|
621
|
-
this.initialize();
|
|
634
|
+
this.initialize().catch(err => { throw err; });
|
|
622
635
|
this._log.info('listEntitySignalsMappings iterate %j', request);
|
|
623
636
|
return this.descriptors.page.listEntitySignalsMappings.asyncIterate(this.innerApiCalls['listEntitySignalsMappings'], request, callSettings);
|
|
624
637
|
}
|
|
625
638
|
// --------------------
|
|
626
639
|
// -- Path templates --
|
|
627
640
|
// --------------------
|
|
641
|
+
/**
|
|
642
|
+
* Return a fully-qualified adBreak resource name string.
|
|
643
|
+
*
|
|
644
|
+
* @param {string} network_code
|
|
645
|
+
* @param {string} asset_key
|
|
646
|
+
* @param {string} ad_break
|
|
647
|
+
* @returns {string} Resource name string.
|
|
648
|
+
*/
|
|
649
|
+
adBreakPath(networkCode, assetKey, adBreak) {
|
|
650
|
+
return this.pathTemplates.adBreakPathTemplate.render({
|
|
651
|
+
network_code: networkCode,
|
|
652
|
+
asset_key: assetKey,
|
|
653
|
+
ad_break: adBreak,
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Parse the network_code from AdBreak resource.
|
|
658
|
+
*
|
|
659
|
+
* @param {string} adBreakName
|
|
660
|
+
* A fully-qualified path representing AdBreak resource.
|
|
661
|
+
* @returns {string} A string representing the network_code.
|
|
662
|
+
*/
|
|
663
|
+
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
664
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* Parse the asset_key from AdBreak resource.
|
|
668
|
+
*
|
|
669
|
+
* @param {string} adBreakName
|
|
670
|
+
* A fully-qualified path representing AdBreak resource.
|
|
671
|
+
* @returns {string} A string representing the asset_key.
|
|
672
|
+
*/
|
|
673
|
+
matchAssetKeyFromAdBreakName(adBreakName) {
|
|
674
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* Parse the ad_break from AdBreak resource.
|
|
678
|
+
*
|
|
679
|
+
* @param {string} adBreakName
|
|
680
|
+
* A fully-qualified path representing AdBreak resource.
|
|
681
|
+
* @returns {string} A string representing the ad_break.
|
|
682
|
+
*/
|
|
683
|
+
matchAdBreakFromAdBreakName(adBreakName) {
|
|
684
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
|
|
685
|
+
}
|
|
628
686
|
/**
|
|
629
687
|
* Return a fully-qualified adUnit resource name string.
|
|
630
688
|
*
|
|
@@ -658,6 +716,39 @@ class EntitySignalsMappingServiceClient {
|
|
|
658
716
|
matchAdUnitFromAdUnitName(adUnitName) {
|
|
659
717
|
return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
|
|
660
718
|
}
|
|
719
|
+
/**
|
|
720
|
+
* Return a fully-qualified bandwidthGroup resource name string.
|
|
721
|
+
*
|
|
722
|
+
* @param {string} network_code
|
|
723
|
+
* @param {string} bandwidth_group
|
|
724
|
+
* @returns {string} Resource name string.
|
|
725
|
+
*/
|
|
726
|
+
bandwidthGroupPath(networkCode, bandwidthGroup) {
|
|
727
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.render({
|
|
728
|
+
network_code: networkCode,
|
|
729
|
+
bandwidth_group: bandwidthGroup,
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Parse the network_code from BandwidthGroup resource.
|
|
734
|
+
*
|
|
735
|
+
* @param {string} bandwidthGroupName
|
|
736
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
737
|
+
* @returns {string} A string representing the network_code.
|
|
738
|
+
*/
|
|
739
|
+
matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
|
|
740
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* Parse the bandwidth_group from BandwidthGroup resource.
|
|
744
|
+
*
|
|
745
|
+
* @param {string} bandwidthGroupName
|
|
746
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
747
|
+
* @returns {string} A string representing the bandwidth_group.
|
|
748
|
+
*/
|
|
749
|
+
matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
|
|
750
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
|
|
751
|
+
}
|
|
661
752
|
/**
|
|
662
753
|
* Return a fully-qualified company resource name string.
|
|
663
754
|
*
|
|
@@ -679,8 +770,7 @@ class EntitySignalsMappingServiceClient {
|
|
|
679
770
|
* @returns {string} A string representing the network_code.
|
|
680
771
|
*/
|
|
681
772
|
matchNetworkCodeFromCompanyName(companyName) {
|
|
682
|
-
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
683
|
-
.network_code;
|
|
773
|
+
return this.pathTemplates.companyPathTemplate.match(companyName).network_code;
|
|
684
774
|
}
|
|
685
775
|
/**
|
|
686
776
|
* Parse the company from Company resource.
|
|
@@ -713,8 +803,7 @@ class EntitySignalsMappingServiceClient {
|
|
|
713
803
|
* @returns {string} A string representing the network_code.
|
|
714
804
|
*/
|
|
715
805
|
matchNetworkCodeFromContactName(contactName) {
|
|
716
|
-
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
717
|
-
.network_code;
|
|
806
|
+
return this.pathTemplates.contactPathTemplate.match(contactName).network_code;
|
|
718
807
|
}
|
|
719
808
|
/**
|
|
720
809
|
* Parse the contact from Contact resource.
|
|
@@ -747,8 +836,7 @@ class EntitySignalsMappingServiceClient {
|
|
|
747
836
|
* @returns {string} A string representing the network_code.
|
|
748
837
|
*/
|
|
749
838
|
matchNetworkCodeFromCustomFieldName(customFieldName) {
|
|
750
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
751
|
-
.network_code;
|
|
839
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName).network_code;
|
|
752
840
|
}
|
|
753
841
|
/**
|
|
754
842
|
* Parse the custom_field from CustomField resource.
|
|
@@ -758,8 +846,7 @@ class EntitySignalsMappingServiceClient {
|
|
|
758
846
|
* @returns {string} A string representing the custom_field.
|
|
759
847
|
*/
|
|
760
848
|
matchCustomFieldFromCustomFieldName(customFieldName) {
|
|
761
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
762
|
-
.custom_field;
|
|
849
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName).custom_field;
|
|
763
850
|
}
|
|
764
851
|
/**
|
|
765
852
|
* Return a fully-qualified customTargetingKey resource name string.
|
|
@@ -798,14 +885,12 @@ class EntitySignalsMappingServiceClient {
|
|
|
798
885
|
* Return a fully-qualified customTargetingValue resource name string.
|
|
799
886
|
*
|
|
800
887
|
* @param {string} network_code
|
|
801
|
-
* @param {string} custom_targeting_key
|
|
802
888
|
* @param {string} custom_targeting_value
|
|
803
889
|
* @returns {string} Resource name string.
|
|
804
890
|
*/
|
|
805
|
-
customTargetingValuePath(networkCode,
|
|
891
|
+
customTargetingValuePath(networkCode, customTargetingValue) {
|
|
806
892
|
return this.pathTemplates.customTargetingValuePathTemplate.render({
|
|
807
893
|
network_code: networkCode,
|
|
808
|
-
custom_targeting_key: customTargetingKey,
|
|
809
894
|
custom_targeting_value: customTargetingValue,
|
|
810
895
|
});
|
|
811
896
|
}
|
|
@@ -819,16 +904,6 @@ class EntitySignalsMappingServiceClient {
|
|
|
819
904
|
matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
|
|
820
905
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
|
|
821
906
|
}
|
|
822
|
-
/**
|
|
823
|
-
* Parse the custom_targeting_key from CustomTargetingValue resource.
|
|
824
|
-
*
|
|
825
|
-
* @param {string} customTargetingValueName
|
|
826
|
-
* A fully-qualified path representing CustomTargetingValue resource.
|
|
827
|
-
* @returns {string} A string representing the custom_targeting_key.
|
|
828
|
-
*/
|
|
829
|
-
matchCustomTargetingKeyFromCustomTargetingValueName(customTargetingValueName) {
|
|
830
|
-
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_key;
|
|
831
|
-
}
|
|
832
907
|
/**
|
|
833
908
|
* Parse the custom_targeting_value from CustomTargetingValue resource.
|
|
834
909
|
*
|
|
@@ -839,6 +914,39 @@ class EntitySignalsMappingServiceClient {
|
|
|
839
914
|
matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
|
|
840
915
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
|
|
841
916
|
}
|
|
917
|
+
/**
|
|
918
|
+
* Return a fully-qualified deviceCategory resource name string.
|
|
919
|
+
*
|
|
920
|
+
* @param {string} network_code
|
|
921
|
+
* @param {string} device_category
|
|
922
|
+
* @returns {string} Resource name string.
|
|
923
|
+
*/
|
|
924
|
+
deviceCategoryPath(networkCode, deviceCategory) {
|
|
925
|
+
return this.pathTemplates.deviceCategoryPathTemplate.render({
|
|
926
|
+
network_code: networkCode,
|
|
927
|
+
device_category: deviceCategory,
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Parse the network_code from DeviceCategory resource.
|
|
932
|
+
*
|
|
933
|
+
* @param {string} deviceCategoryName
|
|
934
|
+
* A fully-qualified path representing DeviceCategory resource.
|
|
935
|
+
* @returns {string} A string representing the network_code.
|
|
936
|
+
*/
|
|
937
|
+
matchNetworkCodeFromDeviceCategoryName(deviceCategoryName) {
|
|
938
|
+
return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).network_code;
|
|
939
|
+
}
|
|
940
|
+
/**
|
|
941
|
+
* Parse the device_category from DeviceCategory resource.
|
|
942
|
+
*
|
|
943
|
+
* @param {string} deviceCategoryName
|
|
944
|
+
* A fully-qualified path representing DeviceCategory resource.
|
|
945
|
+
* @returns {string} A string representing the device_category.
|
|
946
|
+
*/
|
|
947
|
+
matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
|
|
948
|
+
return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
|
|
949
|
+
}
|
|
842
950
|
/**
|
|
843
951
|
* Return a fully-qualified entitySignalsMapping resource name string.
|
|
844
952
|
*
|
|
@@ -872,6 +980,39 @@ class EntitySignalsMappingServiceClient {
|
|
|
872
980
|
matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
|
|
873
981
|
return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
|
|
874
982
|
}
|
|
983
|
+
/**
|
|
984
|
+
* Return a fully-qualified geoTarget resource name string.
|
|
985
|
+
*
|
|
986
|
+
* @param {string} network_code
|
|
987
|
+
* @param {string} geo_target
|
|
988
|
+
* @returns {string} Resource name string.
|
|
989
|
+
*/
|
|
990
|
+
geoTargetPath(networkCode, geoTarget) {
|
|
991
|
+
return this.pathTemplates.geoTargetPathTemplate.render({
|
|
992
|
+
network_code: networkCode,
|
|
993
|
+
geo_target: geoTarget,
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* Parse the network_code from GeoTarget resource.
|
|
998
|
+
*
|
|
999
|
+
* @param {string} geoTargetName
|
|
1000
|
+
* A fully-qualified path representing GeoTarget resource.
|
|
1001
|
+
* @returns {string} A string representing the network_code.
|
|
1002
|
+
*/
|
|
1003
|
+
matchNetworkCodeFromGeoTargetName(geoTargetName) {
|
|
1004
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).network_code;
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* Parse the geo_target from GeoTarget resource.
|
|
1008
|
+
*
|
|
1009
|
+
* @param {string} geoTargetName
|
|
1010
|
+
* A fully-qualified path representing GeoTarget resource.
|
|
1011
|
+
* @returns {string} A string representing the geo_target.
|
|
1012
|
+
*/
|
|
1013
|
+
matchGeoTargetFromGeoTargetName(geoTargetName) {
|
|
1014
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).geo_target;
|
|
1015
|
+
}
|
|
875
1016
|
/**
|
|
876
1017
|
* Return a fully-qualified label resource name string.
|
|
877
1018
|
*
|
|
@@ -905,6 +1046,39 @@ class EntitySignalsMappingServiceClient {
|
|
|
905
1046
|
matchLabelFromLabelName(labelName) {
|
|
906
1047
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
907
1048
|
}
|
|
1049
|
+
/**
|
|
1050
|
+
* Return a fully-qualified liveStreamEvent resource name string.
|
|
1051
|
+
*
|
|
1052
|
+
* @param {string} network_code
|
|
1053
|
+
* @param {string} live_stream_event
|
|
1054
|
+
* @returns {string} Resource name string.
|
|
1055
|
+
*/
|
|
1056
|
+
liveStreamEventPath(networkCode, liveStreamEvent) {
|
|
1057
|
+
return this.pathTemplates.liveStreamEventPathTemplate.render({
|
|
1058
|
+
network_code: networkCode,
|
|
1059
|
+
live_stream_event: liveStreamEvent,
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
* Parse the network_code from LiveStreamEvent resource.
|
|
1064
|
+
*
|
|
1065
|
+
* @param {string} liveStreamEventName
|
|
1066
|
+
* A fully-qualified path representing LiveStreamEvent resource.
|
|
1067
|
+
* @returns {string} A string representing the network_code.
|
|
1068
|
+
*/
|
|
1069
|
+
matchNetworkCodeFromLiveStreamEventName(liveStreamEventName) {
|
|
1070
|
+
return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).network_code;
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Parse the live_stream_event from LiveStreamEvent resource.
|
|
1074
|
+
*
|
|
1075
|
+
* @param {string} liveStreamEventName
|
|
1076
|
+
* A fully-qualified path representing LiveStreamEvent resource.
|
|
1077
|
+
* @returns {string} A string representing the live_stream_event.
|
|
1078
|
+
*/
|
|
1079
|
+
matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
|
|
1080
|
+
return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
|
|
1081
|
+
}
|
|
908
1082
|
/**
|
|
909
1083
|
* Return a fully-qualified network resource name string.
|
|
910
1084
|
*
|
|
@@ -924,8 +1098,73 @@ class EntitySignalsMappingServiceClient {
|
|
|
924
1098
|
* @returns {string} A string representing the network_code.
|
|
925
1099
|
*/
|
|
926
1100
|
matchNetworkCodeFromNetworkName(networkName) {
|
|
927
|
-
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
928
|
-
|
|
1101
|
+
return this.pathTemplates.networkPathTemplate.match(networkName).network_code;
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Return a fully-qualified operatingSystem resource name string.
|
|
1105
|
+
*
|
|
1106
|
+
* @param {string} network_code
|
|
1107
|
+
* @param {string} operating_system
|
|
1108
|
+
* @returns {string} Resource name string.
|
|
1109
|
+
*/
|
|
1110
|
+
operatingSystemPath(networkCode, operatingSystem) {
|
|
1111
|
+
return this.pathTemplates.operatingSystemPathTemplate.render({
|
|
1112
|
+
network_code: networkCode,
|
|
1113
|
+
operating_system: operatingSystem,
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Parse the network_code from OperatingSystem resource.
|
|
1118
|
+
*
|
|
1119
|
+
* @param {string} operatingSystemName
|
|
1120
|
+
* A fully-qualified path representing OperatingSystem resource.
|
|
1121
|
+
* @returns {string} A string representing the network_code.
|
|
1122
|
+
*/
|
|
1123
|
+
matchNetworkCodeFromOperatingSystemName(operatingSystemName) {
|
|
1124
|
+
return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).network_code;
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
* Parse the operating_system from OperatingSystem resource.
|
|
1128
|
+
*
|
|
1129
|
+
* @param {string} operatingSystemName
|
|
1130
|
+
* A fully-qualified path representing OperatingSystem resource.
|
|
1131
|
+
* @returns {string} A string representing the operating_system.
|
|
1132
|
+
*/
|
|
1133
|
+
matchOperatingSystemFromOperatingSystemName(operatingSystemName) {
|
|
1134
|
+
return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).operating_system;
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
* Return a fully-qualified operatingSystemVersion resource name string.
|
|
1138
|
+
*
|
|
1139
|
+
* @param {string} network_code
|
|
1140
|
+
* @param {string} operating_system_version
|
|
1141
|
+
* @returns {string} Resource name string.
|
|
1142
|
+
*/
|
|
1143
|
+
operatingSystemVersionPath(networkCode, operatingSystemVersion) {
|
|
1144
|
+
return this.pathTemplates.operatingSystemVersionPathTemplate.render({
|
|
1145
|
+
network_code: networkCode,
|
|
1146
|
+
operating_system_version: operatingSystemVersion,
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Parse the network_code from OperatingSystemVersion resource.
|
|
1151
|
+
*
|
|
1152
|
+
* @param {string} operatingSystemVersionName
|
|
1153
|
+
* A fully-qualified path representing OperatingSystemVersion resource.
|
|
1154
|
+
* @returns {string} A string representing the network_code.
|
|
1155
|
+
*/
|
|
1156
|
+
matchNetworkCodeFromOperatingSystemVersionName(operatingSystemVersionName) {
|
|
1157
|
+
return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).network_code;
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* Parse the operating_system_version from OperatingSystemVersion resource.
|
|
1161
|
+
*
|
|
1162
|
+
* @param {string} operatingSystemVersionName
|
|
1163
|
+
* A fully-qualified path representing OperatingSystemVersion resource.
|
|
1164
|
+
* @returns {string} A string representing the operating_system_version.
|
|
1165
|
+
*/
|
|
1166
|
+
matchOperatingSystemVersionFromOperatingSystemVersionName(operatingSystemVersionName) {
|
|
1167
|
+
return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).operating_system_version;
|
|
929
1168
|
}
|
|
930
1169
|
/**
|
|
931
1170
|
* Return a fully-qualified order resource name string.
|
|
@@ -981,8 +1220,7 @@ class EntitySignalsMappingServiceClient {
|
|
|
981
1220
|
* @returns {string} A string representing the network_code.
|
|
982
1221
|
*/
|
|
983
1222
|
matchNetworkCodeFromPlacementName(placementName) {
|
|
984
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
985
|
-
.network_code;
|
|
1223
|
+
return this.pathTemplates.placementPathTemplate.match(placementName).network_code;
|
|
986
1224
|
}
|
|
987
1225
|
/**
|
|
988
1226
|
* Parse the placement from Placement resource.
|
|
@@ -992,8 +1230,106 @@ class EntitySignalsMappingServiceClient {
|
|
|
992
1230
|
* @returns {string} A string representing the placement.
|
|
993
1231
|
*/
|
|
994
1232
|
matchPlacementFromPlacementName(placementName) {
|
|
995
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
996
|
-
|
|
1233
|
+
return this.pathTemplates.placementPathTemplate.match(placementName).placement;
|
|
1234
|
+
}
|
|
1235
|
+
/**
|
|
1236
|
+
* Return a fully-qualified privateAuction resource name string.
|
|
1237
|
+
*
|
|
1238
|
+
* @param {string} network_code
|
|
1239
|
+
* @param {string} private_auction
|
|
1240
|
+
* @returns {string} Resource name string.
|
|
1241
|
+
*/
|
|
1242
|
+
privateAuctionPath(networkCode, privateAuction) {
|
|
1243
|
+
return this.pathTemplates.privateAuctionPathTemplate.render({
|
|
1244
|
+
network_code: networkCode,
|
|
1245
|
+
private_auction: privateAuction,
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
/**
|
|
1249
|
+
* Parse the network_code from PrivateAuction resource.
|
|
1250
|
+
*
|
|
1251
|
+
* @param {string} privateAuctionName
|
|
1252
|
+
* A fully-qualified path representing PrivateAuction resource.
|
|
1253
|
+
* @returns {string} A string representing the network_code.
|
|
1254
|
+
*/
|
|
1255
|
+
matchNetworkCodeFromPrivateAuctionName(privateAuctionName) {
|
|
1256
|
+
return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).network_code;
|
|
1257
|
+
}
|
|
1258
|
+
/**
|
|
1259
|
+
* Parse the private_auction from PrivateAuction resource.
|
|
1260
|
+
*
|
|
1261
|
+
* @param {string} privateAuctionName
|
|
1262
|
+
* A fully-qualified path representing PrivateAuction resource.
|
|
1263
|
+
* @returns {string} A string representing the private_auction.
|
|
1264
|
+
*/
|
|
1265
|
+
matchPrivateAuctionFromPrivateAuctionName(privateAuctionName) {
|
|
1266
|
+
return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).private_auction;
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Return a fully-qualified privateAuctionDeal resource name string.
|
|
1270
|
+
*
|
|
1271
|
+
* @param {string} network_code
|
|
1272
|
+
* @param {string} private_auction_deal
|
|
1273
|
+
* @returns {string} Resource name string.
|
|
1274
|
+
*/
|
|
1275
|
+
privateAuctionDealPath(networkCode, privateAuctionDeal) {
|
|
1276
|
+
return this.pathTemplates.privateAuctionDealPathTemplate.render({
|
|
1277
|
+
network_code: networkCode,
|
|
1278
|
+
private_auction_deal: privateAuctionDeal,
|
|
1279
|
+
});
|
|
1280
|
+
}
|
|
1281
|
+
/**
|
|
1282
|
+
* Parse the network_code from PrivateAuctionDeal resource.
|
|
1283
|
+
*
|
|
1284
|
+
* @param {string} privateAuctionDealName
|
|
1285
|
+
* A fully-qualified path representing PrivateAuctionDeal resource.
|
|
1286
|
+
* @returns {string} A string representing the network_code.
|
|
1287
|
+
*/
|
|
1288
|
+
matchNetworkCodeFromPrivateAuctionDealName(privateAuctionDealName) {
|
|
1289
|
+
return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).network_code;
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* Parse the private_auction_deal from PrivateAuctionDeal resource.
|
|
1293
|
+
*
|
|
1294
|
+
* @param {string} privateAuctionDealName
|
|
1295
|
+
* A fully-qualified path representing PrivateAuctionDeal resource.
|
|
1296
|
+
* @returns {string} A string representing the private_auction_deal.
|
|
1297
|
+
*/
|
|
1298
|
+
matchPrivateAuctionDealFromPrivateAuctionDealName(privateAuctionDealName) {
|
|
1299
|
+
return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).private_auction_deal;
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Return a fully-qualified programmaticBuyer resource name string.
|
|
1303
|
+
*
|
|
1304
|
+
* @param {string} network_code
|
|
1305
|
+
* @param {string} programmatic_buyer
|
|
1306
|
+
* @returns {string} Resource name string.
|
|
1307
|
+
*/
|
|
1308
|
+
programmaticBuyerPath(networkCode, programmaticBuyer) {
|
|
1309
|
+
return this.pathTemplates.programmaticBuyerPathTemplate.render({
|
|
1310
|
+
network_code: networkCode,
|
|
1311
|
+
programmatic_buyer: programmaticBuyer,
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Parse the network_code from ProgrammaticBuyer resource.
|
|
1316
|
+
*
|
|
1317
|
+
* @param {string} programmaticBuyerName
|
|
1318
|
+
* A fully-qualified path representing ProgrammaticBuyer resource.
|
|
1319
|
+
* @returns {string} A string representing the network_code.
|
|
1320
|
+
*/
|
|
1321
|
+
matchNetworkCodeFromProgrammaticBuyerName(programmaticBuyerName) {
|
|
1322
|
+
return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).network_code;
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Parse the programmatic_buyer from ProgrammaticBuyer resource.
|
|
1326
|
+
*
|
|
1327
|
+
* @param {string} programmaticBuyerName
|
|
1328
|
+
* A fully-qualified path representing ProgrammaticBuyer resource.
|
|
1329
|
+
* @returns {string} A string representing the programmatic_buyer.
|
|
1330
|
+
*/
|
|
1331
|
+
matchProgrammaticBuyerFromProgrammaticBuyerName(programmaticBuyerName) {
|
|
1332
|
+
return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).programmatic_buyer;
|
|
997
1333
|
}
|
|
998
1334
|
/**
|
|
999
1335
|
* Return a fully-qualified report resource name string.
|