Customers will only be served relevant ads based on the music they have tagged through Shazam's iPhone application. Ads will only be for O2's Priority Ticket service, which allows customers to purchase tickets for gigs at The O2 and O2 Academy venues, 48 hours before they go on general sale.
The ads will be delivered using 4th Screen Advertising's ad serving platform, Mpression, and will be delivered using a variety of formats including standard banners and integrated links.
Jonathan Symons, executive vice-president of business development, Shazam said: "There is a perfect fit between Shazam's consumer base of music fans and the objectives of the O2 Priority Ticket campaign.
"The use of rich media and highly targeted campaign messages results in an engaging and rewarding experience for Shazam users. This is a first for us and we will be taking this model and new ad formats to other markets."
Shazam has achieved global success with more than 50 million users so far. The service allows the user to purchase the song they have tagged on Apple's music store itunes.