Hi,

If you don't provide an authtoken header, but provide username and password, 
the client library will automatically generate one. Also, the values from 
App.config and overridden constructor are merged together, which is why 
things seem to work even when not specifying authToken.

To move your code to production, 

- Comment out the AdWordsApi.Server url in app.config. The calls go to the 
production environment by default.
- The latest version of the library caches AuthToken and retries the calls 
for GOOGLE_ACCOUNT_COOKIE_INVALID, so you can choose not to set the 
AuthToken header. But if you want to generate an AuthToken and reuse it, 
then do this:
  string authToken = new AuthToken(new AdWordsAppConfig(), "adwords", email, 
password).GetToken();
- Now use this authToken in your getCredentials method.

Hope this helps. Let me know if you need more help or have more questions,

Cheers,
Anash P. Oommen,
AdWords API Advisor.



-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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