@subhashdeshmuk: Note that the objective is set at the line item-level. To retrieve line items for a particular campaign, you can make the following request:
$ twurl -H ads-api.twitter.com "/1/accounts/18ce54d4x5t/line_items?campaign_ids=69epk"
{
"request": {
"params": {
"account_id": "18ce54d4x5t",
"campaign_ids": [
"69epk"
]
}
},
"data": [
{
"bid_type": "MAX",
"advertiser_user_id": 756201191646691300,
"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": "6keuo",
"entity_status": "PAUSED",
"paused": true,
"account_id": "18ce54d4x5t",
"optimization": "DEFAULT",
"categories": [],
"currency": "USD",
"created_at": "2016-10-24T21:44:57Z",
"tracking_tags": [],
"updated_at": "2016-11-11T17:50:19Z",
"include_sentiment": "POSITIVE_ONLY",
"campaign_id": "69epk",
"creative_source": "MANUAL",
"deleted": false
}
],
"data_type": "line_item",
"total_count": 1,
"next_cursor": null
}
You can find the objective in the objective response attribute, which, in this example, is TWEET_ENGAGEMENTS. Hope this helps.