2016-07-12 10 views
0

私はget_campaigns.pyサンプルコードを実行しようとしています。私は、正しい、client_idclient_secretrefresh_tokenを使用してアドワーズ広告クライアントオブジェクトを作成しました。私はしかし、それを実行すると、私はヘッダが記録された、彼らはthis guideQuotaCheckError.INVALID_TOKEN_HEADER。問題の内容を確認するにはどうすればよいですか?

ごとに、されている必要があります任意の developerTokenに言及していないことを確認ログをスクロールアップすると私は

Server raised fault: '[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'6Ji***developer-token****Yg']'

で終わるトレースバックを取得します

URL: https://adwords.google.com/api/adwords/cm/v201605/CampaignService

HEADERS: {'Soapaction': b'""', 'Content-Type': 'text/xml; charset=utf-8', 'Content-type': 'text/xml; charset=utf-8', 'Authorization': 'Bearer ya2***access_token***194f3g', 'SOAPAction': b'""'}

MESSAGE: b'<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:tns="https://adwords.google.com/api/adwords/cm/v201605" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201605" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><tns:RequestHeader><tns:clientCustomerId>659-360-1388</tns:clientCustomerId><tns:developerToken>6Ji***developer-token****Yg</tns:developerToken><tns:userAgent>MYM (AwApi-Python, googleads/4.2.0, Python/3.5.1)</tns:userAgent><tns:validateOnly>false</tns:validateOnly><tns:partialFailure>false</tns:partialFailure></tns:RequestHeader></SOAP-ENV:Header><ns0:Body><ns1:get><ns1:serviceSelector><ns1:fields>Id</ns1:fields><ns1:fields>Name</ns1:fields><ns1:fields>Status</ns1:fields><ns1:paging><ns1:startIndex>0</ns1:startIndex><ns1:numberResults>100</ns1:numberResults></ns1:paging></ns1:serviceSelector></ns1:get></ns0:Body></SOAP-ENV:Envelope>'

また

、あなたがこれを確認してくださいことができます:client_idclient_secretは、私が作成したテストマネージャーアカウントで[email protected]を使用して作成された一方で、開発者トークンは[email protected]のために付与されましたAPIのテスト用ですこれも問題を作りますか?また、developer_tokenはtest_accountステータスになりました。

私が間違っていることを教えてもらえますか?私はこの問題を最後の5日間苦労しています。 Pythonクライアントライブラリがうまくサポートされていない場合は、推奨プラットフォームがどのプラットフォームに切り替えることができるか教えてください。すべてのあなたの助けを前にありがとう!

答えて

関連する問題