Skip to content

MngAddMarketingLink

Creates a tracking-link definition and returns its generated URL. The URL host is taken from the brand terminal_host; it cannot be supplied in the request.

At least one of affiliate_id and campaign_id is required. Supported models:

  • affiliate only — global affiliate link;
  • campaign only — direct broker campaign;
  • affiliate and campaign — campaign traffic generated by that affiliate.
{"command":"MngAddMarketingLink","extID":"1","data":{"brand":"default","campaign_id":12,"affiliate_id":7,"code":"AFF1024_FB01","name":"Affiliate Facebook landing","landing_path":"/en/register","utm_source":"facebook","utm_medium":"affiliate","utm_campaign":"fb-cy-01","sub_id":"creative-7"}}

Optional tracking fields are utm_source, utm_medium, utm_campaign, utm_content, utm_term, sub_id, sub_id2, and sub_id3.

{"id":18,"url":"https://trade.example.com/en/register?affiliate=AFF1024&campaign=FB_CY_01&link=AFF1024_FB01&utm_source=facebook&utm_medium=affiliate&utm_campaign=fb-cy-01&sub_id=creative-7"}