Using Visual Studio 2010, VB.Net, .Net 4.0, API 201003

I’m having a very tough understanding why this has to be so hard.

I’ve managed to convert the C# examples into VB.NET but the code can’t
authenticate against the server. If I code the
ApplicationConfiguration information into the vb.net module like this

Dim ThisUser As New AdWordsUser
 
        'These properties set the username / password and other
information.
        ApplicationConfiguration.logToFile = True
        ApplicationConfiguration.logPath = "C:\somedirectory\"
        ApplicationConfiguration.password = "PasswordOfMyMMCAccount"
        ApplicationConfiguration.email = "E-MailOfMyMCCAccount"
        ApplicationConfiguration.developerToken =
"MyAlphaNumericDeveloperKey"
        ApplicationConfiguration.clientCustomerId = "111-111-1111"
        ApplicationConfiguration.adWordsApiUrl = "https://adwords-
sandbox.google.com"
 
        ThisUser.GetService(AdWordsService.v201003.CampaignService)
 
I get a “Unable to connect to the remote server” and when I go into
the error it tells me it’s trying to connect to the local host. It
also fails to write any sort of error log into “C:\somedirectory”
 
Conversely, when I comment out the line above and try to configure it
in the App file in the root of my project like so.
    <add key="CompanyName" value="ComanyName"/>
    <add key="Email" value=" E-MailOfMyMCCAccount "/>
    <add key="Password" value=" PasswordOfMyMMCAccount "/>
    <add key="DeveloperToken" value=" MyAlphaNumericDeveloperKey "/>
    <add key="ClientCustomerId"         value"111-111-1111"/>

 
I get the same result, even when I specify the sandbox. Someone want
to clue me in about
 
        1) Does the .Net client lib from Google actually consume the contents
of the App file or does it just check to make sure the entries are
there. In other words does setting the values in the actual code
module like in the first example override whatever is in the app file.
        2) Where do I set the URL it should be talking to. Is it
adWordsApiUrl? If so what URL should be setting it to so I can talk to
my live account (I’m not worried about blowing it up so I don’t really
need the sandbox)
        3) Is there any third party book or white paper on using the Google
lib? The documentation here just seems so vast and unhelpful at the
same time.
         
Thanks,

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