Patent ID: 7136875

Claim:
A computer-implemented method for obtaining document information for use in serving a content-relevant ad request, sourced by one of (A) a content provider serving content to a content rendering application and (B) a content rendering application, the computer-implemented method comprising: a) returning one or more executable instructions, for reading document information, to the content rendering application; and b) setting, with the content rendering application, a document identifier, to address desired document information, wherein the document identifier is set to address desired document information by determining whether or not the one or more executable instructions were returned to either (A) a frame embedded in a main document, or (B) a main document, wherein the main document includes the document information, and wherein whether or not the one or more executable instructions were returned to a frame or a main document is determined by: (i) executing a comparison operation to compare a location to which the one or more executable instructions were returned with a main document location, (ii) if a result of the comparison operation execution indicates that they are the same page, setting the document identifier to the location to which the one or more executable instructions were sent, and (iii) if the result of the comparison operation execution indicates either a mismatch or a security violation, setting the document identifier to a document referrer to the location to which the one or more executable instructions were sent.