This is one of those where I know I must be wrong...  Please help me.
I'm trying to use this in an application where I have an MCC login,
and multiple client accounts.

So, when I want to create an instance for a particular child Account
ID
...
      headers = null;
      // Successfully gets headers from configuration file for MCC
login.
      headers = (Hashtable)
System.Configuration.ConfigurationSettings.GetConfig
("adwordsHeaders");
      headers["clientCustomerId"] = "XXX-XXX-XXXX;  // (obfuscated) -
set the clientCustomerID to a valid CustomerID
      _user = new AdWordsUser(headers);
...

That results in a _user whose headers are all NULL except for
clientCustomerID.
I would expect AdWordsUser(headers) to actually use the values in the
headers array and set them for _user.

So my question is - do I have to do this myself, or am I doing
something else wrong.

Looking into the supplied API /lib/AdWordsUser.cs file, it appears
that the constructor fails to actually set any local headers values
from the supplied headers parameter (ironically, unless they are of
the wrong type, in which case it fixes that and sets the local headers
value).

Is this a bug in the library (I know, unlikely), or user error (much
more likely).
Much appreciate any help.
Thanks.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to