Hello Pallavi, Could you please confirm whether all the credentials are in place in your App.config <https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/App.config#L98> file? Since you are using our C# <https://github.com/googleads/googleads-dotnet-lib/tree/master/examples/AdWords/CSharp> /.NET <https://github.com/googleads/googleads-dotnet-lib/tree/master/examples/AdWords/Vb> client library the credentials will be picked up from the App.config file. If you are still facing the issues you could enable logging by following the instructions shown in this README.md <https://github.com/googleads/googleads-dotnet-lib/blob/master/README.md#how-to-enable-logging> file and share the complete SOAP logs(request and response <https://developers.google.com/adwords/api/docs/guides/call-structure#response>) without redacting any information. You could use reply privately to the author option while sharing the details requested.
Regards, Sai Teja, AdWords API Team. On Thursday, November 15, 2018 at 6:22:23 AM UTC-5, [email protected] wrote: > > Hi, > > I am using Google Adwords Api for Excel Addin using c#.Net in visual > studio 2017. > Unable to load adwords account due to an exception at Adwords User > metadata file. > > > AdWordsUser user = new AdWordsUser(); > (user.Config as AdWordsAppConfig).ClientCustomerId = > Globals.ThisAddIn.LXRCustomerID; > (user.Config as AdWordsAppConfig).DeveloperToken = > Globals.ThisAddIn.AdWordsDeveloperToken; > (user.Config as AdWordsAppConfig).OAuth2RefreshToken = > Globals.ThisAddIn.refreshtoken; > (user.Config as AdWordsAppConfig).OAuth2AccessToken = > Globals.ThisAddIn.AdwordsAccessToken; > (user.Config as AdWordsAppConfig).OAuth2ClientId = > Globals.ThisAddIn.AdWordsClientId; > (user.Config as AdWordsAppConfig).OAuth2ClientSecret = > Globals.ThisAddIn.AdWordsClientSecretId; > > Exception after following line. > AdWordsUser user = new AdWordsUser(); > > > Info at Adwords User Metadata File. > public AdWordsUser(); > // > // Summary: > // Public constructor. Use this version if you want to > construct an AdWordsUser > // with a custom configuration. > public AdWordsUser(AdWordsAppConfig config); > // > // Summary: > // Parameterized constructor. Use this version if you want to > construct an AdWordsUser > // with a custom set of headers. > // > // Parameters: > // headers: > // The custom set of headers. > > Exception has the following message. > > Could not load file or assembly 'Google.Apis.Core, Version=1.33.1.0, > Culture=neutral, PublicKeyToken=4b01fa6e34db77ab' or one of its > dependencies. The located assembly's manifest definition does not match the > assembly reference. (Exception from HRESULT: > 0x80131040)":"Google.Apis.Core, Version=1.33.1.0, Culture=neutral, > PublicKeyToken=4b01fa6e34db77ab. > > I am attaching Fusion Log file for the error. > > Please solve my issue. > > Thanks in advance, > Pallavi > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/15c573da-e313-405b-bd0e-948c1f08f235%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
