URL Tracking Tags
Campaign tracking templates and final URL suffixes
URL tracking tags
Read or update a campaign's click-URL tracking: trackingUrlTemplate (the redirect/tracking template, must contain {lpurl}) and finalUrlSuffix (parse-only key=value params appended to the landing page, the part that survives parallel tracking). Operate at the campaign level via the unified ad endpoint, passing any ad in the campaign.
Read the current values:
const { data } = await zernio.trackingtags.getAdTrackingTags({ path: { adId: 'AD_ID' } });
// { platform: 'google', level: 'campaign', trackingUrlTemplate: '{lpurl}?utm_source=google', finalUrlSuffix: 'utm_medium=cpc' }data = client.tracking_tags.get_ad_tracking_tags(ad_id="AD_ID")curl "https://zernio.com/api/v1/ads/AD_ID/tracking-tags" \
-H "Authorization: Bearer YOUR_API_KEY"Update either field (send only the ones you want to change; omit a field to leave it untouched, pass an empty string to clear it):
const { data } = await zernio.trackingtags.updateAdTrackingTags({
path: { adId: 'AD_ID' },
body: {
trackingUrlTemplate: '{lpurl}?utm_source=google&utm_campaign={campaignid}',
finalUrlSuffix: 'utm_medium=cpc',
},
});data = client.tracking_tags.update_ad_tracking_tags(
ad_id="AD_ID",
tracking_url_template="{lpurl}?utm_source=google&utm_campaign={campaignid}",
final_url_suffix="utm_medium=cpc",
)curl -X PATCH "https://zernio.com/api/v1/ads/AD_ID/tracking-tags" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"trackingUrlTemplate": "{lpurl}?utm_source=google&utm_campaign={campaignid}",
"finalUrlSuffix": "utm_medium=cpc"
}'These reads and writes go through the Google Ads API, which is rate-limited by access tier. A one-off audit is fine; auditing large numbers of campaigns can hit the daily operation cap on Basic access. If you plan high-volume tag auditing, let us know and we'll make sure the underlying account is on the higher tier.