hi, i am gaving problem moving my application from sandbox to the real
platform. In sandbox everything is ok, but I cant make it work in the
real.

this code is the one of the real.
 codeExample.Run(New AdWordsUser(getCredencialUser))


 Public Function getCredencialUser()
        Dim headers As New Dictionary(Of String, String)

        headers.Add("authToken", "the authtoken")
        headers.Add("DeveloperToken",
appConfigGetValue("DeveloperToken"))
        headers.Add("Useragent", appConfigGetValue("UserAgent"))
        headers.Add("clientCustomerId", 1)


        Return headers
    End Function



 Public Overrides Sub Run(ByVal user As AdWordsUser)
            ' Get the CampaignService.
            Dim campaignService As CampaignService =
user.GetService( _
                AdWordsService.v201101.CampaignService)

            ' Create the selector.
            Dim selector As New Selector
            selector.fields = New String() {"Id", "Name", "Status"}

            Try
                ' Get all campaigns.
                Dim page As CampaignPage =
campaignService.get(selector) **  I GOT THE ERROR HERE


            Catch ex As Exception
                Console.WriteLine("Failed to retrieve Campaign(s).
Exception says ""{0}""", ex.Message)
            End Try
        End Sub


On the sand box, I use this code and it works.

 Public Function getCredencialUser()
        Dim headers As New Dictionary(Of String, String)

        headers.Add("Useragent", appConfigGetValue("UserAgent"))
        headers.Add("Email", appConfigGetValue("Email"))
        headers.Add("Password", appConfigGetValue("Password"))
        headers.Add("ClientEmail", appConfigGetValue("ClientEmail"))
        headers.Add("DeveloperToken",
appConfigGetValue("DeveloperToken"))

        Return headers
    End Function

 I have read a lot and it seems I am using and invalid authtoken, but
I just got it 24 hour ago. The other error could be I am not copied it
weel, but i already checked it. Is there anyway to check on my
account, nop using the api, if an authtoken is ok?? i have been 2 days
checking every thing, making changes but I cant make it work.

Can someone help me eith this.

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