Advertiser API
Ad Network Campaign Reporting
1 min
reporting timing all reporting uses utc reporting is updated throughout the day however, there can be a 90 minute delay in reporting { "tab" "examples", "url" "https //api paved com/advertiser/v1/ad network/\ campaign uuid", "name" "get ad network campaign stats", "method" "get", "request" { "pathparameters" \[ { "kind" "required", "name" "campaign uuid", "type" "string", "children" \[], "description" "the six character alphanumeric id for the campaign" } ], "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" }, { "name" "detailed breakdown", "kind" "optional", "type" "boolean", "description" "include stats for ad copies", "children" \[] } ], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "kvxjabmg5ag4ppsgs1kfz", "code" "\[\n \\"campaign results\\" \n {\n \\"date\\" \\"2023 01 01\\",\n \\"impressions\\" 0,\n \\"clicks\\" 0,\n \\"cost\\" 0,\n \\"ctr\\" 0,\n \\"conversions\\" 0\n },\n {\n \\"date\\" \\"2023 01 02\\",\n \\"impressions\\" 0,\n \\"clicks\\" 0,\n \\"cost\\" 0,\n \\"ctr\\" 0,\n \\"conversions\\" 0\n },\n {\n \\"date\\" \\"2023 01 03\\",\n \\"impressions\\" 0,\n \\"clicks\\" 0,\n \\"cost\\" 0,\n \\"ctr\\" 0,\n \\"conversions\\" 0\n },\n {\n \\"date\\" \\"2023 01 04\\",\n \\"impressions\\" 0,\n \\"clicks\\" 0,\n \\"cost\\" 0,\n \\"ctr\\" 0,\n \\"conversions\\" 0\n },\n {\n \\"date\\" \\"2023 01 05\\",\n \\"impressions\\" 0,\n \\"clicks\\" 0,\n \\"cost\\" 0,\n \\"ctr\\" 0,\n \\"conversions\\" 0\n }\n ]", "language" "200", "customlabel" "" }, { "id" "lxhmpx7ttpywsph6cvdq ", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n }", "language" "404", "customlabel" "" } ], "selectedlanguageid" "kvxjabmg5ag4ppsgs1kfz" }, "examples" { "languages" \[ { "id" "pou98jnpprgey83wffilw", "code" "curl location request get 'https //api paved com/advertiser/v1/ad network/\ campaign uuid?from date=string\&to date=string' \\\\\n header 'accept application/json' \\\\\n header 'authorization token xx'", "language" "curl", "customlabel" "" }, { "id" "mrpu vtvlemw uek2vuta", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api paved com/advertiser/v1/ad network/\ campaign uuid?from date=string\&to date=string',\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" " c1omcyiuhwjmpxghvyey", "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/\ campaign uuid?from date=string\&to date=string\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "language" "javascript", "customlabel" "" }, { "id" "wmwknzje3f8efamrzlris", "code" "import requests\n\nurl = \\"https //api paved com/advertiser/v1/ad network/\ campaign uuid?from date=string\&to date=string\\"\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" "uyyrfmmg8uqvhvajncqfy", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api paved com/advertiser/v1/ad network/\ campaign uuid?from date=string\&to date=string\\")\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" "pou98jnpprgey83wffilw" }, "description" "get impressions, clicks and conversions for an ad network campaign ", "currentnewparameter" { "label" "query parameter", "value" "queryparameters" } }