google-ads-api 17.1.0 → 19.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-v16.1.0-009688.svg?style=flat-square">
10
+ <img src="https://img.shields.io/badge/google%20ads-v17.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">
@@ -350,7 +350,7 @@ const operations: MutateOperation<
350
350
  advertising_channel_type: enums.AdvertisingChannelType.SEARCH,
351
351
  status: enums.CampaignStatus.PAUSED,
352
352
  manual_cpc: {
353
- enhanced_cpc_enabled: true,
353
+ enhanced_cpc_enabled: false,
354
354
  },
355
355
  // Use the temporary resource id which will be created in the previous operation
356
356
  campaign_budget: budgetResourceName,
@@ -385,7 +385,7 @@ const keyword = "24 hour locksmith harlem";
385
385
 
386
386
  const operations: MutateOperation<
387
387
  resources.IAdGroupCriterion & {
388
- exempt_policy_violation_keys?: google.ads.googleads.v16.common.IPolicyViolationKey[];
388
+ exempt_policy_violation_keys?: google.ads.googleads.v17.common.IPolicyViolationKey[];
389
389
  }
390
390
  >[] = [
391
391
  {
@@ -443,7 +443,9 @@ If a summary row is requested in the `report` method, it will be included as the
443
443
  const [summaryRow, ...response] = await customer.report({
444
444
  entity: "campaign",
445
445
  metrics: ["metrics.clicks", "metrics.all_conversions"],
446
- summary_row_setting: enums.SummaryRowSetting.SUMMARY_ROW_WITH_RESULTS,
446
+ search_settings: {
447
+ return_summary_row: enums.SummaryRowSetting.SUMMARY_ROW_WITH_RESULTS,
448
+ },
447
449
  });
448
450
  ```
449
451
 
@@ -453,7 +455,9 @@ If a summery row is requested in the `reportStream` method, it will be included
453
455
  const stream = customer.reportStream({
454
456
  entity: "campaign",
455
457
  metrics: ["metrics.clicks", "metrics.all_conversions"],
456
- summary_row_setting: enums.SummaryRowSetting.SUMMARY_ROW_WITH_RESULTS,
458
+ search_settings: {
459
+ return_summary_row: enums.SummaryRowSetting.SUMMARY_ROW_WITH_RESULTS,
460
+ },
457
461
  });
458
462
 
459
463
  const accumulator = [];
@@ -685,7 +689,7 @@ try {
685
689
  // Get the first one and explicitly check for a certain error type
686
690
  const [firstError] = err.errors;
687
691
  if (
688
- firstError.error_code ===
692
+ firstError.error_code.query_error ===
689
693
  errors.QueryErrorEnum.QueryError.UNRECOGNIZED_FIELD
690
694
  ) {
691
695
  console.log(
@@ -701,15 +705,11 @@ try {
701
705
  1. Update google-ads-node & publish to NPM. Check that package for instructions.
702
706
  2. Update google-ads-node & google-gax in package.json. google-gax must be the same version as google-ads-node,
703
707
  Otherwise you are likely to get a `TypeError: Channel credentials must be a ChannelCredentials object` error.
704
- 3. Update the version in this file
705
- 4. Update the versions in src/protos/index.ts
706
- 5. Run `yarn compile` to update the generated files.
707
- The `tsc` command might fail -- if so, temporarily add @ts-nocheck
708
- to the top of problematic files so that the compile script can continue.
709
- After the compile script has run, those @ts-nocheck lines should no longer be required.
710
- The compile step depends on some environment variables being set (see scripts/fields.ts), so make sure to set those.
708
+ 3. Update the version in `version.ts`.
709
+ 4. Update the versions in `src/protos/index.ts`.
710
+ 5. Run `yarn compile` to update the generated files. The `tsc` command might fail -- if so, temporarily add @ts-nocheck to the top of problematic files so that the compile script can continue. After the compile script has run, those @ts-nocheck lines should no longer be required. The compile step depends on some environment variables being set (see scripts/fields.ts), so make sure to set those.
711
711
  6. Prettify the generated files so the the diffs are easier to read.
712
712
  7. Check that the diffs are expected and that the generated files are correct. New Gads versions will often add new services, fields, and enums.
713
- 8. Test with `yarn test`
713
+ 8. Test with `yarn test`.
714
714
  9. Test by linking to a real project and making some real requests.
715
715
  10. Once confident, bump the major version & publish to NPM.