// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Check connection
$sql = "SELECT * FROM table";
$result = $conn->query($sql);
while($row = $result->fetch_assoc()) {
// Create a campaign with required and optional settings.
$campaign = new Campaign();
$campaign->setName($row["name"]. uniqid());
$campaign->setAdvertisingChannelType(AdvertisingChannelType::SEARCH);
}Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/