google-ads-api 9.0.0 → 10.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 +4 -4
- package/build/src/protos/autogen/enums.d.ts +440 -291
- package/build/src/protos/autogen/enums.js +442 -283
- package/build/src/protos/autogen/fields.d.ts +166 -142
- package/build/src/protos/autogen/fields.js +16 -1
- package/build/src/protos/autogen/resourceNames.d.ts +45 -0
- package/build/src/protos/autogen/resourceNames.js +59 -3
- package/build/src/protos/autogen/serviceFactory.d.ts +228 -1179
- package/build/src/protos/autogen/serviceFactory.js +5064 -8964
- package/build/src/protos/index.d.ts +6 -6
- package/build/src/protos/index.js +5 -5
- package/build/src/version.d.ts +1 -1
- package/build/src/version.js +1 -1
- package/package.json +3 -3
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-
|
|
10
|
+
<img src="https://img.shields.io/badge/google%20ads-v10.0.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">
|
|
@@ -102,7 +102,7 @@ const customer = client.Customer({
|
|
|
102
102
|
|
|
103
103
|
## List accessible customers
|
|
104
104
|
|
|
105
|
-
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/
|
|
105
|
+
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/v10/CustomerService#listaccessiblecustomers). It returns the resource names of available customer accounts.
|
|
106
106
|
|
|
107
107
|
```ts
|
|
108
108
|
const client = new GoogleAdsApi({
|
|
@@ -566,9 +566,9 @@ const customer = client.Customer({
|
|
|
566
566
|
|
|
567
567
|
## Error handling
|
|
568
568
|
|
|
569
|
-
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/
|
|
569
|
+
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/v10/GoogleAdsFailure).
|
|
570
570
|
|
|
571
|
-
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/
|
|
571
|
+
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/v10/AccessInvitationErrorEnum.AccessInvitationError), as well as more information about [handling errors here](https://developers.google.com/google-ads/api/docs/best-practices/error-types).
|
|
572
572
|
|
|
573
573
|
```ts
|
|
574
574
|
import { errors } from "google-ads-api";
|