Hi Weblamer,

I struggled porting our VB.net desktop apps over to 2009 too.  I've
finally got them working!   Don't try and use the built in web
references, you need to create them manually using the wsdl.exe from
the DOS prompt example:

C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin>wsdl.exe /
language:VB /sharetypes /out:AdWordsApi.vb
https://adwords.google.com/api/adwords/cm/v200909/AdGroupCriterionService?wsdl
https://adwords.google.com/api/adwords/cm/v200909/AdGroupService?wsdl
https://adwords.google.com/api/adwords/cm/v200909/AdGroupAdService?wsdl
https://adwords.google.com/api/adwords/cm/v200909/CampaignService?wsdl

Edit the above to include the files you need (the above is just an
example)

When this file has built, add it to your project and edit the line:

Partial Public Class SoapHeader

Change it to:

Partial Public Class RequestHeader

That should get you started.

Cheers

Soapy

On Jan 26, 7:28 pm, Weblamer <[email protected]> wrote:
> Are there any basic VB.net examples anywhere on the web for the new
> v200909 API?
>
> I had used the v13 api in an application my company uses, and all the
> code and functions in there worked just fine, but to be honest I am
> having a heck of a time even getting started in this new version. For
> instance, in v13, in order to get all the campaign id's I used this
> chunk of code:
>
> =============================================
>  Dim service As New CampaignService.CampaignService()
>
>         ' Define SOAP headers.
>         service.emailValue = New CampaignService.email()
>         service.emailValue.Text = New String() {email}
>       service.passwordValue = New CampaignService.password()
>        service.passwordValue.Text = New String() {password}
>        service.clientEmailValue = New CampaignService.clientEmail()
>         service.clientEmailValue.Text = New String() {clientEmail}
>        service.useragentValue = New CampaignService.useragent()
>        service.useragentValue.Text = New String() {useragent}
>         service.developerTokenValue = New
> CampaignService.developerToken()
>         service.developerTokenValue.Text = New String()
> {developerToken}
>         service.applicationTokenValue = New
> CampaignService.applicationToken()
>        service.applicationTokenValue.Text = New String()
> {applicationToken}
>
>         service.clientCustomerIdValue = New
> CampaignService.clientCustomerId
>        service.clientCustomerIdValue.Text = New String() {CustID}
>
>        'Dim CampaignList() As Campaign = service.getAllAdWordsCampaigns
> (0)
>         Dim c As Campaign
>
>         For Each c In CampaignList
>          If c.status.ToString = "Active" Then
>          Debug.Print(c.name & " " & c.status.ToString & " " &
> c.budgetAmount & " " & c.id)
>          End If
>
>       'Next
>
> ====================================================
>
> which worked just fine. However in trying to get a new version of
> this, i am only finding little bits and chunks of code, and having
> problems even figuring out how to  to log in.
>
> can anyone direct me to a vb.net example that would function as the
> above code does?
>
> thank you.

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