@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.
Files changed (198) hide show
  1. package/README.md +15 -0
  2. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_service.proto +4 -3
  3. package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +216 -0
  4. package/build/protos/google/ads/admanager/v1/cms_metadata_value_service.proto +2 -2
  5. package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +190 -0
  6. package/build/protos/google/ads/admanager/v1/goal.proto +57 -0
  7. package/build/protos/google/ads/admanager/v1/goal_enums.proto +129 -0
  8. package/build/protos/google/ads/admanager/v1/line_item_enums.proto +86 -0
  9. package/build/protos/google/ads/admanager/v1/line_item_messages.proto +93 -0
  10. package/build/protos/google/ads/admanager/v1/line_item_service.proto +128 -0
  11. package/build/protos/google/ads/admanager/v1/network_messages.proto +8 -8
  12. package/build/protos/google/ads/admanager/v1/network_service.proto +32 -1
  13. package/build/protos/google/ads/admanager/v1/order_messages.proto +4 -2
  14. package/build/protos/google/ads/admanager/v1/report_definition.proto +927 -58
  15. package/build/protos/google/ads/admanager/v1/report_messages.proto +7 -2
  16. package/build/protos/protos.d.ts +9435 -5893
  17. package/build/protos/protos.js +29871 -20651
  18. package/build/protos/protos.json +1191 -105
  19. package/build/src/index.d.ts +4 -1
  20. package/build/src/index.js +5 -3
  21. package/build/src/index.js.map +1 -1
  22. package/build/src/v1/ad_break_service_client.d.ts +24 -0
  23. package/build/src/v1/ad_break_service_client.js +35 -1
  24. package/build/src/v1/ad_break_service_client.js.map +1 -1
  25. package/build/src/v1/ad_break_service_proto_list.json +5 -0
  26. package/build/src/v1/ad_review_center_ad_service_client.d.ts +36 -9
  27. package/build/src/v1/ad_review_center_ad_service_client.js +43 -7
  28. package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -1
  29. package/build/src/v1/ad_review_center_ad_service_proto_list.json +5 -0
  30. package/build/src/v1/ad_unit_service_client.d.ts +214 -0
  31. package/build/src/v1/ad_unit_service_client.js +288 -2
  32. package/build/src/v1/ad_unit_service_client.js.map +1 -1
  33. package/build/src/v1/ad_unit_service_client_config.json +28 -0
  34. package/build/src/v1/ad_unit_service_proto_list.json +5 -0
  35. package/build/src/v1/application_service_client.d.ts +24 -0
  36. package/build/src/v1/application_service_client.js +35 -1
  37. package/build/src/v1/application_service_client.js.map +1 -1
  38. package/build/src/v1/application_service_proto_list.json +5 -0
  39. package/build/src/v1/audience_segment_service_client.d.ts +24 -0
  40. package/build/src/v1/audience_segment_service_client.js +35 -1
  41. package/build/src/v1/audience_segment_service_client.js.map +1 -1
  42. package/build/src/v1/audience_segment_service_proto_list.json +5 -0
  43. package/build/src/v1/bandwidth_group_service_client.d.ts +24 -0
  44. package/build/src/v1/bandwidth_group_service_client.js +35 -1
  45. package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
  46. package/build/src/v1/bandwidth_group_service_proto_list.json +5 -0
  47. package/build/src/v1/browser_language_service_client.d.ts +24 -0
  48. package/build/src/v1/browser_language_service_client.js +35 -1
  49. package/build/src/v1/browser_language_service_client.js.map +1 -1
  50. package/build/src/v1/browser_language_service_proto_list.json +5 -0
  51. package/build/src/v1/browser_service_client.d.ts +24 -0
  52. package/build/src/v1/browser_service_client.js +35 -1
  53. package/build/src/v1/browser_service_client.js.map +1 -1
  54. package/build/src/v1/browser_service_proto_list.json +5 -0
  55. package/build/src/v1/cms_metadata_key_service_client.d.ts +24 -0
  56. package/build/src/v1/cms_metadata_key_service_client.js +35 -1
  57. package/build/src/v1/cms_metadata_key_service_client.js.map +1 -1
  58. package/build/src/v1/cms_metadata_key_service_proto_list.json +5 -0
  59. package/build/src/v1/cms_metadata_value_service_client.d.ts +26 -2
  60. package/build/src/v1/cms_metadata_value_service_client.js +35 -1
  61. package/build/src/v1/cms_metadata_value_service_client.js.map +1 -1
  62. package/build/src/v1/cms_metadata_value_service_proto_list.json +5 -0
  63. package/build/src/v1/company_service_client.d.ts +24 -0
  64. package/build/src/v1/company_service_client.js +35 -1
  65. package/build/src/v1/company_service_client.js.map +1 -1
  66. package/build/src/v1/company_service_proto_list.json +5 -0
  67. package/build/src/v1/contact_service_client.d.ts +24 -0
  68. package/build/src/v1/contact_service_client.js +35 -1
  69. package/build/src/v1/contact_service_client.js.map +1 -1
  70. package/build/src/v1/contact_service_proto_list.json +5 -0
  71. package/build/src/v1/content_bundle_service_client.d.ts +24 -0
  72. package/build/src/v1/content_bundle_service_client.js +35 -1
  73. package/build/src/v1/content_bundle_service_client.js.map +1 -1
  74. package/build/src/v1/content_bundle_service_proto_list.json +5 -0
  75. package/build/src/v1/content_label_service_client.d.ts +24 -0
  76. package/build/src/v1/content_label_service_client.js +35 -1
  77. package/build/src/v1/content_label_service_client.js.map +1 -1
  78. package/build/src/v1/content_label_service_proto_list.json +5 -0
  79. package/build/src/v1/content_service_client.d.ts +24 -0
  80. package/build/src/v1/content_service_client.js +35 -1
  81. package/build/src/v1/content_service_client.js.map +1 -1
  82. package/build/src/v1/content_service_proto_list.json +5 -0
  83. package/build/src/v1/creative_template_service_client.d.ts +24 -0
  84. package/build/src/v1/creative_template_service_client.js +35 -1
  85. package/build/src/v1/creative_template_service_client.js.map +1 -1
  86. package/build/src/v1/creative_template_service_proto_list.json +5 -0
  87. package/build/src/v1/custom_field_service_client.d.ts +24 -0
  88. package/build/src/v1/custom_field_service_client.js +35 -1
  89. package/build/src/v1/custom_field_service_client.js.map +1 -1
  90. package/build/src/v1/custom_field_service_proto_list.json +5 -0
  91. package/build/src/v1/custom_targeting_key_service_client.d.ts +190 -0
  92. package/build/src/v1/custom_targeting_key_service_client.js +252 -2
  93. package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
  94. package/build/src/v1/custom_targeting_key_service_client_config.json +24 -0
  95. package/build/src/v1/custom_targeting_key_service_proto_list.json +5 -0
  96. package/build/src/v1/custom_targeting_value_service_client.d.ts +24 -0
  97. package/build/src/v1/custom_targeting_value_service_client.js +35 -1
  98. package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
  99. package/build/src/v1/custom_targeting_value_service_proto_list.json +5 -0
  100. package/build/src/v1/device_capability_service_client.d.ts +24 -0
  101. package/build/src/v1/device_capability_service_client.js +35 -1
  102. package/build/src/v1/device_capability_service_client.js.map +1 -1
  103. package/build/src/v1/device_capability_service_proto_list.json +5 -0
  104. package/build/src/v1/device_category_service_client.d.ts +24 -0
  105. package/build/src/v1/device_category_service_client.js +35 -1
  106. package/build/src/v1/device_category_service_client.js.map +1 -1
  107. package/build/src/v1/device_category_service_proto_list.json +5 -0
  108. package/build/src/v1/device_manufacturer_service_client.d.ts +24 -0
  109. package/build/src/v1/device_manufacturer_service_client.js +35 -1
  110. package/build/src/v1/device_manufacturer_service_client.js.map +1 -1
  111. package/build/src/v1/device_manufacturer_service_proto_list.json +5 -0
  112. package/build/src/v1/entity_signals_mapping_service_client.d.ts +24 -0
  113. package/build/src/v1/entity_signals_mapping_service_client.js +35 -1
  114. package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
  115. package/build/src/v1/entity_signals_mapping_service_proto_list.json +5 -0
  116. package/build/src/v1/gapic_metadata.json +174 -2
  117. package/build/src/v1/geo_target_service_client.d.ts +24 -0
  118. package/build/src/v1/geo_target_service_client.js +35 -1
  119. package/build/src/v1/geo_target_service_client.js.map +1 -1
  120. package/build/src/v1/geo_target_service_proto_list.json +5 -0
  121. package/build/src/v1/index.d.ts +1 -0
  122. package/build/src/v1/index.js +4 -2
  123. package/build/src/v1/index.js.map +1 -1
  124. package/build/src/v1/line_item_service_client.d.ts +1369 -0
  125. package/build/src/v1/line_item_service_client.js +2027 -0
  126. package/build/src/v1/line_item_service_client.js.map +1 -0
  127. package/build/src/v1/line_item_service_client_config.json +34 -0
  128. package/build/src/v1/line_item_service_proto_list.json +127 -0
  129. package/build/src/v1/mobile_carrier_service_client.d.ts +24 -0
  130. package/build/src/v1/mobile_carrier_service_client.js +35 -1
  131. package/build/src/v1/mobile_carrier_service_client.js.map +1 -1
  132. package/build/src/v1/mobile_carrier_service_proto_list.json +5 -0
  133. package/build/src/v1/mobile_device_service_client.d.ts +24 -0
  134. package/build/src/v1/mobile_device_service_client.js +35 -1
  135. package/build/src/v1/mobile_device_service_client.js.map +1 -1
  136. package/build/src/v1/mobile_device_service_proto_list.json +5 -0
  137. package/build/src/v1/mobile_device_submodel_service_client.d.ts +24 -0
  138. package/build/src/v1/mobile_device_submodel_service_client.js +35 -1
  139. package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -1
  140. package/build/src/v1/mobile_device_submodel_service_proto_list.json +5 -0
  141. package/build/src/v1/network_service_client.d.ts +114 -12
  142. package/build/src/v1/network_service_client.js +133 -16
  143. package/build/src/v1/network_service_client.js.map +1 -1
  144. package/build/src/v1/network_service_proto_list.json +5 -0
  145. package/build/src/v1/operating_system_service_client.d.ts +24 -0
  146. package/build/src/v1/operating_system_service_client.js +35 -1
  147. package/build/src/v1/operating_system_service_client.js.map +1 -1
  148. package/build/src/v1/operating_system_service_proto_list.json +5 -0
  149. package/build/src/v1/operating_system_version_service_client.d.ts +24 -0
  150. package/build/src/v1/operating_system_version_service_client.js +35 -1
  151. package/build/src/v1/operating_system_version_service_client.js.map +1 -1
  152. package/build/src/v1/operating_system_version_service_proto_list.json +5 -0
  153. package/build/src/v1/order_service_client.d.ts +24 -0
  154. package/build/src/v1/order_service_client.js +35 -1
  155. package/build/src/v1/order_service_client.js.map +1 -1
  156. package/build/src/v1/order_service_proto_list.json +5 -0
  157. package/build/src/v1/placement_service_client.d.ts +24 -0
  158. package/build/src/v1/placement_service_client.js +35 -1
  159. package/build/src/v1/placement_service_client.js.map +1 -1
  160. package/build/src/v1/placement_service_proto_list.json +5 -0
  161. package/build/src/v1/private_auction_deal_service_client.d.ts +24 -0
  162. package/build/src/v1/private_auction_deal_service_client.js +35 -1
  163. package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
  164. package/build/src/v1/private_auction_deal_service_proto_list.json +5 -0
  165. package/build/src/v1/private_auction_service_client.d.ts +24 -0
  166. package/build/src/v1/private_auction_service_client.js +35 -1
  167. package/build/src/v1/private_auction_service_client.js.map +1 -1
  168. package/build/src/v1/private_auction_service_proto_list.json +5 -0
  169. package/build/src/v1/programmatic_buyer_service_client.d.ts +24 -0
  170. package/build/src/v1/programmatic_buyer_service_client.js +35 -1
  171. package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
  172. package/build/src/v1/programmatic_buyer_service_proto_list.json +5 -0
  173. package/build/src/v1/report_service_client.d.ts +24 -0
  174. package/build/src/v1/report_service_client.js +35 -1
  175. package/build/src/v1/report_service_client.js.map +1 -1
  176. package/build/src/v1/report_service_proto_list.json +5 -0
  177. package/build/src/v1/role_service_client.d.ts +24 -0
  178. package/build/src/v1/role_service_client.js +35 -1
  179. package/build/src/v1/role_service_client.js.map +1 -1
  180. package/build/src/v1/role_service_proto_list.json +5 -0
  181. package/build/src/v1/site_service_client.d.ts +24 -0
  182. package/build/src/v1/site_service_client.js +35 -1
  183. package/build/src/v1/site_service_client.js.map +1 -1
  184. package/build/src/v1/site_service_proto_list.json +5 -0
  185. package/build/src/v1/taxonomy_category_service_client.d.ts +24 -0
  186. package/build/src/v1/taxonomy_category_service_client.js +35 -1
  187. package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
  188. package/build/src/v1/taxonomy_category_service_proto_list.json +5 -0
  189. package/build/src/v1/team_service_client.d.ts +24 -0
  190. package/build/src/v1/team_service_client.js +35 -1
  191. package/build/src/v1/team_service_client.js.map +1 -1
  192. package/build/src/v1/team_service_proto_list.json +5 -0
  193. package/build/src/v1/user_service_client.d.ts +24 -0
  194. package/build/src/v1/user_service_client.js +35 -1
  195. package/build/src/v1/user_service_client.js.map +1 -1
  196. package/build/src/v1/user_service_proto_list.json +5 -0
  197. package/package.json +10 -2
  198. 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 2025 Google LLC
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
  *