Integration
Get an integration
Returns an integration’s global settings schema and saved values, including its account name, ads.txt lines, the fields only its owner can set, and the user’s organisation filter. Publisher, organisation and ad unit mapping isn’t included: read it with GET /v1/integration/{id}/mapping. Takes the encoded integration ID (iid).
GET
/
v1
/
integration
/
{id}
Get an integration
curl --request GET \
--url https://api.tagdeliver.com/v1/integration/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tagdeliver.com/v1/integration/{id}"
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/integration/{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://api.tagdeliver.com/v1/integration/{id}",
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/integration/{id}"
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/integration/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tagdeliver.com/v1/integration/{id}")
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": {
"oid": 3,
"type": "analytic",
"platform": "GA",
"description": "Google Analytics 4 analytics for revenue per session and page view reporting.",
"account_id": 123456,
"account_name": "Example Media",
"account_type": null,
"status": 1,
"schema": {
"type": "object",
"properties": {
"account_name": {
"title": "Account Name",
"type": [
"string",
"null"
]
},
"description": {
"type": "string",
"title": "Description"
},
"owner_only_fields": {
"title": "Owner-only fields",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"anyOf": [
{
"const": "property_id",
"title": "Property id"
}
]
}
}
}
},
"data": {
"description": "Main GA account",
"account_name": "Example Media",
"publisher_own_domain": true,
"filter": {
"type": "exclude",
"list": []
},
"owner_only_fields": []
},
"can_refresh": true,
"platform_name": "Google Analytics",
"preview": {
"title": "Traffic Filter Impact Previewer",
"description": "Run a preview against a property to see the impact before saving.",
"platform_label": "Property",
"no_platforms": "Map a Property ID to a publisher or organisation first to preview filters",
"run_label": "Preview impact"
}
},
"success": true
}{
"success": false,
"message": "Token not found."
}{
"success": false,
"message": "User forbidden"
}{
"success": false,
"message": "Resource not found"
}{
"status": 500,
"message": "An error occurred [4f2k], please try again shortly or contact your account manager for further assistance."
}Authorizations
Path Parameters
Was this page helpful?
⌘I
Get an integration
curl --request GET \
--url https://api.tagdeliver.com/v1/integration/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tagdeliver.com/v1/integration/{id}"
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/integration/{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://api.tagdeliver.com/v1/integration/{id}",
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/integration/{id}"
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/integration/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tagdeliver.com/v1/integration/{id}")
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": {
"oid": 3,
"type": "analytic",
"platform": "GA",
"description": "Google Analytics 4 analytics for revenue per session and page view reporting.",
"account_id": 123456,
"account_name": "Example Media",
"account_type": null,
"status": 1,
"schema": {
"type": "object",
"properties": {
"account_name": {
"title": "Account Name",
"type": [
"string",
"null"
]
},
"description": {
"type": "string",
"title": "Description"
},
"owner_only_fields": {
"title": "Owner-only fields",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"anyOf": [
{
"const": "property_id",
"title": "Property id"
}
]
}
}
}
},
"data": {
"description": "Main GA account",
"account_name": "Example Media",
"publisher_own_domain": true,
"filter": {
"type": "exclude",
"list": []
},
"owner_only_fields": []
},
"can_refresh": true,
"platform_name": "Google Analytics",
"preview": {
"title": "Traffic Filter Impact Previewer",
"description": "Run a preview against a property to see the impact before saving.",
"platform_label": "Property",
"no_platforms": "Map a Property ID to a publisher or organisation first to preview filters",
"run_label": "Preview impact"
}
},
"success": true
}{
"success": false,
"message": "Token not found."
}{
"success": false,
"message": "User forbidden"
}{
"success": false,
"message": "Resource not found"
}{
"status": 500,
"message": "An error occurred [4f2k], please try again shortly or contact your account manager for further assistance."
}