Community Discussion
Placement Null in API
Hello,
I'm currently using the Backstage API to extract Revenue reports using the day_site_placement_cou
ntry_platform_breakdown in the Revenue Summary Report and I noticed that there were rows in which the column "placement" was null.
What does placement = null means in this context?
Posted by [email protected] about 2 years ago
Cannot set default platform_targeting
I am trying to set default platform targeting according to the documentation: https://developers.taboola.com/backstage-api/reference#campaign-platform-targeting
"platform_targeting": {
"type": "ALL",
"value": []
}
And the response is:
{
"http_status": 400,
"message": "Cannot set platform_targeting type=ALL with value!=null",
"offending_field": "platform_targeting",
"message_code": "api.action.bad_request.platform_targeting"
}
Could you please clarify?
Posted by Mykhailo Zub over 2 years ago
Revenue day_site_placement_country_platform_breakdown report returns double reveue
Hello,
The report
/api/1.0/_networkId_/reports/revenue-summary/dimensions/day_site_placement_country_platform_breakdown
returns 'subtotal' row site country platform with empty placement
Basicly if we have two rows
US DESKTOP placement1 X
US DESKTOP placement2 Y
the report will include 3rd row US DESKTOP X+Y
Can't find anything in docs/a way to switch this off.
We can just ignore rows with empty placements but the concern is the report can change one day and empty placements will have a different meaning (like missing placement info)
Please advice
Thanks
Misha
Posted by Misha Makarevsky about 3 years ago
old version items missing from Top Campaign Content
Hi,
we use Taboola Backstage API in our product, using this url "backstage/api/1.0/%s/reports/top-campaign-content/dimensions/item_breakdown?start_date=%s&end_date=%s", we see that there are items missing from the response, all items that are labeled "(old version)" that are present in the Taboola UI in Top Campaign Content are missing from the API response, I tried looking into the docs but couldn't find any clue related to (old version) items and how to pull them!!
any advise on why there are missing?
Posted by Samer Kinaan about 3 years ago
"top_campaign_content_report" API returning NULL for certain items
We are receiving a null value for 'item' in the "top_campaign_content_report" table. We have made the primary key for the table "top_campaign_content_report", which is a hash value of item, date, item_name, campaign_id fields. Sometimes, we get a null value for the item field in the response, for eg:
curl -H 'Authorization: Bearer XXX' -A 'Jesey/2.25.1' 'https://backstage.taboola.com/backstage/api/1.0/xxxxxxxxxx/reports/top-campaign-content/dimensions/item_breakdown?end_date=2019-09-21&campaign=898661&start_date=2019-09-21' | jq
Returns:
{
"item": null,
"item_name": "xxxxxxxxx",
"thumbnail_url": "xxxxxxx",
"url": "xxxxxxxx",
"campaign": "898661",
"campaign_name": "xxxxxxxx",
"content_provider": "1121684",
"content_provider_name": "xxxxxxxx",
"impressions": 1371,
"visible_impressions": 376,
"ctr": 0.15,
"vctr": 0.53,
"clicks": 2,
"cpc": 0.108,
"cvr": 50.00,
"cvr_clicks": 50.00,
"cvr_views": 0.00,
"cpa": 0.22,
"cpa_clicks": 0.22,
"cpa_views": 0.00,
"actions": 1,
"actions_num_from_clicks": 1,
"actions_num_from_views": 0,
"cpm": 0.16,
"vcpm": 0.57,
"spent": 0.22,
"conversions_value": 0.00,
"roas": 0.00,
"currency": "USD"
},
The same request executed on a different date sometimes returns a valid 'item' and the hash value will get changed and this causes us to add duplicate records while upserting the data.
We do not expect to be getting a null value because the item value is the same as id in the "campaign_item" table, and we do not see any null id value in the campaign_item table.
After more discovery, we found that these values are being returned as 'null' because that item has been deleted from the campaign history.
Can everything be paused instead of deleted to try overcome this data integrity issue?
Posted by Sean over 4 years ago