Microsoft Ads API SOAP to REST Migration Kit (scanner + guide)
Microsoft says the Microsoft Advertising (Bing Ads) v13 SOAP API is "scheduled for full deprecation on January 31, 2027". Scripts, ETL jobs, reporting pipelines and agency tools still on the old SDKs or calling the .svc endpoints directly need to move to REST before then.
The hard part is finding everything. In Python, the old SOAP package (bingads) and the new REST package (msads) install the same bingads import namespace, so a plain grep can't tell old code from migrated code. In .NET and Java the SDK version alone decides SOAP or REST (13.0.22 is the switch).
What's inside:
- msm.py scan: a standard-library Python scanner with 31 rules. Walks a repo and reports each finding with file:line, severity (blocker / fix / review / ok), the line of code, a one-line fix and a link to Microsoft's guide.
- Dependencies: bingads in requirements, pyproject (PEP 621 + Poetry), setup.py/cfg, Pipfile, poetry.lock, uv.lock; Microsoft.BingAds.SDK versions in csproj, packages.config, Directory.Packages.props, paket; com.microsoft.bingads in pom.xml (with ${property} resolution), Gradle and version catalogs; microsoft/bingads in Composer.
- Python code: suds/WebFault, ArrayOf* and ns3: factory types, ['long']-style response wrappers, set_elements_to_none, soap_client, SOAP-style keyword calls (msads methods take one request object), and timeout= on ServiceClient, which msads silently ignores.
- PHP, .NET, Java code: Microsoft\BingAds\ namespaces, SoapVar, SoapFault, GetService(), WCF FaultException, JAX-WS BindingProvider casts.
- Raw calls in any file: the six v13 .svc endpoints (production and sandbox), SOAPAction and AuthenticationToken headers.
- Output: text, JSON, Markdown report, and SARIF 2.1.0 for GitHub code scanning. --fail-on blocker makes CI fail until the last SOAP dependency is gone. A ready GitHub Actions workflow is included.
- MIGRATION-GUIDE.md: before/after snippets for Python (bingads to msads), .NET, Java, PHP (microsoft/bingads to microsoft/msads) and raw HTTP. Every API detail checked against Microsoft Learn and Microsoft's own SDK source as of 4 December 2026.
- CHECKLIST.md: inventory, upgrade, sandbox parity test, deploy, clean up, enforce in CI.
- 36 unit tests with fixture repos for each language. No network calls, no credentials.
Honest limits:
- Pattern scanner, not a compiler: dynamically built URLs or calls hidden behind your own wrappers can be missed.
- It tells you what to change; it does not rewrite your code.
- Test against the Microsoft Advertising sandbox before production.
- Large integrations can ask Microsoft for more time; ask early.
- Independent tool, not affiliated with or endorsed by Microsoft.
Single-team commercial license (use and modify inside your organisation). Instant download. By Saggurthi Labs.