adReferral object inside the message event.
What arrives
How it behaves
- Only the first message carries
ctwaClid. Later messages from the same contact do not. WSAPI does not store message payloads, so it cannot be recovered afterwards — persist it when it arrives. - Fields are passed through from WhatsApp unchanged, and any of them may be absent. What arrives depends on the ad format and on the contact’s WhatsApp client. Treat every field as optional.
- Any message type can carry it. If the contact’s first message is an image or a document rather than text,
adReferralis projected the same way. - It is only present when there is ad attribution. Businesses send rich link-preview cards over the same underlying WhatsApp field, and those do not produce an
adReferral. - It arrives inside the
messageevent, somessagehas to be allowed in your event filters.
What you do with
ctwaClid — reporting conversions to Meta’s Conversions API, for example — happens on your side. See Meta’s Conversions API documentation.