google-ads-api 14.1.0 → 16.0.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 CHANGED
@@ -7,7 +7,7 @@
7
7
  </p>
8
8
  <p align="center">
9
9
  <a href="https://developers.google.com/google-ads/api/docs/release-notes">
10
- <img src="https://img.shields.io/badge/google%20ads-v14.1.0-009688.svg?style=flat-square">
10
+ <img src="https://img.shields.io/badge/google%20ads-v16.1.0-009688.svg?style=flat-square">
11
11
  </a>
12
12
  <a href="https://www.npmjs.com/package/google-ads-api">
13
13
  <img src="https://img.shields.io/npm/v/google-ads-api.svg?style=flat-square">
@@ -367,6 +367,51 @@ const result = await customer.mutateResources(operations);
367
367
 
368
368
  ---
369
369
 
370
+ ## Add Policy Exemption Rules
371
+
372
+ ```ts
373
+ import {
374
+ resources,
375
+ enums,
376
+ toMicros,
377
+ ResourceNames,
378
+ MutateOperation,
379
+ } from "google-ads-api";
380
+
381
+ // Ad Group to which you want to add the keyword
382
+ const adGroupResourceName = 'customers/123/adGroups/456'
383
+
384
+ const keyword = '24 hour locksmith harlem'
385
+
386
+ const operations: MutateOperation<
387
+ resources.IAdGroupCriterion & { exempt_policy_violation_keys?: google.ads.googleads.v16.common.IPolicyViolationKey[]}
388
+ >[] = [
389
+ {
390
+ entity: 'ad_group_criterion',
391
+ operation: "create",
392
+ resource: {
393
+ // Keyword with policy violation exemptions
394
+ ad_group: adGroupResourceName,
395
+ keyword: {
396
+ text: '24 hour locksmith harlem',
397
+ match_type: enums.KeywordMatchType.PHRASE,
398
+ },
399
+ status: enums.AdGroupStatus.ENABLED ,
400
+ },
401
+ exempt_policy_violation_keys: [
402
+ {
403
+ policy_name: 'LOCAL_SERVICES',
404
+ violating_text: keyword,
405
+ },
406
+ ],
407
+ }
408
+ ];
409
+
410
+ const result = await customer.mutateResources(operations);
411
+ ```
412
+
413
+ ---
414
+
370
415
  ## Uploading Click Conversions
371
416
 
372
417
  ```ts