Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Python Access to Bing Ads API OAuth refresh token


I'm creating a Python script that will interact with Bing Ads via their SDK python library (

I've already set up Bing Ads authentication as described on , but how do I access the refresh token and/or other authentication variables from the Python script component? is there another way to do it?


1 Community Answers

Matillion Agent  

David Lipowitz —

Hi Miguel,

Unfortunately the OAuth connection you’ve set up inside Matillion can’t be re-used by your Python script. You’ll need to handle authentication for Python separately.

Microsoft provides some documentation on that here: Get Started Using Python with Bing Ads Services

I believe they have examples in there that should help you get going. Hope that helps.

Best Regards,

Post Your Community Answer

To add an answer please login