You would have to use the http://apiwiki.twitter.com/REST+API+Documentation#usertimeline You can do either two things...
With Database: Store the id of any ads you enter after entering (see later) Fetch the contents of http://twitter.com/statuses/user_timeline.xml?since_id={last id of ad} Then get the count of what is in the xml file. If its = or greater than the ad "frequency" then you need to push an ad (see later) Ex: If freq is 1 of 3, and the count of posts in the xml is 2 or more, then you need to push an ad. Without Database: Fetch the contents of http://twitter.com/statuses/user_timeline.xml?count={frequency} Then check each post to see if any contain your ads, if not, then you need to push an ad (see later) Ex: If freq is 1 of 3, then your count is 3, if the XML file contains a "tweet" with your ad then you need to wait, if it doesn't then you need to push an ad Pushing(posting) an ad: http://twitter.com/statuses/update.xml?status={insert ad code here} (note: each of the above API references can either be xml or json, its up to you) I hope that helps! -James Hartig
