Hi, I have been working on a php script that works it's way through 4 main client managers mcc's (these are sub mcc's of a main account). Each of these client managers has around 30 clients each.
The script connects to the 1st and gets all client accounts. It then works though the 30 clients emails which have just been collected and gets all campaign info, adgroup info, ads and starts for the campaigns and adgroups for that account then moves onto the next client's account, when it reaches the end it then moves onto the next client managers mcc, and so on... (data is always for the day before) and the script will be run everyday once it works 100%. The data is output to an xml file as it is gathered. This all works pretty much perfectly, however randomly the adgroup stats when called will return no data, when there is data there to return. I am outputting all of the gathered data to xml and the majority of the file has all of relevant data, even agroup stats data, but there will be 1 to a handful of instances within the xml output where data just isnt there (this isnt an xml issue as I have also output to screen and the data is still missing) I can not find a common factor into why this happens. The only thing that i could find is that SOAP-ENV: differs between an instance that works and one that doesn't. Please see below: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/ envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP- ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns9316="http:// tempuri.org"> <SOAP-ENV:Header> <email>XXXXXX</email> <password>XXXXX</password> <clientEmail>XXXXXXX</clientEmail> <useragent>XXXXXXX</useragent> <developerToken>XXXXXXXXX</developerToken> <applicationToken>XXXXXXXXX</applicationToken> </SOAP-ENV:Header> <SOAP-ENV:Body> <getAdGroupStats> <campaignId>XXXXXXXXX</campaignId> <adGroupIds>XXXXXXXXX</adGroupIds> <startDay>2008-11-19</startDay> <endDay>2008-11-19</endDay> </getAdGroupStats> </SOAP-ENV:Body> </SOAP-ENV:Envelope> The above produces a working instance where data is output. The below produces an instance where no data is output <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/ soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/ envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP- ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Header> <email>XXXXXXXXX</email> <password>XXXXXXXXX</password> <clientEmail>XXXXXXXXX</clientEmail> <useragent>XXXXXXXXX</useragent> <developerToken>XXXXXXXXX</developerToken> <applicationToken>XXXXXXXXX</applicationToken> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns7333:getAdGroupStats xmlns:ns7333="http://tempuri.org"> <getAdGroupStats> <campaignId>XXXXXXXXX</campaignId> <adGroupIds>XXXXXXXXX</adGroupIds> <startDay>2008-11-19</startDay> <endDay>2008-11-19</endDay> </getAdGroupStats> </ns7333:getAdGroupStats> </SOAP-ENV:Body> </SOAP-ENV:Envelope> The script calls soapclientfactory.php as an include, which in turn calls nusoap.php. I purchased the nusoap lib files as part of an adwords package, that confused me more than anything. so i decided to code the script myself based around the php sample files on the api area of google. I tried a fresh download of nusoap originally as I know its open source but this wouldn't work, it just left my browser hanging when I called the script. I know php but in building this script have learnt how to output xml and also about soap but my knowledge in the soap area is next to nothing and any help would be greatly appreciated. Thanks Richard Hassall --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
