Hi Roy,

Since you are migrating, my recommendation would be to move to v201209, 
which is the latest version of the AdWords API. The steps in 
v201109->v201206 migration guide are valid for v201209 as well, except that 
you will be making call to a different API version. To answer the rest of 
your questions,

1. Yes, you need to upgrade to the latest version of the PHP library. The 
latest version is v3.2.1, available here: 
http://code.google.com/p/google-api-adwords-php/downloads/detail?name=aw_api_php_lib_3.2.1.tar.gz&can=2&q=.
 
The core features would be mostly unchanged from the v201109 to v201209. 
You can refer to the Changelog for additional details. 
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/ChangeLog

2. You do not need to rewrite the whole code. For lines like these:

$adGroupAdService = $user->GetService('AdGroupAdService', 'v201109_1');

you need to replace v201109_1 with v201209.

3. For most part, you don't need additional code changes. However, if your 
code uses one of the features listed in the migration guide (
https://developers.google.com/adwords/api/docs/guides/migration-v201206), 
you need to rewrite that part of the code. E.g. If you used 
ServicedAccountService to download your account hierarchy, you need to 
rewrite that to use ManagedCustomerService instead.

The client library distribution has code examples for all the supported API 
versions, and they cover the common use cases. In most cases, you can 
compare the code example for different versions to figure out what the 
change is. E.g. 

v201109 code example that uses ServicedAccountService: 
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201109_1/AccountManagement/GetAccountHierarchy.php
v201206 code example that uses 
ManagedCustomerService: 
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201209/AccountManagement/GetAccountHierarchy.php

If you still face specific issues, feel free to ask on this thread, and we 
will help you out.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Tuesday, 30 October 2012 21:51:44 UTC+5:30, Roy Roes wrote:
>
> Hi,
>  
> I have some problems understanding the API migration to v201206
>  
> I'm currently using v201109_1 with a PHP client library
> I've read the guide: 
> https://developers.google.com/adwords/api/docs/guides/migration-v201206
>  
> Now I'm not sure what to migrate.
> Do I need a need a new PHP client library?
>  
> I use lines of code like:
> $adGroupAdService = $user->GetService('AdGroupAdService', 'v201109_1');
> Does anything change here?
> Do I have to rewrite my whole code?
>  
> In my soap_xml.log I see errors appear like:
> <?xml version="1.0"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>   <soap:Header>
>     <ResponseHeader xmlns="
> https://adwords.google.com/api/adwords/cm/v201109_1";>
>       <requestId>0004cd48ec1b4c500aeda644000022c0</requestId>
>       <serviceName>AdGroupService</serviceName>
>       <methodName>mutate</methodName>
>       <operations>0</operations>
>       <responseTime>27</responseTime>
>       <units>1</units>
>     </ResponseHeader>
>   </soap:Header>
>   <soap:Body>
>     <soap:Fault>
>       <faultcode>soap:Server</faultcode>
>       <faultstring>[RequestError.INVALID_INPUT @ ; 
> trigger:'v201109_1']</faultstring>
>       <detail>
>         <ApiExceptionFault xmlns="
> https://adwords.google.com/api/adwords/cm/v201109_1";>
>           <message>[RequestError.INVALID_INPUT @ ; 
> trigger:'v201109_1']</message>
>           
> <ApplicationException.Type>ApiException</ApplicationException.Type>
>           <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="RequestError">
>             <fieldPath/>
>             <trigger>v201109_1</trigger>
>             <errorString>RequestError.INVALID_INPUT</errorString>
>             <ApiError.Type>RequestError</ApiError.Type>
>             <reason>INVALID_INPUT</reason>
>           </errors>
>         </ApiExceptionFault>
>       </detail>
>     </soap:Fault>
>   </soap:Body>
> </soap:Envelope>
>  
> So there's certainly something wrong there....
>  
> Any help would be appreciated!
>

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

Reply via email to