CUSTOMER_NOT_WHITELISTED_FOR_API Ads customer + MCC on the same account

122 views
Skip to first unread message

Yana Sergeeva

unread,
Dec 7, 2018, 10:56:33 AM12/7/18
to AdWords API and Google Ads API Forum
Hello!

I have an account in AdWords that consists of 2 customers - Ads and MCC.

adwords.png


If I tries to get a budget of MCC it's fine, but for the second customer i receive an error:
[NotWhitelistedError.CUSTOMER_NOT_WHITELISTED_FOR_API @ ; trigger:'Customer is not a manager']


But MCC customer has Admin role in Ads customer.
Where should i make changes?




adwords2.png




Thank you in advance.
Yana
Message has been deleted

Dhanya Sundararaju (AdWords API Team)

unread,
Dec 7, 2018, 3:07:50 PM12/7/18
to AdWords API and Google Ads API Forum
Hi Yana,

Could you reply back with both the client customer ids and also SOAP request and response which shows the error? You may opt to reply privately to author.

Regards,
Dhanya, AdWords API Team
Message has been deleted

Yana Sergeeva

unread,
Dec 11, 2018, 4:39:02 AM12/11/18
to AdWords API and Google Ads API Forum
I sent you a server response to your private email, then received a BitBounce letter to pay 0.05$ to be able to deliver my email, i clicked "Add to whitelist" and my macbook showed me a message i have a Trojan!!! Are you really from Google team? 

пятница, 7 декабря 2018 г., 22:07:50 UTC+2 пользователь Dhanya Sundararaju (AdWords API Team) написал:

Yana Sergeeva

unread,
Dec 11, 2018, 5:02:00 AM12/11/18
to AdWords API and Google Ads API Forum
I will send here as i am not sure you received and i don't want to have viruses.

235-894-7710 - Ads user - i have to get balance from it and receive an error. (prepaid)
677-390-5764 - MCC user - if i get balance for it - it's fine and correct.
They are on the same account.

API server response:

[2018-12-11 08:18:21] AW_SOAP.WARNING: clientCustomerId=235-894-7710 operations=1 service=BudgetOrderService method=get responseTime=65 requestId=00057cbab97800a00ac10b8a180eb3c5 server=adwords.google.com isFault=1 faultMessage=[NotWhitelistedError.CUSTOMER_NOT_WHITELISTED_FOR_API @ ; trigger:'Customer is not a manager']
[2018-12-11 08:18:21] AW_SOAP.NOTICE: POST /api/adwords/billing/v201806/BudgetOrderService?wsdl HTTP/1.1
Host: adwords.google.com
Connection: close
User-Agent: PHP-SOAP/7.1.19
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 809
Authorization: REDACTED


<?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/v201806" xmlns:ns2="https://adwords.google.com/api/adwords/billing/v201806"><SOAP-ENV:Header><ns2:RequestHeader><ns1:clientCustomerId>235-894-7710</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/37.1.0, PHP/7.1.19)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns2:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns2:get><ns2:serviceSelector><ns1:fields>spendingLimit</ns1:fields><ns1:fields>totalAdjustments</ns1:fields></ns2:serviceSelector></ns2:get></SOAP-ENV:Body></SOAP-ENV:Envelope>


HTTP
/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Tue, 11 Dec 2018 08:18:21 GMT
Expires: Tue, 11 Dec 2018 08:18:21 GMT
Cache-Control: private, max-age=0
X
-Content-Type-Options: nosniff
X
-Frame-Options: SAMEORIGIN
X
-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: quic=":443"; ma=2592000; v="44,43,39,35"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close


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


Error in session builder or BudgetOrderServicestring(94) "
[NotWhitelistedError.CUSTOMER_NOT_WHITELISTED_FOR_API @ ; trigger:'Customer is not a manager']"

I will be thankful if you could help.
Yana



пятница, 7 декабря 2018 г., 22:07:50 UTC+2 пользователь Dhanya Sundararaju (AdWords API Team) написал:
Hi Yana,

Dhanya Sundararaju (AdWords API Team)

unread,
Dec 11, 2018, 2:53:05 PM12/11/18
to AdWords API and Google Ads API Forum
Hi Yana,

As you have stated, the account 677-390-5764 is a MCC account and 235-894-7710 is a non-manager account. To get a list of BillingAccounts that client 235-894-7710 can use, you will need to call getBillingAccounts() by authenticating as MCC id: 677-390-5764. Please refer to this section of guide for better clarity.

Regarding the 'Bitbounce letter' that you received, I believe it is a third party and is not part of AdWords API Forum. 
Reply all
Reply to author
Forward
0 new messages