Hi Google Ads API Team,
I’m working on integrating the Google Ads API (v20) for offline conversion uploads and wanted clarification on how to generate the session_attributes_encoded value.
According to the documentation, the field
conversion[].sessionAttributesEncoded — bytes
“The session attributes for the event, represented as a base64-encoded JSON string. The content should be generated by a Google-provided library.”
However, I haven’t found any public documentation or JavaScript methods in gtag.js or Tag Manager that generate this encoded session token.
Thanks in advance for clarifying the expected approach.
![]() |
Google Ads API Team |
[2025-11-05 07:04:46Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vShVj:ref" (ADR-00338498)