AdSense(Google AdSense SDK 3.1)单独在我的应用程序中运行良好。
当我使用 AdWhirl 时,我总是在我的日志中看到:
:WARN/AdWhirl SDK(562): AdSense company name and app name are required parameters
如何正确发送此参数,以便 AdWhirl 也将其传输到 AdSense?(我没有删除仅用于 ADSENSE 的参数。所以它们还在那里??)
找到解决方案:)
只需简单添加:
AdWhirlAdapter.setGoogleAdSenseAppName("Application Name");
AdWhirlAdapter.setGoogleAdSenseCompanyName("Developer Name");
AdWhirlAdapter.setGoogleAdSenseChannel("xxxxxxx");
AdWhirlTargeting.setKeywords("My keywords");
我认为为此,您需要在 AdWhirl 上创建一个帐户,然后将您的应用添加到该帐户,在那里启用 adsense,在他们的 Web 界面上提供您的 adsense api 密钥。他们会给你一个 AdWhirl api 密钥。然后,您可以使用 adwhirl api 密钥在您的应用中使用 adsense 广告。