@JLouiesito: @carmenjyuen is correct in the case of retrieving analytics. You need to make one request for each placement type (only ALL_ON_TWITTER and PUBLISHER_NETWORK are supported).
However, if you’re trying to create line items with multiple placements, the values are passed in as follows: placements=TWITTER_TIMELINE,TWITTER_SEARCH. Here is an example request.
$ twurl -X POST -H ads-api.twitter.com "/4/accounts/18ce54d4x5t/line_items?campaign_id=9obui&bid_amount_local_micro=1400000&product_type=PROMOTED_TWEETS&placements=TWITTER_TIMELINE,TWITTER_SEARCH&objective=TWEET_ENGAGEMENTS&entity_status=PAUSED"
{
"data": {
"bid_type": "MAX",
"advertiser_user_id": 756201191646691328,
"name": "Untitled",
"placements": [
"TWITTER_TIMELINE",
"TWITTER_SEARCH"
],
"start_time": null,
"bid_amount_local_micro": 1400000,
"automatically_select_bid": false,
"advertiser_domain": null,
"target_cpa_local_micro": null,
"primary_web_event_tag": null,
"charge_by": "ENGAGEMENT",
"product_type": "PROMOTED_TWEETS",
"end_time": null,
"bid_unit": "ENGAGEMENT",
"total_budget_amount_local_micro": null,
"objective": "TWEET_ENGAGEMENTS",
"id": "cr8or",
"entity_status": "PAUSED",
"account_id": "18ce54d4x5t",
"optimization": "DEFAULT",
"categories": [],
"currency": "USD",
"created_at": "2018-10-24T18:56:04Z",
"tracking_tags": [],
"updated_at": "2018-10-24T18:56:04Z",
"include_sentiment": "POSITIVE_ONLY",
"campaign_id": "9obui",
"creative_source": "MANUAL",
"deleted": false
},
"request": {
"params": {
"placements": [
"TWITTER_TIMELINE",
"TWITTER_SEARCH"
],
"bid_amount_local_micro": 1400000,
"product_type": "PROMOTED_TWEETS",
"objective": "TWEET_ENGAGEMENTS",
"entity_status": "PAUSED",
"account_id": "18ce54d4x5t",
"campaign_id": "9obui"
}
}
}
If you have issues with other combinations, please make note of the error message. Not all combinations are supported for all objectives.