TouchDevelop/libwinRT/AdManager.ts

22 строки
593 B
TypeScript
Исходник Обычный вид История

2015-02-04 19:07:58 +03:00
///<reference path='refs.ts'/>
// Microsoft Advertisement signatures
declare module MicrosoftNSJS.Advertising {
export class AdControl {
constructor(el: HTMLElement, v: any);
}
}
module TDev.RT.WinRT {
export function AdManagerInit()
{
AdManager.initialize = function(
el: HTMLElement
) {
var ad = new MicrosoftNSJS.Advertising.AdControl(el, {
applicationId: ApiManager.pubCenterApplicationId,
adUnitId: ApiManager.pubCenterAdUnitId
});
}
}
}