print "No changes were found.\n"; } } /** * Converts an array of values to a comma-separated string. * @param array $array an array of values that can be converted to a string * @return string a comma-separated string of the values */ function ArrayToString($array) { if (!isset($array)) { return ''; } else { return implode(', ', $array); } } // Don't run the example if the file is being included. if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { return; } try { // Get AdWordsUser from credentials in "../auth.ini" // relative to the AdWordsUser.php file's directory. $user = new AdWordsUser(); // Log every SOAP XML request and response. $user->LogAll(); // Run the example. GetAccountChangesExample($user); } catch (Exception $e) { printf("An error has occurred: %s\n", $e->getMessage()); }
/** * Tests GetAccountChangesExample. */ public function testGetAccountChangesExample() { GetAccountChangesExample($this->user); }