Re: google adwords api oauth2 test environment
Hi Michael, You should create test account with a separate login, you cannot have two AdWords accounts with the same login email. As for working around OAuth2 authorization for testing purposes, you could generate an OAuth2 access token and refresh token for your test MCC account, then generate access token as required using the refresh token (this is the equivalent of offline=true in OAuth2 web / installed application flows). If you are using the client libraries, they typically comes with an application that allows you to generate a refresh token, so that your application runs without the authorization prompt. For instance, you can see the instructions for the AdWords API .NET library at https://code.google.com/p/google-api-adwords-dotnet/wiki/UsingOAuth#Adding_OAuth2_support_for_your_application_(single_login) . Cheers, Anash P. Oommen AdWords API Advisor. On Monday, August 26, 2013 10:59:31 PM UTC+1, Michael Ni wrote: I have been using web flow as my main flow. Is the only difference in web flow and installed app flow the redirection url, in terms of param settings. Mike On Monday, August 26, 2013 6:27:15 AM UTC-7, Ewan Heming wrote: Hi Mike, You only need the callback to use the OAuth web flowhttps://developers.google.com/accounts/docs/OAuth2WebServer, you can get your tokens using the Installed App Flowhttps://developers.google.com/accounts/docs/OAuth2InstalledApp. You should find an example in the client library you're using; for example, here's the PHP scripthttps://code.google.com/p/google-api-adwords-php/source/browse/examples/AdWords/Auth/GetRefreshToken.php . Regards, Ewan -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- 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.
Re: google adwords api oauth2 test environment
Hi, You can use a test account. Please see the guidehttps://developers.google.com/adwords/api/docs/test-accounts . You can authenticate it with your MCC account, and that credential should work against your test account (that is the child account of your MCC account). Best, - Takeshi, AdWords API Team On Monday, August 26, 2013 1:34:47 PM UTC+9, Michael Ni wrote: Is there a test environment for google adwords api? I want to bypass the oauth2 authorization. It is difficult to test when I have to get authorization from oauth2, mainly due to the callback. Or at least is there a generic access token + refresh token for a test environment. Mike -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- 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.
Re: google adwords api oauth2 test environment
Hi Mike, You only need the callback to use the OAuth web flowhttps://developers.google.com/accounts/docs/OAuth2WebServer, you can get your tokens using the Installed App Flowhttps://developers.google.com/accounts/docs/OAuth2InstalledApp. You should find an example in the client library you're using; for example, here's the PHP scripthttps://code.google.com/p/google-api-adwords-php/source/browse/examples/AdWords/Auth/GetRefreshToken.php . Regards, Ewan -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- 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.
Re: google adwords api oauth2 test environment
Takeshi, I tried creating a test account with the same email as my mcc account, it is not allow me to. Should I create a brand new email for this account? Mike On Monday, August 26, 2013 6:10:36 AM UTC-7, Takeshi Hagikura (AdWords API Team) wrote: Hi, You can use a test account. Please see the guidehttps://developers.google.com/adwords/api/docs/test-accounts . You can authenticate it with your MCC account, and that credential should work against your test account (that is the child account of your MCC account). Best, - Takeshi, AdWords API Team On Monday, August 26, 2013 1:34:47 PM UTC+9, Michael Ni wrote: Is there a test environment for google adwords api? I want to bypass the oauth2 authorization. It is difficult to test when I have to get authorization from oauth2, mainly due to the callback. Or at least is there a generic access token + refresh token for a test environment. Mike -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- 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.
Re: google adwords api oauth2 test environment
I have been using web flow as my main flow. Is the only difference in web flow and installed app flow the redirection url, in terms of param settings. Mike On Monday, August 26, 2013 6:27:15 AM UTC-7, Ewan Heming wrote: Hi Mike, You only need the callback to use the OAuth web flowhttps://developers.google.com/accounts/docs/OAuth2WebServer, you can get your tokens using the Installed App Flowhttps://developers.google.com/accounts/docs/OAuth2InstalledApp. You should find an example in the client library you're using; for example, here's the PHP scripthttps://code.google.com/p/google-api-adwords-php/source/browse/examples/AdWords/Auth/GetRefreshToken.php . Regards, Ewan -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- 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.
google adwords api oauth2 test environment
Is there a test environment for google adwords api? I want to bypass the oauth2 authorization. It is difficult to test when I have to get authorization from oauth2, mainly due to the callback. Or at least is there a generic access token + refresh token for a test environment. Mike -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- 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.