Re: AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:

2014-06-04 Thread Josh Radcliff (AdWords API Team)
Hi Gopi,

This suggests that auth info is missing from your SOAP or HTTP headers. If 
you have logs from when this happened that may help to identify the source 
of the problem.

By the way, this seems very similar and probably related to the other post 
you have on missing SOAP headers 
. 
Let's continue the discussion there to avoid duplication.

Thanks,
Josh, AdWords API Team

On Wednesday, June 4, 2014 1:39:47 PM UTC-4, Gopi wrote:
>
> Randomly API fails with this error and I am not able to reproduce this. Is 
> there any work around or something you suggest to want me to check to 
> resolve this issue?
>
> Thanks
> Gopi
>
> On Wednesday, June 4, 2014 8:23:23 AM UTC-7, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> Hi Gopi,
>>
>> That's correct - if you set up your *ads.properties* file in your home 
>> directory as specified in the OAuth2 page on github 
>> , 
>> then the library will automatically retrieve a new access token using the 
>> refresh token in your config file as needed.
>>
>> To get the refresh token, you can run the GetRefreshToken.java example 
>> 
>>  in 
>> the client library.
>>
>> Cheers,
>> Josh, AdWords API Team
>>
>> On Tuesday, June 3, 2014 6:39:22 PM UTC-4, Gopi wrote:
>>>
>>> I am using java client and I guess the access token is refresh 
>>> automatically and need no manual intervention. Am i wrong?
>>>
>>> Thanks
>>> Gopi
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:

2014-06-04 Thread Gopi
Randomly API fails with this error and I am not able to reproduce this. Is 
there any work around or something you suggest to want me to check to 
resolve this issue?

Thanks
Gopi

On Wednesday, June 4, 2014 8:23:23 AM UTC-7, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi Gopi,
>
> That's correct - if you set up your *ads.properties* file in your home 
> directory as specified in the OAuth2 page on github 
> , 
> then the library will automatically retrieve a new access token using the 
> refresh token in your config file as needed.
>
> To get the refresh token, you can run the GetRefreshToken.java example 
> 
>  in 
> the client library.
>
> Cheers,
> Josh, AdWords API Team
>
> On Tuesday, June 3, 2014 6:39:22 PM UTC-4, Gopi wrote:
>>
>> I am using java client and I guess the access token is refresh 
>> automatically and need no manual intervention. Am i wrong?
>>
>> Thanks
>> Gopi
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:

2014-06-04 Thread Josh Radcliff (AdWords API Team)
Hi Gopi,

That's correct - if you set up your *ads.properties* file in your home 
directory as specified in the OAuth2 page on github 
, then 
the library will automatically retrieve a new access token using the 
refresh token in your config file as needed.

To get the refresh token, you can run the GetRefreshToken.java example 

 in 
the client library.

Cheers,
Josh, AdWords API Team

On Tuesday, June 3, 2014 6:39:22 PM UTC-4, Gopi wrote:
>
> I am using java client and I guess the access token is refresh 
> automatically and need no manual intervention. Am i wrong?
>
> Thanks
> Gopi
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:

2014-06-03 Thread Gopi
I am using java client and I guess the access token is refresh 
automatically and need no manual intervention. Am i wrong?

Thanks
Gopi

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:''

2014-04-21 Thread Josh Radcliff (AdWords API Team)
Hi,

Are you using ClientLogin or OAuth2 as your authentication method?  As 
announced on this 
forum
 and our 
blog,
 ClientLogin 
is only supported up to v201309.  The forum and blog posts contain links to 
documents that will guide you through the migration process.

Cheers,
Josh, AdWords API Team

On Monday, April 21, 2014 9:45:52 AM UTC-4, Yilmaz wrote:
>
> I just change the API version 201306 to 201402. now I can not get a list 
> of campaign
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:''

2014-04-21 Thread Yilmaz
I just change the API version 201306 to 201402. now I can not get a list of 
campaign

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:''

2014-03-03 Thread Anash P. Oommen (AdWords API Team)
Hi Rodrigo,

I'd probably check if you are getting accessToken all the time. If there's 
some form of error (say, a rate limit on refreshing access token, then 
$accessToken would be null, and your request would fail.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Saturday, March 1, 2014 4:59:14 PM UTC-5, Rodrigo Ferreira wrote:
>
> Hi Takeshi, thanks for your response!
>
> I am slightly confused. Isn't the code below refreshing the access token?
>
> $ch=curl_init('https://accounts.google.com/o/oauth2/token');
> curl_setopt($ch,CURLOPT_CUSTOMREQUEST,'POST');
> curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query(array(
> 'refresh_token'=>$refreshToken,
> 'client_id'=>$clientId,
> 'client_secret'=>$clientSecret,
> 'grant_type'=>'refresh_token',
> )));
> $json=curl_exec($ch);
>
> And, if that is a requirement, why setting the WSDL TTL (of SoapClient) to 
> a large value fixes the issue?
>
> Sorry, I am not using the provided client libraries. But I did look at the 
> source code, to clarify how this is being addressed, to no success.
>
> Best,
> Rodrigo
>
>
> Em quarta-feira, 26 de fevereiro de 2014 04h34min31s UTC-3, Takeshi 
> Hagikura (AdWords API Team) escreveu:
>>
>> Hi Rodrigo,
>>
>> In your script, looks like you are not refreshing an access token.
>> An access token expires in one hour, it needs to be refreshed using a 
>> refresh token. 
>>
>> Our client libraries take care of it if an refresh token is supplied. 
>>
>> Best,
>> - Takeshi, AdWords API Team
>>
>> On Saturday, February 22, 2014 11:50:01 PM UTC+9, Rodrigo Ferreira wrote:
>>>
>>> Hi there,
>>>
>>> I am getting this error message
>>>
>>> AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:''
>>>
>>> whenever I run the attached PHP script for the first time. Subsequent 
>>> runs work fine for some hours until I get the error again (I believe the 
>>> referred cookie expires again).
>>>
>>> What is this cookie about? Can someone pinpoint what is going on and how 
>>> to fix it?
>>>
>>> I am trying to build an "as simple as possible" routine to retrive 
>>> campaign names, following the documentation, I do not understant this 
>>> behavior.
>>>
>>> Any help is much appreciated!
>>>
>>> Best,
>>> Rodrigo
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:''

2014-03-01 Thread Rodrigo Ferreira
Hi Takeshi, thanks for your response!

I am slightly confused. Isn't the code below refreshing the access token?

$ch=curl_init('https://accounts.google.com/o/oauth2/token');
curl_setopt($ch,CURLOPT_CUSTOMREQUEST,'POST');
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query(array(
'refresh_token'=>$refreshToken,
'client_id'=>$clientId,
'client_secret'=>$clientSecret,
'grant_type'=>'refresh_token',
)));
$json=curl_exec($ch);

And, if that is a requirement, why setting the WSDL TTL (of SoapClient) to 
a large value fixes the issue?

Sorry, I am not using the provided client libraries. But I did look at the 
source code, to clarify how this is being addressed, to no success.

Best,
Rodrigo


Em quarta-feira, 26 de fevereiro de 2014 04h34min31s UTC-3, Takeshi 
Hagikura (AdWords API Team) escreveu:
>
> Hi Rodrigo,
>
> In your script, looks like you are not refreshing an access token.
> An access token expires in one hour, it needs to be refreshed using a 
> refresh token. 
>
> Our client libraries take care of it if an refresh token is supplied. 
>
> Best,
> - Takeshi, AdWords API Team
>
> On Saturday, February 22, 2014 11:50:01 PM UTC+9, Rodrigo Ferreira wrote:
>>
>> Hi there,
>>
>> I am getting this error message
>>
>> AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:''
>>
>> whenever I run the attached PHP script for the first time. Subsequent 
>> runs work fine for some hours until I get the error again (I believe the 
>> referred cookie expires again).
>>
>> What is this cookie about? Can someone pinpoint what is going on and how 
>> to fix it?
>>
>> I am trying to build an "as simple as possible" routine to retrive 
>> campaign names, following the documentation, I do not understant this 
>> behavior.
>>
>> Any help is much appreciated!
>>
>> Best,
>> Rodrigo
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:''

2014-02-26 Thread Rodrigo Ferreira
Workaround available at: 
http://stackoverflow.com/questions/21942174/adwords-api-expired-cookie-error

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:''

2014-02-25 Thread Takeshi Hagikura (AdWords API Team)
Hi Rodrigo,

In your script, looks like you are not refreshing an access token.
An access token expires in one hour, it needs to be refreshed using a 
refresh token. 

Our client libraries take care of it if an refresh token is supplied. 

Best,
- Takeshi, AdWords API Team

On Saturday, February 22, 2014 11:50:01 PM UTC+9, Rodrigo Ferreira wrote:
>
> Hi there,
>
> I am getting this error message
>
> AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:''
>
> whenever I run the attached PHP script for the first time. Subsequent runs 
> work fine for some hours until I get the error again (I believe the 
> referred cookie expires again).
>
> What is this cookie about? Can someone pinpoint what is going on and how 
> to fix it?
>
> I am trying to build an "as simple as possible" routine to retrive 
> campaign names, following the documentation, I do not understant this 
> behavior.
>
> Any help is much appreciated!
>
> Best,
> Rodrigo
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:''

2014-02-24 Thread Rodrigo Ferreira
Hi there,

I am getting this error message

AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:''

whenever I run the attached PHP script for the first time. Subsequent runs 
work fine for some hours until I get the error again (I believe the 
referred cookie expires again).

What is this cookie about? Can someone pinpoint what is going on and how to 
fix it?

I am trying to build an "as simple as possible" routine to retrive campaign 
names, following the documentation, I do not understant this behavior.

Any help is much appreciated!

Best,
Rodrigo

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<>


Re: [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:'']

2012-10-16 Thread laid kalkoul
Hi Ewan,

i'm trying to combine the AddAdGroups.php example with " using the adwords 
API sandbox" example in your blog,  to create a campaign and then add a 
groupe to the same campaign. is it possible to do this?? i mean combining 
examples.

Regards 




Le lundi 15 octobre 2012 23:30:31 UTC+2, Ewan Heming a écrit :
>
> Hi Laid,
>
> Are you sending the correct customer id for the campaign where you're 
> trying to create the adgroup? If you could post the code you're using then 
> I should be able to see what the problem is.
>
> 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


Re: [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:'']

2012-10-15 Thread Ewan Heming
Hi Laid,

Are you sending the correct customer id for the campaign where you're 
trying to create the adgroup? If you could post the code you're using then 
I should be able to see what the problem is.

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


Re: [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:'']

2012-10-15 Thread laid kalkoul
 
Hi Ewan, thanks a lot, it works now, i've forgot to put a currency code. 
but i have a nother issue now:
 
I got this error in sandbox environment when adding ad group to campaign:
 
 An error has occurred: [DatabaseError.PERMISSION_DENIED @ 
operations[0].operand.
campaignId; trigger:'CampaignId: 787992', DatabaseError.PERMISSION_DENIED @ 
oper
ations[1].operand.campaignId; trigger:'CampaignId: 787992'].
 
can you help please?

Le lundi 15 octobre 2012 16:55:53 UTC+2, Ewan Heming a écrit :

> Hi Laid,
>
> You need to enter the username and password for an AdWords account into 
> the $username and $password variables of the script; I've updated it to 
> throw a more relevant error if you don't.
>
> The sandbox does require a developer token, username, password, and 
> customer id for the account you want to access; however, you don't need an 
> approved token or real AdWords account to use it: The username and password 
> can be for any Google account (Gmail, YouTube etc), and the developer token 
> is just the account username with a currency code appended to it (for 
> example, "te...@gmail.com ++USD"). You also need to make a 
> call to one of the API services in order to initialize the sandbox for your 
> account and obtain a list of dummy customer ids; there's an example script 
> that does that 
> here
> .
>
> 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


Re: [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:'']

2012-10-15 Thread Ewan Heming
Hi Laid,

You need to enter the username and password for an AdWords account into the 
$username and $password variables of the script; I've updated it to throw a 
more relevant error if you don't.

The sandbox does require a developer token, username, password, and 
customer id for the account you want to access; however, you don't need an 
approved token or real AdWords account to use it: The username and password 
can be for any Google account (Gmail, YouTube etc), and the developer token 
is just the account username with a currency code appended to it (for 
example, "t...@gmail.com++USD"). You also need to make a call to one of the 
API services in order to initialize the sandbox for your account and obtain 
a list of dummy customer ids; there's an example script that does that 
here
.

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


Re: [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:'']

2012-10-15 Thread laid kalkoul
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
>

Re: [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:'']

2012-10-15 Thread laid kalkoul
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
)
)
)
)

http://schemas.xmlsoap.org/soap/envelope/"; 
xm
lns:ns1="
https://adwords.google.com/api/adwords/cm/v201209";>261-981-2834YOUR_DEV_TOKENtestingIdName
http://schemas.xmlsoap.org/soap/envelope/";>https://adwords.google.com/api/adwords/cm/v201209";>0004cc14d6ef9b900aedaf01620bCampaignService
get0170soap:Server[AuthenticationError.LOG
IN_COOKIE_REQUIRED @ ; trigger:'Client 'adwordsapi' belongs to the group 
'ADWORD
SAPI' and requires an authentication 
cookie']https:

Re: [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:'']

2012-10-12 Thread Ewan Heming
Hi laid,

I noticed you asked the same question on my blog post about using the 
AdWords API without a Client 
Library
 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


[AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:'']

2012-10-12 Thread laid kalkoul
Hi,
 
i'm trying to connect to ADWORDS API using just SOAP and i'm getting this 
error:

 [faultstring] => [AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; 
trigger:''].
 
Please anyone can help me??
thnx

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