Advertiser API
Ad Network Campaigns
1 min
{ "tab" "examples", "url" "https //api paved com/advertiser/v1/ad network", "name" "get ad network campaigns", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[ { "kind" "optional", "name" "from date", "type" "string", "children" \[], "description" "format yyyy mm dd iso8601\nall times are in utc" }, { "kind" "optional", "name" "to date", "type" "string", "children" \[], "description" "format yyyy mm dd iso8601\nall times are in utc" } ], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "kvxjabmg5ag4ppsgs1kfz", "code" "\[{\n\t\\"uuid\\" \\"test123\\",\n\t\\"stats\\" {\n\t\t\\"impressions\\" 3329320,\n\t\t\\"clicks\\" 230,\n\t\t\\"cost\\" \\"995 9\\",\n\t\t\\"conversions\\" 19\n\t},\n\t\\"status\\" \\"active\\",\n\t\\"name\\" \\"ibm\\",\n\t\\"bid amount\\" \\"4 33\\",\n\t\\"strategy\\" \\"cpc\\",\n\t\\"archived\\" false\n}]", "language" "200", "customlabel" "" }, { "id" "lxhmpx7ttpywsph6cvdq ", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n }", "language" "404", "customlabel" "" } ], "selectedlanguageid" "kvxjabmg5ag4ppsgs1kfz" }, "examples" { "languages" \[ { "id" "9ctic o0rajfppan94cby", "code" "curl location request get 'https //api paved com/advertiser/v1/ad network' \\\\\n header 'accept application/json' \\\\\n header 'authorization token xx'", "language" "curl", "customlabel" "" }, { "id" "9mpxnzsmiyjcezqqmeknj", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api paved com/advertiser/v1/ad network',\n 'headers' {\n 'accept' 'application/json',\n 'authorization' 'token xx'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "language" "nodejs", "customlabel" "" }, { "id" "yob0lxnrs91soubnvea65", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"authorization\\", \\"token xx\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //api paved com/advertiser/v1/ad network\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "language" "javascript", "customlabel" "" }, { "id" "uk66jg 8urtxc01xwvuie", "code" "import requests\n\nurl = \\"https //api paved com/advertiser/v1/ad network\\"\n\npayload={}\nheaders = {\n 'accept' 'application/json',\n 'authorization' 'token xx'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "language" "python", "customlabel" "" }, { "id" "newisn8yujsj534jzyhpf", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api paved com/advertiser/v1/ad network\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"authorization\\"] = \\"token xx\\"\n\nresponse = https request(request)\nputs response read body\n", "language" "ruby", "customlabel" "" } ], "selectedlanguageid" "newisn8yujsj534jzyhpf" }, "description" "list all ad network campaigns with impressions, clicks and cost ", "currentnewparameter" { "label" "query parameter", "value" "queryparameters" } }