Per-creative performance inside TikTok Smart+ ads
curl --request GET \
--url https://api.aisa.one/apis/v1/ads/tiktok-smart-plus-materials \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/ads/tiktok-smart-plus-materials"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/ads/tiktok-smart-plus-materials', 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.aisa.one/apis/v1/ads/tiktok-smart-plus-materials",
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.aisa.one/apis/v1/ads/tiktok-smart-plus-materials"
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.aisa.one/apis/v1/ads/tiktok-smart-plus-materials")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/ads/tiktok-smart-plus-materials")
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{
"adAccountId": "<string>",
"endDate": "<string>",
"level": "ad",
"missingRows": 123,
"page": 123,
"pageSize": 123,
"rows": [
{
"adGroupId": "<string>",
"materialId": "<string>",
"materialType": "<string>",
"metrics": {
"addPaymentInfo": 123,
"addToCart": 123,
"clicks": 123,
"cpc": 123,
"impressions": 123,
"initiateCheckout": 123,
"purchaseValue": 123,
"purchases": 123,
"roas": 123,
"spend": 123
},
"name": "<string>",
"smartPlusAdId": "<string>",
"tiktokItemId": "<string>"
}
],
"startDate": "<string>",
"totalPages": 123,
"totalRows": 123
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"retryHint": "<string>",
"retryable": true,
"type": "<string>"
}
}TikTok Ads
Per-creative performance inside TikTok Smart+ ads
Ad Insights. Read only. Breaks a Smart+ ad (or ad group) down by creative material, one row per Spark post, video or image, from TikTok’s Smart+ material report. For a Spark post tiktokItemId is the TikTok post id. ### Metrics Conversion metrics are TikTok web (pixel) events.
GET
https://api.aisa.one
/
apis
/
v1
/
ads
/
tiktok-smart-plus-materials
Per-creative performance inside TikTok Smart+ ads
curl --request GET \
--url https://api.aisa.one/apis/v1/ads/tiktok-smart-plus-materials \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/ads/tiktok-smart-plus-materials"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/ads/tiktok-smart-plus-materials', 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.aisa.one/apis/v1/ads/tiktok-smart-plus-materials",
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.aisa.one/apis/v1/ads/tiktok-smart-plus-materials"
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.aisa.one/apis/v1/ads/tiktok-smart-plus-materials")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/ads/tiktok-smart-plus-materials")
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{
"adAccountId": "<string>",
"endDate": "<string>",
"level": "ad",
"missingRows": 123,
"page": 123,
"pageSize": 123,
"rows": [
{
"adGroupId": "<string>",
"materialId": "<string>",
"materialType": "<string>",
"metrics": {
"addPaymentInfo": 123,
"addToCart": 123,
"clicks": 123,
"cpc": 123,
"impressions": 123,
"initiateCheckout": 123,
"purchaseValue": 123,
"purchases": 123,
"roas": 123,
"spend": 123
},
"name": "<string>",
"smartPlusAdId": "<string>",
"tiktokItemId": "<string>"
}
],
"startDate": "<string>",
"totalPages": 123,
"totalRows": 123
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"retryHint": "<string>",
"retryable": true,
"type": "<string>"
}
}Request contract
- Method and path: GET /apis/v1/ads/tiktok-smart-plus-materials
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/ads/tiktok-smart-plus-materials - connectionId: query; required
- adAccountId: query; required
- startDate: query; required
- endDate: query; required
- level: query; optional
- smartPlusAdIds: query; optional
- adGroupIds: query; optional
- page: query; optional
- pageSize: query; optional
{
"operationId": "get_aisa_ads_apis_v1_ads_tiktok_smart_plus_materials",
"method": "GET",
"path": "/apis/v1/ads/tiktok-smart-plus-materials",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "The ads connection (adc_...) the request runs on: one of yours, from GET /apis/v1/ads/connections. On a request with a JSON body it may be sent as a top-level body member instead.",
"in": "query",
"name": "connectionId",
"required": true,
"schema": {
"pattern": "^adc_[0-9A-Za-z]+$",
"type": "string"
}
},
{
"description": "TikTok advertiser ID",
"in": "query",
"name": "adAccountId",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "YYYY-MM-DD, in the advertiser's time zone",
"in": "query",
"name": "startDate",
"required": true,
"schema": {
"format": "date",
"type": "string"
}
},
{
"description": "YYYY-MM-DD, on or after startDate",
"in": "query",
"name": "endDate",
"required": true,
"schema": {
"format": "date",
"type": "string"
}
},
{
"description": "Key each row by Smart+ ad or by ad group",
"in": "query",
"name": "level",
"required": false,
"schema": {
"default": "ad",
"enum": [
"ad",
"adGroup"
],
"type": "string"
}
},
{
"description": "Comma-separated Smart+ ad ids to filter by (up to 100)",
"in": "query",
"name": "smartPlusAdIds",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "Comma-separated ad group ids to filter by (up to 100) Must be yours: it is checked through the connection before the request is sent, and an id that is not yours answers not_found.",
"in": "query",
"name": "adGroupIds",
"required": false,
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "page",
"required": false,
"schema": {
"default": 1,
"minimum": 1,
"type": "integer"
}
},
{
"in": "query",
"name": "pageSize",
"required": false,
"schema": {
"default": 100,
"maximum": 1000,
"minimum": 1,
"type": "integer"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
No additional charge for this operation. Ad spend is billed separately by the ad platform to your connected ad account.Authorizations
Query Parameters
Response
Material rows