Adwords PHP 客户端库示例无法连接?
我正在沙盒中使用 201109 版本,并在导航到 Examples/v201109/GetAllCampaigns.php
AuthenticationError.CLIENT_CUSTOMER_ID_INVALID @ ; trigger:'client_1+email' Service[CampaignService.get]
(已删除电子邮件)
时收到此错误,如果我将 auth.ini 中的 clientId 更改为,
clientId = "2"
则会收到不同的错误
AuthenticationError.CUSTOMER_NOT_FOUND @ ; trigger:'2' Service[CampaignService.get]
,如果我评论clientId 线路输出,它告诉我我没有活动。
通过转到 AddCampaign.php 示例,该行被注释掉,我仍然收到此错误
[OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[0]]
,我已经查看了所有这些错误,但它们似乎没有给我太多指示我应该做什么。 自动营销活动的默认格式是否已更改?我什至连接到沙箱了吗?好困惑!谢谢
I'm working with the 201109 version in the sandbox and getting this error when navigating to examples/v201109/GetAllCampaigns.php
AuthenticationError.CLIENT_CUSTOMER_ID_INVALID @ ; trigger:'client_1+email' Service[CampaignService.get]
(removed email)
if i change the clientId in auth.ini to
clientId = "2"
I get a different error
AuthenticationError.CUSTOMER_NOT_FOUND @ ; trigger:'2' Service[CampaignService.get]
and if i comment the the clientId line out, It tells me i have no Campaigns.
By going to the AddCampaign.php example,with the line commented out still i get this error
[OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[0]]
I've looked all these errors up but they don't seem to give me much indication of what i should be doing.
Has the default format for the automated campaigns changed? Am i even connected to the sandbox? So confused! Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
v201109 中已弃用在请求中使用客户电子邮件,必须改用客户客户 ID。如需了解更多信息,请访问:
http://code.google.com /apis/adwords/docs/sandbox.html#getting-started
The use of client emails in the request was deprecated in v201109, and client customer IDs must be used instead. More information is available here:
http://code.google.com/apis/adwords/docs/sandbox.html#getting-started