Hi, Working with the sandbox got slightly more complex with v201109 release, since clientEmail header is no longer supported. Also, clientId is not the right header name, it should be clientCustomerId.
To use the sandbox with v201109, you could follow this sequence: 1. Call getAllCampaigns without any clientCustomerId header. This will give you an empty list, but will also initialize the sandbox. 2. Call getAccountHierarchy without any clientCustomerid header. This will give you the sandbox accounts, and their customer ids. 3. Call addCampaign with any one of the clientCustomerId returned by the previous call. The detailed logs are given below for your reference, and will work with curl. That said, try using a client library for easier development. See http://code.google.com/apis/adwords/docs/clientlibraries.html for details. -----------------BEGIN API CALL--------------------- Request ------- <?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/cm/v201109"> <authToken xmlns="https://adwords.google.com/api/adwords/cm/v201109">***</authToken> <developerToken xmlns="https://adwords.google.com/api/adwords/cm/v201109">***</developerToken> <userAgent xmlns="https://adwords.google.com/api/adwords/cm/v201109">AwApi-DotNet-0.0.0|INSERT_YOUR_COMPANY_OR_APPLICATION_NAME_HERE</userAgent> </RequestHeader> </soap:Header> <soap:Body> <get xmlns="https://adwords.google.com/api/adwords/cm/v201109"> <serviceSelector> <fields>Id</fields> <fields>Name</fields> <fields>Status</fields> </serviceSelector> </get> </soap:Body> </soap:Envelope> Response -------- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201109"> <requestId>0004afa05edd9e080a0c470200002468</requestId> <serviceName>CampaignService</serviceName> <methodName>get</methodName> <operations>1</operations> <responseTime>394</responseTime> <units>1</units> </ResponseHeader> </soap:Header> <soap:Body> <getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201109"> <rval> <totalNumEntries>0</totalNumEntries> <Page.Type>CampaignPage</Page.Type> <totalBudget> <period>DAILY</period> <amount> <ComparableValue.Type>Money</ComparableValue.Type> <microAmount>0</microAmount> </amount> <deliveryMethod>STANDARD</deliveryMethod> </totalBudget> </rval> </getResponse> </soap:Body> </soap:Envelope> -----------------BEGIN API CALL--------------------- Request ------- <?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/v201109"> <authToken xmlns="https://adwords.google.com/api/adwords/cm/v201109">****</authToken> <developerToken xmlns="https://adwords.google.com/api/adwords/cm/v201109">****</developerToken> <userAgent xmlns="https://adwords.google.com/api/adwords/cm/v201109">AwApi-DotNet-0.0.0|INSERT_YOUR_COMPANY_OR_APPLICATION_NAME_HERE</userAgent> </RequestHeader> </soap:Header> <soap:Body> <get xmlns="https://adwords.google.com/api/adwords/mcm/v201109"> <selector> <enablePaging>false</enablePaging> </selector> </get> </soap:Body> </soap:Envelope> Response -------- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201109" xmlns="https://adwords.google.com/api/adwords/mcm/v201109"> <ns2:requestId>0004afa05f1557a80a8363290000419f</ns2:requestId> <ns2:operations>0</ns2:operations> <ns2:responseTime>16016</ns2:responseTime> <ns2:units>0</ns2:units> </ResponseHeader> </soap:Header> <soap:Body> <getResponse xmlns="https://adwords.google.com/api/adwords/mcm/v201109" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201109"> <rval> <accounts> <customerId>6125775089</customerId> <login>client_1+****</login> <companyName/> <canManageClients>false</canManageClients> </accounts> <accounts> <customerId>4356359989</customerId> <login>client_2+****</login> <companyName/> <canManageClients>false</canManageClients> </accounts> <accounts> <customerId>2586944889</customerId> <login>client_3+****</login> <companyName/> <canManageClients>false</canManageClients> </accounts> <accounts> <customerId>9817529789</customerId> <login>client_4+****</login> <companyName/> <canManageClients>false</canManageClients> </accounts> <accounts> <customerId>5964195538</customerId> <login>client_5+****</login> <companyName/> <canManageClients>false</canManageClients> </accounts> <links> <managerId> <id>0</id> </managerId> <clientId> <id>6125775089</id> </clientId> <typeOfLink>ESTABLISHED</typeOfLink> <descriptiveName/> <Link.Type>Link</Link.Type> </links> <links> <managerId> <id>0</id> </managerId> <clientId> <id>4356359989</id> </clientId> <typeOfLink>ESTABLISHED</typeOfLink> <descriptiveName/> <Link.Type>Link</Link.Type> </links> <links> <managerId> <id>0</id> </managerId> <clientId> <id>2586944889</id> </clientId> <typeOfLink>ESTABLISHED</typeOfLink> <descriptiveName/> <Link.Type>Link</Link.Type> </links> <links> <managerId> <id>0</id> </managerId> <clientId> <id>9817529789</id> </clientId> <typeOfLink>ESTABLISHED</typeOfLink> <descriptiveName/> <Link.Type>Link</Link.Type> </links> <links> <managerId> <id>0</id> </managerId> <clientId> <id>5964195538</id> </clientId> <typeOfLink>ESTABLISHED</typeOfLink> <descriptiveName/> <Link.Type>Link</Link.Type> </links> </rval> </getResponse> </soap:Body> </soap:Envelope> -----------------END API CALL----------------------- -----------------BEGIN API CALL--------------------- Request ------- <?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/cm/v201109"> <authToken xmlns="https://adwords.google.com/api/adwords/cm/v201109">****</authToken> <developerToken xmlns="https://adwords.google.com/api/adwords/cm/v201109">****</developerToken> <clientCustomerId xmlns="https://adwords.google.com/api/adwords/cm/v201109">9817529789</clientCustomerId> <userAgent xmlns="https://adwords.google.com/api/adwords/cm/v201109">AwApi-DotNet-0.0.0|INSERT_YOUR_COMPANY_OR_APPLICATION_NAME_HERE</userAgent> </RequestHeader> </soap:Header> <soap:Body> <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201109"> <operations> <operator>ADD</operator> <operand> <name>Interplanetary Cruise #1319003788638.36</name> <status>PAUSED</status> <budget> <period>DAILY</period> <amount> <microAmount>50000000</microAmount> </amount> <deliveryMethod>STANDARD</deliveryMethod> </budget> <biddingStrategy xsi:type="ManualCPC"/> <networkSetting> <targetGoogleSearch>true</targetGoogleSearch> <targetSearchNetwork>true</targetSearchNetwork> <targetContentNetwork>false</targetContentNetwork> <targetContentContextual>false</targetContentContextual> <targetPartnerSearchNetwork>false</targetPartnerSearchNetwork> </networkSetting> </operand> </operations> </mutate> </soap:Body> </soap:Envelope> Response -------- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201109"> <requestId>0004afa0808318d00a0cb81100006671</requestId> <serviceName>CampaignService</serviceName> <methodName>mutate</methodName> <operations>1</operations> <responseTime>252</responseTime> <units>1</units> </ResponseHeader> </soap:Header> <soap:Body> <mutateResponse xmlns="https://adwords.google.com/api/adwords/cm/v201109"> <rval> <ListReturnValue.Type>CampaignReturnValue</ListReturnValue.Type> <value> <id>417652</id> <name>Interplanetary Cruise #1319003788638.36</name> <status>PAUSED</status> <servingStatus>SERVING</servingStatus> <startDate>20111019</startDate> <endDate>20371230</endDate> <budget> <period>DAILY</period> <amount> <ComparableValue.Type>Money</ComparableValue.Type> <microAmount>50000000</microAmount> </amount> <deliveryMethod>STANDARD</deliveryMethod> </budget> <biddingStrategy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ManualCPC"> <BiddingStrategy.Type>ManualCPC</BiddingStrategy.Type> <enhancedCpcEnabled>false</enhancedCpcEnabled> </biddingStrategy> <conversionOptimizerEligibility> <eligible>false</eligible> <rejectionReasons>CAMPAIGN_IS_NOT_ACTIVE</rejectionReasons> </conversionOptimizerEligibility> <adServingOptimizationStatus>OPTIMIZE</adServingOptimizationStatus> <frequencyCap> <impressions>0</impressions> </frequencyCap> <networkSetting> <targetGoogleSearch>true</targetGoogleSearch> <targetSearchNetwork>true</targetSearchNetwork> <targetContentNetwork>false</targetContentNetwork> <targetContentContextual>false</targetContentContextual> <targetPartnerSearchNetwork>false</targetPartnerSearchNetwork> </networkSetting> </value> </rval> </mutateResponse> </soap:Body> </soap:Envelope> -----------------END API CALL----------------------- Cheers, Anash P. Oommen, AdWords API Advisor. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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