{"id":15529,"date":"2026-02-20T07:06:20","date_gmt":"2026-02-20T07:06:20","guid":{"rendered":"http:\/\/anurag"},"modified":"2026-11-02T06:29:27","modified_gmt":"2026-11-02T06:29:27","password":"","slug":"unity-plugin-tradplus","status":"publish","type":"docs","link":"https:\/\/tenjin.com\/tr\/docs\/unity-plugin-tradplus\/","title":{"rendered":"Unity Plugin &#8211; TradPlus"},"content":{"rendered":"<p class=\"wp-block-paragraph\">The Tenjin SDK can listen to TradPlus impression level revenue data and send revenue events to Tenjin.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Integration steps<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li class=\"translation-block\">Add the most recent TradPlus SDK version from <a href=\"https:\/\/docs.tradplusad.com\/en\/docs\/doc_u3d\/u3d_download\/\" target=\"_blank\" rel=\"noreferrer noopener\" data-cmp-ab=\"2\">https:\/\/docs.tradplusad.com\/en\/docs\/doc_u3d\/u3d_download\/<\/a>.<\/li>\n\n\n\n<li class=\"translation-block\">In your TradPlus impression callback, pass the impression data to Tenjin in JSON format using the <code data-no-translation=\"\" data-no-auto-translation=\"\">TradPlusImpressionFromJSON(string json)<\/code> method.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Code sample<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">TradPlus uses different key names on Android and iOS, so the payload is built per platform.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:1.125rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.625rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-translation=\"\" data-no-auto-translation=\"\"><span style=\"display:flex;align-items:center;padding:10px 0px 0 16px;font-size:0.8em;width:100%;text-align:left;background-color:#2e3440ff;font-style:italic;color:#d8dee9ff\"><span style=\"border-bottom:1px solid rgba(201, 218, 248, 0.2)\">C#<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\" data-no-translation=\"\" data-no-auto-translation=\"\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>private void OnTradPlusAdImpression(Dictionary&lt;string, object> tpAdInfo)\n{\n    var payload = new Dictionary&lt;string, object>\n    {\n        &#91;\"revenue\"&#93; = double.Parse(tpAdInfo&#91;\"ecpm\"&#93;.ToString()),\n#if UNITY_IOS\n        &#91;\"network_name\"&#93; = tpAdInfo&#91;\"adNetworkName\"&#93;,\n        &#91;\"ad_unit_id\"&#93; = tpAdInfo&#91;\"adunit_id\"&#93;,\n        &#91;\"revenue_precision\"&#93; = tpAdInfo&#91;\"ecpm_precision\"&#93;,\n        &#91;\"format\"&#93; = tpAdInfo&#91;\"adType\"&#93;,\n        &#91;\"segment\"&#93; = tpAdInfo&#91;\"segment_id\"&#93;,\n        &#91;\"ab_test\"&#93; = tpAdInfo&#91;\"bucket_id\"&#93;,\n        &#91;\"country\"&#93; = tpAdInfo&#91;\"country_code\"&#93;,\n#else\n        &#91;\"network_name\"&#93; = tpAdInfo&#91;\"adSourceName\"&#93;,\n        &#91;\"ad_unit_id\"&#93; = tpAdInfo&#91;\"tpAdUnitId\"&#93;,\n        &#91;\"revenue_precision\"&#93; = tpAdInfo&#91;\"ecpmPrecision\"&#93;,\n        &#91;\"format\"&#93; = tpAdInfo&#91;\"format\"&#93;,\n        &#91;\"segment\"&#93; = tpAdInfo&#91;\"segmentId\"&#93;,\n        &#91;\"ab_test\"&#93; = tpAdInfo&#91;\"bucketId\"&#93;,\n        &#91;\"country\"&#93; = tpAdInfo&#91;\"isoCode\"&#93;,\n        &#91;\"creative_id\"&#93; = tpAdInfo&#91;\"creativeId\"&#93;,\n#endif\n    };\n\n    Tenjin.getInstance(\"&lt;SDK_KEY>\").TradPlusImpressionFromJSON(JsonMapper.ToJson(payload));\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\" data-no-translation=\"\" data-no-auto-translation=\"\"><code data-no-translation=\"\" data-no-auto-translation=\"\"><span class=\"line\"><span style=\"color: #81A1C1\">private<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">void<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">OnTradPlusAdImpression<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\">Dictionary<\/span><span style=\"color: #ECEFF4\">&lt;<\/span><span style=\"color: #81A1C1\">string<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">object<\/span><span style=\"color: #ECEFF4\">&gt;<\/span><span style=\"color: #D8DEE9FF\"> tpAdInfo<\/span><span style=\"color: #ECEFF4\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">var<\/span><span style=\"color: #D8DEE9FF\"> payload <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">new<\/span><span style=\"color: #D8DEE9FF\"> Dictionary<\/span><span style=\"color: #ECEFF4\">&lt;<\/span><span style=\"color: #81A1C1\">string<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">object<\/span><span style=\"color: #ECEFF4\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">revenue<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">double<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">Parse<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">ecpm<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;.<\/span><span style=\"color: #88C0D0\">ToString<\/span><span style=\"color: #ECEFF4\">()),<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">#<\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #5E81AC\"> UNITY_IOS<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">network_name<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">adNetworkName<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">ad_unit_id<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">adunit_id<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">revenue_precision<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">ecpm_precision<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">format<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">adType<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">segment<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">segment_id<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">ab_test<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">bucket_id<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">country<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">country_code<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">#<\/span><span style=\"color: #81A1C1\">else<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">network_name<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">adSourceName<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">ad_unit_id<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">tpAdUnitId<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">revenue_precision<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">ecpmPrecision<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">format<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">format<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">segment<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">segmentId<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">ab_test<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">bucketId<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">country<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">isoCode<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">creative_id<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">tpAdInfo<\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">creativeId<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">&#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">#<\/span><span style=\"color: #81A1C1\">endif<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">}<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">Tenjin<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">getInstance<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">&lt;SDK_KEY&gt;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">).<\/span><span style=\"color: #88C0D0\">TradPlusImpressionFromJSON<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9\">JsonMapper<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">ToJson<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9\">payload<\/span><span style=\"color: #ECEFF4\">))<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Impression level revenue data parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Parameter<\/th><th>TradPlus key (Android)<\/th><th>TradPlus key (iOS)<\/th><th>Required<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code data-no-translation=\"\" data-no-auto-translation=\"\">revenue<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">ecpm<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">ecpm<\/code><\/td><td><strong>Yes<\/strong><\/td><td>2.5<\/td><\/tr><tr><td><code data-no-translation=\"\" data-no-auto-translation=\"\">network_name<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">adSourceName<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">adNetworkName<\/code><\/td><td>No<\/td><td>Admob<\/td><\/tr><tr><td><code data-no-translation=\"\" data-no-auto-translation=\"\">ad_unit_id<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">tpAdUnitId<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">adunit_id<\/code><\/td><td>No<\/td><td>id-69082<\/td><\/tr><tr><td><code data-no-translation=\"\" data-no-auto-translation=\"\">revenue_precision<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">ecpmPrecision<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">ecpm_precision<\/code><\/td><td>No<\/td><td>exact<\/td><\/tr><tr><td><code data-no-translation=\"\" data-no-auto-translation=\"\">format<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">format<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">adType<\/code><\/td><td>No<\/td><td>interstitial<\/td><\/tr><tr><td><code data-no-translation=\"\" data-no-auto-translation=\"\">segment<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">segmentId<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">segment_id<\/code><\/td><td>No<\/td><td>id-2<\/td><\/tr><tr><td><code data-no-translation=\"\" data-no-auto-translation=\"\">ab_test<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">bucketId<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">bucket_id<\/code><\/td><td>No<\/td><td>id-1<\/td><\/tr><tr><td><code data-no-translation=\"\" data-no-auto-translation=\"\">country<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">isoCode<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">country_code<\/code><\/td><td>No<\/td><td>US<\/td><\/tr><tr><td><code data-no-translation=\"\" data-no-auto-translation=\"\">creative_id<\/code><\/td><td><code data-no-translation=\"\" data-no-auto-translation=\"\">creativeId<\/code><\/td><td>not available<\/td><td>No<\/td><td>id-41203<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"translation-block\"><code data-no-translation=\"\" data-no-auto-translation=\"\">revenue<\/code> is the <strong>eCPM<\/strong> value, not the revenue of a single impression. Pass the TradPlus <code data-no-translation=\"\" data-no-auto-translation=\"\">ecpm<\/code> value as-is. Tenjin divides it by 1,000 to derive the per-impression revenue. If you divide it yourself before sending, the revenue recorded in Tenjin will be 1,000 times lower than the actual value.<\/li>\n\n\n\n<li class=\"translation-block\">TradPlus reports <code data-no-translation=\"\" data-no-auto-translation=\"\">ecpm<\/code> in USD.<\/li>\n\n\n\n<li class=\"translation-block\">For the <code data-no-translation=\"\" data-no-auto-translation=\"\">revenue<\/code> parameter, use double type, not string type. TradPlus returns <code data-no-translation=\"\" data-no-auto-translation=\"\">ecpm<\/code> as a string, so convert it before sending.<\/li>\n\n\n\n<li class=\"translation-block\">Only <code data-no-translation=\"\" data-no-auto-translation=\"\">revenue<\/code> is required. All other parameters are optional.<\/li>\n\n\n\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">creative_id<\/code> is only returned for InMobi and Mintegral, and requires TradPlus Android SDK v15.0.0.1 or later.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>The Tenjin SDK can listen to TradPlus impression level revenue data and send revenue events to Tenjin. Integration steps Code sample TradPlus uses different key names on Android and iOS, so the payload is built per platform. Impression level revenue data parameters ParameterTradPlus key (Android)TradPlus key (iOS)RequiredExamplerevenueecpmecpmYes2.5network_nameadSourceNameadNetworkNameNoAdmobad_unit_idtpAdUnitIdadunit_idNoid-69082revenue_precisionecpmPrecisionecpm_precisionNoexactformatformatadTypeNointerstitialsegmentsegmentIdsegment_idNoid-2ab_testbucketIdbucket_idNoid-1countryisoCodecountry_codeNoUScreative_idcreativeIdnot availableNoid-41203 Notes<\/p>","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_category":[237],"glossaries":[],"doc_tag":[],"class_list":["post-15529","docs","type-docs","status-publish","hentry","doc_category-tradplus"],"acf":[],"year_month":"2026-11","word_count":467,"total_views":"67","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"anurag","author_nicename":"anurag","author_url":"https:\/\/tenjin.com\/tr\/blog\/author\/anurag\/"},"doc_category_info":[{"term_name":"TradPlus","term_url":"https:\/\/tenjin.com\/tr\/docs\/category\/tradplus\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Unity Plugin - Tradplus | Tenjin<\/title>\n<meta name=\"description\" content=\"Follow this guide to integrate the TradPlus Unity plugin with Tenjin for attribution, ad revenue tracking, and campaign optimization.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unity Plugin - Tradplus | Tenjin\" \/>\n<meta property=\"og:description\" content=\"Follow this guide to integrate the TradPlus Unity plugin with Tenjin for attribution, ad revenue tracking, and campaign optimization.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tenjin.com\/tr\/docs\/unity-plugin-tradplus\/\" \/>\n<meta property=\"og:site_name\" content=\"Tenjin\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-02T06:29:27+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@TenjinMMP\" \/>\n<meta name=\"twitter:label1\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/tenjin.com\\\/docs\\\/unity-plugin-tradplus\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/tenjin.com\\\/docs\\\/unity-plugin-tradplus\\\/\"},\"author\":{\"name\":\"anurag\",\"@id\":\"https:\\\/\\\/tenjin.com\\\/#\\\/schema\\\/person\\\/88e4ec869f2c72b9f6fc6cdbe7f3bbb8\"},\"headline\":\"Unity Plugin &#8211; TradPlus\",\"datePublished\":\"2026-02-20T07:06:20+00:00\",\"dateModified\":\"2026-11-02T06:29:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/tenjin.com\\\/docs\\\/unity-plugin-tradplus\\\/\"},\"wordCount\":204,\"publisher\":{\"@id\":\"https:\\\/\\\/tenjin.com\\\/#organization\"},\"inLanguage\":\"tr\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/tenjin.com\\\/docs\\\/unity-plugin-tradplus\\\/\",\"url\":\"https:\\\/\\\/tenjin.com\\\/docs\\\/unity-plugin-tradplus\\\/\",\"name\":\"Unity Plugin - Tradplus | Tenjin\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/tenjin.com\\\/#website\"},\"datePublished\":\"2026-02-20T07:06:20+00:00\",\"dateModified\":\"2026-11-02T06:29:27+00:00\",\"description\":\"Follow this guide to integrate the TradPlus Unity plugin with Tenjin for attribution, ad revenue tracking, and campaign optimization.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/tenjin.com\\\/docs\\\/unity-plugin-tradplus\\\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/tenjin.com\\\/docs\\\/unity-plugin-tradplus\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/tenjin.com\\\/docs\\\/unity-plugin-tradplus\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/tenjin.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\\\/\\\/tenjin.com\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Unity Plugin &#8211; TradPlus\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/tenjin.com\\\/#website\",\"url\":\"https:\\\/\\\/tenjin.com\\\/\",\"name\":\"Tenjin\",\"description\":\"Growth Made Simple\",\"publisher\":{\"@id\":\"https:\\\/\\\/tenjin.com\\\/#organization\"},\"alternateName\":\"Tenjin - Mobile Measurement Partner\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/tenjin.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"tr\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/tenjin.com\\\/#organization\",\"name\":\"Tenjin\",\"url\":\"https:\\\/\\\/tenjin.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\\\/\\\/tenjin.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/tenjin.com\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/images.webp\",\"contentUrl\":\"https:\\\/\\\/tenjin.com\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/images.webp\",\"width\":429,\"height\":117,\"caption\":\"Tenjin\"},\"image\":{\"@id\":\"https:\\\/\\\/tenjin.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/TenjinMMP\",\"https:\\\/\\\/www.youtube.com\\\/@TenjinMMP\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/tenjin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/tenjin.com\\\/#\\\/schema\\\/person\\\/88e4ec869f2c72b9f6fc6cdbe7f3bbb8\",\"name\":\"anurag\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\\\/\\\/tenjin.com\\\/wp-content\\\/litespeed\\\/avatar\\\/2fc0bc81210dbd59435715d7520d18ea.jpg?ver=1793912155\",\"url\":\"https:\\\/\\\/tenjin.com\\\/wp-content\\\/litespeed\\\/avatar\\\/2fc0bc81210dbd59435715d7520d18ea.jpg?ver=1793912155\",\"contentUrl\":\"https:\\\/\\\/tenjin.com\\\/wp-content\\\/litespeed\\\/avatar\\\/2fc0bc81210dbd59435715d7520d18ea.jpg?ver=1793912155\",\"caption\":\"anurag\"},\"url\":\"https:\\\/\\\/tenjin.com\\\/tr\\\/blog\\\/author\\\/anurag\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Unity Plugin - Tradplus | Tenjin","description":"Follow this guide to integrate the TradPlus Unity plugin with Tenjin for attribution, ad revenue tracking, and campaign optimization.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"tr_TR","og_type":"article","og_title":"Unity Plugin - Tradplus | Tenjin","og_description":"Follow this guide to integrate the TradPlus Unity plugin with Tenjin for attribution, ad revenue tracking, and campaign optimization.","og_url":"https:\/\/tenjin.com\/tr\/docs\/unity-plugin-tradplus\/","og_site_name":"Tenjin","article_modified_time":"2026-11-02T06:29:27+00:00","twitter_card":"summary_large_image","twitter_site":"@TenjinMMP","twitter_misc":{"Tahmini okuma s\u00fcresi":"1 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tenjin.com\/docs\/unity-plugin-tradplus\/#article","isPartOf":{"@id":"https:\/\/tenjin.com\/docs\/unity-plugin-tradplus\/"},"author":{"name":"anurag","@id":"https:\/\/tenjin.com\/#\/schema\/person\/88e4ec869f2c72b9f6fc6cdbe7f3bbb8"},"headline":"Unity Plugin &#8211; TradPlus","datePublished":"2026-02-20T07:06:20+00:00","dateModified":"2026-11-02T06:29:27+00:00","mainEntityOfPage":{"@id":"https:\/\/tenjin.com\/docs\/unity-plugin-tradplus\/"},"wordCount":204,"publisher":{"@id":"https:\/\/tenjin.com\/#organization"},"inLanguage":"tr"},{"@type":"WebPage","@id":"https:\/\/tenjin.com\/docs\/unity-plugin-tradplus\/","url":"https:\/\/tenjin.com\/docs\/unity-plugin-tradplus\/","name":"Unity Plugin - Tradplus | Tenjin","isPartOf":{"@id":"https:\/\/tenjin.com\/#website"},"datePublished":"2026-02-20T07:06:20+00:00","dateModified":"2026-11-02T06:29:27+00:00","description":"Follow this guide to integrate the TradPlus Unity plugin with Tenjin for attribution, ad revenue tracking, and campaign optimization.","breadcrumb":{"@id":"https:\/\/tenjin.com\/docs\/unity-plugin-tradplus\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tenjin.com\/docs\/unity-plugin-tradplus\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/tenjin.com\/docs\/unity-plugin-tradplus\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tenjin.com\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/tenjin.com\/docs\/"},{"@type":"ListItem","position":3,"name":"Unity Plugin &#8211; TradPlus"}]},{"@type":"WebSite","@id":"https:\/\/tenjin.com\/#website","url":"https:\/\/tenjin.com\/","name":"Tenjin","description":"Growth Made Simple","publisher":{"@id":"https:\/\/tenjin.com\/#organization"},"alternateName":"Tenjin - Mobile Measurement Partner","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tenjin.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"tr"},{"@type":"Organization","@id":"https:\/\/tenjin.com\/#organization","name":"Tenjin","url":"https:\/\/tenjin.com\/","logo":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/tenjin.com\/#\/schema\/logo\/image\/","url":"https:\/\/tenjin.com\/wp-content\/uploads\/2026\/04\/images.webp","contentUrl":"https:\/\/tenjin.com\/wp-content\/uploads\/2026\/04\/images.webp","width":429,"height":117,"caption":"Tenjin"},"image":{"@id":"https:\/\/tenjin.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/TenjinMMP","https:\/\/www.youtube.com\/@TenjinMMP","https:\/\/www.linkedin.com\/company\/tenjin"]},{"@type":"Person","@id":"https:\/\/tenjin.com\/#\/schema\/person\/88e4ec869f2c72b9f6fc6cdbe7f3bbb8","name":"anurag","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/tenjin.com\/wp-content\/litespeed\/avatar\/2fc0bc81210dbd59435715d7520d18ea.jpg?ver=1793912155","url":"https:\/\/tenjin.com\/wp-content\/litespeed\/avatar\/2fc0bc81210dbd59435715d7520d18ea.jpg?ver=1793912155","contentUrl":"https:\/\/tenjin.com\/wp-content\/litespeed\/avatar\/2fc0bc81210dbd59435715d7520d18ea.jpg?ver=1793912155","caption":"anurag"},"url":"https:\/\/tenjin.com\/tr\/blog\/author\/anurag\/"}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/tenjin.com\/tr\/wp-json\/wp\/v2\/docs\/15529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tenjin.com\/tr\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/tenjin.com\/tr\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/tenjin.com\/tr\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/tenjin.com\/tr\/wp-json\/wp\/v2\/comments?post=15529"}],"version-history":[{"count":4,"href":"https:\/\/tenjin.com\/tr\/wp-json\/wp\/v2\/docs\/15529\/revisions"}],"predecessor-version":[{"id":19238,"href":"https:\/\/tenjin.com\/tr\/wp-json\/wp\/v2\/docs\/15529\/revisions\/19238"}],"wp:attachment":[{"href":"https:\/\/tenjin.com\/tr\/wp-json\/wp\/v2\/media?parent=15529"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/tenjin.com\/tr\/wp-json\/wp\/v2\/doc_category?post=15529"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/tenjin.com\/tr\/wp-json\/wp\/v2\/glossaries?post=15529"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/tenjin.com\/tr\/wp-json\/wp\/v2\/doc_tag?post=15529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}