I found how to set the AuthToken in the app.config, it was right in
front of me:

   <add key="AuthToken" value="INSERT_YOUR_AUTH_TOKEN_HERE"/>

Anyway, I'm still looking the answers for my other questions.

Thanks.


On Aug 10, 9:17 pm, Nariz Wallace <[email protected]> wrote:
> Hi,
>
> I downloaded the .Net Adwords Library. I've been reviewing the samples
> programs (TargetingIdeaService). I extracted some code to start
> creating some proofs of concept, but bigest issue, so far, is that I
> cannot get logged in to the sandbox, I replaced the default values for
> my authentication info in the the app.config in order to use the
> sandbox's services, this is how my app.config looks now:
>
> <AdWordsApi>
>     <add key="LogPath" value="C:\Logs\"/>
>     <add key="LogToConsole" value="false"/>
>     <add key="LogToFile" value="true"/>
>     <add key="MaskCredentials" value="true"/>
>     <add key="LogErrorsOnly" value="false"/>
>
>     <add key="Timeout" value="100000"/>
>     <add key="EnableGzipCompression" value="true"/>
>     <add key="UserAgent" value="MYCOMPANY"/>
>     <add key="ClientEmail" value="[email protected]"/>
>     <add key="DeveloperToken" value="[email protected]++USD"/>
>     <add key="AuthorizationMethod" value="ClientLogin"/>
>     <add key="Email" value="[email protected]"/>
>     <add key="Password" value="mypassword"/>
>     <add key="AdWordsApi.Server" value="https://adwords-
> sandbox.google.com"/>
>   </AdWordsApi>
>
> With those values I'm getting the following exception when I try to
> execute TargetingIdeaService.get():
>
>     {"AuthenticationError.NOT_ADS_USER @ ; trigger:'908874548491'
> Service[TargetingIdeaService.get]"}
>
> I also tried to use OAuth as AuthorizationMethod (I  used the OAuth
> consumer key/secret as anonymous/anonymous) but I didn't get any
> success either, I got the following exception:
>
>      OAuth provider cannot be null when selecting Authorization method
> as "OAuth"
>
> Documentation about .net library doesn't mention anything about
> configuring an OAuth provider, at least I haven't found anything about
> it yet.
>
> Is there a way to use sandbox with a non-MCC account?
> If not, Is there a free way to generate a DeveloperToken?
>
> Can someone provide some working settings or tell me what I'm missing
> or doing wrong?
>
> I also read about authToken, looks like I need it to use the sandbox,
> but there is no settings samples (key) in the app.config to configure
> it, How can I generate and pass this token over my instances?
>
> Any thoughts? Help would be appreciate.
>
> 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