You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Step 1 and authentication happens fine, when I console.log the client variable I can see the correct credentials and an access_token.
When I try import {DFP} from 'google-ad-manager-api vscode returns:
import {DFP} from 'google-ad-manager-api';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Module._compile (internal/modules/cjs/loader.js:892:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
at internal/main/run_main_module.js:17:11
When looking in node_modules\google-ad-manager-api\build\src I can see the dfp.js file which exports DFP, so I'm not sure why it's not being found?
The text was updated successfully, but these errors were encountered:
Step 1 and authentication happens fine, when I console.log the client variable I can see the correct credentials and an access_token.
When I try
import {DFP} from 'google-ad-manager-api
vscode returns:When looking in node_modules\google-ad-manager-api\build\src I can see the dfp.js file which exports DFP, so I'm not sure why it's not being found?
The text was updated successfully, but these errors were encountered: