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

targeting flexible_spec incorrect format after submit #216

Open
santonikho2022 opened this issue Sep 25, 2024 · 0 comments
Open

targeting flexible_spec incorrect format after submit #216

santonikho2022 opened this issue Sep 25, 2024 · 0 comments

Comments

@santonikho2022
Copy link

Which SDK version are you using?

https://rubygems.org/gems/facebookbusiness/versions/20.0.0
facebookbusiness (20.0.0)

What's the issue?

flexible_spec already set correctly, but when update adset targeting. result is incorrect.

Steps/Sample code to reproduce the issue

targeting = {"flexible_spec": [
{
"interests": [
{
"id": "6003230008188"
},
{
"id": "6003489346995"
}
],
"education_schools": [
{
"id": "687589164666184"
}
],
"work_employers": [
{
"id": "687589164666184"
}
]
}
]
}

Observed Results:

result from facebook native
"targeting": {"flexible_spec": [
{
"education_schools": [
{
"id": "687589164666184",
"name": "MasterClass"
}
]
},
{
"interests": [
{
"id": "6003230008188",
"name": "Master of Business Administration (higher education)"
}
]
},
{
"interests": [
{
"id": "6003489346995",
"name": "Master class"
}
]
},
{
"work_employers": [
{
"id": "687589164666184",
"name": "MasterClass"
}
]
}
]
}

Expected Results:

result should be :

"targeting": {"flexible_spec": [
{
"interests": [
{
"id": "6003230008188",
"name": "Master of Business Administration (higher education)"
},
{
"id": "6003489346995",
"name": "Master class"
}
],
"education_schools": [
{
"id": "687589164666184",
"name": "MasterClass"
}
],
"work_employers": [
{
"id": "687589164666184",
"name": "MasterClass"
}
]
}
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant