Unable To Create Pre Roll Line items


#1

When trying to create a Pre Roll line item i’m running into the following error, can someone please assist with this

Campaign

twurl -XPOST -H ads-api.twitter.com “/0/accounts/18ce547288m/campaigns?name=preroll&funding_instrument_id=jv1nl&start_time=2016-07-01T00:00:00Z&paused=true&daily_budget_amount_local_micro=550000000”

{“data_type”:“campaign”,“data”:{“name”:“preroll”,“start_time”:“2016-07-01T00:00:00Z”,“reasons_not_servable”:[“PAUSED_BY_ADVERTISER”,“INCOMPLETE”],“servable”:false,“daily_budget_amount_local_micro”:550000000,“end_time”:null,“funding_instrument_id”:“jv1nl”,“duration_in_days”:null,“standard_delivery”:true,“total_budget_amount_local_micro”:null,“id”:“5b2oo”,“paused”:true,“account_id”:“18ce547288m”,“frequency_cap”:null,“currency”:“USD”,“created_at”:“2016-06-23T09:24:19Z”,“updated_at”:“2016-06-23T09:24:19Z”,“deleted”:false},“request”:{“params”:{“name”:“preroll”,“start_time”:“2016-07-01T00:00:00Z”,“daily_budget_amount_local_micro”:550000000,“funding_instrument_id”:“jv1nl”,“paused”:true,“account_id”:“18ce547288m”}}}

LineItem

twurl -XPOST -H ads-api.twitter.com “/0/accounts/18ce547288m/line_items?campaign_id=5b2oo&bid_amount_local_micro=5500000&name=Ad+Group+1&product_type=MEDIA&placements=ALL_ON_TWITTER&objective=VIDEO_VIEWS_PREROLL&categories=IAB1”

{“errors”:[{“code”:“INVALID”,“message”:“LineItem with objective PREROLL_VIEWS cannot be used together with promoted product type REAL_TIME_BIDDING.”,“attribute”:“objective”}],“request”:{“params”:{“name”:“Ad+Group+1”,“placements”:[“ALL_ON_TWITTER”],“bid_amount_local_micro”:5500000,“product_type”:“MEDIA”,“objective”:“VIDEO_VIEWS_PREROLL”,“account_id”:“18ce547288m”,“categories”:[“IAB1”],“campaign_id”:“5b2oo”}}}

Error

“code”:“INVALID”,“message”:"LineItem with objective PREROLL_VIEWS cannot be used together with promoted product type REAL_TIME_BIDDING


#2

I was having the same issue, check in the GET /1/accounts/:account_id/features/ if you have VIDEO_VIEWS_PREROLL_OBJECTIVE set, if not set it out POST /1/accounts/:account_id/features?feature_key= VIDEO_VIEWS_PREROLL_OBJECTIVE

Here’s a pretty good guide just in case: https://dev.twitter.com/ads/campaigns/video-views-preroll-objective

Hope that helps!