Skip to main content
Skip table of contents

PostAds Connector v1.0

1. Prerequisites and Additional Steps and Helper Utilities

 

image-20241231-060113.png

 


2. Connector Actions and Tests 

Action Name / METHOD

Traffic: POST Traffics (POST)

Action Description

Send transformed traffic data into Prodigy. For transformation, we will transform the previous step’s output (probably a webhook step) and transform it using the Input JSON Context Path and Transformation Spec parameters described below. Finally, the transformed request body will be sent to Prodigy.

Request Body Name

Parameter

Type

Description (Example)

Options

Deliverableid

Integer

Obsolete, may be deleted

Options

Input JSON Context Path

String

The root of the step output that needs to be transformed should be injected. Ex: 1./ from webhook step

Options

Transformation Spec

String

Jolt Transformation Spec should be entered between double quotes, i.e., (“….”). This spec should not have any new lines, it should be converted into one line, using a tool like https://w3percentagecalculator.com/json-to-one-line-converter/
Ex:
"[{"operation":"shift","spec":{"Details":{"*":{"DurationInSeconds":"traffics.[&1].duration","ProxyUrl":"traffics.[&1].proxyUrl","Destination":"traffics.[&1].destination","AdId":"traffics.[&1].adid","VendorName":"traffics.[&1].vendorName","DeliveryDate":"traffics.[&1].deliveryDate","Market":"traffics.[&1].market","DeliveryStatus":"traffics.[&1].deliveryStatus","@(3,Header.BrandName)":"traffics.[&1].brandName","@(3,Header.CompanyName)":"traffics.[&1].companyName","@(3,Header.WorkOrder)":"traffics.[&1].workOrder","@(3,Header.ProductName)":"traffics.[&1].productName","@(3,Header.OrderedBy)":"traffics.[&1].orderedBy","@(3,Header.PurchaseOrder)":"traffics.[&1].purchaseOrder","@(3,Header.JobNumber)":"traffics.[&1].jobNumber","@(3,Header.OrderCreateddate)":"traffics.[&1].orderCreatedDate"}}}}]"
Make sure that there is no hidden new line character at the end.

Options

Traffic

Array

If we enter any value for Traffic array (or any other field), the transformed traffic array will be overwritten by the value entered in UI.

 

 

 

 

 

 

An example of the incoming payload structure for Webhook is given below.

CODE
{
    "Header": {
        "PurchaseOrder": "dev test",
        "JobNumber": "",
        "OrderedBy": "John Doe,
        "OrderCreateddate": "APR 26, 2021, 07:04 PM",
        "CompanyName": "My Company 21",
        "BrandName": "My Company Consumer Group (VCG)",
        "ProductName": "Fios",
        "WorkOrder": "812791"
    },
    "Details": [
        {
            "Destination": "0041",
            "Market": "Reno NV",
            "AdId": "TEST10172022001",
            "DeliveryStatus": "Complete",
            "DeliveryDate": "2023-04-26 04:09 PM",
            "VendorName": "OVER THE NOSE",
            "DurationInSeconds": 10,
            "ProxyUrl": "https://mycompany.orderanalytics/datetime/test.mp4",
            "TrafficExpressUrls": null
        },
        {
            "Destination": "0041",
            "Market": "Reno NV",
            "AdId": "TEST10182022001",
            "DeliveryStatus": "Complete",
            "DeliveryDate": "2023-04-26 04:47 PM",
            "VendorName": "OVER THE NOSE",
            "DurationInSeconds": 10,
            "ProxyUrl": "https://mycompany.orderanalytics/datetime/test2.mp4",
            "TrafficExpressUrls": null
        },
        {
            "Destination": "0041",
            "Market": "Reno NV",
            "AdId": null,
            "DeliveryStatus": "Complete",
            "DeliveryDate": "2023-04-26 04:11 PM",
            "VendorName": "PIXIE",
            "DurationInSeconds": null,
            "ProxyUrl": null,
            "TrafficExpressUrls": [
                "https://ycompany.orderanalytics/datetime/dates.docx"
            ]
        }
    ]
}

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.