Re: AuthenticationError.NOT_ADS_USER @

2016-02-22 Thread Matthew Trevor
I've tried that but it comes up the same. Going forward and when we are 
live, what if I'm not the MCC on one of our client accounts?

On Monday, 22 February 2016 17:30:20 UTC, Yin Niu wrote:
>
> Hi Matt, 
>
> The MCC accont login requests the token. However, to pull the campaign 
> data, you would have to specify the clientCustomerId 
> 
>  SOAP 
> header. 
>
> For the use case you described, you should use OAuth 2.0 web flow 
> . 
>
> Thanks,
> Yin, AdWords API Team. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/edef9711-e90a-4123-bb2c-bc5e94fae0b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.NOT_ADS_USER @

2016-02-22 Thread Matthew Trevor
The scenario is we wish to get clients to log into our website and give us 
authority for our server to download a list of their campaigns.

Currently the developer has logged into Google and created an application 
and we have got the  client id/secret from that login.

who then requests the access token? the developer login or the client login?

Thanks,

matt


On Monday, 22 February 2016 16:45:03 UTC, Yin Niu wrote:
>
> Hi Matt, 
>
> You should use your MCC account to generate client id/secret and refresh 
> token. But when you send the request to pull Campaign data, you need to 
> specify the client account clientCustomerID in the request header. 
>
> If this does not solve your problem, please send the complete SOAP request 
> and response log. You can click *Reply privately to author* when 
> responding. 
>
> Thanks,
> Yin, AdWords API Team. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8a1415a9-5f29-4dbd-b6ba-7eeb60e09947%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.NOT_ADS_USER @

2016-02-22 Thread Matthew Trevor
Hi Yin,

I've just signed in to the TEST Adwords user account and got an 
authorisation code and then the access code and then submitted the request 
again, it came back with:

http://schemas.xmlsoap.org/soap/envelope/;>https://adwords.google.com/api/adwords/cm/v201509;>00052c5e53be27000a8159c489081148CampaignServiceget155soap:Server[AuthenticationError.NOT_ADS_USER
 
@ ; trigger:'null']https://adwords.google.com/api/adwords/cm/v201509;>[AuthenticationError.NOT_ADS_USER
 
@ ; 
trigger:'null']ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance; 
xsi:type="AuthenticationError">nullAuthenticationError.NOT_ADS_USERAuthenticationErrorNOT_ADS_USER

Thansk,

Matt

On Monday, 22 February 2016 15:37:35 UTC, Yin Niu wrote:
>
> Hi Matthew, 
>
> NOT_ADS_USER 
> 
>  error 
> occurs when the logged in user is not associated with any AdWords account. 
> In your request, you are logged in as MCC which doesn't have access to 
> campaign service. You need to log onto the client account in order to pull 
> campaign data.
>
> Thanks,
> Yin, AdWords API Team.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4a294aa8-4d2d-425a-9083-82c481252c62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.NOT_ADS_USER @

2016-02-22 Thread Matthew Trevor
Hi Yin,

Sorry for the late reply but I've been away on holiday.

Thank you for your response.

We have not even got to requesting the refresh token, do you mean the 
access token?

Thanks,

Matthew

On Friday, 22 January 2016 16:29:35 UTC, Yin Niu wrote:
>
> Hi Matt, 
>
> Can you verify that the account with the clientCustomerID that you used 
> for this request has the same login email as the one that you use for 
> requesting refresh token or it is the client account of the same manager 
> account?  
>
> Thanks,
> Yin, AdWords API Team. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2a4c94f4-611b-42e7-9621-99f1a9f7ca2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.NOT_ADS_USER @

2016-01-22 Thread Matthew Trevor
Hi Yin,

Thanks for the advice, but maybe I'm missing something with the Google app 
as I get back what looks to be a good result.

If I explain the path in more detail:

On our test website, the user (whilst logged into their Google Adwords 
account - a test MCC account at this point) clicks on a form which posts:

https://accounts.google.com/o/oauth2/auth?client_id=XXX-.apps.googleusercontent.com_type=code=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords_uri=https://www.mysite.com/oauth2callback_type=offline_prompt=auto

and then the user gives access to their Adwords account and this returns an 
authorization code:

we then on our web server request the access token with:

c:\Curl\curl -k --request POST "https://accounts.google.com/o/oauth2/token; 
\ --data "code=AUTHORIZATION CODE OBTAINED FROM FIRST 
CALL_id=-.apps.googleusercontent.com_secret=XXX_uri=https://www.mysitye.com/oauth2callback_type=authorization_code;
 
-o c:\Curl\Output2744.txt

and this returns the token:

{
  "access_token" : "ya29.X-X",
  "token_type" : "Bearer",
  "expires_in" : 3600,
  "refresh_token" : "1/XXX"
}

and when our web server uses this token to request the campaigns in the 
account and that is when we get the result:


http://schemas.xmlsoap.org/soap/envelope/;>https://adwords.google.com/api/adwords/cm/v201509;>000529db499dd7780a819c08570880ccCampaignServiceget1877soap:Server[AuthenticationError.NOT_ADS_USER
 
@ ; trigger:'null']https://adwords.google.com/api/adwords/cm/v201509;>[AuthenticationError.NOT_ADS_USER
 
@ ; 
trigger:'null']ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance; 
xsi:type="AuthenticationError">nullAuthenticationError.NOT_ADS_USERAuthenticationErrorNOT_ADS_USER


So the user is logged in when they give us access, is this not right?

Thanks,

Matt





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/07b7ad24-9106-4900-be94-3a187907c4fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AuthenticationError.NOT_ADS_USER @

2016-01-21 Thread Matthew Trevor
I'm rather new to the Google Adwords API but I'm struggling with the 
authentication.

I've looked at the other posts that people have put on but they don't seem 
to relate to my issue, I think.

The process so far:

In the web app we get the Google authorisation code and this comes back 
fine.
We then get the Google access token fine
But when sending the soap request to get the campaign names it comes back 
with the following error:

 http://schemas.xmlsoap.org/soap/envelope/;>https://adwords.google.com/api/adwords/cm/v201509;>000529db499dd7780a819c08570880ccCampaignServiceget1877soap:Server[AuthenticationError.NOT_ADS_USER
 
@ ; trigger:'null']https://adwords.google.com/api/adwords/cm/v201509;>[AuthenticationError.NOT_ADS_USER
 
@ ; 
trigger:'null']ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance; 
xsi:type="AuthenticationError">nullAuthenticationError.NOT_ADS_USERAuthenticationErrorNOT_ADS_USER


Please can anyone help?

Thanks,

Matt

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0089321b-c158-42f7-9c48-e26b0c86576a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.