CTWA
Create tracked ad click link (Generated Link Ads)
POST
/
v1
/
ctwa
/
click-links
Create tracked ad click link (Generated Link Ads)
curl --request POST \
--url https://api.wazapin.com/v1/ctwa/click-links \
--header 'Content-Type: application/json' \
--data '
{
"destination_url": "<string>",
"name": "<string>",
"platform": "<string>",
"ad_creative": "<string>",
"adset": "<string>",
"campaign": "<string>",
"wa_phone": "<string>",
"wa_prefill": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
destination_url: '<string>',
name: '<string>',
platform: '<string>',
ad_creative: '<string>',
adset: '<string>',
campaign: '<string>',
wa_phone: '<string>',
wa_prefill: '<string>'
})
};
fetch('https://api.wazapin.com/v1/ctwa/click-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ctwa/click-links"
payload = {
"destination_url": "<string>",
"name": "<string>",
"platform": "<string>",
"ad_creative": "<string>",
"adset": "<string>",
"campaign": "<string>",
"wa_phone": "<string>",
"wa_prefill": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"clicks": 123,
"code": "<string>",
"destination_url": "<string>",
"enabled": true,
"id": "<string>",
"name": "<string>",
"platform": "<string>",
"track_url_path": "<string>",
"ad_creative": "<string>",
"adset": "<string>",
"campaign": "<string>",
"created_at": "<string>",
"wa_phone": "<string>",
"wa_prefill": "<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>"
}
}Body
application/json
⌘I
Create tracked ad click link (Generated Link Ads)
curl --request POST \
--url https://api.wazapin.com/v1/ctwa/click-links \
--header 'Content-Type: application/json' \
--data '
{
"destination_url": "<string>",
"name": "<string>",
"platform": "<string>",
"ad_creative": "<string>",
"adset": "<string>",
"campaign": "<string>",
"wa_phone": "<string>",
"wa_prefill": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
destination_url: '<string>',
name: '<string>',
platform: '<string>',
ad_creative: '<string>',
adset: '<string>',
campaign: '<string>',
wa_phone: '<string>',
wa_prefill: '<string>'
})
};
fetch('https://api.wazapin.com/v1/ctwa/click-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ctwa/click-links"
payload = {
"destination_url": "<string>",
"name": "<string>",
"platform": "<string>",
"ad_creative": "<string>",
"adset": "<string>",
"campaign": "<string>",
"wa_phone": "<string>",
"wa_prefill": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"clicks": 123,
"code": "<string>",
"destination_url": "<string>",
"enabled": true,
"id": "<string>",
"name": "<string>",
"platform": "<string>",
"track_url_path": "<string>",
"ad_creative": "<string>",
"adset": "<string>",
"campaign": "<string>",
"created_at": "<string>",
"wa_phone": "<string>",
"wa_prefill": "<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>"
}
}