Imports ConsoleApplication4.com.google.adwords
Module Module1
Sub Main()
' To generate the proxy class in Windows, use wsdl.exe like
this:
' wsdl.exe
http://adwords.google.com/api/adwords/v2/AdGroupService?wsdl
' Display the name and maximum cost-per-click of an AdGroup
'
' The id of the adgroup to be retrieved
Dim adgroupid As Integer = 34299
' instantiate AdGroup service
Dim service As AdGroupServiceService
service = New AdGroupServiceService
' set headers
Dim myUseragent As String = "YOUR COMPANY -- VB.Net Get AdGroup
Test"
Dim myEmail As String = "your...@yourcompany.com"
Dim myPassword As String = "secret"
Dim myToken As String = "ABcdeFGH93KL-NOPQ_STUv"
service.useragentValue = New useragent
service.useragentValue.Text = New String() {myUseragent}
service.emailValue = New email
service.emailValue.Text = New String() {myEmail}
service.passwordValue = New password
service.passwordValue.Text = New String() {myPassword}
service.tokenValue = New token
service.tokenValue.Text = New String() {myToken}
' Retrieve adgroup data and display the information
Dim adgroup As AdGroup = service.getAdGroup(adgroupid)
Console.WriteLine("The Ad Group name is " & adgroup.name)
Console.WriteLine("The max CPC is " & adgroup.maxCpc)
End Sub
End Module
thank for your help
Thanks for any help.