Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makeTestNetwork #39

Open
jakelacey2012 opened this issue Jul 24, 2017 · 1 comment
Open

makeTestNetwork #39

jakelacey2012 opened this issue Jul 24, 2017 · 1 comment

Comments

@jakelacey2012
Copy link

I want to create a blank network for testing purposes does anybody have any experiences doing this with this library?

@lomholdt
Copy link

lomholdt commented Aug 30, 2017

You should be able to simply call makeTestNetwork on the NetworkService.

var Dfp = require("node-google-dfp")

dfpUser = new Dfp.User("", "Test", "v201708");

dfpUser.setSettings({
  client_id : "",
  client_secret : "",
  refresh_token : ""
});

dfpUser.getService('NetworkService', function (err, networkService) {
  if (err) {
    return console.error(err);
  }
  networkService.makeTestNetwork((err, res) => console.log(err, res));
});

Fill in the networkId, client_id, client_secret and refresh_token and you should be golden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants