[iOS] Url encoded parentheses in custom vars

78 views
Skip to first unread message

Антон Погонец

unread,
Jan 31, 2017, 7:05:58 PM1/31/17
to Interactive Media Ads SDK
We trying to pass user-agent as custom parameter to DFP on iOS and faced with two issues.
User agent contains parentheses ()

1. We urlencode custom parametrs and pass them to cust_params and then -[IMAAdsRequest initWithAdTagUrl:adDisplayContainer:contentPlayhead:userContext:]. But in http request from sdk parentheses not urlencoded.
2. Params with parentheses not forwarded to third party ad networks.

Can you help with this?

Veer Arjun Busani

unread,
Feb 1, 2017, 9:50:34 AM2/1/17
to Interactive Media Ads SDK
Hi Антон,

Can you send us -
  • Charles logs.
  • Code snippets
  • And how you are encoding your parenthesis. It might be an issue here.
Also note that this is strictly an iOS issues and not something related to our SDK. 

Thanks,
Arjun Busani
Mobile Ads SDK Team

Антон Погонец

unread,
Feb 2, 2017, 4:33:34 PM2/2/17
to Interactive Media Ads SDK
sample.zip
Parentheses urlencoding.chls
custom params forwarding.chls

Veer Arjun Busani

unread,
Feb 2, 2017, 5:23:17 PM2/2/17
to Interactive Media Ads SDK
Hi Антон,

Thank you for the tags and Charles logs. Charles would always decode it back when you look at the specific parameters. But when I use your ad tag, and look at the %28 and %29 encoding, they seem to be properly decoded but the following up responses are not encoding them. For now, I would suggest you not to use parentheses for your encoding and I will look into this and update you by tomorrow. Also, I'm not getting any ad responses back with your Ad Tag and for one that I did receive, there are no media files/creatives appended in the response.

Thanks,
Arjun Busani
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages