Skip to content

Commit 20f79bb

Browse files
Merge pull request #530 from Opteo/v22
V22
2 parents 7a7ae06 + bf08db9 commit 20f79bb

10 files changed

Lines changed: 2502 additions & 770 deletions

File tree

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changelog
22

3+
### 22.0.0
4+
5+
### Version Upgrade
6+
7+
- Upgraded google-ads-api version to v22. Refer to Google Ads release notes [here](https://developers.google.com/google-ads/api/docs/release-notes) for changes.
8+
- Upgraded google-ads-node dependency to v19.0.0
9+
- Upgraded google-gax dependency to v5.0.6
10+
11+
### New Features
12+
13+
- New service: `AssetGenerationService` with `generateText` method
14+
- New resource names: `CampaignGoalConfig`, `Goal`, `TargetingExpansionView`
15+
- New enums: `YouTubeVideoProperty`, `CustomerLifecycleOptimizationMode`, `GoalOptimizationEligibility`, `GoalType`
16+
17+
### Breaking Changes
18+
19+
- Removed field: `asset_group_asset.performance_label`
20+
21+
### Performance
22+
23+
- Optimised `decamelizeKeys` in REST response parsing, removed `map-obj` dependency
24+
325
### 21.0.1
426

527
- Fixed issue with new v21 resources & fields not being correctly parsed.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</p>
88
<p align="center">
99
<a href="https://developers.google.com/google-ads/api/docs/release-notes">
10-
<img src="https://img.shields.io/badge/google%20ads-v20.0.0-009688.svg?style=flat-square">
10+
<img src="https://img.shields.io/badge/google%20ads-v22-009688.svg?style=flat-square">
1111
</a>
1212
<a href="https://www.npmjs.com/package/google-ads-api">
1313
<img src="https://img.shields.io/npm/v/google-ads-api.svg?style=flat-square">
@@ -93,7 +93,7 @@ const customer = client.Customer({
9393

9494
## List accessible customers
9595

96-
This is a special client method for listing the accessible customers for a given refresh token, and is equivalent to [CustomerService.listAccessibleCustomers](https://developers.google.com/google-ads/api/reference/rpc/v20/CustomerService#listaccessiblecustomers). It returns the resource names of available customer accounts.
96+
This is a special client method for listing the accessible customers for a given refresh token, and is equivalent to [CustomerService.listAccessibleCustomers](https://developers.google.com/google-ads/api/reference/rpc/v22/CustomerService#listaccessiblecustomers). It returns the resource names of available customer accounts.
9797

9898
```ts
9999
const client = new GoogleAdsApi({
@@ -385,7 +385,7 @@ const keyword = "24 hour locksmith harlem";
385385

386386
const operations: MutateOperation<
387387
resources.IAdGroupCriterion & {
388-
exempt_policy_violation_keys?: google.ads.googleads.v20.common.IPolicyViolationKey[];
388+
exempt_policy_violation_keys?: google.ads.googleads.v22.common.IPolicyViolationKey[];
389389
}
390390
>[] = [
391391
{
@@ -671,9 +671,9 @@ const customer = client.Customer(
671671

672672
## Error handling
673673

674-
All errors, apart from GRPC specific cases (such as a connection problem or timeout, [see more here](https://github.com/grpc/grpc/blob/master/doc/statuscodes.md)), are instances of a [GoogleAdsFailure](https://developers.google.com/google-ads/api/reference/rpc/v20/GoogleAdsFailure).
674+
All errors, apart from GRPC specific cases (such as a connection problem or timeout, [see more here](https://github.com/grpc/grpc/blob/master/doc/statuscodes.md)), are instances of a [GoogleAdsFailure](https://developers.google.com/google-ads/api/reference/rpc/v22/GoogleAdsFailure).
675675

676-
You can find a list of all error types for a specific version in [the official documentation](https://developers.google.com/google-ads/api/reference/rpc/v20/AccessInvitationErrorEnum.AccessInvitationError), as well as more information about [handling errors here](https://developers.google.com/google-ads/api/docs/best-practices/error-types).
676+
You can find a list of all error types for a specific version in [the official documentation](https://developers.google.com/google-ads/api/reference/rpc/v22/AccessInvitationErrorEnum.AccessInvitationError), as well as more information about [handling errors here](https://developers.google.com/google-ads/api/docs/best-practices/error-types).
677677

678678
```ts
679679
import { errors } from "google-ads-api";

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "google-ads-api",
3-
"version": "21.0.1",
3+
"version": "22.0.0",
44
"description": "Google Ads API Client Library for Node.js",
55
"repository": "https://github.com/Opteo/google-ads-api",
66
"main": "build/src/index.js",
@@ -21,9 +21,9 @@
2121
"@isaacs/ttlcache": "^1.2.2",
2222
"axios": "^1.6.7",
2323
"circ-json": "^1.0.4",
24-
"google-ads-node": "18.0.0",
24+
"google-ads-node": "19.0.0",
2525
"google-auth-library": "^9.15.1",
26-
"google-gax": "^5.0.1",
26+
"google-gax": "^5.0.6",
2727
"long": "^4.0.0",
2828
"stream-json": "^1.8.0"
2929
},

0 commit comments

Comments
 (0)