【发布时间】:2015-07-10 20:40:24
【问题描述】:
我正在开发使用 Cordova 包装的 android 应用程序。该应用程序使用 google ima 显示广告:Google IMA
当我尝试引用任何函数时,例如:
adDisplayContainer = new google.ima.AdDisplayContainer(document.getElementById('adContainer'));
我收到以下错误:“ReferenceError: google is not defined”。
我在 index.html 的正文中有一个带有 src="http://imasdk.googleapis.com/js/sdkloader/ima3.js" 的脚本标签。我也在头上试过。
【问题讨论】:
标签: javascript cordova google-ima