Aditional information: on the sandbox i dont use the authtoken and it
work?

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 later realized that if I comment all the lines, and call  the Run of
the GetAllCampaigns this way, it still work, taking directly from the
app.config the info

codeExample.Run(New AdWordsUser)
but on the app.config there is no authtoken, it is commented. does the
sandbox need a authtoken??

 <!-- Uncomment this if you want to reuse an authToken multiple times.
-->
    <!--<add key="AuthToken" value="ENTER_YOUR_AUTH_TOKEN_HERE"/> -->

----------------------------
I changed from sandbox to production just commenting this line.

  <!-- Uncomment this key if you want to use AdWords API sandbox. -->
    <!--<add key="AdWordsApi.Server" value="https://adwords-
sandbox.google.com"/>-->

Is enough with this?? Is there a dll for the sandbox and other for
production enviroment??

------------------------
the auth token i got on the production enviroment are ok. I got
something like this with a space at the end. I tried deleting it but
it didnt work.

"DQAAAKoAAACOaa0QTLYHjHpGKtEkiInEZOr20s6CICOJ8ECPJ-
cs0gaInjbbNz0a0QCCu6N3D5GzURkpt_gKPwDhKzJiM_SjTtgRdRRL73QCeWbOlMg5MfsFJt659iC_more
caracters_9AyoQ9fhqfbPpjH5_LI0zLuEZf-PZp-ta5oEMQhZWXK2LkHGIdJDdx--MufD-
klZpBvp2hECRrPHUvMvQfWyAGPnQaqI45w "



Is there anyway to check if a authtoken is valid, so that way i could
check the authtoken i am using and if it is not a valid one, at least
find the source of the error.

hope some can help, I did have any problem working with sandbox but I
already spend 4 days triying to move the application to production
unsucessfully.

Thanks

On 1 sep, 15:20, therealzeta <pcgroup....@gmail.com> wrote:
> 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to