Skip to content

Instantly share code, notes, and snippets.

@mvark
Last active December 16, 2015 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvark/5357137 to your computer and use it in GitHub Desktop.
Save mvark/5357137 to your computer and use it in GitHub Desktop.
Show book titles in Amazon ads by keyword
<!DOCTYPE html>
<html>
<head>
<title>Show book titles in Amazon ads by keyword</title>
</head>
<body>
<div id="amz"></div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>
$(document).ready(function () {
amzn("India");
function amzn(keyword) {
var amzn = '<br><iframe src="http://rcm-na.amazon-adsystem.com/e/cm?t=webdevetipstr-20&o=1&p=48&l=st1&mode=books&search=' + keyword + '&fc1=000000&lt1=_blank&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="728" height="90" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>';
$("#amz").append(amzn);
}
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment