Add custom ad field

Posted in: Newspaper
Post count: 21

Hello,

1. It is possible to add new Ad custom field? (solution by FTP is ok for me).
2. Add i have problem with ads adding by “Ad custom” field. I want to add this code:

<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– XXXXXXXX –>
<ins class=”adsbygoogle”
style=”display:inline-block;width:970px;height:250px”
data-ad-client=”BB-ZZZ-XXXXXX”
data-ad-slot=”XXXXXXXXX/YYYYYYYY”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

but, i dont know why, website “eat” this fragment: data-ad-slot=”XXXXXXXXX/YYYYYYYY” and on the website i see only: data-ad-slot=””. Any idea?

Post count: 23312

Hello damian,

1)Please try to read this topic here -> https://forum.tagdiv.com/topic/how-to-add-more-custom-ad-spots/ because we have explained a valid method on how you can add a new custom Ad at your website. If you are not aware of the steps which are needed to take in this regard or if you fail to do this implementation, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!
2)Please notice that our theme only render the Ad code which is added in the Ad Slot and this do not change the structure of the code. First of all, please ensure that your AdSense code is valid in order to bring best results in theme. If your problem is still there, I suggest you addressing to the Google AdSense provider, tell the problem and wait from there a solution in this regard. They should be able to provide a more accurate response because they are producing the code.

Thanks for the message!

Post count: 21

1. Thx for info!
2. Unfortunately, but it change structure of data-ad-slot=””. Our tests:
a) Diffrent website and theme, we add code to default text box data-ad-slot=”XXXXX/YYYYY” APPEARS.
b) Your theme, we add code by [tagDiv] Ad box and data-ad-slot=”” IS EMPTY.
c) Your theme, we add code by default text box, and data-ad-slot=”XXXX/YYYY” APPEARS.

So problem is with [tagDiv] Ad box, which lost fragment of data-ad-slot code…

Post count: 23312

Hi Damian,

You will have to edit the code from td_panel_data_source.php and add there the slash, like this -> http://screencast.com/t/ycJFEfLtJTI and the code which contains and that symbol will be displayed to the page source.

Hope that help!

Thanks for your understanding!

Post count: 21

1. RESOLVED
2. RESOLVED

THX, Great support!!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.