title: Google AdWords API: access with service account
body: <p>I am trying to build my first app that pulls campaign data from AdWords, but I am having a bit of trouble.  Here is where I'm at:</p>
  
  <ol>
  <li>Installed the AdWords API NuGet package</li>
  <li>Created an MCC Test account and an AdWords Test account</li>
  <li>Created an AdWords API developer account (on LIVE adwords account)</li>
  <li>Created a Project, as well as a Service Account within my test account in the Google Developers Console.</li>
  <li>Wired up my Web.config with the Service Account OAuth credentials/p12 file location.</li>
  </ol>
  
  <p>When I run the app, I get the following response:</p>
  
  <pre><code>Failed to get access token for service account.
  {
   "error" : "access_denied",
   "error_description" : "Requested scopes not allowed: https://adwords.google.com/api/adwords/"
  }
  </code></pre>
  
  <p>Since AdWords isn't an option in the "APIs" tab in Google Developers Console project, I'm not sure where to go.</p>
  
  <p>The documentation (here: <a href="https://developers.google.com/adwords/api/docs/guides/service-accounts" rel="nofollow">https://developers.google.com/adwords/api/docs/guides/service-accounts</a>) says to go to <a href="https://www.google.com/a/cpanel/YOUR_DOMAIN/ManageOauthClients" rel="nofollow">https://www.google.com/a/cpanel/YOUR_DOMAIN/ManageOauthClients</a> and replace YOUR_DOMAIN with your domain, however I don't have a domain necessarily.  Note that I'm not that familiar with AdWords, so it's possible I'm missing something obvious, but I really didn't set up a domain with my test account.  Also, I tried to go through My Account => Preferences => API to see if setting up a Developer Token on the test side would help, but it appears you need a real CC# to continue, and the response here mentions that Test Developer Tokens don't work:  <a href="https://groups.google.com/forum/#!topic/adwords-api/EChRX1RFaUk" rel="nofollow">https://groups.google.com/forum/#!topic/adwords-api/EChRX1RFaUk</a>.</p>
  
  <p>Any suggestions are greatly appreciated.  The Google documentation is awful, and I am going dizzy, what with all the going around in circles I've been doing.</p>