Clients represent customers for which advertising activities can be configured.

Contact your Delta Projects representative to get your mediaAgencyId!

List Clients

Description: List all available clients
Verb: GET
Path: /api/v1/media_agency/<mediaAgencyId>/client

Request Parameters

ParameterTypeRequiredDescriptionExample
mediaAgencyIdPathYesId of media agency86b35325-794c-11e4-8425-daf437376f87
apikeyQueryYesAPI key for authentication and authorizationsecretkey123

Response JSON Body

ParameterParameter TypeDescriptionExample
top levelArray of ClientClientsSee below

Client Object

ParameterParameter TypeDescriptionExample
idStringId of client86b35326-794c-11e4-8425-daf437376f87
nameStringName of clientExample Client

Example Request

GET /api/v1/media_agency/86b35325-794c-11e4-8425-daf437376f87/client?apikey=secret123

Example Response

[
  {
    "id": "86b35326-794c-11e4-8425-daf437376f87",
    "name": "Example Client"
  }
]

Retrieve Client

Description: Retrieve given client
Verb: GET
Path: 
/api/v1/client/<clientId>

Request Parameters

ParameterTypeRequiredDescriptionExample
clientIdPathYesId of client86b35326-794c-11e4-8425-daf437376f87
apikeyQueryYesAPI key for authentication and authorizationsecretkey123
fetchQueryNochild entities to attachcampaigns.activities

Response JSON Body

ParameterParameter TypeDescriptionExample
idStringId of client86b35326-794c-11e4-8425-daf437376f87
nameStringName of clientExample Client
countryStringCountry of clientSE
currencyStringCurrency of client budgets etcEUR

Example Request

GET /api/v1/media_agency/86b35325-794c-11e4-8425-daf437376f87/client/86b35326-794c-11e4-8425-daf437376f87?apikey=secret123

Example Response

{
  "id": "86b35326-794c-11e4-8425-daf437376f87",
  "name": "Example Client",
  "country": "SE",
  "currency": "EUR"
}

Create Client

Description: Create a new client
Verb: POST
Path: 
/api/v1/media_agency/<mediaAgencyId>/client/create_from_template

Request Parameters

ParameterTypeRequiredDescriptionExample
mediaAgencyIdPathYesId of media agency86b35325-794c-11e4-8425-daf437376f87
apikeyQueryYesAPI key for authentication and authorizationsecretkey123

Request JSON body

ParameterParameter TypeRequiredDescriptionExample
templateIdStringYesId of client template16b35326-794c-11e4-8425-daf437376f87
clientNameStringYesName of client to be createdExample Client"

Response

HTTP 201 Created with the URL to the created client in the Location header.

Example Request

POST /api/v1/media_agency/86b35325-794c-11e4-8425-daf437376f87/client/create_from_template?apikey=secret123

Example Request Body

{
  "templateId": "16b35326-794c-11e4-8425-daf437376f87",
  "clientName": "Example Client"
}

Example Response

Location: /api/v1/media_agency/86b35325-794c-11e4-8425-daf437376f87/client/86b35326-794c-11e4-8425-daf437376f87