generateLink
  • 09 Dec 2024
  • Dark
    Light

generateLink

  • Dark
    Light

Article summary

Post
/publishers/{publisherId}/linkbuilder/generate

This API is Available on Zapier

Automate your workflows with Zapier's easy to use workflow builder. Read more here or go directly our Zapier Integration Page

POST generate a tracking link

Publishers can post a destination URL for an advertiser to generate an Awin tracking link. This endpoint allows you to either generate a single tracking link or batches of up to 100 tracking links.

Who can use it?

Publishers 

Header parameters
Authorization
string

accessToken

Path parameters
publisherId
integer (int64) Required

publisherId

Query parameters
accessToken
stringRequired

access token

Body parameters

requestBody

Expand All
object
advertiserId
integer (int64)
destinationUrl
string
parameters
object (Parameters)
campaign
string
clickref
string
clickref2
string
clickref3
string
clickref4
string
clickref5
string
clickref6
string
shorten
boolean
Field nameRequired?TypeDescription
advertiserIdYesIntergerID of the advertiser you are creating a link to
destinationUrlNoStringThe specific page you wish to link to. If not provided, the advertiser’s default landing page is used.
parametersNoObjectThis can contain any of the Awin click parameters.
shortenNoBooleanIf set to true, will response will return a shortened link URL along with the standard long link. 
Responses
200

OK

object

Note: If successful, a 200 response code is given, along with JSON of the following form: 

{
  "url": "https://www.awin1.com/....",
  "shortUrl": "https://tidd.ly/...." //if shorten true
}
If the response contains "description": "Unknown error! Please try again later!" for some single advertisers, they do not allow the link builder.  



Was this article helpful?