- Open Source
- APIs
- Advertising
- Blog
- Events
- Podcasts
- Apps
- Native
- Documentation
- Yahoo Native to Yahoo DSP API Migration Guide
- Sign In
- Language:
Authentication¶
Abstract¶
Describes the authentication process for Yahoo DSP. Note that IDB2B is the preferred and recommended method of authentication.
DSP Authentication¶
Important
For an overview of DSP authentication, refer to the steps outlined in Authentication.
To generate a Client ID and Secret, follow these steps:
Generate a JSON Web Token
Generate a JWT Access Token.
Make a POST call to this endpoint:
https://id.b2b.yahooinc.com/identity/oauth2/access_token
Sample CURL:
curl "https://id.b2b.verizonmedia.com/identity/oauth2/access_token" \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json" \
-d “grant_type=client_credentials&scope=dsp-api-access&realm=dsp&client_assertion
_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&client_assertion=
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJodHRwczovL2lkLmIyYi52ZXJpem9ubWVkaWEuY29tL2lkZW50aXR5L29hdXRoMi9hY2Nlc3NfdG9rZW4_cmVhbG09ZHNwIiwiaXNzIjoiMTk3MDMxZTgtMTU0Ni00MTBmLTg0ZTMtY2Q2YzM4ZGJjZWMwIiwic3ViIjoiMTk3MDMxZTgtMTU0Ni00MTBmLTg0ZTMtY2Q2YzM4ZGJjZWMwIiwiZXhwIjoxNjIzNDQzNDAyfQ.HksbyvWXlvfbs3XI5Y_u50eWPiNc2-Qa2B4eGXLN6A”
You access the DSP API using the access token.
CURL example:
curl "https://dspapi.admanagerplus.yahoo.com/traffic/dictionary" \
-H "X-Auth-Method: OAuth2" \
-H "X-Auth-Token: 3f94eb47-a295-4977-a375-e27bea5c828b”
Important
Complete Python and Java examples are available in the Appendix.