Cookie management in IMA sdk

35 views
Skip to first unread message

Akash Shah

unread,
Aug 6, 2025, 2:58:47 PMAug 6
to ima...@forumsupport.google, ima...@googlegroups.com, Vamsi Kishan Jayanthi
Hi Team,

I am integrating IMA Android & iOS SDK for video ad rendition. I am not able to find a solution for handling Custom cookies during ad request-response. 
Kindly suggest a solution to handle it.
I want to use client side cookies only. 
Regards,
Akash Shah


*************************

CONFIDENTIALITY CAUTION

This communication (including any accompanying documents) is intended only for the use of the addressee(s) and contains PRIVATE AND CONFIDENTIAL information. Unauthorized reading, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify us immediately by e-mail and promptly destroy the original communication. Please do not copy it or use it for any other purposes, or disclose its contents to any other person. Unless stated to the contrary, any opinions or comments are personal to the writer and do not represent the official view of the Company. In case where it represents our official view, it needs to be revalidated and is subject to the terms of our engagement.

Thank you for your co-operation.

*************************

IMA SDK

unread,
Aug 6, 2025, 3:53:46 PMAug 6
to aka...@vserv.com, vamsik...@vserv.com, ima...@googlegroups.com

Hi Akash,

We are checking your issue and will get back to you shortly. Meanwhile, your patience is important.


Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-08-06 19:53:37Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01syGNQ:ref" (ADR-00328931)



IMA SDK

unread,
Aug 11, 2025, 3:17:55 PMAug 11
to aka...@vserv.com, vamsik...@vserv.com, ima...@googlegroups.com

Hi,

Could you kindly provide the step by step business logic for handling Custom cookies during ad request-response?


Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-08-11 19:17:44Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01syGNQ:ref" (ADR-00328931)



IMA SDK

unread,
Aug 19, 2025, 7:17:17 AMAug 19
to aka...@vserv.com, vamsik...@vserv.com, ima...@googlegroups.com

Hi Akash,

Thank you for getting back to us.

For your use case of client-side session management and passing data with ad requests, the recommended approach is to leverage the adTagUrl and its custom parameters. You can dynamically append your session-specific data as key-value pairs to the ad tag URL. The ad server can then parse this information from the URL to serve relevant ads. This is the standard and supported way to pass targeting data, user IDs, or other session-related information to the ad server.

For example, on Android or iOS, you would construct your adTagUrl by adding your custom parameters to the base URL. The IMA SDK will then make the request with this appended information.

An alternative, though not for passing cookies directly to the ad server, is the userContext property available in the AdsRequest object. This property allows you to attach any custom object to the ad request, and this object will be returned to you in the AdsManagerLoadedEvent and AdErrorEvent. This is helpful for your own internal application logic to correlate requests and responses, but it is not a mechanism for sending data to the ad server.

In summary, you cannot directly manipulate the cookies used by the IMA SDK's internal network calls.


Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-08-19 11:17:07Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01syGNQ:ref" (ADR-00328931)



IMA SDK

unread,
Aug 19, 2025, 2:15:59 PMAug 19
to aka...@vserv.com, as...@vserv.com, vamsik...@vserv.com, ima...@googlegroups.com

Hi,

I will check with the team and get back to you shortly.

Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-08-19 18:15:47Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01syGNQ:ref" (ADR-00328931)



Akash Shah

unread,
Aug 20, 2025, 5:24:14 AMAug 20
to IMA SDK, vamsik...@vserv.com, ima...@googlegroups.com
Hi Team,

We have a use case of handling client side session management through HTTP cookies. And we need to send and receive the data during Ad Request & Response. 
For this purpose we need the support of Cookie management in IMA SDK.

Regards,
Akash Shah | Engineering Lead
m. 9773501879

Vserv Success Stories
Powered by Vserv Authentic Audience Data
FacebookTwitterGoogle PlusYou TubeLinked In
e

Akash Shah

unread,
Aug 20, 2025, 5:24:18 AMAug 20
to IMA SDK, vamsik...@vserv.com, ima...@googlegroups.com, Ashok Patel
Hi Team,

We would like to use IMA SDK for VAST tag handling while ensuring that our internal HTTP cookie based features are functional. For the same reason we would like to evaluate whether IMA SDK is capable of storing HTTP Cookies on client-side and attach on subsequent VAST requests.
Considering our payload is Cookie header based, we cannot change it to flow via query parameters within VAST Tags. In case there are any IMA SDK APIs to enable support for the same, request to guide. 

Regards,
Akash Shah | Engineering Lead
m. 9773501879

Vserv Success Stories
Powered by Vserv Authentic Audience Data
FacebookTwitterGoogle PlusYou TubeLinked In

IMA SDK

unread,
Aug 22, 2025, 9:36:51 AMAug 22
to vamsik...@vserv.com, as...@vserv.com, ima...@googlegroups.com, aka...@vserv.com

Hi,

Thank you for getting back to us.

Cookies are managed internally by the SDK, and this behaviour cannot be overridden. Regarding your query on integrating video ad renditions, this functionality is already supported via VAST multiple “MediaFiles”.

Since the MediaFiles tag includes multiple media, the player will automatically select the most suitable media based on factors such as bandwidth, resolution, bit rate and screen size.

After reading the first thread it looks like you are trying to integrate the same above approach but using a custom cookie which is unfortunately not possible from IMA SDK.

Let me know if you have any different business logic behind using a custom cookie via SDK.


Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-08-22 13:36:43Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01syGNQ:ref" (ADR-00328931)



IMA SDK

unread,
Aug 22, 2025, 1:31:13 PMAug 22
to as...@vserv.com, vamsik...@vserv.com, ima...@googlegroups.com, aka...@vserv.com

Hi,

I will check with the team and get back to you shortly.

Thanks,

 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-08-22 17:31:04Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01syGNQ:ref" (ADR-00328931)



Akash Shah

unread,
Aug 25, 2025, 4:31:32 AMAug 25
to IMA SDK, as...@vserv.com, vamsik...@vserv.com, ima...@googlegroups.com
Hi Team,

Any further updates on this ?
Regards,
Akash Shah | Engineering Lead
m. 9773501879

Vserv Success Stories
Powered by Vserv Authentic Audience Data
FacebookTwitterGoogle PlusYou TubeLinked In

IMA SDK

unread,
Aug 25, 2025, 2:27:23 PMAug 25
to aka...@vserv.com, as...@vserv.com, vamsik...@vserv.com, ima...@googlegroups.com
Hi Akas,

As I mentioned earlier this is currently not possible with the IMA SDK currently. But i will raise this business logic and issue concern to the wider team. I will update you once i receive any update on this.

Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-08-25 18:27:10Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01syGNQ:ref" (ADR-00328931)



Reply all
Reply to author
Forward
0 new messages