* @category WebServices * @copyright 2015, Nural Smart All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 * @author Alvaro Blazquez */ // Include the initialization file require_once '../library/init.php'; require_once 'datamodel/Client.php'; try { // Get AdWordsUser from credentials in "../auth.ini" // relative to the AdWordsUser.php file's directory. $user = new AdWordsUser(); $client = new Client(); $client->user = $user; $client->setCampaigns(); // Run the example. //GetCampaignsExample($user); } catch (Exception $e) { printf("An error has occurred: %s\n", $e->getMessage()); } ?> <body> <p>Campaign</p> <?php $campaigns = $client->campaigns; for ($i = 0; $i < count($campaigns); $i++) { $campaign = $campaigns[$i]; ?>