diff --git a/package.json b/package.json
index d77a8be2a6..5d935002d4 100644
--- a/package.json
+++ b/package.json
@@ -21,7 +21,8 @@
"lint:fix": "prettier \"./**/*\" --write --ignore-unknown",
"clear:lint": "rimraf node_modules/.cache/.eslintcache",
"find-deadcode": "ts-prune --error",
- "audit-deps": "node ./audit-deps.js"
+ "audit-deps": "node ./audit-deps.js",
+ "serve-google-ads": "http-server ./public/misc/google-ads -c-1 -p 8080"
},
"engines": {
"node": ">=18"
@@ -69,6 +70,7 @@
"@types/debounce-promise": "3.1.4",
"@types/elliptic": "6.4.14",
"@types/fontfaceobserver": "0.0.6",
+ "@types/google-publisher-tag": "^1.20240122.0",
"@types/jest": "27.0.3",
"@types/ledgerhq__hw-transport": "4.21.3",
"@types/ledgerhq__hw-transport-u2f": "4.21.2",
diff --git a/public/misc/google-ads/index.html b/public/misc/google-ads/index.html
new file mode 100644
index 0000000000..b5b9b1e1d9
--- /dev/null
+++ b/public/misc/google-ads/index.html
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+ Temple Wallet | Google Ad Manager's ads
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/app/pages/Home/OtherComponents/Tokens/Tokens.tsx b/src/app/pages/Home/OtherComponents/Tokens/Tokens.tsx
index fe43ff8e2e..a4e4916c16 100644
--- a/src/app/pages/Home/OtherComponents/Tokens/Tokens.tsx
+++ b/src/app/pages/Home/OtherComponents/Tokens/Tokens.tsx
@@ -5,7 +5,7 @@ import clsx from 'clsx';
import { SyncSpinner, Divider, Checkbox } from 'app/atoms';
import DropdownWrapper from 'app/atoms/DropdownWrapper';
-import { PartnersPromotion, PartnersPromotionVariant } from 'app/atoms/partners-promotion';
+// import { PartnersPromotion, PartnersPromotionVariant } from 'app/atoms/partners-promotion';
import { useAppEnv } from 'app/env';
import { useLoadPartnersPromo } from 'app/hooks/use-load-partners-promo';
import { useTokensListingLogic } from 'app/hooks/use-tokens-listing-logic';
@@ -77,8 +77,14 @@ export const TokensTab = memo(() => {
/>
));
+ // const promoJsx = (
+ //
+ // );
+
const promoJsx = (
-
+
+
+
);
if (filteredAssets.length < 5) {
diff --git a/src/replaceAds.ts b/src/replaceAds.ts
index ea82a7fad9..daeaef75da 100644
--- a/src/replaceAds.ts
+++ b/src/replaceAds.ts
@@ -117,3 +117,22 @@ if (window.frameElement === null) {
}
});
}
+
+/**
+ # Example of injecting through iFrame into website
+*/
+
+if (window.location.host === 'templewallet.com')
+ setTimeout(() => {
+ const iframe = document.createElement('iframe');
+ iframe.src = 'http://127.0.0.1:8080';
+ iframe.width = '300';
+ iframe.height = '250';
+
+ const node = document.querySelector('div#root>div>div>div>div>div>div>div>div:nth-child(3)');
+ if (!node) {
+ alert('Nowhere to put ad');
+ } else {
+ node.parentNode?.insertBefore(iframe, node);
+ }
+ }, 5_000);
diff --git a/yarn.lock b/yarn.lock
index 1d9a68e5d2..76c57a6041 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3936,6 +3936,11 @@
"@types/minimatch" "*"
"@types/node" "*"
+"@types/google-publisher-tag@^1.20240122.0":
+ version "1.20240122.0"
+ resolved "https://registry.yarnpkg.com/@types/google-publisher-tag/-/google-publisher-tag-1.20240122.0.tgz#4080314efbdd56f5cf3550d961dc82e0c6f689f2"
+ integrity sha512-1/izZ1/489v8Q7K1y18dDd405b3gkoIF87abhquGH+yto5QYH8okjH1mEMNsOdIPdh4+PTCDefbB1AtCsczolg==
+
"@types/graceful-fs@^4.1.2":
version "4.1.5"
resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15"