Hi,
I have been using the bing search api on python for quite some time without any issues but recently after changing my card details on my account the api has been returning:
ErrorResponseException: Operation returned an invalid status code 'PermissionDenied'
This is my code:
from azure.cognitiveservices.search.newssearch import NewsSearchAPI
from msrest.authentication import CognitiveServicesCredentials
client = NewsSearchAPI(CognitiveServicesCredentials(subscription_key))
news_result = client.news.search(query='Sugar', market="en-us", count=10)
or upvote
which might help other community members reading this thread.