If we just wanted to know which keyword triggered the ad, this could have been quite simple. All we had to do was to add a parameter with the keyword text in the querystring sent to the tracking page. For example, for the keyword "widget" we'd give specific URL like "www.example.com/track.aspx?kw=widget" and for the keyword "sky" we'd give a different URL like "www.example.com/track.aspx?kw=sky". We could also use dynamic keyword insertion, but this will not allow us to distinguish the match of the keyword (broad, phrase or exact), as discussed in [webmasterworld.com...] So, what we actually do is set a URL like "www.example.com/track.aspx?kw=widget&match=broad" or alike.
Where does all this get complicated?
We also want to track performance by the ad's creative (we test and use several ads in the same ad group). The problem is that Google lets you set a specific destination URL either by ad OR by keyword, but not by their combination. So, we can either use the approach described above but then we won't know which ad triggered the click or we can set a specific destination URL for each ad (e.g, www.example.com/track.aspx?ad=1) but then we won't know which keywords was responsible.
Any ideas?
that thread talks about the various dynamic insertion paramaters. You can track the ad with a keyword level URL, or track the keyword with an ad level URL.
If you learn those paramaters, you should be able to determine the inputs you need.