facebook / facebook-java-business-sdk

Java SDK for Meta Marketing APIs
https://developers.facebook.com/docs/business-sdk
Other
402 stars 332 forks source link

Not able to create Lookalike audience with SDK v10.0 without passing location_spec and country #334

Open HarindraMourya opened 3 years ago

HarindraMourya commented 3 years ago

Which SDK version are you using?

SDK v10.0

What's the issue?

As mentioned under version changelog document for 10.0 that "The location_spec and country parameters will be removed from lookalike audience creation." I have made changes in my application to not pass location_spec and country while creating Lookalike audience. But while testing this functionality I am getting error '(#2654) Missing Locations in Lookalike Spec: The lookalike spec must contain one of location_spec or country field to create a lookalike.'

Steps/Sample code to reproduce the issue

Update to Facebook SDK v10.0. Create Lookalike audience using endpoint "POST //customaudiences" without setting location_spec and country parameters into the request.

Observed Results:

Error is retuned in the response: '(#2654) Missing Locations in Lookalike Spec: The lookalike spec must contain one of location_spec or country field to create a lookalike.', type='OAuthException', code=2654, error_subcode='1713159'

Expected Results:

Lookalike audience should be created without passing location_spec and country parameters with SDK v10.0

stale[bot] commented 2 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.