Search code examples
pythonsoapsudsbing-ads-api

How to check SOAP fault in python when using suds?


Trying to use Bing Ads Python API, which uses suds, and I am very green about this concept. I frequently encounter an error message as:

Invalid client data. Check the SOAP fault details for more information

I know this probably means my request has some data format issue. My question is how can I Check the SOAP fault details as suggested in the error?


Solution

  • The Bing Ads API troubleshooting guide has some suggestions e.g.,

    import logging
    logging.basicConfig(level=logging.INFO)
    logging.getLogger('suds.client').setLevel(logging.DEBUG)
    

    Here are more details about Using SUDS with Bing Ads API.

    I hope this helps!