@honkandgo/msads
v1.3.2
Published
Access Microsoft Ads SOAP API from Node.js.
Downloads
114
Readme
msads
Access Microsoft Ads SOAP API from Node.js.
Install
npm -i @honkandgo/msads
Use
import MicrosoftAdsClient from '@honkandgo/msads'
const msads = new MicrosoftAdsClient({
clientId: <MS_CLIENT_ID>
clientSecret: <MS_CLIENT_SECRET>
developerToken: <MS_DEVELOPER_TOKEN>
refreshToken: <REFRESH_TOKEN> (optional)
})
const res = await msads.getAccountsInfo()
Passing refreshToken in constructor is optional. You can also pass refreshToken as a parameter to any method
NOTE: If you are seeing strange "internal" errors. Try changing from singleWsdl to wsdl in soap endpoint calls.
Eg. https://clientcenter.api.bingads.microsoft.com/Api/CustomerManagement/v13/CustomerManagementService.svc?singleWsdl