Defeating, breaking, hacking or by passing same origin policy.
Above is an example of getting a link from an iframe, which is returned by a Google Adsense style iframe (publisher ID is hidden).
SPSM Flow: