InteractiveAdvertisingBureau / Global-Privacy-Platform

IAB Tech Lab Global Privacy Platform specification
72 stars 36 forks source link

EventListener Documentation Clarification Question #82

Closed luca1x closed 1 year ago

luca1x commented 1 year ago

Hi there, I'm trying to detect CMP consent signals via the addEventListener API. The example to do this in the documentation has been changed in v1.1 to use EventListener.PingReturn.parsedSections.

I'd like to inquire what's the difference between

in the case of a section case event.

As far as I understood, each should point to a corresponding section object. Is it recommended to use the first over the latter? Thanks in advance for your help!