To call Merchandising Rules from your site pages, you must first configure the SuiteCommerce Advanced SSP to include the merchandising script.
To include the Product Merchandising script:
Go to Setup > SuiteCommerce Advanced > SSP Applications.
Click Edit next to the SuiteCommerce Advanced SSP application used for the web site where product merchandising is used. For example, SuiteCommerce Advanced — Dev [version].
In the Libraries subtab under Scripts, click Add.
Navigate to the path of the dynamic_merchandising_library_v2.js file in the Product Merchandising reference installation.
If you are using a custom ssp application, you will need to define this library for your custom ssp application.