@honkandgo/msads

1.3.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @honkandgo/msads

Weekly Downloads

15

Version

1.3.1

License

MIT

Unpacked Size

57.6 kB

Total Files

13

Last publish

Collaborators

  • isakre
  • brajja
  • elibon
  • davvo
  • bodaniel