Re: Going from Command Line to Creating Web-based tools

2014-09-29 Thread Anash P. Oommen (AdWords API Team)
Hi Sage, It is not required in your case, since you copy-pasted your code into the main page. Cheers, Anash On Saturday, September 27, 2014 10:01:43 AM UTC-4, Sage Lewis wrote: So I found that if I commented this out: // Don't run the example if the file is being included. //if (__FILE__

Re: Going from Command Line to Creating Web-based tools

2014-09-29 Thread Sage Lewis
Cool. Thanks! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you

Re: Going from Command Line to Creating Web-based tools

2014-09-27 Thread Sage Lewis
So I found that if I commented this out: // Don't run the example if the file is being included. //if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { // return; //} the script runs in the browser. My question now is: do I need this? I'm running XAMPP on Windows 7. Thanks! Sage -- --

Re: Going from Command Line to Creating Web-based tools

2014-09-25 Thread Anash P. Oommen (AdWords API Team)
Hi Sage, I think that's pretty straightforward; you just need to copy-paste the code from https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201406/Reporting/GetReportFields.php into your index.php and modify the printf calls such that they print out html tags

Re: Going from Command Line to Creating Web-based tools

2014-09-25 Thread Sage Lewis
Sweet! Thanks. I'll give it a try. On Thursday, September 25, 2014 9:29:32 AM UTC-4, Anash P. Oommen (AdWords API Team) wrote: Hi Sage, I think that's pretty straightforward; you just need to copy-paste the code from

Going from Command Line to Creating Web-based tools

2014-09-24 Thread Sage Lewis
First, I want to thank you all for your contributions here. Because of you all I now have successfully run GetRefreshToken.php and GetReportFields.php both from the command line. If you knew me you would think that's a miracle in and of itself. But now I'm curious about going to the next