首页 > 解决方案 > 无效的客户 ID - google-ads-api,我提供了正确的 customer_id 集,但它返回错误

问题描述

我正在使用google-ads-apinodejs 中的模块来连接 Google Ads API。

我正在使用此代码块来获取Customer

const customer = client.Customer({
    customer_id: 'XXX-XXX-XXXX',
    refresh_token: refreshToken,
})

我使用了XXX-XXX-XXXX, XXXXXXXXXX,XXXX-XXX-XXX格式,customer_id但它仍然返回此错误

GoogleAdsFailure {
  errors: [
    GoogleAdsError {
      error_code: [ErrorCode],
      message: "Invalid customer ID ''."
    }
  ],
  request_id: 'OcUdfalh_N0U4hTJUd6c6g'
}

标签: javascriptnode.jsgoogle-ads-apiadsense

解决方案


推荐阅读