I am having trouble creating a Dictionary<string, string> header for
constructing a new AdWordsUser. This is how I am currently
constructing the headers:
AuthToken authToken = new AuthToken(Email, Password);
authToken_str = authToken.GetToken();
clientEmail_str = p_clientEmail_str;
headers_dic = new Dictionary<string, string>();
headers_dic.Add("authtoken", authToken_str);
headers_dic.Add("useragent", UserAgent);
headers_dic.Add("developerToken", DeveloperToken);
headers_dic.Add("clientEmail", clientEmail_str);
Later, I attempt to create new AdWordsUser:
user = new AdWordsUser(headers_dic);
and an exception is thrown stating that an "object Reference not set
to an instance of an object." Is there something I am missing about
how to construct the headers? So far I have not been able to find any
v200909 documentation on how to create a new AdWordsUser without using
an App.config file.
--
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.