Re: ManagedCustomerService get: different results links vs entries
Hi Carmine, Could you reply privately to author with your SOAP request and response as well as your client customer id, so that I can troubleshoot further? Regarding *using key present in links list* that you mentioned, could you give a specific example? Regards, Dhanya, AdWords API Team -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/0c8b51b6-ea04-45d5-947a-c2dac98182e3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ManagedCustomerService get: different results links vs entries
Hello Dhanya, the method fails because of a NullPointerException, in partiicular on this line: parentNode.childAccounts.add(childNode); because we get a null parentNode, we are using a key present in the links list but not in the entries list. Why is that? Thanks a lot for your support Kind regards Carmine On Friday, September 7, 2018 at 11:18:08 PM UTC+2, Dhanya Sundararaju (AdWords API Team) wrote: > > Hi Carmine, > > The example gets the account hierarchy under the current account. If your > current account is a MCC id, this will get all the accounts under that MCC. > Could you please elaborate what you mean by 'failure of the method' along > with SOAP request and response as well as your client customer id? You may > opt to reply privately to author. > > Regards, > Dhanya, AdWords API Team > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/fe828312-578b-4df2-93b7-99601f81b275%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ManagedCustomerService get: different results links vs entries
Hi Carmine, The example gets the account hierarchy under the current account. If your current account is a MCC id, this will get all the accounts under that MCC. Could you please elaborate what you mean by 'failure of the method' along with SOAP request and response as well as your client customer id? You may opt to reply privately to author. Regards, Dhanya, AdWords API Team -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/86827cc6-15eb-4888-ac4e-64108962bc31%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
ManagedCustomerService get: different results links vs entries
Hi to all, I used the following guide: https://developers.google.com/adwords/api/docs/samples/java/account-management#get-the-account-hierarchy-under-the-current-account. I noticed that different *managerCustomerId* values are present in links list but not in entries list (*customerId*). This involves the failure of the method, in particular at this level (code below). for (Entry parentIdEntry : parentIdToChildIds.entries()) { parentNode = customerIdToCustomerNode.get(parentIdEntry.getKey()); childNode = customerIdToCustomerNode.get(parentIdEntry.getValue()); childNode.parentNode = parentNode; parentNode.childAccounts.add(childNode); } How can fix it? Can you help me to find a solution? Thanks CarmineP -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/7e51f806-0249-41ea-a52d-e8a14c63f60c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.