Techdocs
Nosto
Search…
Introduction
Implementing Nosto
Implement on your website
Implement on native mobile
Implement on a physical store
Checking your setup
APIs
GraphQL
REST
Frontend
JS API
Initializing Nosto
Recommendations
Popups
Listing Popup Campaigns
Opening a Popup
Enabling & Disabling Popups
Popup Callbacks
Common Examples
3rd party data integrations
3rd party data integrations
Visit Nosto
Issues
Magento
Magento 2
Shopware
Shopify
Prestashop
BigCommerce
PHP-SDK
Salesforce
Powered By
GitBook
Listing Popup Campaigns
You can use the JS API to list all the popup campaigns. This may be handy in situations when you would like to fetch all campaigns and iterate them to decide whether they should be shown or not.
1
nostojs
(
function
(
api
)
{
2
console
.
log
(
api
.
popupCampaigns
());
3
});
Copied!
Fields
Field
Type
Reason
id
String
The identifier of the popup campaign
name
String
The name of the popup campaign
type
String
The trigger-type of the popup campaign
Previous
Popups
Next
Opening a Popup
Last modified
2yr ago
Copy link
Contents
Fields