Hi Mirror, I'm not very familiar with the SoapClient library that the NoClientLibrary mentions, but behind the scenes, an AdWords API call is a plain HTTP POST to the AdWords API server. Here's a raw message I captured from the .NET client library using Fiddler:
POST https://adwords.google.com/api/adwords/mcm/v201209/ManagedCustomerService HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.5456) VsDebuggerCausalityData: uIDPozd4AtIf/8tEnF+MFM9XbocAAAAA0aM0vRj+LU+XngkrA/0xZYwvlcYWKrNLh30V7qh6j+wACQAA Content-Type: text/xml; charset=utf-8 SOAPAction: "" Host: adwords.google.com Content-Length: 1323 <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><RequestHeader xmlns="https://adwords.google.com/api/adwords/mcm/v201209"><authToken xmlns="https://adwords.google.com/api/adwords/cm/v201209">******</authToken><developerToken xmlns="https://adwords.google.com/api/adwords/cm/v201209">******</developerToken><userAgent xmlns="https://adwords.google.com/api/adwords/cm/v201209">******</userAgent></RequestHeader></soap:Header><soap:Body><get xmlns="https://adwords.google.com/api/adwords/mcm/v201209"><serviceSelector><fields xmlns="https://adwords.google.com/api/adwords/cm/v201209">Login</fields><fields xmlns="https://adwords.google.com/api/adwords/cm/v201209">CustomerId</fields><fields xmlns="https://adwords.google.com/api/adwords/cm/v201209">Name</fields></serviceSelector></get></soap:Body></soap:Envelope> It should be fairly straightforward to replicate this code using PHP and curl. Cheers, Anash P. Oommen, AdWords API Advisor. On Thursday, 25 October 2012 21:25:51 UTC+5:30, Mirror wrote: > > Hi! > > How can I get all "Clients ID" in MCC account, using > ServicedAccountService without Php Library Client? > I mean "No Client Library" method, like > http://code.google.com/p/google-api-adwords-php/wiki/NoClientLibrary > > If use PHP Library Client, it's like: > > include dirname(__FILE__) . > '/../../src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; > > $user = new AdWordsUser(); // you must have configured the > auth.ini file with your MCC manager info / developer token > $servicedAccountService = > $user->GetServicedAccountService('v201008'); > $selector = new ServicedAccountSelector(); > $graph = $servicedAccountService->get($selector); > > > > But If I not use Client library?? > Could you give an example of code? > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
