@google-ads/admanager 0.3.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 +414 -106
- 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 +402 -81
- 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 +403 -85
- 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 +404 -88
- 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 +406 -90
- 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 +444 -124
- 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 +397 -65
- 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 +402 -81
- 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 +402 -81
- 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 +350 -110
- package/build/src/v1/report_service_client.js +471 -177
- 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 +402 -81
- 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 +404 -87
- 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 +388 -59
- 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 -40
|
@@ -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,13 +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
|
-
name: request.name ?? '',
|
|
334
|
-
});
|
|
335
|
-
this.initialize().catch(err => {
|
|
336
|
-
throw err;
|
|
327
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
328
|
+
'name': request.name ?? '',
|
|
337
329
|
});
|
|
330
|
+
this.initialize().catch(err => { throw err; });
|
|
338
331
|
this._log.info('getEntitySignalsMapping request %j', request);
|
|
339
332
|
const wrappedCallback = callback
|
|
340
333
|
? (error, response, options, rawResponse) => {
|
|
@@ -342,11 +335,16 @@ class EntitySignalsMappingServiceClient {
|
|
|
342
335
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
343
336
|
}
|
|
344
337
|
: undefined;
|
|
345
|
-
return this.innerApiCalls
|
|
346
|
-
.getEntitySignalsMapping(request, options, wrappedCallback)
|
|
338
|
+
return this.innerApiCalls.getEntitySignalsMapping(request, options, wrappedCallback)
|
|
347
339
|
?.then(([response, options, rawResponse]) => {
|
|
348
340
|
this._log.info('getEntitySignalsMapping response %j', response);
|
|
349
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;
|
|
350
348
|
});
|
|
351
349
|
}
|
|
352
350
|
createEntitySignalsMapping(request, optionsOrCallback, callback) {
|
|
@@ -362,13 +360,10 @@ class EntitySignalsMappingServiceClient {
|
|
|
362
360
|
options = options || {};
|
|
363
361
|
options.otherArgs = options.otherArgs || {};
|
|
364
362
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
365
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
366
|
-
|
|
367
|
-
parent: request.parent ?? '',
|
|
368
|
-
});
|
|
369
|
-
this.initialize().catch(err => {
|
|
370
|
-
throw err;
|
|
363
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
364
|
+
'parent': request.parent ?? '',
|
|
371
365
|
});
|
|
366
|
+
this.initialize().catch(err => { throw err; });
|
|
372
367
|
this._log.info('createEntitySignalsMapping request %j', request);
|
|
373
368
|
const wrappedCallback = callback
|
|
374
369
|
? (error, response, options, rawResponse) => {
|
|
@@ -376,11 +371,16 @@ class EntitySignalsMappingServiceClient {
|
|
|
376
371
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
377
372
|
}
|
|
378
373
|
: undefined;
|
|
379
|
-
return this.innerApiCalls
|
|
380
|
-
.createEntitySignalsMapping(request, options, wrappedCallback)
|
|
374
|
+
return this.innerApiCalls.createEntitySignalsMapping(request, options, wrappedCallback)
|
|
381
375
|
?.then(([response, options, rawResponse]) => {
|
|
382
376
|
this._log.info('createEntitySignalsMapping response %j', response);
|
|
383
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;
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
updateEntitySignalsMapping(request, optionsOrCallback, callback) {
|
|
@@ -396,13 +396,10 @@ class EntitySignalsMappingServiceClient {
|
|
|
396
396
|
options = options || {};
|
|
397
397
|
options.otherArgs = options.otherArgs || {};
|
|
398
398
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
399
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
400
|
-
|
|
401
|
-
'entity_signals_mapping.name': request.entitySignalsMapping.name ?? '',
|
|
402
|
-
});
|
|
403
|
-
this.initialize().catch(err => {
|
|
404
|
-
throw err;
|
|
399
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
400
|
+
'entity_signals_mapping.name': request.entitySignalsMapping.name ?? '',
|
|
405
401
|
});
|
|
402
|
+
this.initialize().catch(err => { throw err; });
|
|
406
403
|
this._log.info('updateEntitySignalsMapping request %j', request);
|
|
407
404
|
const wrappedCallback = callback
|
|
408
405
|
? (error, response, options, rawResponse) => {
|
|
@@ -410,11 +407,16 @@ class EntitySignalsMappingServiceClient {
|
|
|
410
407
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
411
408
|
}
|
|
412
409
|
: undefined;
|
|
413
|
-
return this.innerApiCalls
|
|
414
|
-
.updateEntitySignalsMapping(request, options, wrappedCallback)
|
|
410
|
+
return this.innerApiCalls.updateEntitySignalsMapping(request, options, wrappedCallback)
|
|
415
411
|
?.then(([response, options, rawResponse]) => {
|
|
416
412
|
this._log.info('updateEntitySignalsMapping response %j', response);
|
|
417
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;
|
|
418
420
|
});
|
|
419
421
|
}
|
|
420
422
|
batchCreateEntitySignalsMappings(request, optionsOrCallback, callback) {
|
|
@@ -430,13 +432,10 @@ class EntitySignalsMappingServiceClient {
|
|
|
430
432
|
options = options || {};
|
|
431
433
|
options.otherArgs = options.otherArgs || {};
|
|
432
434
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
433
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
434
|
-
|
|
435
|
-
parent: request.parent ?? '',
|
|
436
|
-
});
|
|
437
|
-
this.initialize().catch(err => {
|
|
438
|
-
throw err;
|
|
435
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
436
|
+
'parent': request.parent ?? '',
|
|
439
437
|
});
|
|
438
|
+
this.initialize().catch(err => { throw err; });
|
|
440
439
|
this._log.info('batchCreateEntitySignalsMappings request %j', request);
|
|
441
440
|
const wrappedCallback = callback
|
|
442
441
|
? (error, response, options, rawResponse) => {
|
|
@@ -444,11 +443,16 @@ class EntitySignalsMappingServiceClient {
|
|
|
444
443
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
445
444
|
}
|
|
446
445
|
: undefined;
|
|
447
|
-
return this.innerApiCalls
|
|
448
|
-
.batchCreateEntitySignalsMappings(request, options, wrappedCallback)
|
|
446
|
+
return this.innerApiCalls.batchCreateEntitySignalsMappings(request, options, wrappedCallback)
|
|
449
447
|
?.then(([response, options, rawResponse]) => {
|
|
450
448
|
this._log.info('batchCreateEntitySignalsMappings response %j', response);
|
|
451
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;
|
|
452
456
|
});
|
|
453
457
|
}
|
|
454
458
|
batchUpdateEntitySignalsMappings(request, optionsOrCallback, callback) {
|
|
@@ -464,13 +468,10 @@ class EntitySignalsMappingServiceClient {
|
|
|
464
468
|
options = options || {};
|
|
465
469
|
options.otherArgs = options.otherArgs || {};
|
|
466
470
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
467
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
468
|
-
|
|
469
|
-
parent: request.parent ?? '',
|
|
470
|
-
});
|
|
471
|
-
this.initialize().catch(err => {
|
|
472
|
-
throw err;
|
|
471
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
472
|
+
'parent': request.parent ?? '',
|
|
473
473
|
});
|
|
474
|
+
this.initialize().catch(err => { throw err; });
|
|
474
475
|
this._log.info('batchUpdateEntitySignalsMappings request %j', request);
|
|
475
476
|
const wrappedCallback = callback
|
|
476
477
|
? (error, response, options, rawResponse) => {
|
|
@@ -478,11 +479,16 @@ class EntitySignalsMappingServiceClient {
|
|
|
478
479
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
479
480
|
}
|
|
480
481
|
: undefined;
|
|
481
|
-
return this.innerApiCalls
|
|
482
|
-
.batchUpdateEntitySignalsMappings(request, options, wrappedCallback)
|
|
482
|
+
return this.innerApiCalls.batchUpdateEntitySignalsMappings(request, options, wrappedCallback)
|
|
483
483
|
?.then(([response, options, rawResponse]) => {
|
|
484
484
|
this._log.info('batchUpdateEntitySignalsMappings response %j', response);
|
|
485
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;
|
|
486
492
|
});
|
|
487
493
|
}
|
|
488
494
|
listEntitySignalsMappings(request, optionsOrCallback, callback) {
|
|
@@ -498,13 +504,10 @@ class EntitySignalsMappingServiceClient {
|
|
|
498
504
|
options = options || {};
|
|
499
505
|
options.otherArgs = options.otherArgs || {};
|
|
500
506
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
501
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
502
|
-
|
|
503
|
-
parent: request.parent ?? '',
|
|
504
|
-
});
|
|
505
|
-
this.initialize().catch(err => {
|
|
506
|
-
throw err;
|
|
507
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
508
|
+
'parent': request.parent ?? '',
|
|
507
509
|
});
|
|
510
|
+
this.initialize().catch(err => { throw err; });
|
|
508
511
|
const wrappedCallback = callback
|
|
509
512
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
510
513
|
this._log.info('listEntitySignalsMappings values %j', values);
|
|
@@ -565,15 +568,12 @@ class EntitySignalsMappingServiceClient {
|
|
|
565
568
|
options = options || {};
|
|
566
569
|
options.otherArgs = options.otherArgs || {};
|
|
567
570
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
568
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
});
|
|
571
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
572
|
+
'parent': request.parent ?? '',
|
|
573
|
+
});
|
|
572
574
|
const defaultCallSettings = this._defaults['listEntitySignalsMappings'];
|
|
573
575
|
const callSettings = defaultCallSettings.merge(options);
|
|
574
|
-
this.initialize().catch(err => {
|
|
575
|
-
throw err;
|
|
576
|
-
});
|
|
576
|
+
this.initialize().catch(err => { throw err; });
|
|
577
577
|
this._log.info('listEntitySignalsMappings stream %j', request);
|
|
578
578
|
return this.descriptors.page.listEntitySignalsMappings.createStream(this.innerApiCalls.listEntitySignalsMappings, request, callSettings);
|
|
579
579
|
}
|
|
@@ -626,21 +626,63 @@ class EntitySignalsMappingServiceClient {
|
|
|
626
626
|
options = options || {};
|
|
627
627
|
options.otherArgs = options.otherArgs || {};
|
|
628
628
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
629
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
});
|
|
629
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
630
|
+
'parent': request.parent ?? '',
|
|
631
|
+
});
|
|
633
632
|
const defaultCallSettings = this._defaults['listEntitySignalsMappings'];
|
|
634
633
|
const callSettings = defaultCallSettings.merge(options);
|
|
635
|
-
this.initialize().catch(err => {
|
|
636
|
-
throw err;
|
|
637
|
-
});
|
|
634
|
+
this.initialize().catch(err => { throw err; });
|
|
638
635
|
this._log.info('listEntitySignalsMappings iterate %j', request);
|
|
639
636
|
return this.descriptors.page.listEntitySignalsMappings.asyncIterate(this.innerApiCalls['listEntitySignalsMappings'], request, callSettings);
|
|
640
637
|
}
|
|
641
638
|
// --------------------
|
|
642
639
|
// -- Path templates --
|
|
643
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
|
+
}
|
|
644
686
|
/**
|
|
645
687
|
* Return a fully-qualified adUnit resource name string.
|
|
646
688
|
*
|
|
@@ -674,6 +716,39 @@ class EntitySignalsMappingServiceClient {
|
|
|
674
716
|
matchAdUnitFromAdUnitName(adUnitName) {
|
|
675
717
|
return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
|
|
676
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
|
+
}
|
|
677
752
|
/**
|
|
678
753
|
* Return a fully-qualified company resource name string.
|
|
679
754
|
*
|
|
@@ -695,8 +770,7 @@ class EntitySignalsMappingServiceClient {
|
|
|
695
770
|
* @returns {string} A string representing the network_code.
|
|
696
771
|
*/
|
|
697
772
|
matchNetworkCodeFromCompanyName(companyName) {
|
|
698
|
-
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
699
|
-
.network_code;
|
|
773
|
+
return this.pathTemplates.companyPathTemplate.match(companyName).network_code;
|
|
700
774
|
}
|
|
701
775
|
/**
|
|
702
776
|
* Parse the company from Company resource.
|
|
@@ -729,8 +803,7 @@ class EntitySignalsMappingServiceClient {
|
|
|
729
803
|
* @returns {string} A string representing the network_code.
|
|
730
804
|
*/
|
|
731
805
|
matchNetworkCodeFromContactName(contactName) {
|
|
732
|
-
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
733
|
-
.network_code;
|
|
806
|
+
return this.pathTemplates.contactPathTemplate.match(contactName).network_code;
|
|
734
807
|
}
|
|
735
808
|
/**
|
|
736
809
|
* Parse the contact from Contact resource.
|
|
@@ -763,8 +836,7 @@ class EntitySignalsMappingServiceClient {
|
|
|
763
836
|
* @returns {string} A string representing the network_code.
|
|
764
837
|
*/
|
|
765
838
|
matchNetworkCodeFromCustomFieldName(customFieldName) {
|
|
766
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
767
|
-
.network_code;
|
|
839
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName).network_code;
|
|
768
840
|
}
|
|
769
841
|
/**
|
|
770
842
|
* Parse the custom_field from CustomField resource.
|
|
@@ -774,8 +846,7 @@ class EntitySignalsMappingServiceClient {
|
|
|
774
846
|
* @returns {string} A string representing the custom_field.
|
|
775
847
|
*/
|
|
776
848
|
matchCustomFieldFromCustomFieldName(customFieldName) {
|
|
777
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
778
|
-
.custom_field;
|
|
849
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName).custom_field;
|
|
779
850
|
}
|
|
780
851
|
/**
|
|
781
852
|
* Return a fully-qualified customTargetingKey resource name string.
|
|
@@ -814,14 +885,12 @@ class EntitySignalsMappingServiceClient {
|
|
|
814
885
|
* Return a fully-qualified customTargetingValue resource name string.
|
|
815
886
|
*
|
|
816
887
|
* @param {string} network_code
|
|
817
|
-
* @param {string} custom_targeting_key
|
|
818
888
|
* @param {string} custom_targeting_value
|
|
819
889
|
* @returns {string} Resource name string.
|
|
820
890
|
*/
|
|
821
|
-
customTargetingValuePath(networkCode,
|
|
891
|
+
customTargetingValuePath(networkCode, customTargetingValue) {
|
|
822
892
|
return this.pathTemplates.customTargetingValuePathTemplate.render({
|
|
823
893
|
network_code: networkCode,
|
|
824
|
-
custom_targeting_key: customTargetingKey,
|
|
825
894
|
custom_targeting_value: customTargetingValue,
|
|
826
895
|
});
|
|
827
896
|
}
|
|
@@ -835,16 +904,6 @@ class EntitySignalsMappingServiceClient {
|
|
|
835
904
|
matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
|
|
836
905
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
|
|
837
906
|
}
|
|
838
|
-
/**
|
|
839
|
-
* Parse the custom_targeting_key from CustomTargetingValue resource.
|
|
840
|
-
*
|
|
841
|
-
* @param {string} customTargetingValueName
|
|
842
|
-
* A fully-qualified path representing CustomTargetingValue resource.
|
|
843
|
-
* @returns {string} A string representing the custom_targeting_key.
|
|
844
|
-
*/
|
|
845
|
-
matchCustomTargetingKeyFromCustomTargetingValueName(customTargetingValueName) {
|
|
846
|
-
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_key;
|
|
847
|
-
}
|
|
848
907
|
/**
|
|
849
908
|
* Parse the custom_targeting_value from CustomTargetingValue resource.
|
|
850
909
|
*
|
|
@@ -855,6 +914,39 @@ class EntitySignalsMappingServiceClient {
|
|
|
855
914
|
matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
|
|
856
915
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
|
|
857
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
|
+
}
|
|
858
950
|
/**
|
|
859
951
|
* Return a fully-qualified entitySignalsMapping resource name string.
|
|
860
952
|
*
|
|
@@ -888,6 +980,39 @@ class EntitySignalsMappingServiceClient {
|
|
|
888
980
|
matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
|
|
889
981
|
return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
|
|
890
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
|
+
}
|
|
891
1016
|
/**
|
|
892
1017
|
* Return a fully-qualified label resource name string.
|
|
893
1018
|
*
|
|
@@ -921,6 +1046,39 @@ class EntitySignalsMappingServiceClient {
|
|
|
921
1046
|
matchLabelFromLabelName(labelName) {
|
|
922
1047
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
923
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
|
+
}
|
|
924
1082
|
/**
|
|
925
1083
|
* Return a fully-qualified network resource name string.
|
|
926
1084
|
*
|
|
@@ -940,8 +1098,73 @@ class EntitySignalsMappingServiceClient {
|
|
|
940
1098
|
* @returns {string} A string representing the network_code.
|
|
941
1099
|
*/
|
|
942
1100
|
matchNetworkCodeFromNetworkName(networkName) {
|
|
943
|
-
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
944
|
-
|
|
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;
|
|
945
1168
|
}
|
|
946
1169
|
/**
|
|
947
1170
|
* Return a fully-qualified order resource name string.
|
|
@@ -997,8 +1220,7 @@ class EntitySignalsMappingServiceClient {
|
|
|
997
1220
|
* @returns {string} A string representing the network_code.
|
|
998
1221
|
*/
|
|
999
1222
|
matchNetworkCodeFromPlacementName(placementName) {
|
|
1000
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1001
|
-
.network_code;
|
|
1223
|
+
return this.pathTemplates.placementPathTemplate.match(placementName).network_code;
|
|
1002
1224
|
}
|
|
1003
1225
|
/**
|
|
1004
1226
|
* Parse the placement from Placement resource.
|
|
@@ -1008,8 +1230,106 @@ class EntitySignalsMappingServiceClient {
|
|
|
1008
1230
|
* @returns {string} A string representing the placement.
|
|
1009
1231
|
*/
|
|
1010
1232
|
matchPlacementFromPlacementName(placementName) {
|
|
1011
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
1012
|
-
|
|
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;
|
|
1013
1333
|
}
|
|
1014
1334
|
/**
|
|
1015
1335
|
* Return a fully-qualified report resource name string.
|