7
7
8
8
<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 >
9
9
<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 >
13
13
</p >
14
14
15
15
## Description
@@ -19,7 +19,7 @@ Developers can use the Google Ad Manager API to build applications that manage i
19
19
### Installing the library
20
20
21
21
``` bash
22
- $ npm install @niur/google-admanager-node-lib
22
+ $ npm install @niur/google-admanager-api
23
23
```
24
24
### Overview
25
25
@@ -41,19 +41,19 @@ const credential = new GoogleSACredential({
41
41
" auth_uri" : " ..." ,
42
42
" token_uri" : " ..." ,
43
43
...
44
- }, [ ' ad_manager ' ] );
44
+ });
45
45
46
46
// or
47
47
48
- const credential = new GoogleSAFileCredential (' ./credentials.json' , [ ' ad_manager ' ] );
48
+ const credential = new GoogleSAFileCredential (' ./credentials.json' );
49
49
50
50
```
51
51
52
52
##### Use a client library
53
53
54
54
``` typescript
55
55
56
- const adManagerClient = new AdManagerClient (' network code ' ,credential ,' application name ' );
56
+ const adManagerClient = new AdManagerClient (' networkCode ' ,credential ,' applicationName ' );
57
57
58
58
const orderService = await adManagerClient .getService (" OrderService" );
59
59
const statement = new StatementBuilder ().limit (10 );
0 commit comments