Getting INTERNAL_ERROR while try to create line item

campaign-management

#1

I created a campaign with this request successfully,

twurl -X POST -H ads-api-sandbox.twitter.com '/0/accounts/***/campaigns?name=test&funding_instrument_id=***&daily_budget_amount_local_micro=10000&start_time=2015-11-05T07:00:00Z'

After that I wanna create line item with returned campaign id,

twurl -X POST -H ads-api-sandbox.twitter.com '/0/accounts/***/line_items?campaign_id=asdf&placements=ALL_ON_TWITTER&product_type=PROMOTED_TWEETS&bid_amount_local_micro=10000'

I’m getting undetailed response like this (and also params field is not containing request parameters),

{
    "errors": [
        {
            "code": "INTERNAL_ERROR",
            "message": "Internal Error"
        }
    ],
    "request": {
        "params": {}
    }
}

what am i doing wrong?


#2

Hi @bunalikmantik,

The line item request is missing the required objective parameter. More info: https://dev.twitter.com/ads/reference/post/accounts/%3Aaccount_id/line_items


#3

@bunalikmantik this was due to an issue we had in our sandbox environment. It’s been fixed, but it is important to call out that the sandbox has been sunset and will cease operating as of September 23rd. Also see our sandbox deprecation reminder posted in the forum this week.


#4

I read the announcement about sandbox deprecation, it is ok. But there is still INTERNAL_ERROR for same issue.