Error creating accounts in sub manager accounts
Hi, Forum: Im having problems creating accounts in sub manager accounts. If i create an account with an MCC account all works perfectly, here is the request: ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Header ns1:RequestHeader soapenv:mustUnderstand=0 xmlns:ns1=https://adwords.google.com/api/adwords/mcm/v201409; ns2:clientCustomerId xmlns:ns2=https://adwords.google.com/api/adwords/cm/v201409;1893844881/ns2:clientCustomerId ns3:developerToken xmlns:ns3=https://adwords.google.com/api/adwords/cm/v201409;XX/ns3:developerToken ns4:userAgent xmlns:ns4=https://adwords.google.com/api/adwords/cm/v201409;XX (AwApi-Java, AdWords-Axis/1.37.0, Common-Java/1.37.0, Axis/1.4, Java/1.7.0_17, maven)/ns4:userAgent ns5:validateOnly xmlns:ns5=https://adwords.google.com/api/adwords/cm/v201409;false/ns5:validateOnly ns6:partialFailure xmlns:ns6=https://adwords.google.com/api/adwords/cm/v201409;false/ns6:partialFailure /ns1:RequestHeader /soapenv:Header soapenv:Body mutate xmlns=https://adwords.google.com/api/adwords/mcm/v201409; operations ns7:operator xmlns:ns7=https://adwords.google.com/api/adwords/cm/v201409;ADD/ns7:operator operand nameTest account from MCC/name currencyCodeUSD/currencyCode dateTimeZoneAmerica/Chicago/dateTimeZone /operand /operations /mutate /soapenv:Body /soapenv:Envelope And the response: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Header ns2:ResponseHeader xmlns:ns2=https://adwords.google.com/api/adwords/mcm/v201409; xmlns=https://adwords.google.com/api/adwords/cm/v201409; requestId0005179e8655fc580ac4f6e99b00cd0b/requestId serviceNameManagedCustomerService/serviceName methodNamemutate/methodName operations0/operations responseTime698/responseTime /ns2:ResponseHeader /soap:Header soap:Body ns2:mutateResponse xmlns=https://adwords.google.com/api/adwords/cm/v201409; xmlns:ns2=https://adwords.google.com/api/adwords/mcm/v201409; ns2:rval ns2:value ns2:nameTest account from MCC/ns2:name ns2:customerId4117105163/ns2:customerId ns2:canManageClientsfalse/ns2:canManageClients ns2:currencyCodeUSD/ns2:currencyCode ns2:dateTimeZoneAmerica/Chicago/ns2:dateTimeZone /ns2:value /ns2:rval /ns2:mutateResponse /soap:Body /soap:Envelope But if i use the sub mcc account, sending this: ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Header ns1:RequestHeader soapenv:mustUnderstand=0 xmlns:ns1=https://adwords.google.com/api/adwords/mcm/v201409; ns2:clientCustomerId xmlns:ns2=https://adwords.google.com/api/adwords/cm/v201409;5435475134/ns2:clientCustomerId ns3:developerToken xmlns:ns3=https://adwords.google.com/api/adwords/cm/v201409;/ns3:developerToken ns4:userAgent xmlns:ns4=https://adwords.google.com/api/adwords/cm/v201409;X (AwApi-Java, AdWords-Axis/1.37.0, Common-Java/1.37.0, Axis/1.4, Java/1.7.0_17, maven)/ns4:userAgent ns5:validateOnly xmlns:ns5=https://adwords.google.com/api/adwords/cm/v201409;false/ns5:validateOnly ns6:partialFailure xmlns:ns6=https://adwords.google.com/api/adwords/cm/v201409;false/ns6:partialFailure /ns1:RequestHeader /soapenv:Header soapenv:Body mutate xmlns=https://adwords.google.com/api/adwords/mcm/v201409; operations ns7:operator xmlns:ns7=https://adwords.google.com/api/adwords/cm/v201409;ADD/ns7:operator operand nameTest account from Sub MCC/name currencyCodeUSD/currencyCode dateTimeZoneAmerica/Chicago/dateTimeZone /operand /operations /mutate /soapenv:Body /soapenv:Envelope I get the following error: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Header ns2:ResponseHeader xmlns:ns2=https://adwords.google.com/api/adwords/mcm/v201409; xmlns=https://adwords.google.com/api/adwords/cm/v201409; requestId0005179ea5cfa6110ac44509070071d7/requestId serviceNameManagedCustomerService/serviceName methodNamemutate/methodName operations0/operations responseTime51/responseTime /ns2:ResponseHeader /soap:Header soap:Body soap:Fault faultcodesoap:Server/faultcode faultstring[AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'lt;nullgt;']/faultstring detail ns2:ApiExceptionFault xmlns=https://adwords.google.com/api/adwords/cm/v201409; xmlns:ns2=https://adwords.google.com/api/adwords/mcm/v201409; message[AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'lt;nullgt;']/message ApplicationException.TypeApiException/ApplicationException.Type errors xsi:type=AuthorizationError xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; fieldPath/ triggerlt;nullgt;/trigger errorStringAuthorizationError.USER_PERMISSION_DENIED/errorString ApiError.TypeAuthorizationError/ApiError.Type reasonUSER_PERMISSION_DENIED/reason /errors /ns2:ApiExceptionFault /detail
Re: Error creating accounts in sub manager accounts
Hello Emiliano, The account 5435475134 is not a sub-account of account 1893844881, so if you are using the same credentials, the request is expected to fail. Please make sure the login you are authorized with has administrative access to the MCC you specify in clientCustomerId field. -Danial, AdWords API Team. On Wednesday, June 3, 2015 at 5:31:36 PM UTC+2, Emiliano Martinez wrote: Hi, Forum: Im having problems creating accounts in sub manager accounts. If i create an account with an MCC account all works perfectly, here is the request: ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; soapenv:Header ns1:RequestHeader soapenv:mustUnderstand=0 xmlns:ns1= https://adwords.google.com/api/adwords/mcm/v201409; ns2:clientCustomerId xmlns:ns2= https://adwords.google.com/api/adwords/cm/v201409 1893844881/ns2:clientCustomerId ns3:developerToken xmlns:ns3= https://adwords.google.com/api/adwords/cm/v201409 XX/ns3:developerToken ns4:userAgent xmlns:ns4= https://adwords.google.com/api/adwords/cm/v201409;XX (AwApi-Java, AdWords-Axis/1.37.0, Common-Java/1.37.0, Axis/1.4, Java/1.7.0_17, maven)/ns4:userAgent ns5:validateOnly xmlns:ns5= https://adwords.google.com/api/adwords/cm/v201409 false/ns5:validateOnly ns6:partialFailure xmlns:ns6= https://adwords.google.com/api/adwords/cm/v201409 false/ns6:partialFailure /ns1:RequestHeader /soapenv:Header soapenv:Body mutate xmlns=https://adwords.google.com/api/adwords/mcm/v201409; operations ns7:operator xmlns:ns7=https://adwords.google.com/api/adwords/cm/v201409 ADD/ns7:operator operand nameTest account from MCC/name currencyCodeUSD/currencyCode dateTimeZoneAmerica/Chicago/dateTimeZone /operand /operations /mutate /soapenv:Body /soapenv:Envelope And the response: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Header ns2:ResponseHeader xmlns:ns2= https://adwords.google.com/api/adwords/mcm/v201409; xmlns= https://adwords.google.com/api/adwords/cm/v201409; requestId0005179e8655fc580ac4f6e99b00cd0b/requestId serviceNameManagedCustomerService/serviceName methodNamemutate/methodName operations0/operations responseTime698/responseTime /ns2:ResponseHeader /soap:Header soap:Body ns2:mutateResponse xmlns= https://adwords.google.com/api/adwords/cm/v201409; xmlns:ns2= https://adwords.google.com/api/adwords/mcm/v201409; ns2:rval ns2:value ns2:nameTest account from MCC/ns2:name ns2:customerId4117105163/ns2:customerId ns2:canManageClientsfalse/ns2:canManageClients ns2:currencyCodeUSD/ns2:currencyCode ns2:dateTimeZoneAmerica/Chicago/ns2:dateTimeZone /ns2:value /ns2:rval /ns2:mutateResponse /soap:Body /soap:Envelope But if i use the sub mcc account, sending this: ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; soapenv:Header ns1:RequestHeader soapenv:mustUnderstand=0 xmlns:ns1= https://adwords.google.com/api/adwords/mcm/v201409; ns2:clientCustomerId xmlns:ns2= https://adwords.google.com/api/adwords/cm/v201409 5435475134/ns2:clientCustomerId ns3:developerToken xmlns:ns3= https://adwords.google.com/api/adwords/cm/v201409 /ns3:developerToken ns4:userAgent xmlns:ns4= https://adwords.google.com/api/adwords/cm/v201409;X (AwApi-Java, AdWords-Axis/1.37.0, Common-Java/1.37.0, Axis/1.4, Java/1.7.0_17, maven)/ns4:userAgent ns5:validateOnly xmlns:ns5= https://adwords.google.com/api/adwords/cm/v201409 false/ns5:validateOnly ns6:partialFailure xmlns:ns6= https://adwords.google.com/api/adwords/cm/v201409 false/ns6:partialFailure /ns1:RequestHeader /soapenv:Header soapenv:Body mutate xmlns=https://adwords.google.com/api/adwords/mcm/v201409; operations ns7:operator xmlns:ns7=https://adwords.google.com/api/adwords/cm/v201409 ADD/ns7:operator operand nameTest account from Sub MCC/name currencyCodeUSD/currencyCode dateTimeZoneAmerica/Chicago/dateTimeZone /operand /operations /mutate /soapenv:Body /soapenv:Envelope I get the following error: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Header ns2:ResponseHeader xmlns:ns2= https://adwords.google.com/api/adwords/mcm/v201409; xmlns= https://adwords.google.com/api/adwords/cm/v201409; requestId0005179ea5cfa6110ac44509070071d7/requestId serviceNameManagedCustomerService/serviceName methodNamemutate/methodName operations0/operations responseTime51/responseTime /ns2:ResponseHeader /soap:Header soap:Body soap:Fault faultcodesoap:Server/faultcode faultstring[AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'lt;nullgt;']/faultstring detail ns2:ApiExceptionFault xmlns= https://adwords.google.com/api/adwords/cm/v201409;
Re: Error creating accounts in sub manager accounts
Danial, Thank you very much! We were mixing ids from production and test! Next time im going to be checking everything before posting :( Regards Emiliano 2015-06-03 12:53 GMT-03:00 Danial Klimkin adwordsapiadvisor+dan...@google.com: Hello Emiliano, The account 5435475134 is not a sub-account of account 1893844881, so if you are using the same credentials, the request is expected to fail. Please make sure the login you are authorized with has administrative access to the MCC you specify in clientCustomerId field. -Danial, AdWords API Team. On Wednesday, June 3, 2015 at 5:31:36 PM UTC+2, Emiliano Martinez wrote: Hi, Forum: Im having problems creating accounts in sub manager accounts. If i create an account with an MCC account all works perfectly, here is the request: ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd= http://www.w3.org/2001/XMLSchema; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; soapenv:Header ns1:RequestHeader soapenv:mustUnderstand=0 xmlns:ns1= https://adwords.google.com/api/adwords/mcm/v201409; ns2:clientCustomerId xmlns:ns2= https://adwords.google.com/api/adwords/cm/v201409 1893844881/ns2:clientCustomerId ns3:developerToken xmlns:ns3= https://adwords.google.com/api/adwords/cm/v201409 XX/ns3:developerToken ns4:userAgent xmlns:ns4= https://adwords.google.com/api/adwords/cm/v201409;XX (AwApi-Java, AdWords-Axis/1.37.0, Common-Java/1.37.0, Axis/1.4, Java/1.7.0_17, maven)/ns4:userAgent ns5:validateOnly xmlns:ns5= https://adwords.google.com/api/adwords/cm/v201409 false/ns5:validateOnly ns6:partialFailure xmlns:ns6= https://adwords.google.com/api/adwords/cm/v201409 false/ns6:partialFailure /ns1:RequestHeader /soapenv:Header soapenv:Body mutate xmlns=https://adwords.google.com/api/adwords/mcm/v201409; operations ns7:operator xmlns:ns7= https://adwords.google.com/api/adwords/cm/v201409;ADD/ns7:operator operand nameTest account from MCC/name currencyCodeUSD/currencyCode dateTimeZoneAmerica/Chicago/dateTimeZone /operand /operations /mutate /soapenv:Body /soapenv:Envelope And the response: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Header ns2:ResponseHeader xmlns:ns2= https://adwords.google.com/api/adwords/mcm/v201409; xmlns= https://adwords.google.com/api/adwords/cm/v201409; requestId0005179e8655fc580ac4f6e99b00cd0b/requestId serviceNameManagedCustomerService/serviceName methodNamemutate/methodName operations0/operations responseTime698/responseTime /ns2:ResponseHeader /soap:Header soap:Body ns2:mutateResponse xmlns= https://adwords.google.com/api/adwords/cm/v201409; xmlns:ns2= https://adwords.google.com/api/adwords/mcm/v201409; ns2:rval ns2:value ns2:nameTest account from MCC/ns2:name ns2:customerId4117105163/ns2:customerId ns2:canManageClientsfalse/ns2:canManageClients ns2:currencyCodeUSD/ns2:currencyCode ns2:dateTimeZoneAmerica/Chicago/ns2:dateTimeZone /ns2:value /ns2:rval /ns2:mutateResponse /soap:Body /soap:Envelope But if i use the sub mcc account, sending this: ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd= http://www.w3.org/2001/XMLSchema; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; soapenv:Header ns1:RequestHeader soapenv:mustUnderstand=0 xmlns:ns1= https://adwords.google.com/api/adwords/mcm/v201409; ns2:clientCustomerId xmlns:ns2= https://adwords.google.com/api/adwords/cm/v201409 5435475134/ns2:clientCustomerId ns3:developerToken xmlns:ns3= https://adwords.google.com/api/adwords/cm/v201409 /ns3:developerToken ns4:userAgent xmlns:ns4= https://adwords.google.com/api/adwords/cm/v201409;X (AwApi-Java, AdWords-Axis/1.37.0, Common-Java/1.37.0, Axis/1.4, Java/1.7.0_17, maven)/ns4:userAgent ns5:validateOnly xmlns:ns5= https://adwords.google.com/api/adwords/cm/v201409 false/ns5:validateOnly ns6:partialFailure xmlns:ns6= https://adwords.google.com/api/adwords/cm/v201409 false/ns6:partialFailure /ns1:RequestHeader /soapenv:Header soapenv:Body mutate xmlns=https://adwords.google.com/api/adwords/mcm/v201409; operations ns7:operator xmlns:ns7= https://adwords.google.com/api/adwords/cm/v201409;ADD/ns7:operator operand nameTest account from Sub MCC/name currencyCodeUSD/currencyCode dateTimeZoneAmerica/Chicago/dateTimeZone /operand /operations /mutate /soapenv:Body /soapenv:Envelope I get the following error: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Header ns2:ResponseHeader xmlns:ns2= https://adwords.google.com/api/adwords/mcm/v201409; xmlns= https://adwords.google.com/api/adwords/cm/v201409; requestId0005179ea5cfa6110ac44509070071d7/requestId serviceNameManagedCustomerService/serviceName methodNamemutate/methodName operations0/operations responseTime51/responseTime /ns2:ResponseHeader