I tried this suggestion but did not get any further.
---

:authentication:
  :method: OAUTH2_SERVICE_ACCOUNT

  :oauth2_client_id: [TEST]
  :oauth2_client_secret: [TEST]

  :oauth2_issuer: [PRODUCTION]
  :oauth2_secret: notasecret
  :oauth2_keyfile:  [PRODUCTION-path]
  :oauth2_prn: [PRODUCTION]

  :developer_token: [PRODUCTION]
  :client_customer_id: [TEST]
  :user_agent: INSERT_YOUR_USER_AGENT_HERE
:service:
  :environment: PRODUCTION
:connection:
  :enable_gzip: false
:library:
  :log_level: INFO


RESULTED IN:

[AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'<null>']


So, I also tried the following but still got an error.


---
:authentication:
  :method: OAUTH2_SERVICE_ACCOUNT

  :oauth2_client_id: [TEST]
  :oauth2_client_secret: [TEST]

  :oauth2_issuer: [TEST]
  :oauth2_secret: notasecret
  :oauth2_keyfile:  [TEST-path]
  :oauth2_prn: [TEST]

  :developer_token: [PRODUCTION]
  :client_customer_id: [TEST]
  :user_agent: INSERT_YOUR_USER_AGENT_HERE
:service:
  :environment: PRODUCTION
:connection:
  :enable_gzip: false
:library:
  :log_level: INFO


RESULTED IN: Authorization failed. Server message: { "error" : 
"unauthorized_client", "error_description" : "Unauthorized client or scope in 
request." }

It's really unclear to me which values I should be using for each field from 
the 2 different test/production accounts.

I also don't understand from a security perspective how the accounts should be 
linked in their respective configs.

Thanks for your patients and help resolving this with me.


Ed


On Monday, November 7, 2016 at 8:17:57 PM UTC-7, Peter Oliquino wrote:
>
> Hi Edward,
>
> Apologies for the delay and thank you for the additional information. I 
> could see that you are using production account credentials for you 
> *oauth2_client_id* and *oauth2_client_secret* while using a test account 
> customer ID as your *client_customer_id*. In order to make calls using 
> your test account, you will need to fill these fields with test account 
> information. As mentioned in my previous response, you will need to 
> generate separate OAuth2 credentials for your test account while logged in 
> to the email address you associated to your test account.
>
> That being said, you may then use the below example to configure your yml 
> file :
>
> :oauth2_client_id: [TEST-account]
> :oauth2_client_secret: [TEST-account-secret]
> :client_customer_id: [TEST-account-client-id]
>
>  
> Let me know if this works.
>
> Best regards,
> Peter
> 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/c3220dd4-9096-40c2-9425-765e0dc34745%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to