Get a connection settings form
curl --request GET \
--url https://thetradedesk.narrativeconnectors.com/interfaces/{id}import requests
url = "https://thetradedesk.narrativeconnectors.com/interfaces/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://thetradedesk.narrativeconnectors.com/interfaces/{id}', 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://thetradedesk.narrativeconnectors.com/interfaces/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://thetradedesk.narrativeconnectors.com/interfaces/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://thetradedesk.narrativeconnectors.com/interfaces/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://thetradedesk.narrativeconnectors.com/interfaces/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "first_party",
"name": "first_party",
"schema": {
"type": "object",
"required": [
"advertiser_ids",
"data_segment_names"
],
"properties": {
"advertiser_ids": {
"title": "Advertiser IDs",
"description": "TradeDesk advertiser IDs that should receive this first-party data.",
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
"data_segment_names": {
"title": "Segment Name",
"description": "Name of the TradeDesk first-party data segment to create or populate.",
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
}
}
},
"policy": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Trade Desk audience dataset meta-schema",
"type": "object",
"required": [
"properties"
],
"properties": {
"properties": {
"type": "object",
"anyOf": [
{
"required": [
"sha256_hashed_email"
]
},
{
"required": [
"ttd_id"
]
}
]
}
},
"name": "audience-schema",
"hash": 1206579101
},
"metadata": {
"tags": [
"audience",
"tradedesk",
"advertising"
],
"refresh_schedule": {
"max": "P90D"
}
}
}interfaces
Get a connection settings form
GET
/
interfaces
/
{id}
Get a connection settings form
curl --request GET \
--url https://thetradedesk.narrativeconnectors.com/interfaces/{id}import requests
url = "https://thetradedesk.narrativeconnectors.com/interfaces/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://thetradedesk.narrativeconnectors.com/interfaces/{id}', 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://thetradedesk.narrativeconnectors.com/interfaces/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://thetradedesk.narrativeconnectors.com/interfaces/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://thetradedesk.narrativeconnectors.com/interfaces/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://thetradedesk.narrativeconnectors.com/interfaces/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "first_party",
"name": "first_party",
"schema": {
"type": "object",
"required": [
"advertiser_ids",
"data_segment_names"
],
"properties": {
"advertiser_ids": {
"title": "Advertiser IDs",
"description": "TradeDesk advertiser IDs that should receive this first-party data.",
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
"data_segment_names": {
"title": "Segment Name",
"description": "Name of the TradeDesk first-party data segment to create or populate.",
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
}
}
},
"policy": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Trade Desk audience dataset meta-schema",
"type": "object",
"required": [
"properties"
],
"properties": {
"properties": {
"type": "object",
"anyOf": [
{
"required": [
"sha256_hashed_email"
]
},
{
"required": [
"ttd_id"
]
}
]
}
},
"name": "audience-schema",
"hash": 1206579101
},
"metadata": {
"tags": [
"audience",
"tradedesk",
"advertising"
],
"refresh_schedule": {
"max": "P90D"
}
}
}
