{"id":8418,"date":"2024-08-20T14:03:10","date_gmt":"2024-08-20T14:03:10","guid":{"rendered":"https:\/\/manuals.qantumthemes.xyz\/typify\/?post_type=ht_kb&#038;p=8418"},"modified":"2024-08-20T14:04:40","modified_gmt":"2024-08-20T14:04:40","slug":"11-admin-rest-api-test","status":"publish","type":"ht_kb","link":"https:\/\/manuals.qantumthemes.xyz\/typify\/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<figure id=\"attachment_8419\" aria-describedby=\"caption-attachment-8419\" style=\"width: 1200px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8419\" src=\"https:\/\/manuals.qantumthemes.xyz\/typify\/wp-content\/uploads\/2024\/08\/ads-rest-api-test.jpg\" alt=\"\" width=\"1200\" height=\"958\" srcset=\"https:\/\/manuals.qantumthemes.xyz\/typify\/wp-content\/uploads\/2024\/08\/ads-rest-api-test.jpg 1200w, https:\/\/manuals.qantumthemes.xyz\/typify\/wp-content\/uploads\/2024\/08\/ads-rest-api-test-300x240.jpg 300w, https:\/\/manuals.qantumthemes.xyz\/typify\/wp-content\/uploads\/2024\/08\/ads-rest-api-test-1024x817.jpg 1024w, https:\/\/manuals.qantumthemes.xyz\/typify\/wp-content\/uploads\/2024\/08\/ads-rest-api-test-768x613.jpg 768w, https:\/\/manuals.qantumthemes.xyz\/typify\/wp-content\/uploads\/2024\/08\/ads-rest-api-test-50x40.jpg 50w, https:\/\/manuals.qantumthemes.xyz\/typify\/wp-content\/uploads\/2024\/08\/ads-rest-api-test-920x734.jpg 920w, https:\/\/manuals.qantumthemes.xyz\/typify\/wp-content\/uploads\/2024\/08\/ads-rest-api-test-600x479.jpg 600w, https:\/\/manuals.qantumthemes.xyz\/typify\/wp-content\/uploads\/2024\/08\/ads-rest-api-test-320x255.jpg 320w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><figcaption id=\"caption-attachment-8419\" class=\"wp-caption-text\">REST Api test<\/figcaption><\/figure>\n<p>Since the data extraction of the ads is very complex, we integrated <strong>an internal caching method based on WordPress transients<\/strong>, 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><strong>IMPORTANT: if your server uses Litespeed or other caching methods, make sure to NOT cache transients.<\/strong><\/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>\u00a0from 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<strong> start and end date<\/strong><\/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><strong>Clear the cached list of ads from Business Tools settings &gt; enable the checkbox to clear the cache,<\/strong> and <strong>Save<\/strong><\/li>\n<li><strong>Reload<\/strong> the frontend multiple times<\/li>\n<li>Keep in mind that ads for each slot will appear <strong>randomly<\/strong>. However, computer-generated randomness is different from &#8220;real-life&#8221; randomness, where each option gets an equal chance. In this case, you might see the same banner appear 10 times while another shows up only once. <strong>This behavior is nearly unpredictable, so be sure to reload the page multiple times to thoroughly test the ad rotations.<\/strong><\/li>\n<li>Last, check the REST API test: you can copy the test and paste it in\u00a0\u00a0<a href=\"https:\/\/jsonviewer.stack.hu\/\">https:\/\/jsonviewer.stack.hu<\/a><\/li>\n<\/ol>\n<p>This page will display the list of active banners in a readable formatting,<strong>\u00a0allowing 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\/typify\/wp-content\/uploads\/2024\/08\/prbt-jsonviewer.jpg\" width=\"1050\" \/><\/p>\n<p>&nbsp;<\/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><strong>You can find the Rest link from the &#8220;REST API test&#8221; page.<\/strong><\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht_kb_category":[866],"ht_kb_tag":[],"class_list":["post-8418","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-business-tools-ad-manager"],"_links":{"self":[{"href":"https:\/\/manuals.qantumthemes.xyz\/typify\/wp-json\/wp\/v2\/ht_kb\/8418"}],"collection":[{"href":"https:\/\/manuals.qantumthemes.xyz\/typify\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/manuals.qantumthemes.xyz\/typify\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/typify\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/typify\/wp-json\/wp\/v2\/comments?post=8418"}],"version-history":[{"count":2,"href":"https:\/\/manuals.qantumthemes.xyz\/typify\/wp-json\/wp\/v2\/ht_kb\/8418\/revisions"}],"predecessor-version":[{"id":8422,"href":"https:\/\/manuals.qantumthemes.xyz\/typify\/wp-json\/wp\/v2\/ht_kb\/8418\/revisions\/8422"}],"wp:attachment":[{"href":"https:\/\/manuals.qantumthemes.xyz\/typify\/wp-json\/wp\/v2\/media?parent=8418"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/typify\/wp-json\/wp\/v2\/ht_kb_category?post=8418"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/typify\/wp-json\/wp\/v2\/ht_kb_tag?post=8418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}