Hi Peter, 1. You can get the scope as
AdWordsAppConfig config = (AdWordsAppConfig) user.Config; string scope = config.OAuth2Scope; Or if you are looking for the specific hard-coded value, it is https://adwords.google.com/api/adwords/ 2. Of course, the code example only shows you how to use OAuth2 wiht an asp.net application to download campaigns and reports. If you need to retrieve the mcc account hierarchy, you need to modify your code accordingly. Cheers, Anash P. Oommen, AdWords API Advisor. On Monday, September 2, 2013 5:31:48 AM UTC+1, Peter wrote: > > Thanks, Anash. > > since I have created an test MCC account and a acc under this MCC. I would > like to get my data through the MCC acc instead of the test client account. > The ASP.NET code example you mentioned seems not suitable for this case. > and now I am dealing with the OAuth2TokenGenerator.cs. How can I get a > valid scope for adwords? I can't even find a suitable scope for the adwords > API. Please help. Thanks. > > Regards, > Peter > > Anash P. Oommen於 2013年8月31日星期六UTC+8上午12時50分27秒寫道: >> >> Hi Peter, >> >> "This project" refers to Common.csproj. If you downloaded the binary zip, >> then OAuth2TokenGenerator.exe should already be available in the lib\ >> folder. Or if you want to implement OAuth2 flow into your application >> directly instead of relying on OAuth2TokenGenerator, there's an ASP.NETcode >> example under examples\csharp\oauth that implements a basic flow based >> on Session as storage. >> >> Cheers, >> Anash P. Oommen, >> AdWords API Advisor. >> >> On Friday, 30 August 2013 11:20:54 UTC+1, Peter wrote: >>> >>> Hi, >>> >>> I am building an ASP.NET application and trying to use Adwords API in >>> this application. >>> However, I stuck in generating the OAuth2 Refresh Token. >>> >>> I am following the steps described in the AdWords API Wiki and trying to >>> run OAuth2TokenGenerator.exe. >>> >>> I don't understand the step 3: Build this project as msbuild >>> Common.csproj /p:OutputType="Exe" >>> >>> What is the meaning of "this project"? >>> >>> Thanks, >>> Peter >>> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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]. For more options, visit https://groups.google.com/groups/opt_out.
