[iOS] Double HTTP call to the adTagUrl (with the class IMAAdsRequest)

50 views
Skip to first unread message

Jean Daher

unread,
Mar 4, 2020, 11:22:25 AM3/4/20
to Interactive Media Ads SDK
Hello, 

We are currently integrating the IMA-SDK for iOS in our app and we have a rather strange behavior. 

We are noticing two HTTP request firing to our ad server (the adTagUrl of the following example)

let request = IMAAdsRequest(adTagUrl: adTagUrl,

                            adDisplayContainer: adDisplayContainer,

                            contentPlayhead: contentPlayhead,

                            userContext: nil)

adsLoader?.requestAds(with: request)


This behavior does not seem to cause an effect on the app, but the server team sees it two times. And I just confirmed it by sniffing the outgoing HTTP request from my app, and sure did, i've seen the request fires two times. 

Is this behavior normal ? 

Thank you !

Jean Daher

unread,
Mar 4, 2020, 11:23:54 AM3/4/20
to Interactive Media Ads SDK
Forgot to mention that it concerns the 3.11.3 version of the GoogleAds-IMA-iOS-SDK retrieved from Cocoapods.

IMA SDK

unread,
Mar 4, 2020, 4:49:43 PM3/4/20
to daher...@gmail.com, ima...@googlegroups.com
Hi Jean,

Thank you for reaching out to us. We need more details in order to provide an accurate answer to your question. Can you confirm whether or not the VAST XML you are using in your tests contains a redirect? Do the tracking urls of your VAST XML point back to your server? Can you share the VAST XML you were using during your tests?

Regards,
Arnaud Casame
IMA SDK Team


ref:_00D1U1174p._5001UXU4qI:ref

Jean Daher

unread,
Mar 5, 2020, 9:02:27 AM3/5/20
to Interactive Media Ads SDK
Hello Arnaud, 

Thank you for replying. 

I confirm you that that VAST XML does not contain a redirect. I just tested it by using a telnet client on the HTTP port and I get the reply to my request directly (Without receiving an http 30x redirect code). 

The tracking URLs of the VAST XML does not point point to my sever, they point to a different one. Could that be the issue ?

I sniffed the outgoing request (using Wireshark and using the HTTP filter to only show the http request), and I saw the same HTTP query going twice. 

I'll do some additional test on the advanced sample project and i'll get back to you if i have additional info.

Thanks a lot !

IMA SDK

unread,
Mar 5, 2020, 3:29:59 PM3/5/20
to daher...@gmail.com, ima...@googlegroups.com
Hi Jean,

We need to investigate the VAST XML so we can determine whether or not the SDK is requesting ads twice. Can you share the VAST XML you were using when you encountered the behavior? You can share it privately via the imate...@gmail.com alias and let us know once it is done.


Regards,
Arnaud Casame
IMA SDK Team


ref:_00D1U1174p._5001UXU4qI:ref

sudaliahmad sudali

unread,
Mar 10, 2020, 1:31:16 PM3/10/20
to Interactive Media Ads SDK
Reply all
Reply to author
Forward
0 new messages