The ad was rejected on Google Ads and these are the reasons I found
1- The hacked website
2- Malware
3- Circumventing regulations
When I checked my site, I found this injected code
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GY1V6F3565"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-GY1V6F3565');
</script>
<script>
document.addEventListener('click', function(e) {
if (e.target.closest('[href*="https://apps.apple.com/sa/"]')) {
gtag('event', 'conversion', {
'send_to': 'AW-11092313649/_FiOCN_Q8doYELGMnakp'
});
}
if (e.target.closest('[href*="https://play.google.com/store/"]')) {
gtag('event', 'conversion', {
'send_to': 'AW-11092313649/Sfa5CNjb8doYELGMnakp'
});
}
}, {
capture: true
});
</script>
Is there any glitch or problem? I have been trying for two full weeks to solve the problem. Please reply as quickly as possible