lookalike audience showing disabled on audience dashboard while creating through API and showing a message "Lookalikes that contain locations are being retired and can’t be used in new campaigns.
", Other hand when we creating lookalike audience without location than API giving error "(#2654) Missing Locations in Lookalike Spec: The lookalike spec must contain one of location_spec or country field to create a lookalike."
Question posted in Facebook API
The official documentation for the Facebook APIs can be found here.
The official documentation for the Facebook APIs can be found here.
2
Answers
Spec should be in a similar format
"lookalike_spec": {"type": "similarity", "country": "US"}, "origin_audience_id": "123"
This seems to be bug on Facebook API. I also facing this issue as well. It seems like Facebook is going to remove country from lookalike spec in the future so any lookalike created with country in the spec got disabled. However, an api still require country parameter in order to create lookalike. So the best advise that I can give is to ask them to remove your account from test group by posting in the bug report like many others.
Example of bug reports