I'm trying to run an audit on all the Audience usuage throughout our SPS 2007 portal. Our portal is pretty small and some issues have come up which an audit of this kind could solve.
I've been coding a solution and have retrieved the target audience information from all the SPListItems and all the PublishingPages. The only other audience targeting I know of is on individual WebParts but this is where I'm getting stuck. So far I have the following code: