@google-ads/admanager 0.5.0 → 0.5.1
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 +15 -0
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_service.proto +4 -3
- package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +216 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +190 -0
- package/build/protos/google/ads/admanager/v1/goal.proto +57 -0
- package/build/protos/google/ads/admanager/v1/goal_enums.proto +129 -0
- package/build/protos/google/ads/admanager/v1/line_item_enums.proto +86 -0
- package/build/protos/google/ads/admanager/v1/line_item_messages.proto +93 -0
- package/build/protos/google/ads/admanager/v1/line_item_service.proto +128 -0
- package/build/protos/google/ads/admanager/v1/network_messages.proto +8 -8
- package/build/protos/google/ads/admanager/v1/network_service.proto +32 -1
- package/build/protos/google/ads/admanager/v1/order_messages.proto +4 -2
- package/build/protos/google/ads/admanager/v1/report_definition.proto +927 -58
- package/build/protos/google/ads/admanager/v1/report_messages.proto +7 -2
- package/build/protos/protos.d.ts +9435 -5893
- package/build/protos/protos.js +29871 -20651
- package/build/protos/protos.json +1191 -105
- package/build/src/index.d.ts +4 -1
- package/build/src/index.js +5 -3
- package/build/src/index.js.map +1 -1
- package/build/src/v1/ad_break_service_client.d.ts +24 -0
- package/build/src/v1/ad_break_service_client.js +35 -1
- package/build/src/v1/ad_break_service_client.js.map +1 -1
- package/build/src/v1/ad_break_service_proto_list.json +5 -0
- package/build/src/v1/ad_review_center_ad_service_client.d.ts +36 -9
- package/build/src/v1/ad_review_center_ad_service_client.js +43 -7
- package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -1
- package/build/src/v1/ad_review_center_ad_service_proto_list.json +5 -0
- package/build/src/v1/ad_unit_service_client.d.ts +214 -0
- package/build/src/v1/ad_unit_service_client.js +288 -2
- package/build/src/v1/ad_unit_service_client.js.map +1 -1
- package/build/src/v1/ad_unit_service_client_config.json +28 -0
- package/build/src/v1/ad_unit_service_proto_list.json +5 -0
- package/build/src/v1/application_service_client.d.ts +24 -0
- package/build/src/v1/application_service_client.js +35 -1
- package/build/src/v1/application_service_client.js.map +1 -1
- package/build/src/v1/application_service_proto_list.json +5 -0
- package/build/src/v1/audience_segment_service_client.d.ts +24 -0
- package/build/src/v1/audience_segment_service_client.js +35 -1
- package/build/src/v1/audience_segment_service_client.js.map +1 -1
- package/build/src/v1/audience_segment_service_proto_list.json +5 -0
- package/build/src/v1/bandwidth_group_service_client.d.ts +24 -0
- package/build/src/v1/bandwidth_group_service_client.js +35 -1
- package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
- package/build/src/v1/bandwidth_group_service_proto_list.json +5 -0
- package/build/src/v1/browser_language_service_client.d.ts +24 -0
- package/build/src/v1/browser_language_service_client.js +35 -1
- package/build/src/v1/browser_language_service_client.js.map +1 -1
- package/build/src/v1/browser_language_service_proto_list.json +5 -0
- package/build/src/v1/browser_service_client.d.ts +24 -0
- package/build/src/v1/browser_service_client.js +35 -1
- package/build/src/v1/browser_service_client.js.map +1 -1
- package/build/src/v1/browser_service_proto_list.json +5 -0
- package/build/src/v1/cms_metadata_key_service_client.d.ts +24 -0
- package/build/src/v1/cms_metadata_key_service_client.js +35 -1
- package/build/src/v1/cms_metadata_key_service_client.js.map +1 -1
- package/build/src/v1/cms_metadata_key_service_proto_list.json +5 -0
- package/build/src/v1/cms_metadata_value_service_client.d.ts +26 -2
- package/build/src/v1/cms_metadata_value_service_client.js +35 -1
- package/build/src/v1/cms_metadata_value_service_client.js.map +1 -1
- package/build/src/v1/cms_metadata_value_service_proto_list.json +5 -0
- package/build/src/v1/company_service_client.d.ts +24 -0
- package/build/src/v1/company_service_client.js +35 -1
- package/build/src/v1/company_service_client.js.map +1 -1
- package/build/src/v1/company_service_proto_list.json +5 -0
- package/build/src/v1/contact_service_client.d.ts +24 -0
- package/build/src/v1/contact_service_client.js +35 -1
- package/build/src/v1/contact_service_client.js.map +1 -1
- package/build/src/v1/contact_service_proto_list.json +5 -0
- package/build/src/v1/content_bundle_service_client.d.ts +24 -0
- package/build/src/v1/content_bundle_service_client.js +35 -1
- package/build/src/v1/content_bundle_service_client.js.map +1 -1
- package/build/src/v1/content_bundle_service_proto_list.json +5 -0
- package/build/src/v1/content_label_service_client.d.ts +24 -0
- package/build/src/v1/content_label_service_client.js +35 -1
- package/build/src/v1/content_label_service_client.js.map +1 -1
- package/build/src/v1/content_label_service_proto_list.json +5 -0
- package/build/src/v1/content_service_client.d.ts +24 -0
- package/build/src/v1/content_service_client.js +35 -1
- package/build/src/v1/content_service_client.js.map +1 -1
- package/build/src/v1/content_service_proto_list.json +5 -0
- package/build/src/v1/creative_template_service_client.d.ts +24 -0
- package/build/src/v1/creative_template_service_client.js +35 -1
- package/build/src/v1/creative_template_service_client.js.map +1 -1
- package/build/src/v1/creative_template_service_proto_list.json +5 -0
- package/build/src/v1/custom_field_service_client.d.ts +24 -0
- package/build/src/v1/custom_field_service_client.js +35 -1
- package/build/src/v1/custom_field_service_client.js.map +1 -1
- package/build/src/v1/custom_field_service_proto_list.json +5 -0
- package/build/src/v1/custom_targeting_key_service_client.d.ts +190 -0
- package/build/src/v1/custom_targeting_key_service_client.js +252 -2
- package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_key_service_client_config.json +24 -0
- package/build/src/v1/custom_targeting_key_service_proto_list.json +5 -0
- package/build/src/v1/custom_targeting_value_service_client.d.ts +24 -0
- package/build/src/v1/custom_targeting_value_service_client.js +35 -1
- package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_value_service_proto_list.json +5 -0
- package/build/src/v1/device_capability_service_client.d.ts +24 -0
- package/build/src/v1/device_capability_service_client.js +35 -1
- package/build/src/v1/device_capability_service_client.js.map +1 -1
- package/build/src/v1/device_capability_service_proto_list.json +5 -0
- package/build/src/v1/device_category_service_client.d.ts +24 -0
- package/build/src/v1/device_category_service_client.js +35 -1
- package/build/src/v1/device_category_service_client.js.map +1 -1
- package/build/src/v1/device_category_service_proto_list.json +5 -0
- package/build/src/v1/device_manufacturer_service_client.d.ts +24 -0
- package/build/src/v1/device_manufacturer_service_client.js +35 -1
- package/build/src/v1/device_manufacturer_service_client.js.map +1 -1
- package/build/src/v1/device_manufacturer_service_proto_list.json +5 -0
- package/build/src/v1/entity_signals_mapping_service_client.d.ts +24 -0
- package/build/src/v1/entity_signals_mapping_service_client.js +35 -1
- package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
- package/build/src/v1/entity_signals_mapping_service_proto_list.json +5 -0
- package/build/src/v1/gapic_metadata.json +174 -2
- package/build/src/v1/geo_target_service_client.d.ts +24 -0
- package/build/src/v1/geo_target_service_client.js +35 -1
- package/build/src/v1/geo_target_service_client.js.map +1 -1
- package/build/src/v1/geo_target_service_proto_list.json +5 -0
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +4 -2
- package/build/src/v1/index.js.map +1 -1
- package/build/src/v1/line_item_service_client.d.ts +1369 -0
- package/build/src/v1/line_item_service_client.js +2027 -0
- package/build/src/v1/line_item_service_client.js.map +1 -0
- package/build/src/v1/line_item_service_client_config.json +34 -0
- package/build/src/v1/line_item_service_proto_list.json +127 -0
- package/build/src/v1/mobile_carrier_service_client.d.ts +24 -0
- package/build/src/v1/mobile_carrier_service_client.js +35 -1
- package/build/src/v1/mobile_carrier_service_client.js.map +1 -1
- package/build/src/v1/mobile_carrier_service_proto_list.json +5 -0
- package/build/src/v1/mobile_device_service_client.d.ts +24 -0
- package/build/src/v1/mobile_device_service_client.js +35 -1
- package/build/src/v1/mobile_device_service_client.js.map +1 -1
- package/build/src/v1/mobile_device_service_proto_list.json +5 -0
- package/build/src/v1/mobile_device_submodel_service_client.d.ts +24 -0
- package/build/src/v1/mobile_device_submodel_service_client.js +35 -1
- package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -1
- package/build/src/v1/mobile_device_submodel_service_proto_list.json +5 -0
- package/build/src/v1/network_service_client.d.ts +114 -12
- package/build/src/v1/network_service_client.js +133 -16
- package/build/src/v1/network_service_client.js.map +1 -1
- package/build/src/v1/network_service_proto_list.json +5 -0
- package/build/src/v1/operating_system_service_client.d.ts +24 -0
- package/build/src/v1/operating_system_service_client.js +35 -1
- package/build/src/v1/operating_system_service_client.js.map +1 -1
- package/build/src/v1/operating_system_service_proto_list.json +5 -0
- package/build/src/v1/operating_system_version_service_client.d.ts +24 -0
- package/build/src/v1/operating_system_version_service_client.js +35 -1
- package/build/src/v1/operating_system_version_service_client.js.map +1 -1
- package/build/src/v1/operating_system_version_service_proto_list.json +5 -0
- package/build/src/v1/order_service_client.d.ts +24 -0
- package/build/src/v1/order_service_client.js +35 -1
- package/build/src/v1/order_service_client.js.map +1 -1
- package/build/src/v1/order_service_proto_list.json +5 -0
- package/build/src/v1/placement_service_client.d.ts +24 -0
- package/build/src/v1/placement_service_client.js +35 -1
- package/build/src/v1/placement_service_client.js.map +1 -1
- package/build/src/v1/placement_service_proto_list.json +5 -0
- package/build/src/v1/private_auction_deal_service_client.d.ts +24 -0
- package/build/src/v1/private_auction_deal_service_client.js +35 -1
- package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
- package/build/src/v1/private_auction_deal_service_proto_list.json +5 -0
- package/build/src/v1/private_auction_service_client.d.ts +24 -0
- package/build/src/v1/private_auction_service_client.js +35 -1
- package/build/src/v1/private_auction_service_client.js.map +1 -1
- package/build/src/v1/private_auction_service_proto_list.json +5 -0
- package/build/src/v1/programmatic_buyer_service_client.d.ts +24 -0
- package/build/src/v1/programmatic_buyer_service_client.js +35 -1
- package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
- package/build/src/v1/programmatic_buyer_service_proto_list.json +5 -0
- package/build/src/v1/report_service_client.d.ts +24 -0
- package/build/src/v1/report_service_client.js +35 -1
- package/build/src/v1/report_service_client.js.map +1 -1
- package/build/src/v1/report_service_proto_list.json +5 -0
- package/build/src/v1/role_service_client.d.ts +24 -0
- package/build/src/v1/role_service_client.js +35 -1
- package/build/src/v1/role_service_client.js.map +1 -1
- package/build/src/v1/role_service_proto_list.json +5 -0
- package/build/src/v1/site_service_client.d.ts +24 -0
- package/build/src/v1/site_service_client.js +35 -1
- package/build/src/v1/site_service_client.js.map +1 -1
- package/build/src/v1/site_service_proto_list.json +5 -0
- package/build/src/v1/taxonomy_category_service_client.d.ts +24 -0
- package/build/src/v1/taxonomy_category_service_client.js +35 -1
- package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
- package/build/src/v1/taxonomy_category_service_proto_list.json +5 -0
- package/build/src/v1/team_service_client.d.ts +24 -0
- package/build/src/v1/team_service_client.js +35 -1
- package/build/src/v1/team_service_client.js.map +1 -1
- package/build/src/v1/team_service_proto_list.json +5 -0
- package/build/src/v1/user_service_client.d.ts +24 -0
- package/build/src/v1/user_service_client.js +35 -1
- package/build/src/v1/user_service_client.js.map +1 -1
- package/build/src/v1/user_service_proto_list.json +5 -0
- package/package.json +10 -2
- package/LICENSE +0 -202
|
@@ -140,6 +140,172 @@ export declare class CustomTargetingKeyServiceClient {
|
|
|
140
140
|
]>;
|
|
141
141
|
getCustomTargetingKey(request: protos.google.ads.admanager.v1.IGetCustomTargetingKeyRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.ICustomTargetingKey, protos.google.ads.admanager.v1.IGetCustomTargetingKeyRequest | null | undefined, {} | null | undefined>): void;
|
|
142
142
|
getCustomTargetingKey(request: protos.google.ads.admanager.v1.IGetCustomTargetingKeyRequest, callback: Callback<protos.google.ads.admanager.v1.ICustomTargetingKey, protos.google.ads.admanager.v1.IGetCustomTargetingKeyRequest | null | undefined, {} | null | undefined>): void;
|
|
143
|
+
/**
|
|
144
|
+
* API to create a `CustomTargetingKey` object.
|
|
145
|
+
*
|
|
146
|
+
* @param {Object} request
|
|
147
|
+
* The request object that will be sent.
|
|
148
|
+
* @param {string} request.parent
|
|
149
|
+
* Required. The parent resource where this `CustomTargetingKey` will be
|
|
150
|
+
* created. Format: `networks/{network_code}`
|
|
151
|
+
* @param {google.ads.admanager.v1.CustomTargetingKey} request.customTargetingKey
|
|
152
|
+
* Required. The `CustomTargetingKey` to create.
|
|
153
|
+
* @param {object} [options]
|
|
154
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
155
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
156
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.CustomTargetingKey|CustomTargetingKey}.
|
|
157
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
158
|
+
* for more details and examples.
|
|
159
|
+
* @example <caption>include:samples/generated/v1/custom_targeting_key_service.create_custom_targeting_key.js</caption>
|
|
160
|
+
* region_tag:admanager_v1_generated_CustomTargetingKeyService_CreateCustomTargetingKey_async
|
|
161
|
+
*/
|
|
162
|
+
createCustomTargetingKey(request?: protos.google.ads.admanager.v1.ICreateCustomTargetingKeyRequest, options?: CallOptions): Promise<[
|
|
163
|
+
protos.google.ads.admanager.v1.ICustomTargetingKey,
|
|
164
|
+
protos.google.ads.admanager.v1.ICreateCustomTargetingKeyRequest | undefined,
|
|
165
|
+
{} | undefined
|
|
166
|
+
]>;
|
|
167
|
+
createCustomTargetingKey(request: protos.google.ads.admanager.v1.ICreateCustomTargetingKeyRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.ICustomTargetingKey, protos.google.ads.admanager.v1.ICreateCustomTargetingKeyRequest | null | undefined, {} | null | undefined>): void;
|
|
168
|
+
createCustomTargetingKey(request: protos.google.ads.admanager.v1.ICreateCustomTargetingKeyRequest, callback: Callback<protos.google.ads.admanager.v1.ICustomTargetingKey, protos.google.ads.admanager.v1.ICreateCustomTargetingKeyRequest | null | undefined, {} | null | undefined>): void;
|
|
169
|
+
/**
|
|
170
|
+
* API to batch create `CustomTargetingKey` objects.
|
|
171
|
+
*
|
|
172
|
+
* @param {Object} request
|
|
173
|
+
* The request object that will be sent.
|
|
174
|
+
* @param {string} request.parent
|
|
175
|
+
* Required. The parent resource where `CustomTargetingKeys` will be created.
|
|
176
|
+
* Format: `networks/{network_code}`
|
|
177
|
+
* The parent field in the CreateCustomTargetingKeyRequest must match this
|
|
178
|
+
* field.
|
|
179
|
+
* @param {number[]} request.requests
|
|
180
|
+
* Required. The `CustomTargetingKey` objects to create.
|
|
181
|
+
* A maximum of 100 objects can be created in a batch.
|
|
182
|
+
* @param {object} [options]
|
|
183
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
184
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
185
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse|BatchCreateCustomTargetingKeysResponse}.
|
|
186
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
187
|
+
* for more details and examples.
|
|
188
|
+
* @example <caption>include:samples/generated/v1/custom_targeting_key_service.batch_create_custom_targeting_keys.js</caption>
|
|
189
|
+
* region_tag:admanager_v1_generated_CustomTargetingKeyService_BatchCreateCustomTargetingKeys_async
|
|
190
|
+
*/
|
|
191
|
+
batchCreateCustomTargetingKeys(request?: protos.google.ads.admanager.v1.IBatchCreateCustomTargetingKeysRequest, options?: CallOptions): Promise<[
|
|
192
|
+
protos.google.ads.admanager.v1.IBatchCreateCustomTargetingKeysResponse,
|
|
193
|
+
protos.google.ads.admanager.v1.IBatchCreateCustomTargetingKeysRequest | undefined,
|
|
194
|
+
{} | undefined
|
|
195
|
+
]>;
|
|
196
|
+
batchCreateCustomTargetingKeys(request: protos.google.ads.admanager.v1.IBatchCreateCustomTargetingKeysRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IBatchCreateCustomTargetingKeysResponse, protos.google.ads.admanager.v1.IBatchCreateCustomTargetingKeysRequest | null | undefined, {} | null | undefined>): void;
|
|
197
|
+
batchCreateCustomTargetingKeys(request: protos.google.ads.admanager.v1.IBatchCreateCustomTargetingKeysRequest, callback: Callback<protos.google.ads.admanager.v1.IBatchCreateCustomTargetingKeysResponse, protos.google.ads.admanager.v1.IBatchCreateCustomTargetingKeysRequest | null | undefined, {} | null | undefined>): void;
|
|
198
|
+
/**
|
|
199
|
+
* API to update a `CustomTargetingKey` object.
|
|
200
|
+
*
|
|
201
|
+
* @param {Object} request
|
|
202
|
+
* The request object that will be sent.
|
|
203
|
+
* @param {google.ads.admanager.v1.CustomTargetingKey} request.customTargetingKey
|
|
204
|
+
* Required. The `CustomTargetingKey` to update.
|
|
205
|
+
*
|
|
206
|
+
* The `CustomTargetingKey`'s `name` is used to identify the
|
|
207
|
+
* `CustomTargetingKey` to update.
|
|
208
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
209
|
+
* Required. The list of fields to update.
|
|
210
|
+
* @param {object} [options]
|
|
211
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
212
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
213
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.CustomTargetingKey|CustomTargetingKey}.
|
|
214
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
215
|
+
* for more details and examples.
|
|
216
|
+
* @example <caption>include:samples/generated/v1/custom_targeting_key_service.update_custom_targeting_key.js</caption>
|
|
217
|
+
* region_tag:admanager_v1_generated_CustomTargetingKeyService_UpdateCustomTargetingKey_async
|
|
218
|
+
*/
|
|
219
|
+
updateCustomTargetingKey(request?: protos.google.ads.admanager.v1.IUpdateCustomTargetingKeyRequest, options?: CallOptions): Promise<[
|
|
220
|
+
protos.google.ads.admanager.v1.ICustomTargetingKey,
|
|
221
|
+
protos.google.ads.admanager.v1.IUpdateCustomTargetingKeyRequest | undefined,
|
|
222
|
+
{} | undefined
|
|
223
|
+
]>;
|
|
224
|
+
updateCustomTargetingKey(request: protos.google.ads.admanager.v1.IUpdateCustomTargetingKeyRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.ICustomTargetingKey, protos.google.ads.admanager.v1.IUpdateCustomTargetingKeyRequest | null | undefined, {} | null | undefined>): void;
|
|
225
|
+
updateCustomTargetingKey(request: protos.google.ads.admanager.v1.IUpdateCustomTargetingKeyRequest, callback: Callback<protos.google.ads.admanager.v1.ICustomTargetingKey, protos.google.ads.admanager.v1.IUpdateCustomTargetingKeyRequest | null | undefined, {} | null | undefined>): void;
|
|
226
|
+
/**
|
|
227
|
+
* API to batch update `CustomTargetingKey` objects.
|
|
228
|
+
*
|
|
229
|
+
* @param {Object} request
|
|
230
|
+
* The request object that will be sent.
|
|
231
|
+
* @param {string} request.parent
|
|
232
|
+
* Required. The parent resource where `CustomTargetingKeys` will be updated.
|
|
233
|
+
* Format: `networks/{network_code}`
|
|
234
|
+
* The parent field in the UpdateCustomTargetingKeyRequest must match this
|
|
235
|
+
* field.
|
|
236
|
+
* @param {number[]} request.requests
|
|
237
|
+
* Required. The `CustomTargetingKey` objects to update.
|
|
238
|
+
* A maximum of 100 objects can be updated in a batch.
|
|
239
|
+
* @param {object} [options]
|
|
240
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
241
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
242
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse|BatchUpdateCustomTargetingKeysResponse}.
|
|
243
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
244
|
+
* for more details and examples.
|
|
245
|
+
* @example <caption>include:samples/generated/v1/custom_targeting_key_service.batch_update_custom_targeting_keys.js</caption>
|
|
246
|
+
* region_tag:admanager_v1_generated_CustomTargetingKeyService_BatchUpdateCustomTargetingKeys_async
|
|
247
|
+
*/
|
|
248
|
+
batchUpdateCustomTargetingKeys(request?: protos.google.ads.admanager.v1.IBatchUpdateCustomTargetingKeysRequest, options?: CallOptions): Promise<[
|
|
249
|
+
protos.google.ads.admanager.v1.IBatchUpdateCustomTargetingKeysResponse,
|
|
250
|
+
protos.google.ads.admanager.v1.IBatchUpdateCustomTargetingKeysRequest | undefined,
|
|
251
|
+
{} | undefined
|
|
252
|
+
]>;
|
|
253
|
+
batchUpdateCustomTargetingKeys(request: protos.google.ads.admanager.v1.IBatchUpdateCustomTargetingKeysRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IBatchUpdateCustomTargetingKeysResponse, protos.google.ads.admanager.v1.IBatchUpdateCustomTargetingKeysRequest | null | undefined, {} | null | undefined>): void;
|
|
254
|
+
batchUpdateCustomTargetingKeys(request: protos.google.ads.admanager.v1.IBatchUpdateCustomTargetingKeysRequest, callback: Callback<protos.google.ads.admanager.v1.IBatchUpdateCustomTargetingKeysResponse, protos.google.ads.admanager.v1.IBatchUpdateCustomTargetingKeysRequest | null | undefined, {} | null | undefined>): void;
|
|
255
|
+
/**
|
|
256
|
+
* API to batch activate `CustomTargetingKey` objects.
|
|
257
|
+
*
|
|
258
|
+
* @param {Object} request
|
|
259
|
+
* The request object that will be sent.
|
|
260
|
+
* @param {string} request.parent
|
|
261
|
+
* Required. Format: `networks/{network_code}`
|
|
262
|
+
* @param {string[]} request.names
|
|
263
|
+
* Required. The resource names of the `CustomTargetingKey`s to activate.
|
|
264
|
+
* Format:
|
|
265
|
+
* `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
|
|
266
|
+
* @param {object} [options]
|
|
267
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
268
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
269
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse|BatchActivateCustomTargetingKeysResponse}.
|
|
270
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
271
|
+
* for more details and examples.
|
|
272
|
+
* @example <caption>include:samples/generated/v1/custom_targeting_key_service.batch_activate_custom_targeting_keys.js</caption>
|
|
273
|
+
* region_tag:admanager_v1_generated_CustomTargetingKeyService_BatchActivateCustomTargetingKeys_async
|
|
274
|
+
*/
|
|
275
|
+
batchActivateCustomTargetingKeys(request?: protos.google.ads.admanager.v1.IBatchActivateCustomTargetingKeysRequest, options?: CallOptions): Promise<[
|
|
276
|
+
protos.google.ads.admanager.v1.IBatchActivateCustomTargetingKeysResponse,
|
|
277
|
+
protos.google.ads.admanager.v1.IBatchActivateCustomTargetingKeysRequest | undefined,
|
|
278
|
+
{} | undefined
|
|
279
|
+
]>;
|
|
280
|
+
batchActivateCustomTargetingKeys(request: protos.google.ads.admanager.v1.IBatchActivateCustomTargetingKeysRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IBatchActivateCustomTargetingKeysResponse, protos.google.ads.admanager.v1.IBatchActivateCustomTargetingKeysRequest | null | undefined, {} | null | undefined>): void;
|
|
281
|
+
batchActivateCustomTargetingKeys(request: protos.google.ads.admanager.v1.IBatchActivateCustomTargetingKeysRequest, callback: Callback<protos.google.ads.admanager.v1.IBatchActivateCustomTargetingKeysResponse, protos.google.ads.admanager.v1.IBatchActivateCustomTargetingKeysRequest | null | undefined, {} | null | undefined>): void;
|
|
282
|
+
/**
|
|
283
|
+
* Deactivates a list of `CustomTargetingKey` objects.
|
|
284
|
+
*
|
|
285
|
+
* @param {Object} request
|
|
286
|
+
* The request object that will be sent.
|
|
287
|
+
* @param {string} request.parent
|
|
288
|
+
* Required. Format: `networks/{network_code}`
|
|
289
|
+
* @param {string[]} request.names
|
|
290
|
+
* Required. The resource names of the `CustomTargetingKey`s to deactivate.
|
|
291
|
+
* Format:
|
|
292
|
+
* `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
|
|
293
|
+
* @param {object} [options]
|
|
294
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
295
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
296
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse|BatchDeactivateCustomTargetingKeysResponse}.
|
|
297
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
298
|
+
* for more details and examples.
|
|
299
|
+
* @example <caption>include:samples/generated/v1/custom_targeting_key_service.batch_deactivate_custom_targeting_keys.js</caption>
|
|
300
|
+
* region_tag:admanager_v1_generated_CustomTargetingKeyService_BatchDeactivateCustomTargetingKeys_async
|
|
301
|
+
*/
|
|
302
|
+
batchDeactivateCustomTargetingKeys(request?: protos.google.ads.admanager.v1.IBatchDeactivateCustomTargetingKeysRequest, options?: CallOptions): Promise<[
|
|
303
|
+
protos.google.ads.admanager.v1.IBatchDeactivateCustomTargetingKeysResponse,
|
|
304
|
+
protos.google.ads.admanager.v1.IBatchDeactivateCustomTargetingKeysRequest | undefined,
|
|
305
|
+
{} | undefined
|
|
306
|
+
]>;
|
|
307
|
+
batchDeactivateCustomTargetingKeys(request: protos.google.ads.admanager.v1.IBatchDeactivateCustomTargetingKeysRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IBatchDeactivateCustomTargetingKeysResponse, protos.google.ads.admanager.v1.IBatchDeactivateCustomTargetingKeysRequest | null | undefined, {} | null | undefined>): void;
|
|
308
|
+
batchDeactivateCustomTargetingKeys(request: protos.google.ads.admanager.v1.IBatchDeactivateCustomTargetingKeysRequest, callback: Callback<protos.google.ads.admanager.v1.IBatchDeactivateCustomTargetingKeysResponse, protos.google.ads.admanager.v1.IBatchDeactivateCustomTargetingKeysRequest | null | undefined, {} | null | undefined>): void;
|
|
143
309
|
/**
|
|
144
310
|
* API to retrieve a list of `CustomTargetingKey` objects.
|
|
145
311
|
*
|
|
@@ -889,6 +1055,30 @@ export declare class CustomTargetingKeyServiceClient {
|
|
|
889
1055
|
* @returns {string} A string representing the label.
|
|
890
1056
|
*/
|
|
891
1057
|
matchLabelFromLabelName(labelName: string): string | number;
|
|
1058
|
+
/**
|
|
1059
|
+
* Return a fully-qualified lineItem resource name string.
|
|
1060
|
+
*
|
|
1061
|
+
* @param {string} network_code
|
|
1062
|
+
* @param {string} line_item
|
|
1063
|
+
* @returns {string} Resource name string.
|
|
1064
|
+
*/
|
|
1065
|
+
lineItemPath(networkCode: string, lineItem: string): string;
|
|
1066
|
+
/**
|
|
1067
|
+
* Parse the network_code from LineItem resource.
|
|
1068
|
+
*
|
|
1069
|
+
* @param {string} lineItemName
|
|
1070
|
+
* A fully-qualified path representing LineItem resource.
|
|
1071
|
+
* @returns {string} A string representing the network_code.
|
|
1072
|
+
*/
|
|
1073
|
+
matchNetworkCodeFromLineItemName(lineItemName: string): string | number;
|
|
1074
|
+
/**
|
|
1075
|
+
* Parse the line_item from LineItem resource.
|
|
1076
|
+
*
|
|
1077
|
+
* @param {string} lineItemName
|
|
1078
|
+
* A fully-qualified path representing LineItem resource.
|
|
1079
|
+
* @returns {string} A string representing the line_item.
|
|
1080
|
+
*/
|
|
1081
|
+
matchLineItemFromLineItemName(lineItemName: string): string | number;
|
|
892
1082
|
/**
|
|
893
1083
|
* Return a fully-qualified liveStreamEvent resource name string.
|
|
894
1084
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2026 Google LLC
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -192,6 +192,7 @@ class CustomTargetingKeyServiceClient {
|
|
|
192
192
|
entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
|
|
193
193
|
geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
|
|
194
194
|
labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
|
|
195
|
+
lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
|
|
195
196
|
liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
|
|
196
197
|
mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
|
|
197
198
|
mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
|
|
@@ -251,7 +252,7 @@ class CustomTargetingKeyServiceClient {
|
|
|
251
252
|
this._protos.google.ads.admanager.v1.CustomTargetingKeyService, this._opts, this._providedCustomServicePath);
|
|
252
253
|
// Iterate over each of the methods that the service provides
|
|
253
254
|
// and create an API call method for each.
|
|
254
|
-
const customTargetingKeyServiceStubMethods = ['getCustomTargetingKey', 'listCustomTargetingKeys'];
|
|
255
|
+
const customTargetingKeyServiceStubMethods = ['getCustomTargetingKey', 'listCustomTargetingKeys', 'createCustomTargetingKey', 'batchCreateCustomTargetingKeys', 'updateCustomTargetingKey', 'batchUpdateCustomTargetingKeys', 'batchActivateCustomTargetingKeys', 'batchDeactivateCustomTargetingKeys'];
|
|
255
256
|
for (const methodName of customTargetingKeyServiceStubMethods) {
|
|
256
257
|
const callPromise = this.customTargetingKeyServiceStub.then(stub => (...args) => {
|
|
257
258
|
if (this._terminated) {
|
|
@@ -365,6 +366,222 @@ class CustomTargetingKeyServiceClient {
|
|
|
365
366
|
throw error;
|
|
366
367
|
});
|
|
367
368
|
}
|
|
369
|
+
createCustomTargetingKey(request, optionsOrCallback, callback) {
|
|
370
|
+
request = request || {};
|
|
371
|
+
let options;
|
|
372
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
373
|
+
callback = optionsOrCallback;
|
|
374
|
+
options = {};
|
|
375
|
+
}
|
|
376
|
+
else {
|
|
377
|
+
options = optionsOrCallback;
|
|
378
|
+
}
|
|
379
|
+
options = options || {};
|
|
380
|
+
options.otherArgs = options.otherArgs || {};
|
|
381
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
382
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
383
|
+
'parent': request.parent ?? '',
|
|
384
|
+
});
|
|
385
|
+
this.initialize().catch(err => { throw err; });
|
|
386
|
+
this._log.info('createCustomTargetingKey request %j', request);
|
|
387
|
+
const wrappedCallback = callback
|
|
388
|
+
? (error, response, options, rawResponse) => {
|
|
389
|
+
this._log.info('createCustomTargetingKey response %j', response);
|
|
390
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
391
|
+
}
|
|
392
|
+
: undefined;
|
|
393
|
+
return this.innerApiCalls.createCustomTargetingKey(request, options, wrappedCallback)
|
|
394
|
+
?.then(([response, options, rawResponse]) => {
|
|
395
|
+
this._log.info('createCustomTargetingKey response %j', response);
|
|
396
|
+
return [response, options, rawResponse];
|
|
397
|
+
}).catch((error) => {
|
|
398
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
399
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
400
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
401
|
+
}
|
|
402
|
+
throw error;
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
batchCreateCustomTargetingKeys(request, optionsOrCallback, callback) {
|
|
406
|
+
request = request || {};
|
|
407
|
+
let options;
|
|
408
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
409
|
+
callback = optionsOrCallback;
|
|
410
|
+
options = {};
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
options = optionsOrCallback;
|
|
414
|
+
}
|
|
415
|
+
options = options || {};
|
|
416
|
+
options.otherArgs = options.otherArgs || {};
|
|
417
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
418
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
419
|
+
'parent': request.parent ?? '',
|
|
420
|
+
});
|
|
421
|
+
this.initialize().catch(err => { throw err; });
|
|
422
|
+
this._log.info('batchCreateCustomTargetingKeys request %j', request);
|
|
423
|
+
const wrappedCallback = callback
|
|
424
|
+
? (error, response, options, rawResponse) => {
|
|
425
|
+
this._log.info('batchCreateCustomTargetingKeys response %j', response);
|
|
426
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
427
|
+
}
|
|
428
|
+
: undefined;
|
|
429
|
+
return this.innerApiCalls.batchCreateCustomTargetingKeys(request, options, wrappedCallback)
|
|
430
|
+
?.then(([response, options, rawResponse]) => {
|
|
431
|
+
this._log.info('batchCreateCustomTargetingKeys response %j', response);
|
|
432
|
+
return [response, options, rawResponse];
|
|
433
|
+
}).catch((error) => {
|
|
434
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
435
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
436
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
437
|
+
}
|
|
438
|
+
throw error;
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
updateCustomTargetingKey(request, optionsOrCallback, callback) {
|
|
442
|
+
request = request || {};
|
|
443
|
+
let options;
|
|
444
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
445
|
+
callback = optionsOrCallback;
|
|
446
|
+
options = {};
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
options = optionsOrCallback;
|
|
450
|
+
}
|
|
451
|
+
options = options || {};
|
|
452
|
+
options.otherArgs = options.otherArgs || {};
|
|
453
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
454
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
455
|
+
'custom_targeting_key.name': request.customTargetingKey.name ?? '',
|
|
456
|
+
});
|
|
457
|
+
this.initialize().catch(err => { throw err; });
|
|
458
|
+
this._log.info('updateCustomTargetingKey request %j', request);
|
|
459
|
+
const wrappedCallback = callback
|
|
460
|
+
? (error, response, options, rawResponse) => {
|
|
461
|
+
this._log.info('updateCustomTargetingKey response %j', response);
|
|
462
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
463
|
+
}
|
|
464
|
+
: undefined;
|
|
465
|
+
return this.innerApiCalls.updateCustomTargetingKey(request, options, wrappedCallback)
|
|
466
|
+
?.then(([response, options, rawResponse]) => {
|
|
467
|
+
this._log.info('updateCustomTargetingKey response %j', response);
|
|
468
|
+
return [response, options, rawResponse];
|
|
469
|
+
}).catch((error) => {
|
|
470
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
471
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
472
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
473
|
+
}
|
|
474
|
+
throw error;
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
batchUpdateCustomTargetingKeys(request, optionsOrCallback, callback) {
|
|
478
|
+
request = request || {};
|
|
479
|
+
let options;
|
|
480
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
481
|
+
callback = optionsOrCallback;
|
|
482
|
+
options = {};
|
|
483
|
+
}
|
|
484
|
+
else {
|
|
485
|
+
options = optionsOrCallback;
|
|
486
|
+
}
|
|
487
|
+
options = options || {};
|
|
488
|
+
options.otherArgs = options.otherArgs || {};
|
|
489
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
490
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
491
|
+
'parent': request.parent ?? '',
|
|
492
|
+
});
|
|
493
|
+
this.initialize().catch(err => { throw err; });
|
|
494
|
+
this._log.info('batchUpdateCustomTargetingKeys request %j', request);
|
|
495
|
+
const wrappedCallback = callback
|
|
496
|
+
? (error, response, options, rawResponse) => {
|
|
497
|
+
this._log.info('batchUpdateCustomTargetingKeys response %j', response);
|
|
498
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
499
|
+
}
|
|
500
|
+
: undefined;
|
|
501
|
+
return this.innerApiCalls.batchUpdateCustomTargetingKeys(request, options, wrappedCallback)
|
|
502
|
+
?.then(([response, options, rawResponse]) => {
|
|
503
|
+
this._log.info('batchUpdateCustomTargetingKeys response %j', response);
|
|
504
|
+
return [response, options, rawResponse];
|
|
505
|
+
}).catch((error) => {
|
|
506
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
507
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
508
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
509
|
+
}
|
|
510
|
+
throw error;
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
batchActivateCustomTargetingKeys(request, optionsOrCallback, callback) {
|
|
514
|
+
request = request || {};
|
|
515
|
+
let options;
|
|
516
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
517
|
+
callback = optionsOrCallback;
|
|
518
|
+
options = {};
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
options = optionsOrCallback;
|
|
522
|
+
}
|
|
523
|
+
options = options || {};
|
|
524
|
+
options.otherArgs = options.otherArgs || {};
|
|
525
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
526
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
527
|
+
'parent': request.parent ?? '',
|
|
528
|
+
});
|
|
529
|
+
this.initialize().catch(err => { throw err; });
|
|
530
|
+
this._log.info('batchActivateCustomTargetingKeys request %j', request);
|
|
531
|
+
const wrappedCallback = callback
|
|
532
|
+
? (error, response, options, rawResponse) => {
|
|
533
|
+
this._log.info('batchActivateCustomTargetingKeys response %j', response);
|
|
534
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
535
|
+
}
|
|
536
|
+
: undefined;
|
|
537
|
+
return this.innerApiCalls.batchActivateCustomTargetingKeys(request, options, wrappedCallback)
|
|
538
|
+
?.then(([response, options, rawResponse]) => {
|
|
539
|
+
this._log.info('batchActivateCustomTargetingKeys response %j', response);
|
|
540
|
+
return [response, options, rawResponse];
|
|
541
|
+
}).catch((error) => {
|
|
542
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
543
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
544
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
545
|
+
}
|
|
546
|
+
throw error;
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
batchDeactivateCustomTargetingKeys(request, optionsOrCallback, callback) {
|
|
550
|
+
request = request || {};
|
|
551
|
+
let options;
|
|
552
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
553
|
+
callback = optionsOrCallback;
|
|
554
|
+
options = {};
|
|
555
|
+
}
|
|
556
|
+
else {
|
|
557
|
+
options = optionsOrCallback;
|
|
558
|
+
}
|
|
559
|
+
options = options || {};
|
|
560
|
+
options.otherArgs = options.otherArgs || {};
|
|
561
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
562
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
563
|
+
'parent': request.parent ?? '',
|
|
564
|
+
});
|
|
565
|
+
this.initialize().catch(err => { throw err; });
|
|
566
|
+
this._log.info('batchDeactivateCustomTargetingKeys request %j', request);
|
|
567
|
+
const wrappedCallback = callback
|
|
568
|
+
? (error, response, options, rawResponse) => {
|
|
569
|
+
this._log.info('batchDeactivateCustomTargetingKeys response %j', response);
|
|
570
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
571
|
+
}
|
|
572
|
+
: undefined;
|
|
573
|
+
return this.innerApiCalls.batchDeactivateCustomTargetingKeys(request, options, wrappedCallback)
|
|
574
|
+
?.then(([response, options, rawResponse]) => {
|
|
575
|
+
this._log.info('batchDeactivateCustomTargetingKeys response %j', response);
|
|
576
|
+
return [response, options, rawResponse];
|
|
577
|
+
}).catch((error) => {
|
|
578
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
579
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
580
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
581
|
+
}
|
|
582
|
+
throw error;
|
|
583
|
+
});
|
|
584
|
+
}
|
|
368
585
|
listCustomTargetingKeys(request, optionsOrCallback, callback) {
|
|
369
586
|
request = request || {};
|
|
370
587
|
let options;
|
|
@@ -1357,6 +1574,39 @@ class CustomTargetingKeyServiceClient {
|
|
|
1357
1574
|
matchLabelFromLabelName(labelName) {
|
|
1358
1575
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
1359
1576
|
}
|
|
1577
|
+
/**
|
|
1578
|
+
* Return a fully-qualified lineItem resource name string.
|
|
1579
|
+
*
|
|
1580
|
+
* @param {string} network_code
|
|
1581
|
+
* @param {string} line_item
|
|
1582
|
+
* @returns {string} Resource name string.
|
|
1583
|
+
*/
|
|
1584
|
+
lineItemPath(networkCode, lineItem) {
|
|
1585
|
+
return this.pathTemplates.lineItemPathTemplate.render({
|
|
1586
|
+
network_code: networkCode,
|
|
1587
|
+
line_item: lineItem,
|
|
1588
|
+
});
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
* Parse the network_code from LineItem resource.
|
|
1592
|
+
*
|
|
1593
|
+
* @param {string} lineItemName
|
|
1594
|
+
* A fully-qualified path representing LineItem resource.
|
|
1595
|
+
* @returns {string} A string representing the network_code.
|
|
1596
|
+
*/
|
|
1597
|
+
matchNetworkCodeFromLineItemName(lineItemName) {
|
|
1598
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName).network_code;
|
|
1599
|
+
}
|
|
1600
|
+
/**
|
|
1601
|
+
* Parse the line_item from LineItem resource.
|
|
1602
|
+
*
|
|
1603
|
+
* @param {string} lineItemName
|
|
1604
|
+
* A fully-qualified path representing LineItem resource.
|
|
1605
|
+
* @returns {string} A string representing the line_item.
|
|
1606
|
+
*/
|
|
1607
|
+
matchLineItemFromLineItemName(lineItemName) {
|
|
1608
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName).line_item;
|
|
1609
|
+
}
|
|
1360
1610
|
/**
|
|
1361
1611
|
* Return a fully-qualified liveStreamEvent resource name string.
|
|
1362
1612
|
*
|