Login (Buyers & Sellers)

Ticket Authentication method is being replaced by OAuth Authorization.

All new API users must have OAuth application registered.

Read more here.

REST (JSON):

  • Method type: POST
  • Request URL: https://api.adform.com/Services/Security/Login
  • Host: api.adform.com
  • Headers: 
    • Content-Type: application/json

REST (JSONP):

  • Method type: GET
  • Request URL: https://api.adform.com/Services/Security/Login
  • Host: api.adform.com
  • Headers: -

Field Explanation

Request (body in JSON and query in JSONP):
 

Field/ParameterMandatory/OptionalTypeDescription
UserNameMandatory

string

User name

PasswordMandatory

string

Password

 

Response

 

FieldTypeDescription
Ticket

string

Authorization Ticket

REST Sample (JSON)

Login Method: POST https://api.adform.com/Services/Security/Login

Headers: Content-Type: application/json

Request (body):


        {
     "UserName": "myTestUserName",
     "Password": "myTestUserPassword"
}
    

Response

Status: 200 OK.


        {
    "Ticket": "t5HZhM49Bp530vZh5hMIIjYGRQ1bh-t98ObMwHFGTsJ6qmj|6x0WzzHiwZnqqJakbbMsaXPYyy6DGU4df28A3w__"
}
    

REST Sample (JSONP)

Login Method: GET https://api.adform.com/Services/Security/Login

Headers: Content-Type: application/json

Request url example:


        https://api.adform.com/Services/Security/Login?username=myTestUserName&password=myTestUserPassword&callback=JsonPCallBack
    

Response

Status: 200 OK


        JsonPCallBack({
	"Ticket": "UdD0mtO0KT3jpxyJ68NCleJJv5Hd1n-NjfFwWGlaBioldk0kv3q|X5WgBnV3n0MlspwnJtnzHbmHB5RjmRhPYA__"
})
    
Help

Still have questions?

If you can't find an answer to your question here, email our Support team