// get the triggers from ADF
ClaimStore claimStore = AmbientDataContext.CurrentClaimStore;
string triggers = AmbientDataHelper.GetTriggers(claimStore);
// make query builder and feed the triggers into it
var queryBuilder = new QueryBuilder();
queryBuilder.Parse(triggers);
// set the publication id and SmartTarget region. Both are required to query
// for SmartTarget promotions
queryBuilder.AddCriteria(new PublicationCriteria(new TcmUri("tcm:0-69-1")));
queryBuilder.AddCriteria(new RegionCriteria("Homepage Promotions"));