The source (Tripmasters) isn't important (unless they're selling certain consolidator or other fares that don't earn miles, etc.) The actual fare classes, marketing and operating airlines, determine whether you'll earn or not, etc. just as if you were buying on aa.com.
You can't earn EQD/EQM on El Al (unless flown as an AA codeshare), if that is available; you can flying on IB (their MAD-TLV aircraft are special A319s with a decent mid-haul
Business Club class).