Hi, In the PHP library, the tokens are generated in a lazy fashion, i.e. right before they are needed. If you don't cause the AuthToken to get generated BEFORE the fork, then each forked process will generate its own, leading to CAPTCHA challenged. You can call GetAuthToken() ( http://code.google.com/p/google-api-adwords-php/source/browse/trunk/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php#260) on the AdWordsUser which forces creation. Do this prior to the fork and each process will have a complete copy of the AdWordsUser object, AuthToken and all, which can then be used to make requests without fear of CAPTCHA challenges.
- Kevin Winter AdWords API Team On Friday, December 16, 2011 1:42:57 PM UTC-5, iateadonut wrote: > > I'm misunderstanding: > > I do this command only once: > $user = new AdWordsUser(); > > > and then I loop through my customerId's like this: > $user->SetClientId($customerId); > > > I thought only 'new AdWordsUser()' would generate a new AuthToken? > > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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