Hi Jeremy, Try this:
AdWordsUser user = new AdWordsUser(); AdWordsAppConfig config = (AdWordsAppConfig) user.Config; config.DeveloperToken = "xxx"; You can set all the keys under AdWordsApi node this way. There are some others for which you'd still need to use the config file itself. Specifically, all the keys that start from this line: https://github.com/googleads/googleads-adwords-dotnet-lib/blob/master/src/AdWords/App.config#L128 Cheers, Anash P. Oommen, AdWords API Advisor. On Friday, February 14, 2014 12:22:32 PM UTC-5, Jeremy K wrote: > > Hi, > > I'm looking to take the AdWords c# .net sample and get it working in an > SSIS package, which will allow the use of .Net via a VSTA script. According > to the best of my knowledge, a VSTA script will behave just like standard > .net, but you can't give it an app.config. > > Therefore I understand that I should specify the relevant app.config > settings manually. I'm trying to put my settings in a dictionary. The > settings that I have are: > > var customDictionary = new Dictionary<string, string> { > { "UserAgent", "xxx" }, > { "DeveloperToken", "xxx" }, > { "ClientCustomerId", "xxx" }, > { "AuthorizationMethod", "xxx" }, > { "Email", "xxx" }, > { "Password", "xxx" } > > }; > > Could someone please tell me, are there any that I'm missing if I have > absolutely no app.config? > > Unfortunately I get an error when trying to do AdWordsUser user = new > AdWordsUser(customDictionary) so I think I must be missing some settings > > Thank you > Jeremy > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. For more options, visit https://groups.google.com/groups/opt_out.
