Issue: Amazon native ad won't show

Posted in: Newspaper
Post count: 5

Hi, I’ve tried using the ads section and using the tagdiv ad box widget but nothing shows. I’ve also tried just using the html box and paste the amazon ad code to that but still nothing shows. In the newspaper themepanel ads section i have tried pasting the code by itself and like this

<div class=”td-all-devices”> <script type=”text/javascript”> amzn_assoc_placement = “adunit0”; amzn_assoc_tracking_id = “maxnaylorus-20”; amzn_assoc_ad_mode = “manual”; amzn_assoc_ad_type = “smart”; amzn_assoc_marketplace = “amazon”; amzn_assoc_region = “US”; amzn_assoc_title = “My Vegan Picks”; amzn_assoc_linkid = “a7844be4fee495f2032c07c24a5a9d17”; amzn_assoc_asins = “B002863BIW,B00K5NEPJY,B07V1K2JY2,B07SMBF3KT,B01FDDDV7W,B077J6GKTD,1615190619,B00NGV4506,1250066115”; amzn_assoc_search_bar = “false”; </script> <script src=”//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US”></script> </div>

but nothing works. Any help would be appreciated!

Post count: 18283

Hello !

This doesn’t work because your code is not correct, as you can see here, wordpress does not render it: https://www.screencast.com/t/bs3OTxGti

Thank you !

Post count: 5

Hi,

The code should work, all i should have to do is copy and paste. I have watched tutorials and the amazon code is correct. I am pasting it the ads section in theme panel, and also as custom HTML code in the sidebar but everything is blank.

For example this is generated code by amazon:
<script type=”text/javascript”>
amzn_assoc_placement = “adunit0”;
amzn_assoc_search_bar = “true”;
amzn_assoc_tracking_id = “maxnaylorus-20”;
amzn_assoc_search_bar_position = “bottom”;
amzn_assoc_ad_mode = “search”;
amzn_assoc_ad_type = “smart”;
amzn_assoc_marketplace = “amazon”;
amzn_assoc_region = “US”;
amzn_assoc_title = “Shop Related Products”;
amzn_assoc_default_search_phrase = “vegan”;
amzn_assoc_default_category = “All”;
amzn_assoc_linkid = “73a54769dfa62a25b03724a782e41213″;
</script>
<script src=”//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US”></script>

and when i paste this into custom HTML, and the ads section, nothing.

Thank you

Post count: 18283

Hello !

I have pasted your code in here: https://www.screencast.com/t/O861wNwxITo And changed all the commas -> ” <- Now the code works: https://www.screencast.com/t/OrufT2jo4SOr

Thank you !

Post count: 5

Thank you Vlad, but i can’t see any difference in your commas to the original. I have tried deleting and re adding the commas but nothing happens.

Post count: 35449

Hi maxnaylor,

You can use an Adbox element in your sidebar using tagDiv Composer and insert the code into it: https://www.youtube.com/watch?v=fa7GenCHcBU&t=1s also please set the code that you get from Amazon, not this set on forum, for this the quotes are change.

Thank you!

Post count: 14

Hey there, I am also trying to add Amazon’s native ads at the bottom of my article, but it is not visible.
I want to add the mentioned native add at the bottom of every article on my website. Kindly help

<script type=”text/javascript”>
amzn_assoc_placement = “adunit0”;
amzn_assoc_search_bar = “true”;
amzn_assoc_tracking_id = “ethicaleditor-20”;
amzn_assoc_search_bar_position = “bottom”;
amzn_assoc_ad_mode = “search”;
amzn_assoc_ad_type = “smart”;
amzn_assoc_marketplace = “amazon”;
amzn_assoc_region = “US”;
amzn_assoc_title = “Shop Related Products”;
amzn_assoc_default_search_phrase = “baby food”;
amzn_assoc_default_category = “Baby”;
amzn_assoc_linkid = “797bd004cd66ebeae85d6ec9177d4301”;
amzn_assoc_default_browse_node = “165796011”;
</script>
<script src=”//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US”></script>

Post count: 14

Sorry to say, but it is really frustrating to figure out a way to add simple javascript ads.
I have spent the last 4 hours watching videos reading articles and none of it is working. Of course, I am doing something wrong, but that’s what I am not able to figure out what’s wrong with what I am trying to do. Please help me with the native ad

Post count: 35449

Hi rohu2187,

the code is working, you just need to find the right way to set it -> https://i.imgur.com/k3QiRle.png for example if you are using a single post template from tagDiv Cloud Library, edit it with tagDiv Composer and add an ad-box and set this code like this -> https://i.imgur.com/iGdOwgR.png -> https://i.imgur.com/xEPF3dN.png
Please try with the code from this format
<script type="text/javascript">
amzn_assoc_placement = "adunit0";
amzn_assoc_search_bar = "true";
amzn_assoc_tracking_id = "ethicaleditor-20";
amzn_assoc_search_bar_position = "bottom";
amzn_assoc_ad_mode = "search";
amzn_assoc_ad_type = "smart";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_title = "Shop Related Products";
amzn_assoc_default_search_phrase = "baby food";
amzn_assoc_default_category = "Baby";
amzn_assoc_linkid = "797bd004cd66ebeae85d6ec9177d4301";
amzn_assoc_default_browse_node = "165796011";
</script>
<script src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US"></script>

If you are using standard post styles then you can set the code in theme panel -> https://i.imgur.com/kSZlKfE.png -> https://forum.tagdiv.com/design-post-pages-using-default-templates/

Thank you!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.