Skip to content

getKeywords

The getKeywords method retrieves the current set of keywords used for ad targeting. These keywords include both static keywords set by the publisher and contextual keywords from Semantiq.

window.htag
.api('1')
.getKeywords()
.then((keywords) => {
console.log('Current keywords:', keywords);
// Example output:
// {
// "category": ["news", "politics"],
// "author": "john-doe",
// "premium": "true"
// }
});