Remove the .find('a')
in var href = $(this).find('a').attr('href');
. You are already click"ing" on a <a>
element so it is enough with $(this).attr('href');
Try this:
$( ".ads-box a" ).click(function( event ) {
event.preventDefault();
var href = this.href; // i used vanilla JS here
var id = this.id; // i used vanilla JS here
console.log(href);
console.log(id);
console.log(this);
});