首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Google测试帐户中创建客户端: CUSTOMER_NOT_ALLOWLISTED_FOR_THIS_FEATURE

在Google测试帐户中创建客户端: CUSTOMER_NOT_ALLOWLISTED_FOR_THIS_FEATURE
EN

Stack Overflow用户
提问于 2021-06-21 13:03:11
回答 1查看 395关注 0票数 0

我正试图在我的Google测试帐户中创建一个客户端,但是我收到了以下错误:

代码语言:javascript
复制
{"errors":[{"error_code":{"not_allowlisted_error":"CUSTOMER_NOT_ALLOWLISTED_FOR_THIS_FEATURE"},"message":"Customer is not allowlisted for accessing this feature."}],"request_id":"ApWtRj1nJ19MiT-I2Y3EoA"}

这是我创建客户端的代码(我正在使用google-ads-api库)

代码语言:javascript
复制
const client = new GoogleAdsApi({
    client_id,
    client_secret,
    developer_token
});

let managerId = "xxx";
let testAccountId = "xxx";
let refreshToken = "xxx";
const customer = client.Customer({
    login_customer_id: testAccountId,
    customer_id: testAccountId,
    refresh_token
});
const response = await customer.customers.createCustomerClient({
    customer_id: managerId,
    customer_client: {
        currency_code: "EUR",
        descriptive_name: "My customer client",
        time_zone: "Europe/London",
        resource_name: `customers/${managerId}`
    },
    email_address: "test@test.io",
    access_role: "STANDARD",
    validate_only: false,
    toJSON: null,
});
console.log("response:", response);

我唯一能找到的就是这里: 1:https://developers.google.com/google-ads/api/reference/rpc/v5/NotAllowlistedErrorEnum.NotAllowlistedError

但它并没有澄清任何事情。我也不能在我的生产Google广告帐户上测试它,因为我的开发者令牌已经被验证过了。

为什么我不能创建一个客户客户帐户?

EN

回答 1

Stack Overflow用户

发布于 2021-06-22 23:32:04

我相信,如果您使用的是测试管理器帐户,则必须通过web创建新的客户端帐户。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68068440

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档