Spend in line item REST API endpoint

Posted in General by Pantelis Mon Jan 08 2018 13:08:08 GMT+0000 (Coordinated Universal Time)·2·Viewed 408 times

Hello. I would like to ask if the line_item spend (total spend as the campaign_spend in the /campaign endpoint) is available via the REST API (/line_items). I have tried different views (stats and normal view) and it is not in the response. Is it in your development pipeline to add it and if yes is there an estimate on when it might be ready? Otherwise, could it be implemented?
Jan 8, 2018

The line_item_spend column is present in any GET to line_item endpoint. See sample below:

curl -X GET "https://[host]/rest/line_item" -b cookies.txt -d '{"rows":1}' { "success": true, "payload": [ { "line_item_id": 1, "campaign_id": 1, "advertiser_id": 1, "line_item_type_id": 0, "targeting_template_id": 1, "bid_modifier_id": null, "max_bid": null, "line_item_version": 1, "line_item_name": "aws", "line_item_budget": 1000, "daily_budget": null, "budget_type": 0, "currency": "USD", "line_item_spend": 0, "frequency_cap": [ { "duration": 500, "impressions": 1 } ], "bidding": { "bidding_strategy": "cpm", "values": { "cpm_bid": 1.12 }, "pacing": "none", "custom": false }, "pacing": null, "revenue_type": null, "revenue_amount": null, "start_date": "2015-01-01 00:00:00", "end_date": "2016-01-01 00:00:00", "push_status": 0, "push_update": true, "account_id": 1, "create_date": "2017-09-12 10:54:56", "update_date": "2017-11-17 11:39:41", "alternative_id": null, "notes": null, "active": false, "buzz_key": "stingersbx" } ] }

Jan 8, 2018

Thank you!

  
Markdown is allowed