Mapping
Get a platform's mapping schema
Returns a platform’s mapping fields by platform module ID rather than integration, so records can be built before an integration is connected, along with your integrations on that platform and a template mapping record. The fields are the owner’s view: readonly fields can never be written, and owner_only fields only by the integration’s owner, which each integration’s is_owner says. The built-in approved field comes last. integrations lists the integrations on the platform that mapping writes accept from you: your organisation’s, its parent organisations’ and the platform’s own organisation’s, less hidden ones and fallback creatives.
GET
/
v1
/
mapping
/
schema
/
{platform}
Get a platform's mapping schema
curl --request GET \
--url https://api.tagdeliver.com/v1/mapping/schema/{platform} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tagdeliver.com/v1/mapping/schema/{platform}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tagdeliver.com/v1/mapping/schema/{platform}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tagdeliver.com/v1/mapping/schema/{platform}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tagdeliver.com/v1/mapping/schema/{platform}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tagdeliver.com/v1/mapping/schema/{platform}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tagdeliver.com/v1/mapping/schema/{platform}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": {
"platform": "Criteo",
"name": "Criteo",
"levels": [
"integration",
"ad_stack",
"organisation",
"publisher",
"config"
],
"fields": [
{
"key": "networkId",
"label": "Network ID",
"description": null,
"type": "string",
"required": true,
"readonly": false,
"computed_from": null,
"example": null,
"schema": {
"type": "string",
"title": "Network ID"
},
"owner_only": false
},
{
"key": "approved",
"label": "Approved",
"description": "Whether this integration runs for the publisher. Unset means approved. To approve publishers one by one, set No at integration level, then Yes for each organisation or publisher you approve.",
"type": "boolean",
"required": false,
"readonly": false,
"computed_from": null,
"example": null,
"schema": {
"title": "Approved",
"type": "boolean",
"description": "Whether this integration runs for the publisher. Unset means approved. To approve publishers one by one, set No at integration level, then Yes for each organisation or publisher you approve."
},
"owner_only": false
}
],
"integrations": [
{
"integration_id": "gjdi10",
"name": "DEMO Criteo",
"owner": "DEMO",
"is_owner": true
}
],
"record": {
"integration_id": "<integration_id from integrations>",
"level": "<one of levels>",
"entity_id": "<id of the organisation / ad_stack / publisher uid / config (ad unit); null for integration>",
"field": "<field key>",
"value": "<value matching the field schema>",
"wnm": false
}
},
"success": true
}{
"success": false,
"message": "Token not found."
}{
"success": false,
"message": "User forbidden"
}{
"success": false,
"message": "Platform Criteo Not Found"
}{
"status": 500,
"message": "An error occurred [4f2k], please try again shortly or contact your account manager for further assistance."
}Authorizations
Was this page helpful?
⌘I
Get a platform's mapping schema
curl --request GET \
--url https://api.tagdeliver.com/v1/mapping/schema/{platform} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tagdeliver.com/v1/mapping/schema/{platform}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tagdeliver.com/v1/mapping/schema/{platform}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tagdeliver.com/v1/mapping/schema/{platform}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tagdeliver.com/v1/mapping/schema/{platform}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tagdeliver.com/v1/mapping/schema/{platform}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tagdeliver.com/v1/mapping/schema/{platform}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": {
"platform": "Criteo",
"name": "Criteo",
"levels": [
"integration",
"ad_stack",
"organisation",
"publisher",
"config"
],
"fields": [
{
"key": "networkId",
"label": "Network ID",
"description": null,
"type": "string",
"required": true,
"readonly": false,
"computed_from": null,
"example": null,
"schema": {
"type": "string",
"title": "Network ID"
},
"owner_only": false
},
{
"key": "approved",
"label": "Approved",
"description": "Whether this integration runs for the publisher. Unset means approved. To approve publishers one by one, set No at integration level, then Yes for each organisation or publisher you approve.",
"type": "boolean",
"required": false,
"readonly": false,
"computed_from": null,
"example": null,
"schema": {
"title": "Approved",
"type": "boolean",
"description": "Whether this integration runs for the publisher. Unset means approved. To approve publishers one by one, set No at integration level, then Yes for each organisation or publisher you approve."
},
"owner_only": false
}
],
"integrations": [
{
"integration_id": "gjdi10",
"name": "DEMO Criteo",
"owner": "DEMO",
"is_owner": true
}
],
"record": {
"integration_id": "<integration_id from integrations>",
"level": "<one of levels>",
"entity_id": "<id of the organisation / ad_stack / publisher uid / config (ad unit); null for integration>",
"field": "<field key>",
"value": "<value matching the field schema>",
"wnm": false
}
},
"success": true
}{
"success": false,
"message": "Token not found."
}{
"success": false,
"message": "User forbidden"
}{
"success": false,
"message": "Platform Criteo Not Found"
}{
"status": 500,
"message": "An error occurred [4f2k], please try again shortly or contact your account manager for further assistance."
}