{"id":1990,"date":"2021-01-15T21:04:22","date_gmt":"2021-01-15T21:04:22","guid":{"rendered":"https:\/\/wiki.pontiac.media\/?page_id=1990"},"modified":"2025-03-24T21:07:43","modified_gmt":"2025-03-24T21:07:43","slug":"encoding-examples","status":"publish","type":"docs","link":"https:\/\/wiki.pontiac.media\/?docs=new-test-section\/creative-macros-2\/encoding-examples","title":{"rendered":"Encoding Examples"},"content":{"rendered":"<p><b>To encode click URL once:\u00a0<\/b><br \/>\n<span style=\"font-weight: 400;\">${URL_ENC(${CLICK_URL},1)}\u00a0<\/span><br \/>\n<span style=\"font-weight: 400;\">If <\/span><span style=\"font-weight: 400;\">http:\/\/Pontiac.media <\/span><span style=\"font-weight: 400;\">is passed as the click URL, <\/span><span style=\"font-weight: 400;\">\u00a0<\/span><br \/>\n<span style=\"font-weight: 400;\">using <\/span><span style=\"font-weight: 400;\">${URL_ENC(${CLICK_URL},1)} <\/span><span style=\"font-weight: 400;\">to single encode the URL would result<\/span><span style=\"font-weight: 400;\">\u00a0in <\/span><span style=\"font-weight: 400;\">http%3A%2F%2FPontiac.media <\/span><span style=\"font-weight: 400;\">populating the creative.\u00a0<\/span><br \/>\n<b><\/b><\/p>\n<p><b>To encode media URL once:\u00a0<\/b><br \/>\n<span style=\"font-weight: 400;\">${URL_ENC(${MEDIA_URL},1)}\u00a0<\/span><br \/>\n<b><\/b><\/p>\n<p><b>To encode media URL twice:<\/b><b>\u00a0<\/b><br \/>\n<span style=\"font-weight: 400;\">${URL_ENC(${MEDIA_URL},2)}\u00a0<\/span><br \/>\n<b><\/b><\/p>\n<p><b>To encode a custom macro called ADFORMAT once:<\/b><b>\u00a0<\/b><br \/>\n<span style=\"font-weight: 400;\">${URL_ENC(#{ADFORMAT},1)}<\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1661,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-1990","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/1990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1990"}],"version-history":[{"count":2,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/1990\/revisions"}],"predecessor-version":[{"id":9569,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/1990\/revisions\/9569"}],"up":[{"embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/1661"}],"next":[{"title":"Macro ID Mapping","link":"https:\/\/wiki.pontiac.media\/?docs=new-test-section\/creative-macros-2\/macro-id-mapping","href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/2989"}],"prev":[{"title":"Macro Implementation Recommendations & Examples","link":"https:\/\/wiki.pontiac.media\/?docs=new-test-section\/creative-macros-2\/macro-implementation-recommendations-examples","href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/8517"}],"wp:attachment":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1990"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=1990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}