MENU
    Link Builder (batch)
    • 08 Jul 2024
    • Dark

    Link Builder (batch)

    • Dark

    Article summary

    Post
    /publishers/{publisherId}/linkbuilder/generate-batch
    Header parameters
    Authorization
    string

    accessToken

    Path parameters
    publisherId
    integer (int64) Required

    publisherId

    Query parameters
    accessToken
    stringRequired

    access token

    Body parameters

    requestBody

    Collapse all
    object
    requests
    Array of object (GenerateBatchLink)
    object
    advertiserId
    integer (int64)
    destinationUrl
    string
    parameters
    object (Parameters)
    Responses
    200

    OK

    object

    The response is a JSON object containing a single field “responses” which is an array of objects. Each of those objects contains 2 fields: status (indicating the HTTP status code which would have resulted from the corresponding request being sent singularly), and body. The body is as detailed for a single request above. Additionally, this contains a request field, containing the corresponding request payload, to aid in correlating the responses with the original requests. 

    Note: If the response contains "status": 400, "destinationUrl": "deeplinkNotPermitted"  for single advertisers, they do not allow the link builder.  

    It's currently not possible to generate short links via the batch generated endpoint 


    URL
    Base URL
    https://api.awin.com
    Parameters
    publisherId*
    accessToken*
    Authorization
    Body
    Response
    Click Try It! to start a request and see the response here!
    Code Samples

    Was this article helpful?
    URL
    Base URL
    https://api.awin.com
    Parameters
    publisherId*
    accessToken*
    Authorization
    Body
    Response
    Click Try It! to start a request and see the response here!
    Code Samples