Debugging Amazon Publisher Services
Enable APS debug mode to see detailed console logs:
Enable via Configuration
apstag.debug("enable");
Disable Debug Mode
apstag.debug("disable");
Inspect APS Data
Check APS Configuration
Verify APS is initialized correctly:
apstag.getConfig();
This returns:
- Publisher ID (pubID)
- Ad server settings
- Timeout configuration
- Video settings
Get Slot Information
apstag.getSlots();
Shows all defined APS slots with:
- Slot IDs
- Slot names
- Sizes
- Media types
Get Targeting Keys
Check what targeting keys APS set:
apstag.getTargeting();
Returns targeting key-values for all slots, including:
amzniid- Amazon interest IDamznbid- Amazon bid priceamznp- Amazon publisheramznsz- Creative size