getKeywords
Overview
Section titled “Overview”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.
Example
Section titled “Example”window.htag .api('1') .getKeywords() .then((keywords) => { console.log('Current keywords:', keywords); // Example output: // { // "category": ["news", "politics"], // "author": "john-doe", // "premium": "true" // } });Related Methods
Section titled “Related Methods”- updateKeywords: Update the static keywords
- Semantiq concept: Learn more about contextual keywords