EndPoint
https://api.myadoptimizer.com/api/AdCampaignAPI?AdToken= {{ Token provided }} &CampaignID = {{ Campaign ID }} &ActivateCampaign = {{ 0 => false | 1 => true }}
** AdToken will be provided by your account manager. You can also grab it by going to admin.myadoptimizer.com, go to Account Info -> Collaborator Tokens.
🤖Try it out with swagger
Method: GET
It requires 3 parameters
Params Names Data Tpye Allowed Values AdToken String XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX CampaignID Integer 0-2,147,483,647 ActivateCampaign Integer (Pass 0 to turn it off. Pass 1 to turn it on)
Example 1 | Turn off Campaign
API Call
https://api.myadoptimizer.com/api/AdCampaignAPI?AdToken=63fb22bf-25da-4ea2-a79b-4838374b2d99&CampaignID=10&ActivateCampaign=0
Result
"token": "63fb22bf-25da-4ea2-a79b-4838374b2d99",
"ipAddress": "100.189.154.210",
"activateCampaign": false,
"eventID": "891c85d0-5bd9-4635-8c8d-b703615006d2"
Example 2 | Turn on Campaign
API Call
https://api.myadoptimizer.com/api/AdCampaignAPI?AdToken=63fb22bf-25da-4ea2-a79b-4838374b2d99&CampaignID=10&ActivateCampaign=1
Result
"token": "63fb22bf-25da-4ea2-a79b-4838374b2d99",
"ipAddress": "100.189.154.210",
"activateCampaign": true,
"eventID": "332bfce5-0932-478b-b4a9-ba3c8fd800d9"
** token: is the advertiser token a given campaign belongs to