* What I need:* I have an ASP.NET webservice that I am trying to update from the Client Login authentication method to the OAuth2 authentication method. I use this webservice to get campaign information for multiple accounts. All of these accounts are linked to a single MCC account.
*What I have tried:* I have tried to follow the instructions within the *OAuth2TokenGenerator.exe * which are as follows: [Steps I completed in *bold*] *(1)* Navigate to https://code.google.com/apis/console/ and create a new project. *(2)* Click API Access link on the left side of the page and Create an OAuth2 client ID. Select application type as Web Application. Click the 'More Options' link next to the 'Your site or hostname' and enter http://localhost:8080/ as a redirect URI (3) Build this project as msbuild Common.csproj /p:OutputType="Exe" *(4)* Run this application. When prompted, enter the client ID and secret from the project you created above, as well as the OAuth2 scope of the API which you need to authenticate for. The standard list of OAuth2 scopes for various Ads* APIs are: AdWords API: https://adwords.google.com/api/adwords *[I used this scope]* Doubleclick for Publishers API: https://www.google.com/apis/ads/publisher Doubleclick for Advertisers API: https://www.googleapis.com/auth/dfatrafficking You can find OAuth2 scopes for other Google APIs at https://developers.google.com/oauthplayground *(5)* The application will open a browser window. Login using your AdWords API MCC credentials and grant access to your application . *(6)* The application will print your access and refresh tokens. *(7)* Copy the output from the application to your App.config/Web.config. (8) In case you refresh token is empty, navigate to https://accounts.google.com/b/0/IssuedAuthSubTokens?hl=en, find your application, revoke access and run this application again. The output from these steps above was the following: <add key='*AuthorizationMethod*' value='*OAuth2*' /> <add key='*OAuth2ClientID*' value='*[My OAuth2 Client ID]*' /> <add key='*OAuth2ClientSecret*' value='*[My OAuth2 Client Secret]*' /> <add key='*OAuth2RefreshToken*' value='*[My OAuth2 Refresh Token]*' /> I plugged these into my Web.config which also contained the following: <add key='*UserAgent*' value='*[The name of the project I created]*' /> <add key='*DeveloperToken*' value='*[My Developer Token]*' /> <add key='*ClientCustomerID*' value='?????' /> - I am not sure which ClientCustomerID needs to go here. Is this my MCC CustomerID or the Adwords Account that has campaigns that is linked to the MCC account? <add key="*OAuth2Mode*' value='*APPLICATION*' /> Finally here is how I am attempting to get the campaigns information: Dim user As AdwordsUser = New AdwordsUser() Dim campaignService As CampaignService = user.GetService(AdWordsService.v201306.CampaignService) [ ...Create Selector... ] Dim page as New CampaignPage = campaignService.get(selector) *When I set the ClientCustomerID to be the MCC CustomerID I get 0 entries. When I set the ClientCustomerID to be one of the accounts that is linked to the MCC account I get an exception saying [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'<null>'] What am I doing wrong? I have been stuck on this for ages now.* -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. For more options, visit https://groups.google.com/groups/opt_out.