{"id":1489,"date":"2023-12-13T19:26:12","date_gmt":"2023-12-13T19:26:12","guid":{"rendered":"https:\/\/theoptimizer.io\/help\/?post_type=ht_kb&#038;p=1489"},"modified":"2024-06-11T13:47:15","modified_gmt":"2024-06-11T13:47:15","slug":"how-to-connect-facebook-to-media-net","status":"publish","type":"ht_kb","link":"https:\/\/theoptimizer.io\/help\/knowledge-base\/how-to-connect-facebook-to-media-net\/","title":{"rendered":"How to connect Facebook to Media.net?"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to connect Media.net to Facebook?\" width=\"643\" height=\"362\" src=\"https:\/\/www.youtube.com\/embed\/En2l6rPjo3g?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>If you are promoting Media.net offers and not using a third party tracker, you can connect your Media.net accounts directly to TheOptimizer.<\/p>\n\n\n\n<p>\ud83d\udca1<strong>NOTE<\/strong>: If you have already connected a third-party tracker to your Facebook ad accounts on TheOptimizer, you can skip this step. TheOptimizer will retrieve all necessary data, such as revenue and conversions reported by Media.net, directly from your tracker.<\/p>\n\n\n\n<p><strong>Step 1:<\/strong>&nbsp;Go to Account Wizard and select the Facebook ad account(s) you wish to connect to Media.net. Click&nbsp;<strong>Next<\/strong>.&nbsp;<\/p>\n\n\n\n<p><strong>Step 2:<\/strong>&nbsp;Next, you need to add a new Media.net integration. Click on&nbsp;<strong>Add New<\/strong>&nbsp;and select Media.net from the drop-down list. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"470\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-20.08.02-1024x470.png\" alt=\"\" class=\"wp-image-1491\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-20.08.02-1024x470.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-20.08.02-300x138.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-20.08.02-768x352.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-20.08.02-50x23.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-20.08.02-1536x705.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-20.08.02-2048x939.png 2048w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-20.08.02-60x28.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-20.08.02-100x46.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Step 3:<\/strong>&nbsp;Fill in the required information &#8211; a unique <strong>Nickname<\/strong> for your Media.net account, and the <strong>email<\/strong> and <strong>password<\/strong> you use for this account. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"964\" height=\"1012\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.48.39.png\" alt=\"\" class=\"wp-image-1492\" style=\"width:auto;height:400px\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.48.39.png 964w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.48.39-286x300.png 286w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.48.39-768x806.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.48.39-48x50.png 48w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.48.39-57x60.png 57w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.48.39-95x100.png 95w\" sizes=\"auto, (max-width: 964px) 100vw, 964px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Step 4:<\/strong>&nbsp;After you have filled in and&nbsp;<strong>Saved<\/strong>&nbsp;the above information, you need to specify which Media.net subids you are using to pass traffic source macros back to Media.net. One possible configuration is this: <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"460\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.51.38-1024x460.png\" alt=\"\" class=\"wp-image-1493\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.51.38-1024x460.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.51.38-300x135.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.51.38-768x345.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.51.38-50x22.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.51.38-1536x691.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.51.38-2048x921.png 2048w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.51.38-60x27.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.51.38-100x45.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Step 5:<\/strong>&nbsp;Now, you need to ensure that this tracking code is present in your Facebook campaigns:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chnm={{campaign.id}}&amp;chnm2={{adset.id}}&amp;chnm3={{ad.id}}<\/pre>\n\n\n\n<p><strong>\ud83d\udca1NOTE<\/strong>: Ensure all traffic source macros are present in your configuration. If one of the macros is not present in your Media.net mapping configuration or campaign tracking code, TheOptimizer will not be able to report that data. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When to use custom tracking?<\/h2>\n\n\n\n<p>If you do not have all your Media.net subids free (for example, due to using them for other purposes), you can use our custom tracking function.<\/p>\n\n\n\n<p>With the Custom Tracking function, you are able to pass more than one traffic source macro on a single Media.net subid, using a unique format. For example, you can pass all Facebook macros on the subid &#8220;Channel&#8221;: <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"562\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.52.45-1-1024x562.png\" alt=\"\" class=\"wp-image-1494\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.52.45-1-1024x562.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.52.45-1-300x165.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.52.45-1-768x421.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.52.45-1-50x27.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.52.45-1-1536x843.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.52.45-1-60x33.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.52.45-1-100x55.png 100w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-13-at-19.52.45-1.png 1997w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>Here, the tracking code you need to add in your campaigns needs to be in the same format: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chnm={{campaign.id}}|{{adset.id}}|{{ad.id}}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"next-step-start-automating\">Next step: Start automating<\/h2>\n\n\n\n<p>Click&nbsp;<a href=\"https:\/\/theoptimizer.io\/help\/article-categories\/how-to-set-up-automation-rules-for-facebook-with-examples\/\"><span style=\"text-decoration: underline;\">here<\/span><\/a>&nbsp;to learn more about Facebook automation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a step-by-step guide on how to connect Facebook to Media.net on TheOptimizer. <\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[38],"ht-kb-tag":[],"class_list":["post-1489","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-3-how-to-connect-facebook-to-an-external-revenue-stream"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/comments?post=1489"}],"version-history":[{"count":4,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1489\/revisions"}],"predecessor-version":[{"id":2165,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1489\/revisions\/2165"}],"wp:attachment":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/media?parent=1489"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-category?post=1489"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=1489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}