Hi, Are you using the PHP library<https://code.google.com/p/google-api-adwords-php> ? You don't have to set an access token in your request. You need to set clientId, clientSecret, refreshToken in your auth.ini<https://code.google.com/p/google-api-adwords-php/source/browse/src/Google/Api/Ads/AdWords/auth.ini#19> . Please read this wiki page<https://code.google.com/p/google-api-adwords-php/wiki/OAuth2>for details.
Best, - Takeshi, AdWords API Team On Wednesday, December 4, 2013 7:07:45 PM UTC+9, larisa bolgova wrote: > > Thank you for your answering. > I have another question. > > When i use oAuth2 > I recieve > { > "access_token":"1/fFAGRNJru1FTz70BzhT3Zg", > "expires_in":3920, > "token_type":"Bearer", > "refresh_token":"1/xEoDL4iW3cxlI7yDbSRFYNG01kVKM2C-259HOF2aQbI" > } > > how could i make first adwords api call, using access token? > > when i try to create > > *$user = new AdWordsUser();* > and then > *$managedCustomerService = $user->GetService('ManagedCustomerService', > 'v201306');* > > i have the - *Validation failed for [email] with value []: email is > required and cannot be NULL. *error > > but when i try to fill *$user = new AdWordsUser(); parametrs* (developer > token and access token) i face the - > *AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID* error > > What i did wrong? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://googleadsdeveloper.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 --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.