Implement Fluid Ad Server
Display V3

Display V3

code examples curl location globoff 'https //localhost/v3/{publisheruuid}' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "user" { "id" "" }, "adunits" \[ { "adunitid" "" } ] }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "user" { "id" "" }, "adunits" \[ { "adunitid" "" } ] }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //localhost/v3/{publisheruuid}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //localhost/v3/{publisheruuid}") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "user" { "id" "" }, "adunits" \[ { "adunitid" "" } ] }) response = https request(request) puts response read body import requests import json url = "https //localhost/v3/{publisheruuid}" payload = json dumps({ "user" { "id" "" }, "adunits" \[ { "adunitid" "" } ] }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // ok { "adunits" \[ { "adunitid" "", "positions" \[ { "sponsored" "true | false", "kind" "", "targeturl" "https //www example com", "associatedproducts" \[ { "gtin" "" } ], "banner" "{\\"300x250\\" {\\"asseturl\\" \\"https //www example com/image 300x250 jpg\\",\\"beaconurls\\" \[\\"https //www example com/tracking/impression/image 300x250\\"],\\"clickurls\\" \[\\"https //www example com/tracking/click/image 300x250\\"]},\\"728x90\\" {\\"asseturl\\" \\"https //www example com/image 728x90 jpg\\",\\"beaconurls\\" \[\\"https //www example com/tracking/impression/image 728x90\\"],\\"clickurls\\" \[\\"https //www example com/tracking/click/image 728x90\\"]}}" } ] } ] }// one or more request parameters don't comply to the api specifications { "errors" \[ "" ] }// one of the request ad unit ids is unknown { "errors" \[ "" ] }