{"id":744,"date":"2020-12-22T14:59:42","date_gmt":"2020-12-22T14:59:42","guid":{"rendered":"https:\/\/wiki.pontiac.media\/?page_id=744"},"modified":"2021-12-08T15:08:30","modified_gmt":"2021-12-08T15:08:30","slug":"placing-pixels","status":"publish","type":"docs","link":"https:\/\/wiki.pontiac.media\/?docs=api\/api-remarketing-campaign-tutorial\/placing-pixels","title":{"rendered":"Placing Pixels"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Now that we have everything set up the last step is to get the 2 pixels (segment and conversion) and get their \u201cexchangeId\u201d.<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0<\/span><br \/>\n<b>Get Request for Segment Pixel<\/b><br \/>\n<span style=\"font-weight: 400;\">curl -X GET -H &#8216;auth: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZWF0SWQiOjEwMDAsInVzZXJJZCI6NCwiZXhwaXJlcyI6IjIwMjAtMDgtMjYgMDE6Mzk6MDkifQ.W475vyhEafa9TN94OaLkUEHWF7YkI6t-tJbKBIYqN6A&#8217;\u00a0 &#8216;https:\/\/api.pontiac.media\/pontiac\/segment?segment-id=22672&#8217;<\/span><br \/>\n<b>Response:<\/b><br \/>\n<span style=\"font-weight: 400;\">{&#8220;timestamp&#8221;:&#8221;Tue Aug 25 17:43:57 UTC 2020&#8243;,&#8221;response&#8221;:{&#8220;SegmentPixel&#8221;:{&#8220;pontiacSegmentId&#8221;:22672,&#8221;exchangeId&#8221;:23462667,&#8221;seatId&#8221;:1000,&#8221;name&#8221;:&#8221;testSegmemtPixel&#8221;,&#8221;pontiacAdvertiserId&#8221;:1713,&#8221;cost&#8221;:0.0,&#8221;segmentPixelType&#8221;:&#8221;firstParty&#8221;}},&#8221;accountStatus&#8221;:1,&#8221;seatId&#8221;:1000}<\/span><br \/>\n<span style=\"font-weight: 400;\">From this we will need the <\/span><b>exchangeId<\/b><span style=\"font-weight: 400;\">, in this example it is <\/span><b>23462667.<\/b><br \/>\n&nbsp;<br \/>\n<b>Get Request for Conversion Pixel<\/b><br \/>\n<span style=\"font-weight: 400;\">curl -X GET -H &#8216;auth: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZWF0SWQiOjEwMDAsInVzZXJJZCI6NCwiZXhwaXJlcyI6IjIwMjAtMDgtMjYgMDE6Mzk6MDkifQ.W475vyhEafa9TN94OaLkUEHWF7YkI6t-tJbKBIYqN6A&#8217;\u00a0 &#8216;https:\/\/api.pontiac.media\/pontiac\/conversion-pixel?pixel-id=980\u2019<\/span><br \/>\n<b>Response:<\/b><br \/>\n<span style=\"font-weight: 400;\">{&#8220;timestamp&#8221;:&#8221;Tue Aug 25 17:53:12 UTC 2020&#8243;,&#8221;response&#8221;:{&#8220;ConversionPixel&#8221;:{&#8220;pontiacPixelId&#8221;:980,&#8221;exchangeId&#8221;:1361577,&#8221;seatId&#8221;:1000,&#8221;name&#8221;:&#8221;testConversionPixel&#8221;,&#8221;pontiacAdvertiserId&#8221;:1713,&#8221;triggerType&#8221;:&#8221;hybrid&#8221;,&#8221;status&#8221;:1,&#8221;orderIdMacro&#8221;:0,&#8221;valueMacro&#8221;:0,&#8221;postViewExpireDays&#8221;:30,&#8221;postClickExpireDays&#8221;:30,&#8221;minMinutesPerConv&#8221;:10}},&#8221;accountStatus&#8221;:1,&#8221;seatId&#8221;:1000}<\/span><br \/>\n<span style=\"font-weight: 400;\">From this we will need the <\/span><b>exchangeId<\/b><span style=\"font-weight: 400;\">, in this example it is <\/span><b>1361577.<\/b><br \/>\n&nbsp;<br \/>\n<span style=\"font-weight: 400;\">Format to build the correct urls:<\/span><br \/>\n<strong>Segment Pixels:<\/strong><br \/>\n<a href=\"https:\/\/one.progmxs.com\/seg?add=XXXXXXXX&amp;t=2\"><span style=\"font-weight: 400;\">https:\/\/one.progmxs.com\/seg?add=XXXXXXXX&amp;t=2<\/span><\/a><br \/>\n<strong>Conversion Pixels:<\/strong><br \/>\n<a href=\"https:\/\/one.progmxs.com\/px?id=XXXXXXXX&amp;t=2\"><span style=\"font-weight: 400;\">https:\/\/one.progmxs.com\/px?id=XXXXXXXX&amp;t=2<\/span><\/a><br \/>\n<span style=\"font-weight: 400;\">\u00a0Just replace the \u201cXXXXXXXX\u201d with the exchange Ids from the responses.<\/span><br \/>\n<span style=\"font-weight: 400;\">The full html tags with the correct wrappers are as follows:<\/span><br \/>\n&nbsp;<br \/>\n<strong>Image pixel for our segment pixel:<\/strong><br \/>\n<span style=\"font-weight: 400;\">&lt;img src=&#8221;https:\/\/one.progmxs.com\/seg?add=23462667&amp;t=2&#8243; width=&#8221;1&#8243; height=&#8221;1&#8243; \/&gt;<\/span><br \/>\n<strong>Image pixel for our conversion pixel:<\/strong><br \/>\n<span style=\"font-weight: 400;\">&lt;img src=&#8221;https:\/\/one.progmxs.com\/px?id=1361577&amp;t=2&#8243; width=&#8221;1&#8243; height=&#8221;1&#8243; \/&gt;<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0<\/span><br \/>\n<span style=\"font-weight: 400;\">Place these in the headers of each of the pages that you wish to put them on.\u00a0<\/span><br \/>\n&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":714,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-744","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\/744","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=744"}],"version-history":[{"count":1,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/744\/revisions"}],"predecessor-version":[{"id":6470,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/744\/revisions\/6470"}],"up":[{"embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/714"}],"prev":[{"title":"Posting a Line Item","link":"https:\/\/wiki.pontiac.media\/?docs=api\/api-remarketing-campaign-tutorial\/posting-a-line-item","href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/740"}],"wp:attachment":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=744"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}