NotWhitelistedError.CUSTOMER_NOT_WHITELISTED_FOR_API

87 views
Skip to first unread message

Roman Prokhorov

unread,
Jan 27, 2020, 4:20:27 AM1/27/20
to AdWords API and Google Ads API Forum
Hello!

I'm tring to retrieve BudgetOrderService data for all 50+ clients of MCC-account. Most of data is getting correctly, but queries for 2 accounts return errors like this:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ns2:ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/billing/v201809" xmlns="https://adwords.google.com/api/adwords/cm/v201809"><requestId>00059d178c5315f80a812315b60cd727</requestId><serviceName>BudgetOrderService</serviceName><methodName>get</methodName><operations>1</operations><responseTime>129</responseTime></ns2:ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[NotWhitelistedError.CUSTOMER_NOT_WHITELISTED_FOR_API @ ; trigger:'Customer is not a manager']</faultstring><detail><ns2:ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809" xmlns:ns2="https://adwords.google.com/api/adwords/billing/v201809"><message>[NotWhitelistedError.CUSTOMER_NOT_WHITELISTED_FOR_API @ ; trigger:'Customer is not a manager']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="NotWhitelistedError"><fieldPath></fieldPath><trigger>Customer is not a manager</trigger><errorString>NotWhitelistedError.CUSTOMER_NOT_WHITELISTED_FOR_API</errorString><ApiError.Type>NotWhitelistedError</ApiError.Type><reason>CUSTOMER_NOT_WHITELISTED_FOR_API</reason></errors></ns2:ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

But my MCC-account (
881-280-3214) IS a manager/administrator for this account (526-973-2272), I can see it in Ads UI. All other setting are also similar to same settings of subaccounts, for which script works correctly.

We've tried to write to our Ads personal managers to give all necessary permissions, but they sent us to forum.

How to fix this problem?

Thanks!

Google Ads API Forum Advisor Prod

unread,
Jan 27, 2020, 2:13:57 PM1/27/20
to roman.s....@gmail.com, adwor...@googlegroups.com

Hi Roman,

Thanks for reaching out to us. I took a look at your account hierarchy and found that your MCC account (881-280-3214) does not directly manage the MCC account (526-973-2272). However, I do see that both accounts have one account that is managed by both accounts, which has a CID of 241-343-3532. Is this account an account you also have issues with? Or is it just the MCC account 526-973-2272? Please let me know.

Thank you,
Bryan, Google Ads API Team



ref:_00D1U1174p._5001USx03G:ref

Roman Prokhorov

unread,
Jan 28, 2020, 5:14:41 AM1/28/20
to AdWords API and Google Ads API Forum
Hi Bryan!

Sorry, there was a mistake in my first message. My MCC-account is 881-280-3214, and I try to get budget for account 241-343-3532, so error is result of this SOAP request:

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" xmlns:ns2="https://adwords.google.com/api/adwords/billing/v201809"><SOAP-ENV:Header><ns2:RequestHeader><ns1:clientCustomerId>2413433532</ns1:clientCustomerId><ns1:developerToken>*REMOVED*</ns1:developerToken><ns1:userAgent>DS_finbot (Google Apps Script)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns2:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns2:getBillingAccounts></ns2:getBillingAccounts></SOAP-ENV:Body></SOAP-ENV:Envelope>

881-280-3214 is managing account for 241-343-3532, and we have no access to 526-973-2272 (it's MCC, which client used before work with us).



понедельник, 27 января 2020 г., 22:13:57 UTC+3 пользователь adsapiforumadvisor написал:

Roman Prokhorov

unread,
Jan 28, 2020, 10:38:05 AM1/28/20
to AdWords API and Google Ads API Forum
We've removed account 526-973-2272 from management of 241-343-3532 , but script still have same problem : (

вторник, 28 января 2020 г., 13:14:41 UTC+3 пользователь Roman Prokhorov написал:

Google Ads API Forum Advisor Prod

unread,
Jan 28, 2020, 2:09:41 PM1/28/20
to roman.s....@gmail.com, adwor...@googlegroups.com

Hi Roman,

Thank you for the clarification. I’ve checked up on the account 241-343-3532 and see that the issue could be because this account is not set up on your MCC account (881-280-3214) consolidated billing plan. I looked in “Tools & Settings” > “Billing Settings” > “Billing Transfers” and see that your billing transfer setup (consolidated billing) is different than your other accounts. You can see more about setting up the correct consolidated billing for existing accounts here. Let me know if you run into further issues.

Roman Prokhorov

unread,
Jan 29, 2020, 3:59:05 AM1/29/20
to AdWords API and Google Ads API Forum
Thanks, Bryan!

We deleted direct accesses from problem accounts, now it’s only MCC access. Also we added MCC-account to billing settings, and now everything works fine.


вторник, 28 января 2020 г., 22:09:41 UTC+3 пользователь adsapiforumadvisor написал:
Reply all
Reply to author
Forward
0 new messages