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:
- Installed the AdWords API NuGet package
- Created an MCC Test account and an AdWords Test account
- Created an AdWords API developer account (on LIVE adwords account)
- Created a Project, as well as a Service Account within my test account in the Google Developers Console.
- Wired up my Web.config with the Service Account OAuth credentials/p12 file location.
When I run the app, I get the following response:
Failed to get access token for service account.
{
"error" : "access_denied",
"error_description" : "Requested scopes not allowed: https://adwords.google.com/api/adwords/"
}
Since AdWords isn't an option in the "APIs" tab in Google Developers Console project, I'm not sure where to go.
The documentation (here: https://developers.google.com/adwords/api/docs/guides/service-accounts) says to go to https://www.google.com/a/cpanel/YOUR_DOMAIN/ManageOauthClients 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: https://groups.google.com/forum/#!topic/adwords-api/EChRX1RFaUk.
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.