What I want to know is how to fill out the yml config. Mine sanitized looks 
something like (I am using some from the live account and some from the test 
account and hitting auth errors using the api):


---
# This is an example configuration file for the AdWords API client library.
# Please fill in the required fields, and copy it over to your home directory.
:authentication:
  # Authentication method, methods currently supported:
  # OAUTH2, OAUTH2_SERVICE_ACCOUNT.
  :method: OAUTH2_SERVICE_ACCOUNT

  # Auth parameters for OAUTH2 method.
  # Set the OAuth2 client id and secret. Register your application here to
  # obtain these values:
  #   https://console.developers.google.com/
  :oauth2_client_id: [PRODUCTION-account]
  :oauth2_client_secret: [PRODUCTION-account-secret]
  # Optional, see: https://developers.google.com/accounts/docs/OAuth2WebServer
  #:oauth2_callback: INSERT_OAUTH2_CALLBACK_URL_HERE
  #:oauth2_state: INSERT_OAUTH2_STATE_HERE
  #:oauth2_access_type: INSERT_OAUTH2_ACCESS_TYPE_HERE
  #:oauth2_approval_prompt: INSERT_OAUTH2_APPROVAL_PROMPT_HERE
  # You can define extra scopes so that you can reuse your refresh token for
  # other APIs.
  #:oauth2_extra_scopes: [INSERT_EXTRA_SCOPES_HERE]

  # Auth parameters for OAUTH2_SERVICE_ACCOUNT method. See:
  #   https://developers.google.com/accounts/docs/OAuth2ServiceAccount
  :oauth2_issuer: [ID-FROM-DEVELOPER-CONSOLE]
  :oauth2_secret: notasecret
  :oauth2_keyfile:  [location of file]
  # To impersonate a user set prn to an email address.
  :oauth2_prn: [[email protected]]

  # Other parameters.
  :developer_token: [developer-token-from-PRODUCTION-account]
  :client_customer_id: [TEST-account-client-id]
  :user_agent: INSERT_YOUR_USER_AGENT_HERE
:service:
  # Only production environment is available now, see: http://goo.gl/Plu3o
  :environment: PRODUCTION
:connection:
  # Enable to request all responses to be compressed.
  :enable_gzip: false
  # If your proxy connection requires authentication, make sure to include it in
  # the URL, e.g.: http://user:password@proxy_hostname:8080
  # :proxy: INSERT_PROXY_HERE
:library:
  # Optional: set the log level.
  :log_level: INFO
  # Optional: uncomment to skip header / summary rows in reporting.
  #:skip_report_header: true
  #:skip_report_summary: true
  #:skip_column_header: true
  # Optional: uncomment to disable user agent showing used utilities.
  #:include_utilities_in_user_agent: false


Clearly, I'm missing something after reviewing the guide. Is there an 
example of how to set this config. I'm only looking for a basic Ruby set up 
that lets me post to my test account. I suspect if i were posting to a live 
account there would be no issue but I want to get my stuff working in test 
first.

On Sunday, November 6, 2016 at 10:17:09 PM UTC-7, Peter Oliquino wrote:
>
> Hi Edward,
>
> Yes, test accounts cannot be linked to the MCC production accounts. 
> However, in order to make calls to the AdWords API using your test 
> accounts, you will still need to use the developer token associated to your 
> MCC production account. You may then use the email address you used to 
> create your test accounts to generate your OAuth2 credentials 
> <https://developers.google.com/adwords/api/docs/guides/authentication>.
>
> By using the OAuth2 credentials specific to your test account and your 
> developer token, you will then be able to make calls to the AdWords API 
> against your test account. You may also refer to our guide 
> <https://developers.google.com/adwords/api/docs/guides/first-api-call> for 
> more information about making calls to the AdWords API. I hope this helps 
> and please let me know if you have any other concerns.
>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/012de793-ffcf-438d-ad17-5210a43e3946%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to