Skip to content

Commit f605cee

Browse files
committed
[FIX] Cannot find module './GoogleSAFileCredential'
1 parent e5942e2 commit f605cee

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
<p align="center"><a href="https://developers.google.com/ad-manager/api/start" target="_blank">Google Ad Manager API</a> Client Library for NodeJs.</p>
99
<p align="center">
10-
<a href="https://www.npmjs.com/~niur" target="_blank"><img src="https://img.shields.io/npm/v/@niur/google-admanager-node-lib.svg" alt="NPM Version" /></a>
11-
<a href="https://www.npmjs.com/~niur" target="_blank"><img src="https://img.shields.io/npm/l/@niur/google-admanager-node-lib.svg" alt="Package License" /></a>
12-
<a href="https://www.npmjs.com/~niur" target="_blank"><img src="https://img.shields.io/npm/dm/@niur/google-admanager-node-lib.svg" alt="NPM Downloads" /></a>
10+
<a href="https://www.npmjs.com/~niur" target="_blank"><img src="https://img.shields.io/npm/v/@niur/google-admanager-api.svg" alt="NPM Version" /></a>
11+
<a href="https://www.npmjs.com/~niur" target="_blank"><img src="https://img.shields.io/npm/l/@niur/google-admanager-api.svg" alt="Package License" /></a>
12+
<a href="https://www.npmjs.com/~niur" target="_blank"><img src="https://img.shields.io/npm/dm/@niur/google-admanager-api.svg" alt="NPM Downloads" /></a>
1313
</p>
1414

1515
## Description
@@ -19,7 +19,7 @@ Developers can use the Google Ad Manager API to build applications that manage i
1919
### Installing the library
2020

2121
```bash
22-
$ npm install @niur/google-admanager-node-lib
22+
$ npm install @niur/google-admanager-api
2323
```
2424
### Overview
2525

@@ -41,19 +41,19 @@ const credential = new GoogleSACredential({
4141
"auth_uri": "...",
4242
"token_uri": "...",
4343
...
44-
}, ['ad_manager']);
44+
});
4545

4646
//or
4747

48-
const credential = new GoogleSAFileCredential('./credentials.json', ['ad_manager']);
48+
const credential = new GoogleSAFileCredential('./credentials.json');
4949

5050
```
5151

5252
##### Use a client library
5353

5454
```typescript
5555

56-
const adManagerClient = new AdManagerClient('network code',credential,'application name');
56+
const adManagerClient = new AdManagerClient('networkCode',credential,'applicationName');
5757

5858
const orderService = await adManagerClient.getService("OrderService");
5959
const statement = new StatementBuilder().limit(10);

lib/auth/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export { GoogleSAFileCredential } from './GoogleSAFileCredential';
1+
export { GoogleSAFileCredential } from './googleSAFileCredential';
22
export { GoogleSACredential } from './googleSACredential';
33
export { SACredential } from './interfaces';

0 commit comments

Comments
 (0)