CTWA
Upsert TikTok or Google Ads conversion sink
PUT
/
v1
/
ctwa
/
ad-sinks
/
{sink}
Upsert TikTok or Google Ads conversion sink
curl --request PUT \
--url https://api.wazapin.com/v1/ctwa/ad-sinks/{sink} \
--header 'Content-Type: application/json' \
--data '
{
"config": "<unknown>",
"enabled": true,
"access_token": "<string>",
"test_mode_code": "<string>"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
config: '<unknown>',
enabled: true,
access_token: '<string>',
test_mode_code: '<string>'
})
};
fetch('https://api.wazapin.com/v1/ctwa/ad-sinks/{sink}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ctwa/ad-sinks/{sink}"
payload = {
"config": "<unknown>",
"enabled": True,
"access_token": "<string>",
"test_mode_code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"config": "<unknown>",
"enabled": true,
"has_credentials": true,
"sink": "<string>",
"created_at": "<string>",
"test_mode_code": "<string>",
"updated_at": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
Upsert TikTok or Google Ads conversion sink
curl --request PUT \
--url https://api.wazapin.com/v1/ctwa/ad-sinks/{sink} \
--header 'Content-Type: application/json' \
--data '
{
"config": "<unknown>",
"enabled": true,
"access_token": "<string>",
"test_mode_code": "<string>"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
config: '<unknown>',
enabled: true,
access_token: '<string>',
test_mode_code: '<string>'
})
};
fetch('https://api.wazapin.com/v1/ctwa/ad-sinks/{sink}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ctwa/ad-sinks/{sink}"
payload = {
"config": "<unknown>",
"enabled": True,
"access_token": "<string>",
"test_mode_code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"config": "<unknown>",
"enabled": true,
"has_credentials": true,
"sink": "<string>",
"created_at": "<string>",
"test_mode_code": "<string>",
"updated_at": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}