GET client-brand

A lookup call to retrieve all approved advertiser-brand pairs.

Info

Where the term Client is used, this is now a reference to Advertiser

INPUT

There is no INPUT for this method

OUTPUT - JSON sample

{
	"data": {
		"datetime_last_update": "2018-01-09 14:54:17",
		"approved": [{
				"client_id": 1,
				"client_name": "Client 1",
				"brand_id": 1,
				"brand_name": "Brand 1"
			},
			{
				"client_id": 1,
				"client_name": "Client 1",
				"brand_id": 2,
				"brand_name": "Brand 2"
			},
			{
				"client_id": 2,
				"client_name": "Client 2",
				"brand_id": null,
				"brand_name": null
			}
		],
		"approval_intervention_history": [{
				"client_id": 1,
				"client_name": "Client 1",
				"brand_id": 1,
				"brand_name": "Brand 1",
				"status": "removed",
				"date": "2017-12-12 10:10:10"
			},
			{
				"client_id": 2,
				"client_name": "Client 2",
				"brand_id": null,
				"brand_name": null,
				"status": "removed",
				"date": "2017-12-12 10:10:10"
			},
			{
				"client_id": 3,
				"client_name": "Client 3",
				"brand_id": 4,
				"brand_name": "Brand 4",
				"matched_client_id": 33,
				"matched_brand_id": 44,
				"status": "matched",
				"date": "2017-12-12 10:10:10"
			}
		]
	}
}
        

If an advertiser doesn't have any associated brands then the brand columns will be returned as NULL.