Hi,
I am trying to create an azure function to retrieve data from Google Ad's
account. The function fail when it try to create the AdWordsUser object, it
is looking for the appconfig file.
I would like to override the function by passing a prebuilt config file or
headers. I tried both ways
AdWordsUser usr = new AdWordsUser(appConfig);
AdWordsUser adwordsUser = new AdWordsUser(headers);
it errors out with following message
System.Private.CoreLib: Exception while executing function:
GenerateGoogleAdsRpt. Google.Ads.Common: Could not load type
'System.Web.Hosting.HostingEnvironment' from assembly 'System.Web,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
It is failing on the following function call, it looks for the sectionname
= "AdWordsApi"
protected void LoadFromAppConfigSection(string sectionName)
{
ReadSettings(ReadAppConfigSection(sectionName));
}
Have anyone found the solution already or found an alternate solution,
please let me know. I appreciate your help.
Thanks
Sam
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/de1df43f-a5ed-414d-b579-48f3490553a1%40googlegroups.com.