Trying to add a Amazon add to Front page…add not showing up…please help

Posted in: Newspaper
Post count: 3

Hi all,

So I am trying to add a amazon affiliate ad to my front page and it is not working.

I went to Theme Panel – ads – custom ads 1…then I input my amazon ad code into the “Your ad code” box.

the add is:
<script type=”text/javascript”>
amzn_assoc_placement = “adunit0”;
amzn_assoc_search_bar = “false”;
amzn_assoc_tracking_id = “onthebc-20”;
amzn_assoc_ad_mode = “manual”;
amzn_assoc_ad_type = “smart”;
amzn_assoc_marketplace = “amazon”;
amzn_assoc_region = “US”;
amzn_assoc_title = “Top Cryptocurrency Hardware Wallets”;
amzn_assoc_asins = “B01J66NF46,B00R6MKDDE,B0143M2A5S,B06XGKQ929”;
amzn_assoc_linkid = “873e0848c62dc8c8abfcb1e8da730b17″;
</script>
<script src=”//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US”></script>

I then save settings.

I go to the front page and edit it with TD Composer.

I add an ad box and then go to Use adspot from: custom_ad_1.

I save the page but no ad shows up.

Any help is appreciated!

Thank you

Post count: 3

Any help?

Post count: 22421

Hello,

You should follow the instructions provided for this ad regarding wordpress implementation. I cannot provide any insight as we have not tested this type of ads. Our theme was built to work with all ads but in special cases, a custom implementation is needed beyond the theme panel options. I can’t say for sure what it is though. The ad provider should be able to provide more details.

Thank you!

Post count: 12

i’m gonna jump inline w/ this thread instead of opening a new topic b/c it seems like these are all a bit related…….

Bogdan, if you’ve got an Amazon account, you can find the ad’s instructions here:
https://affiliate-program.amazon.com/home/ads
Basically, it’s just a simple copy/paste for the ad.

Here, take mine and use it as an example:
https://gist.github.com/BurlesonBrad/b58b9fb1e6f7e9548c4e883b97a23b83

<script type="text/javascript">
amzn_assoc_placement = "adunit0";
amzn_assoc_search_bar = "true";
amzn_assoc_tracking_id = "allinfaith-20";
amzn_assoc_ad_mode = "manual";
amzn_assoc_ad_type = "smart";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_title = "Click & Read the Descriptions For These Books";
amzn_assoc_linkid = "e7195d610f69c403a304838e7e14a7ea";
amzn_assoc_asins = "1250026261,0307731871,0307731898,0997829087";
</script>
<script src="//z-na.amazon-adsystem.com/widgets/onejs"></script>

First let’s see that on the Newspaper site:https://alifewithfaith.com/independent-fundamentalist/

Ok, so we can see the ad code being displayed when we view source on that page, right?

However, when we Inspect Element, and click on the red errors on the left side of the inspect element screen in Chrome, we find this:


onejs?MarketPlace=US:1 Error : adType is not defined
render @ onejs?MarketPlace=US:1

So, we can now go blame Amazon, right? Ha! Not so fast 😉

If we switch the theme, stick it on our personal site, or even run over to another totally different URL, and use the exact same Ad code from the Gist file to copy/paste it into a post. Guess what: The ads start to appear.

Bogdan (or anyone/everyone else) feel free to use the code in that gist to test it out on another theme b/c the exact same code, simply copy/pasted into another theme does indeed show the ads.

https://prnt.sc/j7zbbs

So, here’s the file from Amazon that will cough up those Ads that we’re all wanting:
https://z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US

The exact same code, pasted into another theme, works.
I think something, somewhere in the Newspaper theme might be causing that javascript file from Amazon to throw an error.

Post count: 12

update: I just disabled *EVERY* tagdiv plugin + the LightSpeed Cache _(which, for some reason – this hosting company decided to include it on their server stack)_

& the Amazon ads started appearing. standby & I’ll toggle them back on ’till we figure out which one was the culprit…..

Post count: 12

problem found: however the theme, plugins, speed settings, or anything else is configured in your Newspaper site…. if you want those Amazon Ads to show up, then

DO NOT COMBINE ANY .JS FILES!

😉

have a good day :-O

Post count: 22421

Thank you for your feedback. Could you be a bit more specific to exactly which js files were combined.
Thank you!

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