swu
#1
When I access to endpoint accounts/:account_id/targeting_criteria(https://developer.twitter.com/en/docs/ads/campaign-management/api-reference/targeting-criteria) with params account_id and line_item_ids, I got the response below:
{“errors”:[{“code”:“MISSING_PARAMETER”,“message”:"\“line_item_id\” is a required parameter",“parameter”:“line_item_id”}],“request”:{“params”:{“account_id”:“xxx”}}}.
Then I change ‘line_item_ids’ to ‘line_item_id’ and replace value a comma-separated list of id to a single id, it did works.
But how could I passing a id list in one request so I need not to access the endpoint so many times?
swu
#2
Sorry, my mistake.
I notice that I was using api version 4, line_item_ids was not supported but in version 5, and I does work when I change to version 5.
2 Likes