Updated  Ad Sample with Apache 2.0 license.

added Apache 2.0 files for Ad Sample