{"id":8477,"date":"2024-10-10T12:16:08","date_gmt":"2024-10-10T12:16:08","guid":{"rendered":"https:\/\/manuals.qantumthemes.xyz\/business-tools\/?post_type=ht_kb&#038;p=8477"},"modified":"2024-10-10T12:19:33","modified_gmt":"2024-10-10T12:19:33","slug":"11-admin-rest-api-test","status":"publish","type":"ht_kb","link":"https:\/\/manuals.qantumthemes.xyz\/business-tools\/knowledge-base\/11-admin-rest-api-test\/","title":{"rendered":"11. Admin &#8211; REST API test"},"content":{"rendered":"<h3 id=\"this-is-a-troubleshooting-procedure-to-control-the-consistency-of-your-ads-and-the-cached-data\" ><strong>This is a troubleshooting procedure to control the consistency of your ads and the cached data.<\/strong><\/h3>\n<p>Since the data extraction of the ads is very complex, we integrated an internal caching method based on WordPress transients, which stores a static list of active banners every 10 minutes. This will massively increase the performance and avoid slow website if you have many campaigns running.<\/p>\n<p>The campaigns stored in the database are NOT the list used to display them. The database is live, while the banners are taken<strong> from the cached list.<\/strong><\/p>\n<p><strong>This procedure explains how to control this cached list.<\/strong><\/p>\n<p>If you added a new campaign and is not visible, please check this troubleshooting procedure:<\/p>\n<ol>\n<li>Check the campaign start and end date<\/li>\n<li>Make sure a link is set<\/li>\n<li>Make sure the campaign is Published and not Pending or Draft<\/li>\n<li>Make sure the banners are assigned to the correct Ad Slots<\/li>\n<li>Clear the cached list of ads from Business Tools settings &gt; enable the checkbox to clear the cache, and Save<\/li>\n<li>Reload the frontend multiple times<\/li>\n<li>Remember the ads for each slot will appear randomly. Computer random is not &#8220;grandma&#8221; random where same opportunities are given to each kid, is &#8220;computer random&#8221;, so you can see the same banner appearing 10 times and another appearing 1. This is almost unpredictable, so please reload the page multiple times to test.<\/li>\n<li>Last, check the REST API test: you can copy the test and paste it in\u00a0 <a href=\"https:\/\/jsonviewer.stack.hu\">https:\/\/jsonviewer.stack.hu<\/a><img decoding=\"async\" src=\"https:\/\/manuals.qantumthemes.xyz\/business-tools\/wp-content\/uploads\/2024\/10\/prbt-rest-test.jpg\" width=\"1050\" \/><\/li>\n<\/ol>\n<p>This page will display the list of active banners in a readable formatting,<strong> allowing to see which banners are currently published for each slot:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/manuals.qantumthemes.xyz\/business-tools\/wp-content\/uploads\/2024\/10\/prbt-jsonviewer.jpg\" width=\"1050\" \/><\/p>\n<p>If the published banners are still not appearing, please contact your hosting provider and make sure the REST link for the banner is not being cached by your server.<\/p>\n<p>You can find the Rest link from the &#8220;REST API test&#8221; page.<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht_kb_category":[880],"ht_kb_tag":[],"class_list":["post-8477","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-usage"],"_links":{"self":[{"href":"https:\/\/manuals.qantumthemes.xyz\/business-tools\/wp-json\/wp\/v2\/ht_kb\/8477"}],"collection":[{"href":"https:\/\/manuals.qantumthemes.xyz\/business-tools\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/manuals.qantumthemes.xyz\/business-tools\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/business-tools\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/business-tools\/wp-json\/wp\/v2\/comments?post=8477"}],"version-history":[{"count":2,"href":"https:\/\/manuals.qantumthemes.xyz\/business-tools\/wp-json\/wp\/v2\/ht_kb\/8477\/revisions"}],"predecessor-version":[{"id":8513,"href":"https:\/\/manuals.qantumthemes.xyz\/business-tools\/wp-json\/wp\/v2\/ht_kb\/8477\/revisions\/8513"}],"wp:attachment":[{"href":"https:\/\/manuals.qantumthemes.xyz\/business-tools\/wp-json\/wp\/v2\/media?parent=8477"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/business-tools\/wp-json\/wp\/v2\/ht_kb_category?post=8477"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/business-tools\/wp-json\/wp\/v2\/ht_kb_tag?post=8477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}