Hi Anash,
Details are correct, I could able to get the details of
"ServicedAccountService", following code is working fine, I'm able to
see the account details
Problem is only with Campaign + Keywords etc.,
ServicedAccountService servicedAccountService =
(ServicedAccountService)user.GetService(AdWordsService.v201101.ServicedAccountService);
string AcountDetailsQuery = null;
ServicedAccountSelector selector = new
ServicedAccountSelector();
selector.serviceTypes = new ServiceType[]
{ ServiceType.UI_AND_API, ServiceType.API_ONLY };
selector.enablePaging = false;
try
{
ServicedAccountGraph graph =
servicedAccountService.get(selector);
if (graph != null && graph.accounts != null)
{
// Display the accounts.
//AcountDetailsQuery += "There are {0} customers
under this account hierarchy." + graph.accounts.Length;
for (int i = 0; i < graph.accounts.Length; i++)
{
AcountDetailsQuery +=
graph.accounts[i].customerId + "<br>" + graph.accounts[i].login +
"<br>" + graph.accounts[i].companyName + "<br>" +
graph.accounts[i].canManageClients + "<hr>";
}
// Display the links.
foreach (Link link in graph.links)
{
AcountDetailsQuery += "LINKS" +
link.typeOfLink + "<br>" + link.serviceType + "<br>" +
link.managerId.id + "<br>" +
link.clientId.id + "<hr>";
}
}
}
catch (Exception ex)
{
AcountDetailsQuery += "Failed to retrieve accounts.
Exception says \"{0}\"" + ex.Message;
}
return AcountDetailsQuery;
On Jul 8, 11:15 am, "Anash P. Oommen" <
anash.p...@google.com>
wrote: