1
node-soapを使用してbing ads soap apiに接続しようとしています。私はbing documentationで提案されているようにリクエストを作成しました。しかし、私は応答を接続しようとするたびに、無効な資格情報(エラーコード-105)メッセージ - 認証に失敗しました。提供された資格情報が無効であるか、アカウントが非アクティブです。node-soapを使用したBing Ads APIの接続
bingが提供するサンプルのC#コードを使用してAPIを認証できました。だから、その資格証明/トークンが完璧にうまく動作していることは明らかです。
私のアプローチやノードコードで問題を特定する方法はありますか?
soap.createClient(url, function (err, client) {
if (err) {
console.log("err", err);
} else {
client.addSoapHeader({
'AuthenticationToken': '<AuthenticationToken>',
'DeveloperToken': '<DeveloperToken>',
'CustomerId': '<CustomerId>',
'CustomerAccountId': '<CustomerAccountId>',
});
client.SubmitGenerateReport(args, function (err, result) {
if (err) {
console.log("err", err.body);
} else {
console.log(result);
}
});
}
});
PS:Bing Documentation Sucks。雹Stackoverflow!
得ましたか?ありがとう – Christoph