Open yiah opened 5 years ago
I've got the same issue - same error message. Did you ever get anywhere with it?
@yiah @ps1982 You'll have to specify 'http://localhost' within Azure as a Redirect URI when registering your application. You can do this by adding a platform (Web) such as this:
Hi
I'm trying to connect to the API using the sample code.
First I created a new app on the Application Registration Portal.
Do I need to add a platform to my app? If yes which one and with which configuration?
In the sample code, I replaced the client_id = "My Application ID" client_secret = "My Password/Public Key"
username = "abc@abc.com", # using my login to bing ads password = "***", # using my password for bing ads developer_token = "XXXXXXXXXXXXXXXXX", # developer token found on https://developers.bingads.microsoft.com/Account?ccuisrc=4
For the customer id I used the value from the Bing Ads URL parameter cid and for the account id the value from the aid parameter. For example:
https://ui.bingads.microsoft.com/campaign/Campaigns.m?cid=00000000&aid=99999999
customer_id = "00000000", account_id = "99999999"Then when I'm running credentials <- baAuthentication(credentials) I get the following error:
https://login.live.com/err.srf?lc=3082#error=invalid_request&error_description=The+provided+value+for+the+input+parameter+'redirect_uri'+is+not+valid.+The+expected+value+is+'https://login.live.com/oauth20_desktop.srf'+or+a+URL+which+matches+the+redirect+URI+registered+for+this+client+application.&state=ClientStateGoesHere
Any help?