Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HarindraMourya opened this issue Apr 19, 2021 · 1 comment
Labels

Comments

@HarindraMourya
Copy link

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 /<ad_account_id>/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'

  • What happened? This could be a description, log output, etc.

Expected Results:

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

  • What did you expect to happen?
    Because Facebook has released SDK v10.0 and it has mentioned to not pass location_spec and country parameters to endpoint "POST /<ad_account_id>/customaudiences", So I should be able to create the Lookalike audience without passing these and without any error.
    Please let me know if I am missing something.
@stale
Copy link

stale bot commented Jan 9, 2022

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.

@stale stale bot added the Stale label Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant