hello Josh Radcliff, Thanks for clearing my concepts regarding OAuth2. As said by you i have created a web application in the console and made use of the client _id and client_secret in my script which prompts the google login and after the successful login with the invited user a code was returned and using this code i generated the refresh_token and then i replaced this refresh_token in the auth.ini file and sent a request SET ACTIVE and got this error message:
An error has occurred: { "error" : "unauthorized_client" }. Now after this error i tried replacing the older client_id and client_secret with this new web console application's client_id and client_secret and supplied the new refresh_token then i recieved this error message: An error has occurred: [AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:''] Below is the response i got after loggin in with the invited user stdClass Object ( [access_token] => ya29.1.AADtN_WaBb9JRj3Wxk0x5zms8FEyX_QgQbDmnqbKYnCq5JaJzbbCXXXXXXXXXX [token_type] => Bearer [expires_in] => 3600 [id_token] => eyJhbGciOiJSUzI1NiIsImtpZCI6IjNkNTZlZDFiMDVlOWJlMmQ3ZjM1MTQ2NDc1YzY3ZmYzOTU3ZTNhZTkifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwiZW1haWwiOiJicnN0ZGV2OUBnbWFpbC5jb20iLCJjaWQiOiI1NDAxODk2NTkxMTguYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJhenAiOiI1NDAxODk2NTkxMTguYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJ0b2tlbl9oYXNoIjoiSkFLMDA0YzkyZzU5bGVBaWpuT1JRQSIsImF0X2hhc2giOiJKQUswMDRjOTJnNTlsZUFpam5PUlFBIiwiYXVkIjoiNTQwMTg5NjU5MTE4LmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwidmVyaWZpZWRfZW1haWwiOiJ0cnVlIiwiZW1haWxfdmVyaWZpZWQiOiJ0cnVlIiwiaWQiOiIxMDM3ODIzMDY2NjU0Mzk3NDMyNzkiLCJzdWIiOiIxMDM3ODIzMDY2NjU0Mzk3NDMyNzkiLCJpYXQiOjEzOTQ4NzQwMTQsImV4cCI6MTM5NDg3NzkxNH0.VCWA4LVVn5IqNRSjOo4BwvZMzJlxyvWI1hY5ETZiETnfi47LK1V4UOaWEWVp-l24GkuRXMueyLIYHPhP4lGVtqXGX4Ydy6gu9L2ORNzaEPiXQGxSlv-CMJKW2OsQ4FARkv2t_49blHuPgtFwB41QdNOzBYeYSL0feXXXXXXXXXX [refresh_token] => 1/z3Jt77RQUJaIsDXq_cd7LvwyNorcl6-XXXXX_XXXXX [created] => 1394874309 ) I have replaced some of the characters just to make sure it is not misused. Please guide me to solve this error. Regards, Brihaspati Dev -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/d/optout.