Last active
August 29, 2015 14:15
-
-
Save SavvyGuard/b918d442ca29c39a7d6a to your computer and use it in GitHub Desktop.
create placement in api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://0.0.0.0:3005/placements/api/1.0/create?apikey=pyroturtle -X POST -d '{"impressions": 6000, "geo_region": ["US-CA"], "device__browser": ["Chrome"], "device_os": ["Windows 7", "Windows 8", "Windows 8.1"], "campaign": "54be9b9cdcfad93307ef8b99", "bid": 10}' -H "Content-Type: application/json" | |
curl http://0.0.0.0:3005/placements/api/1.1/54be9b9cdcfad93307ef8b99/pacing?apikey=pyroturtle -X POST | |
curl http://0.0.0.0:3005/placements/api/1.1/54be9b9cdcfad93307ef8b99/pacing?apikey=pyroturtle -X PUT -d '{"thursday":{"cap":3000,"0":{"hour_cap":600,"minutes_active":[[0,60]]},"1":{"hour_cap":600,"minutes_active":[[0,60]]},"2":{"hour_cap":600,"minutes_active":[[0,60]]},"3":{"hour_cap":600,"minutes_active":[[0,60]]},"4":{"hour_cap":600,"minutes_active":[[0,60]]},"5":{"hour_cap":600,"minutes_active":[[0,60]]},"6":{"hour_cap":600,"minutes_active":[[0,60]]},"7":{"hour_cap":600,"minutes_active":[[0,60]]},"8":{"hour_cap":600,"minutes_active":[[0,60]]}}}' -H "Content-Type: application/json" | |
curl http://0.0.0.0:3005/placements/api/1.1/54be9b9cdcfad93307ef8b99/pacing/push?apikey=pyroturtle -X PUT -H "Content-Type: application/json" | |
curl http://0.0.0.0:3005/placements/api/1.0/54be9b9cdcfad93307ef8b99?apikey=pyroturtle -X PUT -d '{"start_date": "2015-01-01", "end_date": "2016-01-01"}' -H "Content-Type: application/json" | |
curl http://0.0.0.0:3005/placements/api/1.0/54be9b9cdcfad93307ef8b99/toggle?apikey=pyroturtle -X PUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment