{"id":17617338,"url":"https://github.com/goodwaygroup/lib-tradedesk","last_synced_at":"2026-03-16T13:37:56.543Z","repository":{"id":40313805,"uuid":"284297168","full_name":"GoodwayGroup/lib-tradedesk","owner":"GoodwayGroup","description":"The TradeDesk API library with Auth, Retry and reflection capabilities when interacting with the API.","archived":false,"fork":false,"pushed_at":"2024-10-23T05:09:55.000Z","size":554,"stargazers_count":5,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T20:23:45.462Z","etag":null,"topics":["goodwaygroup","thetradedesk","thetradedesk-api","tradedesk","tradedesk-api","ttd","ttd-api","typescript"],"latest_commit_sha":null,"homepage":"https://goodwaygroup.github.io/lib-tradedesk/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoodwayGroup.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-01T16:29:15.000Z","updated_at":"2023-08-17T07:51:28.000Z","dependencies_parsed_at":"2023-09-28T22:08:35.945Z","dependency_job_id":"bd29b839-2609-4c49-8341-900708aab7d9","html_url":"https://github.com/GoodwayGroup/lib-tradedesk","commit_stats":{"total_commits":126,"total_committers":5,"mean_commits":25.2,"dds":0.5555555555555556,"last_synced_commit":"a5006668a1ea0ae3875f30e7dc3dc6e93f672546"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodwayGroup%2Flib-tradedesk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodwayGroup%2Flib-tradedesk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodwayGroup%2Flib-tradedesk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodwayGroup%2Flib-tradedesk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoodwayGroup","download_url":"https://codeload.github.com/GoodwayGroup/lib-tradedesk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251758170,"owners_count":21638989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["goodwaygroup","thetradedesk","thetradedesk-api","tradedesk","tradedesk-api","ttd","ttd-api","typescript"],"created_at":"2024-10-22T19:12:32.451Z","updated_at":"2026-03-16T13:37:56.505Z","avatar_url":"https://github.com/GoodwayGroup.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lib-tradedesk\n\n[![Coverage Status](https://coveralls.io/repos/github/GoodwayGroup/lib-tradedesk/badge.svg?branch=master)](https://coveralls.io/github/GoodwayGroup/lib-tradedesk?branch=master) [![CircleCI](https://circleci.com/gh/GoodwayGroup/lib-tradedesk.svg?style=svg)](https://circleci.com/gh/GoodwayGroup/lib-tradedesk)\n\n## Usage\n\nThis plugin will interact with The Trade Desk's API. \n\nView the API's documentation at https://apis.thetradedesk.com/v3/doc\n\n\u003e NOTE: This module uses the [`debug`](https://www.npmjs.com/package/debug) logging tool. Use `DEBUG=tradedesk*` to view debug logging.\n\n```\n$ npm install -S @goodwaygroup/lib-tradedesk\n```\n\n---\n\n```js\nconst { TradeDesk } = require('@goodwaygroup/lib-tradedesk');\n\nconst ttd = new TradeDesk({\n    username: 'testuser@example.com',\n    password: 'apasswordthatwontwork'\n});\n\n// Promises\nttd.get('/campaign/query/facets')\n    .then((res) =\u003e res.json())\n    .then((body) =\u003e console.log(body))\n    .catch((err) =\u003e {\n        console.log(err.stack);\n        if (err.response) {\n            return err.response.json().then((body) =\u003e console.log(body))\n        }\n    });\n\n// Async/Await\ntry {\n    const res = await ttd.get('/campaign/query/facets');\n    console.log(await res.json());\n} catch (err) {\n    console.log(err.stack);\n    if (err.response) {\n        console.log(await err.response.json())\n    }\n}\n```\n\n\n## Configuration Options\n\n\u003e See [Documentation](./docs/api/interfaces/tradedeskoptions.md)\n\n## Full Documentation\n\n\u003e See [Documentation](./docs/api/README.md)\n\n## Running Tests\n\nTo run tests, just run the following:\n\n```\nnpm test\n```\n\nAll commits are tested on [CircleCI](https://circleci.com/gh/GoodwayGroup/workflows/lib-tradedesk)\n\n## Linting\n\nTo run `eslint`:\n\n```\nnpm run lint\n```\n\nTo auto-resolve:\n\n```\nnpm run lint:fix\n```\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use milestones and `npm` version to bump versions. We also employ [git-chglog](https://github.com/git-chglog/git-chglog) to manage the [CHANGELOG.md](CHANGELOG.md). For the versions available, see the [tags on this repository](https://github.com/GoodwayGroup/lib-tradedesk/tags).\n\nTo initiate a version change:\n\n```\nnpm version minor\n```\n\n## Authors\n\n* **Julian Lannigan** - *Initial work* - [@mrlannigan](https://github.com/mrlannigan)\n\nSee also the list of [contributors](https://github.com/GoodwayGroup/lib-tradedesk/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Acknowledgments\n\n## Sponsors\n\n[![goodwaygroup][goodwaygroup]](https://goodwaygroup.com)\n\n[goodwaygroup]: https://s3.amazonaws.com/gw-crs-assets/goodwaygroup/logos/ggLogo_sm.png \"Goodway Group\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodwaygroup%2Flib-tradedesk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoodwaygroup%2Flib-tradedesk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodwaygroup%2Flib-tradedesk/lists"}