Override callback URL in Ads API


Can we use different callback URLs with different domains when asking user authorization with oAuth in the Ads API?

My problem is that Twitter allows only two app with two API keys (apps) to be tied to our Ads API account, but we have 4 environments: Local, Dev, QA and Production, so we will need 4 different callback URLs

Will we be able to override the callback URL. Some APIs allow this, other do not. Not sure what is the case with Twitter Ads API?


Hi @m_taleski and welcome to the Ads API forum!

Within the oauth flow, you specify a callback url. You can specify different callback urls in each OAuth call - regardless of the one configured on the application level.

Check out this demo of 3-legged auth that one of my teammates created. You can also follow the github link to see the code.