Also, it is probably worth downloading a client library in another language 
and running the code example with logging turned on just to capture the 
outgoing and incoming xml structure. You could then use that in your asp 
script.

We have a .NET library at  
http://code.google.com/p/google-api-adwords-dotnet/, with code examples in 
VB.NET, which is somewhat similar to VBA that classic ASP uses.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Tuesday, 27 March 2012 16:34:12 UTC+5:30, Oddball wrote:
>
> I have been given the task of upgrading our google adwords from v201101 to 
> v201109 which has been developed in ASP (classic it must be noted) 
> and I am coming up against error after error while trying to understand 
> what the new API wants (very difficult considering the total lack of XML 
> example structuring given, which is funny considering I've found XML is 
> still considered a supported language, but I digress).
>
> After sorting the soap header out, I'm now onto the mutate body trying to 
> get the bids to work with ManualCPCAdGroupBids and all I'm getting is 
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>   <soap:Header>
>      <ResponseHeader xmlns="
> https://adwords.google.com/api/adwords/cm/v201109";>   
>        <requestId>**************************000047a3</requestId>
>        <serviceName>AdGroupService</serviceName>
>        <methodName>mutate</methodName>
>          
> <operations>1</operations><responseTime>534</responseTime><units>5</units>
>     </ResponseHeader>
>   </soap:Header>
>   <soap:Body>
>     <soap:Fault> 
>       <faultcode>soap:Server</faultcode>
>       <faultstring>[RequiredError.REQUIRED @ 
> operations[0].operand.experimentData.experimentId]</faultstring>
>       <detail><ApiExceptionFault xmlns="
> https://adwords.google.com/api/adwords/cm/v201109";>
>         <message>[RequiredError.REQUIRED @ 
> operations[0].operand.experimentData.experimentId]</message>  
>         <ApplicationException.Type>ApiException</ApplicationException.Type>
>           <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="RequiredError">
>             
> <fieldPath>operations[0].operand.experimentData.experimentId</fieldPath>
>             <trigger></trigger>
>             <errorString>RequiredError.REQUIRED</errorString>
>             <ApiError.Type>RequiredError</ApiError.Type>
>             <reason>REQUIRED</reason>
>           </errors>
>         </ApiExceptionFault>
>       </detail>
>     </soap:Fault>
>   </soap:Body>
> </soap:Envelope>
>
> The string going out is as follows 
>
> <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
> ">426-***-*****</clientcustomerid>
>             <useragent xmlns="
> https://adwords.google.com/api/adwords/cm/v201109
> ">****************</useragent>
>         </requestheader>
>     </soap:header>
>     <soap:body>
> <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201109
> "><operations>
>     <operator>SET</operator>
>         <operand>
>             <id>*****************</id>
>             <bids xsi:type="ManualCPCAdGroupBids">
>                 <keywordmaxcpc>
>                     <amount>
>                         <microamount>750000</microamount>
>                     </amount>
>                 </keywordmaxcpc>
>             </bids>
>             <experimentdata>
>                 <experimentdatastatus>ACTIVE</experimentdatastatus>
>             </experimentdata>
>         </operand>
>     </operations>
> </mutate>
> </soap:body>
> </soap:envelope>
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to