Implementing Encoded and Unencoded URLs in Servo

Medialets Support -

Unencoded URLs

If an inventory partner’s redirect parameter does not require that the Servo-passed URL be encoded, then the standard $$_DESTINATION_URL_$$ parameter should be used within the click field of the Servo JS tag.

Unencoded URL Example:

http://t.company.com/t/v1/clk?migAgencyId=318&migSource=adsrv2&migTrackDataExt=3983524;119228294;288558110;63539475&migRandom=2227067858&migTrackFmtExt=client;io;ad;crtv&migUnencodedDest=http://company.net/event?d_event=click&d_src=6103&d_site=1770124&d_creative=63539475&d_adgroup=288558110&d_placement=119228294&d_campaign=8473748&d_cb=2227067858&d_rd=$$_DESTINATION_URL_$$

Replace the bolded macro above with the Servo-generated unencoded URL. For example:

http://www.company.com/shop/-bundles/

 

Encoded URLs

If an inventory partner’s redirect parameter requires that the Servo-passed URL be encoded, the $$_DESTINATION_URL_ENCODED_$$ parameter should be used within the click field of the Servo JavScript ad or tracking tag.

Encoded URL Example:

http%3A%2F%2Ft.company.com%2Ft%2Fv1%2Fclk%3FmigAgencyId%3D318%26migSource%3Dadsrv2%26migTrackDataExt%3D3983524%3B119228294%3B288558110%3B63539475%26migRandom%3D2227067858%26migTrackFmtExt%3Dclient%3Bio%3Bad%3Bcrtv%26migUnencodedDest%3Dhttp%3A%2F%2Fcompany.net%2Fevent%3Fd_event%3Dclick%26d_src%3D6103%26d_site%3D1770124%26d_creative%3D63539475%26d_adgroup%3D288558110%26d_placement%3D119228294%26d_campaign%3D8473748%26d_cb%3D2227067858%26d_rd%3D$$_DESTINATION_URL_ENCODED_$$

Replace the bolded macro above with the Servo-generated encoded URL. For example: http%3A%2F%2Fwww.company.com%2Fshop%2F-bundles%2F

 

Ad units that contain partially encoded and  partially non-encoded URLs may not function properly.

Additional reading on percent encoding can be found here: https://en.wikipedia.org/wiki/Percent-encoding

Have more questions? Submit a request

Comments

Powered by Zendesk