Thanks for the question, @wenping.wang!
To unset (remove) these values, specifying the parameter without a value, like start_time=&end_time=. See the example, below.
The line item with start and end times set.
{
"data": {
"bid_type": "MAX",
"advertiser_user_id": 756201191646691328,
"name": "Untitled",
"placements": [
"ALL_ON_TWITTER"
],
"start_time": "2018-06-10T00:00:00Z",
"bid_amount_local_micro": 100000,
"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": "2018-06-15T00:00:00Z",
"bid_unit": "ENGAGEMENT",
"total_budget_amount_local_micro": null,
"objective": "TWEET_ENGAGEMENTS",
"id": "buo34",
"entity_status": "PAUSED",
"account_id": "18ce54d4x5t",
"optimization": "DEFAULT",
"categories": [],
"currency": "USD",
"created_at": "2018-06-12T04:28:47Z",
"tracking_tags": [],
"updated_at": "2018-06-12T04:28:47Z",
"include_sentiment": "POSITIVE_ONLY",
"campaign_id": "aylz6",
"creative_source": "MANUAL",
"deleted": false
},
"request": {
"params": {
"placements": [
"ALL_ON_TWITTER"
],
"start_time": "2018-06-10T00:00:00Z",
"bid_amount_local_micro": 100000,
"product_type": "PROMOTED_TWEETS",
"end_time": "2018-06-15T00:00:00Z",
"objective": "TWEET_ENGAGEMENTS",
"entity_status": "PAUSED",
"account_id": "18ce54d4x5t",
"campaign_id": "aylz6"
}
}
}
To unset:
$ twurl -H ads-api.twitter.com -X PUT "/3/accounts/18ce54d4x5t/line_items/buo34?start_time=&end_time="
{
"data": {
"bid_type": "MAX",
"advertiser_user_id": 756201191646691328,
"name": "Untitled",
"placements": [
"ALL_ON_TWITTER"
],
"start_time": null,
"bid_amount_local_micro": 100000,
"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": "buo34",
"entity_status": "PAUSED",
"account_id": "18ce54d4x5t",
"optimization": "DEFAULT",
"categories": [],
"currency": "USD",
"created_at": "2018-06-12T04:28:47Z",
"tracking_tags": [],
"updated_at": "2018-06-12T04:29:33Z",
"include_sentiment": "POSITIVE_ONLY",
"campaign_id": "aylz6",
"creative_source": "MANUAL",
"deleted": false
},
"request": {
"params": {
"line_item_id": "buo34",
"start_time": "",
"end_time": "",
"account_id": "18ce54d4x5t"
}
}
}
Hope this helps! cc: @neplove.