Hello!!

I'm here again talking about this issue!


Previously I chose the #1 way (yourService.RequestHeaders.clientEmail =
your_new_client_email), but now, I need to use the #2 because i need to
download a report and I don't have a Service instance to use #1,
because we don't have cross client feature yet, I have to access "new
ReportUtilities(user).DownloadReportDefinition(temp.id, path)" for each
client on my MCC.


but when I use:


headers.Add("authToken", authToken);
headers.Add("useragent", UserAgent);
headers.Add("developerToken", DevToken);
headers.Add("clientEmail", ClientEmail);



and then execute this line:


user = new AdWordsUser(headers);


the server return an error: "reference not set to an instance of an
object"


this error occur when AdWordsUser try to execute this line:



PropertyInfo propInfo = header.GetType().GetProperty("Value");
(AdWords/Lib/LegacyAdWordsServiceFactory.cs line #189)


some information about this error:
at line #187, when code execute SoapHeader header = (SoapHeader)
Assembly.GetExecutingAssembly().
CreateInstance(typeName); the variable header is null. at this time the
variable typeName = "Google.Api.Ads.AdWords.v13.authToken"


-------


but if I use this another's header works fine:



headers.Add("email", Email);
headers.Add("password", Senha);
headers.Add("useragent", UserAgent);
headers.Add("developerToken", DevToken);
headers.Add("clientEmail", ClientEmail);


but I think this way is not the best one, because a new AuthToken will
be generated every time that I download a report.


****************************************


-> another question is:


How can I set returnMoneyInMicros (acording to
http://adwordsapi.blogspot.com/2010/11/change-to-currency-formatting-in-report.html)
thought .net client library


regards,
Thiago.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to