Community Discussion

Ask a Question
Back to All

Why do we can not update Lookalike Audience Targeting for the specified campaign?

We have a problem with updating Lookalike Audience Targeting for the specified campaign (https://developers.taboola.com/backstage-api/reference#update-lookalike-audience-targeting).

Here is an example request:
curl --location --request POST 'https://backstage.taboola.com/backstage/api/1.0/definitionorg-sc/campaigns/4074776/targeting/lookalike_audience'
--header 'Authorization: bearer {token}'
--header 'Content-Type: application/json'
--data-raw '{"collection":[{"collection":[{"rule_id":238699,"similarity_level":5}],"type":"INCLUDE"}]}'

Here is the response:
{
"http_status": 400,
"message": "Collection contains invalid rule ids for targeting: [238699]",
"offending_field": "lookalike_audience_targeting.collection[0].collection"
}

Although if we check 238699 audience, we can see that it belongs to the same ad account as the campaign.
curl --location --request GET 'https://backstage.taboola.com/backstage/api/1.0/definitionorg-sc/universal_pixel/conversion_rule/238699'
--header 'Authorization: bearer {token}'

What are we doing wrong? Please help us to resolve this problem.