Hi Ewan,
 do i need a developer token even i'm working with sandbox environment??
 

Le lundi 15 octobre 2012 10:44:30 UTC+2, laid kalkoul a écrit :

> Hi Ewan, thank you for responding 
>  
> still get the same error, i'll post it for yuo to get a better look:
>  
>
> C:\Users\lkalkoul\Desktop\aw_api_php_lib_3.2.0\src>php ad1.php
> PHP Notice:  Undefined variable: auth in 
> C:\Users\lkalkoul\Desktop\aw_api_php_li
> b_3.2.0\src\ad1.php on line 55
> SoapFault Object
> (
>     [message:protected] => [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; 
> trigge
> r:'Client 'adwordsapi' belongs to the group 'ADWORDSAPI' and requires an 
> authent
> ication cookie']
>     [string:Exception:private] =>
>     [code:protected] => 0
>     [file:protected] => 
> C:\Users\lkalkoul\Desktop\aw_api_php_lib_3.2.0\src\ad1.p
> hp
>     [line:protected] => 73
>     [trace:Exception:private] => Array
>         (
>             [0] => Array
>                 (
>                     [file] => 
> C:\Users\lkalkoul\Desktop\aw_api_php_lib_3.2.0\src
> \ad1.php
>                     [line] => 73
>                     [function] => __soapCall
>                     [class] => SoapClient
>                     [type] => ->
>                     [args] => Array
>                         (
>                             [0] => get
>                             [1] => Array
>                                 (
>                                     [get] => Array
>                                         (
>                                             [serviceSelector] => Array
>                                                 (
>                                                     [fields] => Array
>                                                         (
>                                                             [0] => Id
>                                                             [1] => Name
>                                                         )
>                                                 )
>                                         )
>                                 )
>                             [2] =>
>                             [3] => SoapHeader Object
>                                 (
>                                     [namespace] => 
> https://adwords.google.com/ap
> i/adwords/cm/v201209
>                                     [name] => RequestHeader
>                                     [data] => Array
>                                         (
>                                             [developerToken] => 
> YOUR_DEV_TOKEN
>                                             [userAgent] => testing
>                                             [clientCustomerId] => 
> 261-981-2834
>                                             [authToken] =>
>                                         )
>                                     [mustUnderstand] =>
>                                 )
>                         )
>                 )
>         )
>     [previous:Exception:private] =>
>     [faultstring] => [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; 
> trigger:'Cli
> ent 'adwordsapi' belongs to the group 'ADWORDSAPI' and requires an 
> authenticatio
> n cookie']
>     [faultcode] => soap:Server
>     [detail] => stdClass Object
>         (
>             [ApiExceptionFault] => stdClass Object
>                 (
>                     [message] => 
> [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ;
> trigger:'Client 'adwordsapi' belongs to the group 'ADWORDSAPI' and 
> requires an a
> uthentication cookie']
>                     [ApplicationException.Type] => ApiException
>                     [errors] => SoapVar Object
>                         (
>                             [enc_type] => 0
>                             [enc_value] => stdClass Object
>                                 (
>                                     [fieldPath] =>
>                                     [trigger] => Client 'adwordsapi' 
> belongs to
> the group 'ADWORDSAPI' and requires an authentication cookie
>                                     [errorString] => 
> AuthenticationError.LOGIN_C
> OOKIE_REQUIRED
>                                     [ApiError.Type] => AuthenticationError
>                                     [reason] => LOGIN_COOKIE_REQUIRED
>                                 )
>                             [enc_stype] => AuthenticationError
>                             [enc_ns] => 
> https://adwords.google.com/api/adwords/c
> m/v201209
>                         )
>                 )
>         )
> )
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="
> http://schemas.xmlsoap.org/soap/envelope/"; xm
> lns:ns1="
> https://adwords.google.com/api/adwords/cm/v201209";><SOAP-ENV:Header><ns
>
> 1:RequestHeader><ns1:clientCustomerId>261-981-2834</ns1:clientCustomerId><ns1:de
>
> veloperToken>YOUR_DEV_TOKEN</ns1:developerToken><ns1:userAgent>testing</ns1:user
>
> Agent></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:get><ns1:service
>
> Selector><ns1:fields>Id</ns1:fields><ns1:fields>Name</ns1:fields></ns1:serviceSe
> lector></ns1:get></SOAP-ENV:Body></SOAP-ENV:Envelope>
> <soap:Envelope xmlns:soap="
> http://schemas.xmlsoap.org/soap/envelope/";><soap:Head
> er><ResponseHeader xmlns="
> https://adwords.google.com/api/adwords/cm/v201209";><re
>
> questId>0004cc14d6ef9b900aedaf010000620b</requestId><serviceName>CampaignService
>
> </serviceName><methodName>get</methodName><operations>0</operations><responseTim
>
> e>17</responseTime><units>0</units></ResponseHeader></soap:Header><soap:Body><so
>
> ap:Fault><faultcode>soap:Server</faultcode><faultstring>[AuthenticationError.LOG
> IN_COOKIE_REQUIRED @ ; trigger:'Client 'adwordsapi' belongs to the group 
> 'ADWORD
> SAPI' and requires an authentication 
> cookie']</faultstring><detail><ApiException
> Fault xmlns="
> https://adwords.google.com/api/adwords/cm/v201209";><message>[Authen
> ticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:'Client 'adwordsapi' 
> belongs to
> the group 'ADWORDSAPI' and requires an authentication 
> cookie']</message><Applica
> tionException.Type>ApiException</ApplicationException.Type><errors 
> xmlns:xsi="ht
> tp://www.w3.org/2001/XMLSchema-instance" 
> xsi:type="AuthenticationError"><fieldPa
> th></fieldPath><trigger>Client 'adwordsapi' belongs to the group 
> 'ADWORDSAPI' an
> d requires an authentication 
> cookie</trigger><errorString>AuthenticationError.LO
>
> GIN_COOKIE_REQUIRED</errorString><ApiError.Type>AuthenticationError</ApiError.Ty
>
> pe><reason>LOGIN_COOKIE_REQUIRED</reason></errors></ApiExceptionFault></detail><
> /soap:Fault></soap:Body></soap:Envelope>
> C:\Users\lkalkoul\Desktop\aw_api_php_lib_3.2.0\src>php ad1.php
> PHP Notice:  Undefined variable: auth in 
> C:\Users\lkalkoul\Desktop\aw_api_php_li
> b_3.2.0\src\ad1.php on line 55
> SoapFault Object
> (
>     [message:protected] => [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; 
> trigge
> r:'Client 'adwordsapi' belongs to the group 'ADWORDSAPI' and requires an 
> authent
> ication cookie']
>     [string:Exception:private] =>
>     [code:protected] => 0
>     [file:protected] => 
> C:\Users\lkalkoul\Desktop\aw_api_php_lib_3.2.0\src\ad1.p
> hp
>     [line:protected] => 73
>     [trace:Exception:private] => Array
>         (
>             [0] => Array
>                 (
>                     [file] => 
> C:\Users\lkalkoul\Desktop\aw_api_php_lib_3.2.0\src
> \ad1.php
>                     [line] => 73
>                     [function] => __soapCall
>                     [class] => SoapClient
>                     [type] => ->
>                     [args] => Array
>                         (
>                             [0] => get
>                             [1] => Array
>                                 (
>                                     [get] => Array
>                                         (
>                                             [serviceSelector] => Array
>                                                 (
>                                                     [fields] => Array
>                                                         (
>                                                             [0] => Id
>                                                             [1] => Name
>                                                         )
>                                                 )
>                                         )
>                                 )
>                             [2] =>
>                             [3] => SoapHeader Object
>                                 (
>                                     [namespace] => 
> https://adwords.google.com/ap
> i/adwords/cm/v201209
>                                     [name] => RequestHeader
>                                     [data] => Array
>                                         (
>                                             [developerToken] => 
> YOUR_DEV_TOKEN
>                                             [userAgent] => testing
>                                             [clientCustomerId] => 
> 261-981-2834
>                                             [authToken] =>
>                                         )
>                                     [mustUnderstand] =>
>                                 )
>                         )
>                 )
>         )
>     [previous:Exception:private] =>
>     [faultstring] => [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; 
> trigger:'Cli
> ent 'adwordsapi' belongs to the group 'ADWORDSAPI' and requires an 
> authenticatio
> n cookie']
>     [faultcode] => soap:Server
>     [detail] => stdClass Object
>         (
>             [ApiExceptionFault] => stdClass Object
>                 (
>                     [message] => 
> [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ;
> trigger:'Client 'adwordsapi' belongs to the group 'ADWORDSAPI' and 
> requires an a
> uthentication cookie']
>                     [ApplicationException.Type] => ApiException
>                     [errors] => SoapVar Object
>                         (
>                             [enc_type] => 0
>                             [enc_value] => stdClass Object
>                                 (
>                                     [fieldPath] =>
>                                     [trigger] => Client 'adwordsapi' 
> belongs to
> the group 'ADWORDSAPI' and requires an authentication cookie
>                                     [errorString] => 
> AuthenticationError.LOGIN_C
> OOKIE_REQUIRED
>                                     [ApiError.Type] => AuthenticationError
>                                     [reason] => LOGIN_COOKIE_REQUIRED
>                                 )
>                             [enc_stype] => AuthenticationError
>                             [enc_ns] => 
> https://adwords.google.com/api/adwords/c
> m/v201209
>                         )
>                 )
>         )
> )
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="
> http://schemas.xmlsoap.org/soap/envelope/"; xm
> lns:ns1="
> https://adwords.google.com/api/adwords/cm/v201209";><SOAP-ENV:Header><ns
>
> 1:RequestHeader><ns1:clientCustomerId>261-981-2834</ns1:clientCustomerId><ns1:de
>
> veloperToken>YOUR_DEV_TOKEN</ns1:developerToken><ns1:userAgent>testing</ns1:user
>
> Agent></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:get><ns1:service
>
> Selector><ns1:fields>Id</ns1:fields><ns1:fields>Name</ns1:fields></ns1:serviceSe
> lector></ns1:get></SOAP-ENV:Body></SOAP-ENV:Envelope>
> <soap:Envelope xmlns:soap="
> http://schemas.xmlsoap.org/soap/envelope/";><soap:Head
> er><ResponseHeader xmlns="
> https://adwords.google.com/api/adwords/cm/v201209";><re
>
> questId>0004cc14df8f05380aedaf010000620b</requestId><serviceName>CampaignService
>
> </serviceName><methodName>get</methodName><operations>0</operations><responseTim
>
> e>21</responseTime><units>0</units></ResponseHeader></soap:Header><soap:Body><so
>
> ap:Fault><faultcode>soap:Server</faultcode><faultstring>[AuthenticationError.LOG
> IN_COOKIE_REQUIRED @ ; trigger:'Client 'adwordsapi' belongs to the group 
> 'ADWORD
> SAPI' and requires an authentication 
> cookie']</faultstring><detail><ApiException
> Fault xmlns="
> https://adwords.google.com/api/adwords/cm/v201209";><message>[Authen
> ticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:'Client 'adwordsapi' 
> belongs to
> the group 'ADWORDSAPI' and requires an authentication 
> cookie']</message><Applica
> tionException.Type>ApiException</ApplicationException.Type><errors 
> xmlns:xsi="ht
> tp://www.w3.org/2001/XMLSchema-instance" 
> xsi:type="AuthenticationError"><fieldPa
> th></fieldPath><trigger>Client 'adwordsapi' belongs to the group 
> 'ADWORDSAPI' an
> d requires an authentication 
> cookie</trigger><errorString>AuthenticationError.LO
>
> GIN_COOKIE_REQUIRED</errorString><ApiError.Type>AuthenticationError</ApiError.Ty
>
> pe><reason>LOGIN_COOKIE_REQUIRED</reason></errors></ApiExceptionFault></detail><
> /soap:Fault></soap:Body></soap:Envelope>
>
> Le vendredi 12 octobre 2012 23:10:43 UTC+2, Ewan Heming a écrit :
>
>> Hi laid,
>>
>> I noticed you asked the same question on my blog post about using the 
>> AdWords API without a Client 
>> Library<https://www.ewanheming.com/2011/04/ppc-software-development/connecting-to-the-adwords-api-using-just-soap>
>>  that 
>> I wrote last year. I think your problem is just that you haven't entered a 
>> valid username and password into the sample code. However, the example 
>> doesn't show you how to point the script at the sandbox, so you might have 
>> a problem using it if you don't have a production API key; I'll modify it 
>> to show you how to do that.
>>
>> Regards,
>>
>> Ewan
>>
>

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