Microsoft Word Add-in 解析 mktcmpid 不工作
Microsoft Word Add-in Parse mktcmpid Not Working
我已经在 MSDN "publishing apps for office store" 论坛 here 上发布了一个问题,遗憾的是没有收到回复,所以我想我会尝试使用 Whosebug 看看是否有其他人遇到过类似的问题。
我已经为 Word 开发了一个 add-in 并按照此 page 上的说明来跟踪我的广告活动的效果,这些活动将人们吸引到我在 Office 上的 add-in店铺。
特别是 "Track your campaign performance and customize your add-in for targeted audiences" header 下的部分,指定开发人员应该如何能够从 Settings
object 访问 mktcmpid
通过 Office.js。
如果我尝试将 mktcmpid
参数添加到我的 add-in 的 Office Store URL,然后尝试从 add-in'像下面这样的代码,我总是得到 null
作为一个值。
if (Office.context.document.settings) {
return Office.context.document.settings.get("Microsoft.Office.CampaignId");
}
此外,Office.context.document.settings.get("Microsoft.Office.CampaignId");
的值始终是 null
。此功能(能够通过 Office 商店 URL 直接向 add-in 传入任意 mktcmpid
)对其他人有用吗?
上面文章中的这一段似乎表明这应该可以工作,因为我正在尝试使用它:
Adding these parameters to your campaign URL will enable us to provide
more information about your campaign's user funnel. The mktcmpid
parameter is passed all the way to the launch document. This allows
you to customize the first user experience of your free Word, Excel,
or PowerPoint add-in to, for example, display a specific splash screen
or welcome message to your targeted audience. When the document loads
for the targeted user, the mktcmpid parameter is available in the
Settings object of the add-in as a Microsoft.Office.CampaignId, in
Office clients where the Settings object is supported. Use the
following code to read the Microsoft.Office.CampaignId from the
Settings object.
if (Office.context.document.settings) {
return Office.context.document.settings.get("Microsoft.Office.CampaignId");
}
提前致谢!
感谢支持团队的大力帮助,我们终于发现 mktcmpid 参数似乎有一个字符最小值。不确定现在是什么,但他们正在调查。与此同时,我将把我所有的 mktcmpid 参数更改得更长。非常感谢!
我已经在 MSDN "publishing apps for office store" 论坛 here 上发布了一个问题,遗憾的是没有收到回复,所以我想我会尝试使用 Whosebug 看看是否有其他人遇到过类似的问题。
我已经为 Word 开发了一个 add-in 并按照此 page 上的说明来跟踪我的广告活动的效果,这些活动将人们吸引到我在 Office 上的 add-in店铺。
特别是 "Track your campaign performance and customize your add-in for targeted audiences" header 下的部分,指定开发人员应该如何能够从 Settings
object 访问 mktcmpid
通过 Office.js。
如果我尝试将 mktcmpid
参数添加到我的 add-in 的 Office Store URL,然后尝试从 add-in'像下面这样的代码,我总是得到 null
作为一个值。
if (Office.context.document.settings) {
return Office.context.document.settings.get("Microsoft.Office.CampaignId");
}
此外,Office.context.document.settings.get("Microsoft.Office.CampaignId");
的值始终是 null
。此功能(能够通过 Office 商店 URL 直接向 add-in 传入任意 mktcmpid
)对其他人有用吗?
上面文章中的这一段似乎表明这应该可以工作,因为我正在尝试使用它:
Adding these parameters to your campaign URL will enable us to provide more information about your campaign's user funnel. The mktcmpid parameter is passed all the way to the launch document. This allows you to customize the first user experience of your free Word, Excel, or PowerPoint add-in to, for example, display a specific splash screen or welcome message to your targeted audience. When the document loads for the targeted user, the mktcmpid parameter is available in the Settings object of the add-in as a Microsoft.Office.CampaignId, in Office clients where the Settings object is supported. Use the following code to read the Microsoft.Office.CampaignId from the Settings object.
if (Office.context.document.settings) { return Office.context.document.settings.get("Microsoft.Office.CampaignId"); }
提前致谢!
感谢支持团队的大力帮助,我们终于发现 mktcmpid 参数似乎有一个字符最小值。不确定现在是什么,但他们正在调查。与此同时,我将把我所有的 mktcmpid 参数更改得更长。非常感谢!