Detailed Description Hello, A few of our merchants have already opted in feature and we are trying to create sponsored message ads for them through API calls which uses the new parameters: campaign objective: OUTCOME_ENGAGEMENT ad set optimization goal: MESSAGING_PURCHASE_CONVERSION
Actual behavior
Creating the campaign is going well but the ad set creation returns the following error:
When we are trying to change the optimization goal of an adset as follows:
{
"error": {
"message": "Invalid parameter",
"type": "OAuthException",
"code": 100,
"error_data": "{\"blame_field_specs\":[[\"optimization_goal\"]]}",
"error_subcode": 2490408,
"is_transient": false,
"error_user_title": "Optimization Goal Isn't Available",
"error_user_msg": "You can't use the selected optimization goal for your campaign objective. Please select a different goal, or edit your campaign.",
"fbtrace_id": "AdB-i6NZKHhusDN3DiRSkIH"
}
}
** Json Request
{
"name": "new Ads- Adset",
"lifetime_budget": 800000,
"start_time": "2024-12-26T19:36:22",
"end_time": "2024-12-27T20:36:22",
"campaign_id": "120211609327530726",
"billing_event": "IMPRESSIONS",
"optimization_goal": "MESSAGING_PURCHASE_CONVERSION",
"bid_strategy": "LOWEST_COST_WITHOUT_CAP",
"destination_type": "MESSENGER",
"campaign_creation_source": "click_quick_create",
"status": "ACTIVE",
"targeting": {
"age_min": 19,
"age_max": 65,
"genders": [],
"geo_locations": {
"countries": [
"VN"
],
"location_types": [
"home",
"recent"
]
},
"brand_safety_content_filter_levels": [
"FACEBOOK_STANDARD",
"AN_STANDARD",
"FEED_RELAXED"
],
"targeting_automation": {
"advantage_audience": 1
}
},
"promoted_object": {
"page_id": "102492515895623"
}
}