关键字效果验证 [英] Keyword Performance Authentication
问题描述
我正在运行Microsoft开发人员网站上提供的API V9的示例C#代码。我有问题验证。设置代码,以便输入我的用户名,密码,开发人员令牌,accountId和CampaignId。这段代码不再有效吗?这个
与oauth有关吗? 我在下面粘贴了我的代码。它应该为指定的帐户和广告系列提取关键字效果报告,但我无法进行身份验证。谢谢
I'm running the example C# code for API V9 given on the Microsoft developer site. I'm having issues authenticating. The code is setup so that I enter my username, password, developer token, accountId and CampaignId. Is this code no longer working? Does this have something to do with oauth? I pasted my code below. It should pull a keyword performance report for a specified account and campaign but I can't authenticate. Thanks
推荐答案
你好。
上面的问题是你正试图在UserName字段中使用电子邮件地址。您应该使用OAuth通过Microsoft帐户进行身份验证。
The issue above is you are attempting to use an email address in the UserName field. You should use OAuth to authenticate with a Microsoft account.
此示例使用 UserName 和密码元素进行身份验证。对于
使用OAuth管理用户身份验证,请替换
具有 AuthenticationToken 的用户名和密码元素,这是您的OAuth访问令牌。
This example uses the UserName and Password elements for authentication. For Managing User Authentication with OAuth, replace the UserName and Password elements with the AuthenticationToken, which is your OAuth access token.
我希望这有帮助!
这篇关于关键字效果验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!