Hello,
I'm working on a web application (Microsoft Visual Web Developer
Express, vb.net, asp.net) and I would like to add AdWords reports to
it. I add the ReportDefinitionService web service to my web services
and use the code below to test the connection with Google. However, I
obtained the following error
"AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; trigger:'Client
'adwordsapi' belongs to the group 'ADWORDSAPI' and requires an
authentication cookie' Service[ReportDefinitionService.get]"
Can somebody help me to review the code and let me know what I'm
missing?
Imports System
Imports System.Collections.Generic
Imports System.IO
Public Class AdWords
Inherits System.Web.UI.Page
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As
EventArgs) Handles LinkButton1.Click
Try
Dim SOAP1 As New
GoogleReportDefinitionServiceSandbox.SoapHeader2
SOAP1.developerToken = "xxx obatined from adwords xxx"
SOAP1.clientCustomerId = "xxx-xxx-xxxx"
SOAP1.
Dim selector As New
GoogleReportDefinitionServiceSandbox.ReportDefinitionSelector
Dim reportdefinitionservice As New
GoogleReportDefinitionServiceSandbox.ReportDefinitionService
reportdefinitionservice.RequestHeader = SOAP1
Dim reportdefinitionpage As New
GoogleReportDefinitionServiceSandbox.ReportDefinitionPage
Dim reportdefinitionfield As New
GoogleReportDefinitionServiceSandbox.ReportDefinitionField
reportdefinitionpage =
reportdefinitionservice.get(selector)
Catch ex As Exception
Label1.Text = ex.Message
End Try
End Sub
End Class
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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