Hi Santosh,
Thank you for reaching out to the Microsoft Advertising Learn Q&A Platform and sharing the details of your integration.
Unfortunately, we don’t provide support for normal API functionality, our support is limited to technical issues such as errors or unexpected behavior. For implementation guidance, you’ll need to rely on the official API documentation and community resources.
Here are some helpful links to get you started:
- Reporting API Overview: Reporting API - Microsoft Advertising API | Microsoft Learn
- API Forum for Community Support: Microsoft Advertising API - Microsoft Q&A
- Microsoft Advertising Learning Resources: Microsoft Advertising - Microsoft Advertising API | Microsoft Learn
The Reporting API is the recommended way to retrieve performance metrics. You can use the Campaign Performance Report to get impressions, clicks, CTR, spend, conversions, and currency code. While the API returns data in CSV format, you can parse it in Python to convert it into JSON for your workflow.
Regarding this question, Is there a REST endpoint that returns campaigns with metrics in a single response?
Unfortunately, no, the Microsoft Advertising API does not currently support a REST endpoint that combines campaign metadata and performance metrics in a single JSON response.
If you encounter any technical errors during API calls, feel free to share the details, and we’ll be happy to assist.
I hope the information provided here will at least partly answer your question.
Our support teams are happy to discuss your account in more detail via phone, chat or email to provide review assistance, please see our support page to reach out!
Kind regards,
Arsen D. | Microsoft Advertising Support Specialist | 800-518-5689