Follow

Overview

This article provides examples of the APIs used for campaign setup.

Example campaign setup

Login


>cat sign_in.json
{
    "email": "strikead.api@mobext.com",
    "password": "***********"
}
>curl -H "Content-Type: application/json" -X POST --data @sign_in.json https://api-staging.strikead.com/v1.1/login

{"token":"silex_5702506b7d99e"}

Campaign create


>cat campaign_1.json
{
    "advertiser_name": "Cameplot",
    "name": "API test 2",
    "start_date": "2016-05-01 00:00",
    "end_date": "2016-05-27 23:59",
    "primary_contact": "test@somedomain.com",
    "active": false,
    "budget": 100.1,
    "currency_id": 7,
    "exchange_rate": 1.25,
    "agency_id": 90,
    "pacing": "evenly",
    "advertiser_domain": "strikead.com",
    "line_items":
    [{
        "name": "API test Line-Item",
        "coppa": false,
        "billable_mode": "CPM",
        "budget": 50,
        "cpm_max_bid": 2.5,
        "product_categories": ["3-D Graphics"],
        "billable_unit_price": 1.17,
        "pacing": "evenly",
        "active": false,
        "targeting": {
                "country": ["GB"],
                "inventory_type": ["mobile_web"],
                "gps_enabled": false
        }
    }]
}
>curl -H "Content-Type: application/json" -H "X-Authorization: silex_5702506b7d99e" -X POST --data @campaign_1.json  https://api-staging.strikead.com/v1.1/campaigns

{ 

   "id":4097,
   "name":"API test 2",
   "primary_contact":"bimaks@gmail.com",
   "advertiser_name":"Cameplot",
   "budget":100.1,
   "currency_id": 7,
   "exchange_rate": 1.25,
   "start_date":"2016-05-01 00:00",
   "end_date":"2016-05-27 23:59",
   "agency_id": 90,
   "utc_timezone_id":1,
   "pacing":"evenly",
   "active":false,
   "advertiser_domain":"strikead.com",
   "line_items":[ 
      { 
         "id":58645,
         "name":"API test Line-Item 2",
         "active":false,
         "start_date":"2016-05-01 00:00",
         "end_date":"2016-05-27 23:59",
         "utc_timezone_id":1,
         "billable_mode":"CPM",
         "billable_unit_price":1.17,
         "budget":50,
         "pacing":"evenly",
         "daily_cap":0,
         "cpm_max_bid":2.5,
         "targeting":{ 
            "country":[ 
               "GB"
            ],
            "inventory_type":[ 
               "mobile_web"
            ]
         },
         "coppa":false,
         "product_categories":[ 
            "3-D Graphics"
         ]
      }
   ]
}

Creative create


>cat creative_1.json
{
    "name": "API_CREATIVE_1",
    "type": "image",
    "click_through_url": "https://click-through.some-web.com",
    "landing_page_url": "https://landing.some-web.com",
    "tracking_code": "",
    "size": {
       "width": 320,
       "height": 50
    },
    "file": {
       "content": "/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABGAAD/4QMtaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODU3MDE5RjkyN0QyMTFFNUEwOURDOTY3NDc5RjQ4NTgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODU3MDE5RkEyN0QyMTFFNUEwOURDOTY3NDc5RjQ4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15n3RYTEcmt0rHG8C2UV69WKRs05khkhHqOe4gACQn7R8VcNz82dmgubu/22Kf5y86bXGQs6bWxlp8IbU46aY99Qoy249cuZFDcOYYoq0DQakkEY19a/LrbF56jjuSXfViyOXqFuDxE8jXRQSxYiIsi8nyGue8h37NVI+am6bRdXG22sxfBZzdS7m0Uc9pn8WHveKtailPEsXHre5jjne2j5G0iZXAHpin1L4tcZ57y7MYu1yShjMVWxMrrf5FSR0lmaTYWiNrtDo0kgu1+ix7NzLifGbOdm33V1dOmDWBkocI2DUNTgNIFQKnAVOXavqfbdxvpo3Txxxhh1VaauJpl6lppeAdgRYfimFhq4+5i8G19q3Rnne2Oe8+aVzfU2gbmMaWlo+pOqszPMXhvzl/eCeaO4vqM6rIjrjjEbGUYTUAktLq0zp3KNOx7mIoItLHMhxLS7Bzqk494H3qX4vjvKbPLTyjOxVYJbGHNGxHXlc9os+s5w03DXTbp5XL955RxyDZYdt2+aWUR3rJ9UrDq0U8RJ0gVr2Kx2theOvDcTNa2sWjwntr9y1FHr3PwcZ4ZiZhAbOEyn5mQHqat9AySOO06eTo4eFYZfM7aWb1u99E91Lu3jZB4DjIxgHiHwjUMyo6LYbkWtrC4CsTy5+PYScu/Na/i3V2Y49l8dVnwmDvY2lcZKc5L6n5roGy7w4t0/7jR4Hy8K77j5xbLfxmUX1zA57BWARMLA6mI1aHHSTnQ+pR1pxq5t3taYonhrvf1O1Ur3ZVWVxfrjkHD3YjO4r0Tm/VsV+R0/U/pWqM1h8jHtcRoJY27dPH/GD5X5occ5Gy4266c/5Z0bHQS9M6o52ghwLc9JwNe7UO5bO28fvLExzR06gJEjdWDmE1HtClWLsSZHn167HUtQ04McKZnsQPhY+ZllxIYXgbhp51C5HyOyj2zicFm64gml+bdJSGVslGuioCaYjHDJWKzkM+4vkDHNb0w2rmluOrsUyXDlaURERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERF//2Q==",
       "type": "image"
    }
}
>curl -H "Content-Type: application/json" -H "X-Authorization: silex_5702506b7d99e" -X POST --data @creative_1.json  https://api-staging.strikead.com/v1.1/campaigns/4097/creatives
 

{ 
   "id":342165,
   "name":"API_CREATIVE_1",
   "type":"image",
   "click_through_url":"https:\/\/click-through.some-web.com",
   "landing_page_url":"http:\/\/landing.some-web.com",
   "size":{ 
      "width":320,
      "height":50
   },
   "file":{ 
      "type":"image",
      "content":"/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABGAAD/4QMtaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODU3MDE5RjkyN0QyMTFFNUEwOURDOTY3NDc5RjQ4NTgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODU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VjGeLTXM9gVS3Nzo71j9DnNMb21a0uoSRStFqMN15n3RYTEcmt0rHG8C2UV69WKRs05khkhHqOe4gACQn7R8VcNz82dmgubu/22Kf5y86bXGQs6bWxlp8IbU46aY99Qoy249cuZFDcOYYoq0DQakkEY19a/LrbF56jjuSXfViyOXqFuDxE8jXRQSxYiIsi8nyGue8h37NVI+am6bRdXG22sxfBZzdS7m0Uc9pn8WHveKtailPEsXHre5jjne2j5G0iZXAHpin1L4tcZ57y7MYu1yShjMVWxMrrf5FSR0lmaTYWiNrtDo0kgu1+ix7NzLifGbOdm33V1dOmDWBkocI2DUNTgNIFQKnAVOXavqfbdxvpo3Txxxhh1VaauJpl6lppeAdgRYfimFhq4+5i8G19q3Rnne2Oe8+aVzfU2gbmMaWlo+pOqszPMXhvzl/eCeaO4vqM6rIjrjjEbGUYTUAktLq0zp3KNOx7mIoItLHMhxLS7Bzqk494H3qX4vjvKbPLTyjOxVYJbGHNGxHXlc9os+s5w03DXTbp5XL955RxyDZYdt2+aWUR3rJ9UrDq0U8RJ0gVr2Kx2theOvDcTNa2sWjwntr9y1FHr3PwcZ4ZiZhAbOEyn5mQHqat9AySOO06eTo4eFYZfM7aWb1u99E91Lu3jZB4DjIxgHiHwjUMyo6LYbkWtrC4CsTy5+PYScu/Na/i3V2Y49l8dVnwmDvY2lcZKc5L6n5roGy7w4t0/7jR4Hy8K77j5xbLfxmUX1zA57BWARMLA6mI1aHHSTnQ+pR1pxq5t3taYonhrvf1O1Ur3ZVWVxfrjkHD3YjO4r0Tm/VsV+R0/U/pWqM1h8jHtcRoJY27dPH/GD5X5occ5Gy4266c/5Z0bHQS9M6o52ghwLc9JwNe7UO5bO28fvLExzR06gJEjdWDmE1HtClWLsSZHn167HUtQ04McKZnsQPhY+ZllxIYXgbhp51C5HyOyj2zicFm64gml+bdJSGVslGuioCaYjHDJWKzkM+4vkDHNb0w2rmluOrsUyXDlaURERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERF//2Q=="
   }
}

Link creatives to line items


>cat campaign_2.json
{
    "id": 4097,
    "advertiser_name": "Cameplot",
    "name": "API test 2",
    "start_date": "2016-04-01 00:00",
    "end_date": "2016-04-06 23:59",
    "primary_contact": "test@somedomain.com",
    "active": false,
    "agency_id": 90,
    "budget": 100.1,
    "pacing": "evenly",
    "advertiser_domain": "strikead.com",
    "line_items":
    [{
        "id": 58647
        "name": "API test Line-Item",
        "coppa": false,
        "billable_mode": "CPM",
        "budget": 50,
        "cpm_max_bid": 2.5,
        "product_categories": ["3-D Graphics"],
        "billable_unit_price": 1.17,
        "pacing": "evenly",
        "active": false,
        "creatives": [342165],
        "targeting": {
                "country": ["GB"],
                "inventory_type": ["mobile_web"],
                "gps_enabled": false
        }
    }]
}
>curl -H "Content-Type: application/json" -H "X-Authorization: silex_5702506b7d99e" -X PUT --data @campaign_2.json  https://api-staging.strikead.com/v1.1/campaigns/4097

{ 
   "id":4097,
   "name":"API test 2",
   "primary_contact":"bimaks@gmail.com",
   "advertiser_name":"Cameplot",
   "budget":100.1,
   "start_date":"2016-04-01 00:00",
   "end_date":"2016-04-06 21:59",
   "utc_timezone_id":1,
   "pacing":"evenly",
   "active":true,
   "agency_id": 90,
   "advertiser_domain":"strikead.com",
   "line_items":[ 
      { 
         "id":58647,
         "name":"API test Line-Item 2",
         "active":true,
         "start_date":"2016-04-01 00:00",
         "end_date":"2016-04-06 21:59",
         "utc_timezone_id":1,
         "billable_mode":"CPM",
         "billable_unit_price":1.17,
         "budget":50,
         "pacing":"evenly",
         "daily_cap":0,
         "cpm_max_bid":2.5,
         "creatives":[ 
            "342165"
         ],
         "targeting":{ 
            "country":[ 
               "GB"
            ],
            "inventory_type":[ 
               "mobile_web"
            ]
         },
         "coppa":false,
         "product_categories":[ 
            "3-D Graphics"
         ]
      }
   ]

}

Activate campaign and line items


>cat campaign_3.json
{ 
   "id":4097,
   "name":"API test 2",
   "primary_contact":"bimaks@somedomain.com",
   "advertiser_name":"Cameplot",
   "budget":100.1,
   "start_date":"2016-04-01 00:00",
   "end_date":"2016-04-06 21:59",
   "agency_id": 90,
   "utc_timezone_id":1,
   "pacing":"evenly",
   "active":true,
   "advertiser_domain":"strikead.com",
   "line_items":[ 
      { 
         "id":58647,
         "name":"API test Line-Item 2",
         "active":true,
         "start_date":"2016-04-01 00:00",
         "end_date":"2016-04-06 21:59",
         "utc_timezone_id":1,
         "billable_mode":"CPM",
         "billable_unit_price":1.17,
         "budget":50,
         "pacing":"evenly",
         "daily_cap":0,
         "cpm_max_bid":2.5,
         "creatives":[ 
            "342165"
         ],
         "targeting":{ 
            "country":[ 
               "GB"
            ],
            "inventory_type":[ 
               "mobile_web"
            ]
         },
         "coppa":false,
         "product_categories":[ 
            "3-D Graphics"
         ]
      }
   ]
}
>curl -H "Content-Type: application/json" -H "X-Authorization: silex_5702506b7d99e" -X PUT --data @campaign_3.json  https://api-staging.strikead.com/v1.1/campaigns/4097

{ 
   "id":4097,
   "name":"API test 2",
   "primary_contact":"bimaks@somedomain.com",
   "advertiser_name":"Cameplot",
   "budget":100.1,
   "start_date":"2016-04-01 00:00",
   "end_date":"2016-04-06 21:59",
   "agency_id": 90,
   "utc_timezone_id":1,
   "pacing":"evenly",
   "active":true,
   "advertiser_domain":"strikead.com",
   "line_items":[ 
      { 
         "id":58647,
         "name":"API test Line-Item 2",
         "active":true,
         "start_date":"2016-04-01 00:00",
         "end_date":"2016-04-06 21:59",
         "utc_timezone_id":1,
         "billable_mode":"CPM",
         "billable_unit_price":1.17,
         "budget":50,
         "pacing":"evenly",
         "daily_cap":0,
         "cpm_max_bid":2.5,
         "creatives":[ 
            "342165"
         ],
         "targeting":{ 
            "country":[ 
               "GB"
            ],
            "inventory_type":[ 
               "mobile_web"
            ]
         },
         "coppa":false,
         "product_categories":[ 
            "3-D Graphics"
         ]
      }
   ]
}

Get campaign info


curl -H "Content-Type: application/json"-H "X-Authorization: silex_5702506b7d99e"-X GET  https://api-staging.strikead.com/v1.1/campaigns/4097

{
   "advertiser_id" : 116,
   "end_date" : "2017-09-30 23:59",
   "pacing" : "evenly",
   "advertiser_domain" : "strikead.com",
   "budget" : 100,
   "start_date" : "2017-01-10 00:00",
   "currency_id" : 14,
   "description" : "Test CPx",
   "id" : 4002,
   "utc_timezone_id" : 1,
   "primary_contact" : "bimaks@gmail.com",
   "agency_id" : 188,
   "active" : true,
   "line_items" : [
      {
         "cpm_max_bid" : 1,
         "id" : 59180,
         "utc_timezone_id" : 1,
         "sensitive_categories" : [
            "3-D Graphics",
            "Adoption",
            "Advertising"
         ],
         "active" : true,
         "billable_mode" : "CPM",
         "billable_unit_price" : 2,
         "name" : "Test AdChoice",
         "buying_type" : "RTB buy",
         "product_categories" : [
            "Art/Technology"
         ],
         "targeting" : {
            "country" : [
               "GB"
            ]
         },
         "end_date" : "2017-02-11 23:59",
         "pacing" : "evenly",
         "creatives" : [
            343300,
            343301
         ],
         "daily_cap" : 0,
         "budget" : 70,
         "coppa" : false,
         "start_date" : "2017-01-11 00:00"
      },
      {
         "billable_unit_price" : 1,
         "name" : "Peer39api test",
         "3d_party_cost1" : 0.2,
         "cpm_max_bid" : 1,
         "id" : 59316,
         "utc_timezone_id" : 1,
         "active" : false,
         "billable_mode" : "CPM",
         "end_date" : "2017-06-20 23:59",
         "pacing" : "evenly",
         "daily_cap" : 0,
         "coppa" : false,
         "budget" : 1,
         "start_date" : "2017-06-20 00:00",
         "buying_type" : "RTB buy",
         "targeting" : {
            "country" : [
               "AF"
            ],
            "segments" : {
               "3rd_party" : {
                  "peer39" : {
                     "total_cost" : 0.4,
                     "groups" : [
                        {
                           "items" : [
                              "963",
                              "10280"
                           ],
                           "include" : true
                        },
                        {
                           "include" : true,
                           "items" : [
                              "1165"
                           ]
                        }
                     ]
                  }
               }
            }
         }
      }
   ],
   "external_id" : "test ID",
   "name" : "Bimax test2 CPx"
}

Get Available Report Metrics


curl -H 'X-Authorization: silex_5702506b7d99e' http://api-staging.strikead.com/v1.1/report/metrics

["clicks","impressions","total_spend","conversions"]

Get Report: Campaign Statistics


curl -H 'X-Authorization: silex_5702506b7d99e' 'http://api-staging.strikead.com/v1.1/report?campaign_id=9701&from=2016-09-28&to=2016-09-29&metrics=clicks,impressions,conversions,total_spend'

[{"impressions":28679,"conversions":0,"clicks":49,"total_spend":62.2521077727104,"campaign_id":9701,"days":"2016-09-28T00:00"}]

Get Report: Line Item Statistics


curl -H 'X-Authorization: silex_5702506b7d99e' 'http://api-staging.strikead.com/v1.1/report?line_item_id=84000&from=2016-09-28&to=2016-09-29&metrics=clicks,impressions,conversions,total_spend'

[{"impressions":461,"conversions":0,"clicks":0,"ad_id":84000,"total_spend":0.947923664857,"campaign_id":9701,"days":"2016-09-28T00:00"}]

Other

PMP Line-Item


"line_items": [{
        "buying_type": "PMP",
        "name": "client_li20160314170938485114",
        "billable_mode": "Cost+",
        "start_date": "2014-10-27 00:00",
        "end_date": "2014-11-27 23:59",
        "utc_timezone_id": 1,
        "cpm_max_bid": 2.5,
        "product_categories": ["3-D Graphics"],
        "billable_unit_price": 1.17,
        "active": false,
        "targeting": {
            "pmp": [{
                     "exchange": "nexage",
                     "deal_id": "1231asd"
             }],
            "country": ["GB"],
            "inventory_type": ["mobile_web"],
        },
        "coppa": false,
        "budget": 1000,
        "daily_cap": 100,
        "pacing": "evenly"
    }]
Script creative

{
 "campaign_id": 4143,
 "name": "API_Mobext_test_1",
 "type": "rich_media",
 "click_through_url": "http://www.clarochile.cl/",
 "landing_page_url": "http://www.clarochile.cl/",
 "tracking_code": "<SCRIPT language='JavaScript1.1'SRC=\"https://ad.doubleclick.net/ddm/adj/N884.2126705MOBEXTCL/B9641805.130771953;sz=300x250;click=%CLICK_URL%;ord=@IMPRESSION_ID@;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=?\">
 </SCRIPT>
 <NOSCRIPT>
 <A HREF=\"%CLICK_URL%https%3A%2F%2Fad.doubleclick.net%2Fddm%2Fjump%2FN884.2126705MOBEXTCL%2FB9641805.130771953%3Bsz%3D300x250%3Bord%3D@IMPRESSION_ID@%3F\">
 <IMG SRC=\"https://ad.doubleclick.net/ddm/ad/N884.2126705MOBEXTCL/B9641805.130771953;sz=300x250;ord=@IMPRESSION_ID@;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=?\" BORDER=0 WIDTH=300 HEIGHT=250 ALT=\"Advertisement\"></A>
 </NOSCRIPT>",
 "size": {
 "width": 300,
 "height": 250
 },
 "api": null
 alt1">}
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk