Hello!
So I'm wondering how would I be able to insert Google AdSense code within the blog post content. So I am writing a blog post, and I would like to have AdSense code within the blog post.
But Seems like Social Engine Deletes the AdSense source code by default. Which is reasonable due to security risks.
Would it be possible to somehow import the Social Engine "AdBanner" as "ahref" within the Blog post content?
Kind regards,
If you use the code tag here you can give a sample of the code you want to add to your site. Just be sure you use the code tag which is in the editor to the right of the smiley button. This way, we can see and try to work out how to do it. I am not sure it will work in the blog but maybe folks can give some ideas.
So the code I want to import is this one (down below I have provided a sample code with hidden AdSense details):
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Homepage Leaderboard -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-1234567890123456"
data-ad-slot="1234567890"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
x
But when I click "save" the blog deletes most of the code and only the following part of code stays. This is due to security of SE I believe. And I find it reasonable and good.
<!-- Homepage Leaderboard -->
So now I am wondering if there is a Chance that I would import basic "ahref code, and img src":
<a href="https://google.com">
<img src="https://www.linkTOimage.com/image.png" alt="" height="100%" width="100%" />
</a>
And that I could change the:
<img src="Google AdSense Ad Display" alt="" height="100%" width="100%" />
So that this "Google AdSense Ad Display" link would somehow display google AdSense ads...
But I believe this won't be possible.
Kind reagrds, Gregor
I will see if our moderators might have any ideas.
Hello @skebeg,
We would like to inform you that due to security issues, the script tag is not allowed to be used inside the WYSIWYG Editor. If you allow this, then hackers can run some malicious code on your website which may not be good for your users and site. We will also not advice and recommend you to enable this tag via customization as well on your site.
If you want you can customize your site to enable the integration of SocialEngine's ad feature inside the blogs or get it done without using the script code tag.
If you want you can contact our support team for more details at support@socialnetworking.solutions .
Regards
Team SNS
Not sure why our moderators have not answered as I requested they do but thank you SNS for answering.
Thanks A lot Dona and thanks a lot SNS!
Will definitely contact you since I do am interested in this.
Kind regards to everyone!