@roytran91/bb-gg-ads-core

4.2.0 • Public • Published

Installation

$ yarn add @roytran91/bb-gg-ads-core

Documentation

You can find the reference full documentation here.

Basic Example

const Google = require('@roytran91/bb-gg-ads-core')

// 1. Create a new client with your credentials
const client = new Google({
    client_id: '<CLIENT_ID>',
    client_secret: '<CLIENT_SECRET>',
    developer_token: '<DEVELOPER_TOKEN>',
    refresh_token: '<REFRESH_TOKEN>',
    [customer_account_id] : '<CUSTOMER_ACCOUNT_ID>', // must specify if want to get the campaigns, metrics..
    [login_customer_id] : '<LOGIN_CUSTOMER_ID>' // Optionally provide a login-customer-id
})

//get all ads account with account have the fresh_token
client.getAdAccounts();


//Get history change of account
const history = await g2.getHistory(['860011646'], '2019-07-18', '2019-07-26')

Readme

Keywords

Package Sidebar

Install

npm i @roytran91/bb-gg-ads-core

Weekly Downloads

2

Version

4.2.0

License

ISC

Unpacked Size

41.4 kB

Total Files

3

Last publish

Collaborators

  • roytran