hi Josh, Thanks a lot for looking into this matter. the code snippet you have provided is in JAVA language but i am making use of PHP. Actually the SOAP logs are not recorded for the failed requests since the error occurred so the processing stops there only. The problem i am facing is that i have been able to generate the refresh_token for the invited user, and how to use this refresh_token in order to make the request on the users behalf ?? Like if i make a request for the ADD PENDING service then i have to provide the Client_id, client_secret, developer_token and user agent and refresh_token all there are from the manager's side(MCC account credentials) and the request is a success. Now after this i redirect the user to google login page and after successful login a code is returned back and using that code i have generated the refresh token. Now where to put this token into the script so that the SET ACTIVE request is completed successfully on users behalf ?
Regards, Brihaspati On Tue, Mar 18, 2014 at 7:05 PM, <[email protected]> wrote: > Hi Brihaspati, > > Could you send me the request and soap logs for the *failed* requests? > > Another note is that you don't need multiple projects > (client_id/client_secret pairs) if you only have one application. You can > (and should) use the same client_id and client_secret for all of your > application's requests, regardless of which user's account you are > accessing. > > Regarding your question on setting the OAuth information programmatically, > below is an example. > > AdWordsUser user = new AdWordsUser(); > user.Config.OAuth2Mode = OAuth2Flow.APPLICATION; > OAuth2ProviderForApplications oAuth = > (user.OAuthProvider as OAuth2ProviderForApplications); > oAuth.RefreshToken = xxx; > oAuth.AccessToken = xxx; > oAuth.UpdatedOn = xxx; > oAuth.ExpiresIn = xxx; > > Note that only oAuth.RefreshToken is mandatory. If you leave oAuth. > AccessToken as empty, or if oAuth.UpdatedOn + oAuth.ExpiresIn is in the > past, the access token will be refreshed by the library. > > Thanks, > Josh, AdWords API Team > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > Also find us on our blog and discussion group: > http://googleadsdeveloper.blogspot.com/search/label/adwords_api > https://developers.google.com/adwords/api/community/ > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > > On 03/18/14 06:59:24 [email protected] wrote: > > hello Josh, > > As said by you i have sent you the required details. One important thing > is that i have generated the refresh_token of the invited user and now how > should i make the request on the behalf of the invited user ?? > I mean to say that i have changed the refresh token in the autn.ini file > but still receiving the above mentioned error messages. And can you > please tell me about how to set the OAUTH values in the function instead > specifying them in the auth.ini file ? > > 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 [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 > --- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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 --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
