Fetch Monthly advertising billing invoices using API

Ranjeet Singh 0 Reputation points
2025-06-03T05:11:35.2233333+00:00

I am writing to request your assistance in fetching invoices from Microsoft Advertising using the API. Despite having reviewed the available documentation, I am experiencing challenges in successfully implementing the API calls to retrieve invoice data. I would greatly appreciate your guidance on the following:

Prerequisite Steps: I need a detailed step-by-step process to set up the necessary environment and obtain the appropriate permissions to access invoice data via the Microsoft Advertising API. Additionally, please confirm if there are any specific roles or permissions required for API access.

API Access and Authentication: I require assistance with the authentication process using OAuth2 to obtain access tokens. If there are any common pitfalls or specific configurations needed for Microsoft Advertising, please share those insights.

Sample Code for Proof of Concept: I would appreciate it if you could provide a basic sample code snippet in C# (or another suitable programming language) that demonstrates the correct implementation of API calls to fetch invoices. This will assist me in developing a proof of concept and ensuring that my API interactions are correctly structured.

Additional Resources or Documentation: If there are any additional resources, such as articles, tutorials, or FAQs, that could aid in understanding the integration better, please point me toward them.

Thank you for your time and assistance. I look forward to your prompt response to help resolve these queries.

Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manoj 0 Reputation points
    2025-10-16T11:32:40.61+00:00

    Hi Ranjeet,

    Good day!

    Here’s a comprehensive guide to help you fetch invoices from Microsoft Advertising using the API, covering prerequisites, & API Access authentication, Bing Ads API for Billing Information, and resources:


    1. Prerequisite Steps & API Access

    Before making API calls:

    Microsoft Advertising Account Ensure you have a valid Microsoft Advertising account with billing access.

    2. Bing Ads API for Billing Information

    • Customer Billing Service defines an Application Programming Interface (API) that you can use to get billing documents, insertion orders, and monthly spend for an account.
    Service Operation Description Request Limits
    GetBillingDocuments Gets the specified billing documents. 25 BillingDocumentInfo
    GetBillingDocumentsInfo Gets a list of objects that contains billing document identification information, for example the billing document identifier, amount, and account identifier. Not applicable.

    3. Resources

    1. Get Started With the Bing Ads API
      1. Authentication with OAuth
    2. Customer Billing Service Operations
      1. GetBillingDocuments Service Operation - Customer Billing
      2. GetBillingDocumentsInfo Service Operation - Customer Billing

    Any API tools supporting XML/REST can be used. Recommendation will be SOAP UI for XML and POSTMAN for REST.

    I hope this helps.

    Regards,

    Manoj

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.