什么导致了AdWords API身份验证错误?
我尝试运行adwords_api_python的示例脚本,但不幸的是遇到了以下错误:
[root@centos adwords_api_python_13.2.0]# python get_related_keywords.py
Traceback (most recent call last):
File "get_related_keywords.py", line 56, in <module>
page = targeting_idea_service.Get(selector)[0]
File "adspygoogle/adwords/TargetingIdeaService.py", line 79, in Get
'TargetingIdea', self._loc, request)
File "adspygoogle/adwords/AdWordsWebService.py", line 256, in CallMethod
self.__ManageSoap(buf, start_time, stop_time, error)
File "adspygoogle/adwords/AdWordsWebService.py", line 125, in __ManageSoap
raise e
adspygoogle.adwords.AdWordsErrors.AdWordsAuthenticationError: AuthenticationError.NOT_ADS_USER @ ; trigger:'738513257043' Service[TargetingIdeaService.get]
- 我申请了一个MCC账户,并且申请了adwords API的令牌(状态:正在等待审核和批准)。
- 我已经运行了“config.py”脚本来设置认证的头信息。
我应该等到他们接受我的申请吗?
2 个回答
0
最好的办法是在等待你的MCC账户被批准的时候,创建一个“测试账户”。你不需要等测试账户的批准,而且这样你也不会在你的正式账户上进行开发;)
1
是的,你需要等到你的应用被批准。然后你可以登录到MCC账户,在“我的账户”标签下的“API中心”部分找到你的开发者令牌。
几年前,批准令牌可能需要长达两周的时间,但现在通常会快很多。