Thanks Jan,

I've written a working code with updateCampaign request and it did wok
well for me. For people who may wonder how to change campaign
paramater(s), I am adding the PHP code down here.  This may give an
idea.

<?php

/** This code sample Stops a campaign with given campaign id */

require_once('soapclientfactory.php');

$email = '***********************';
$password = '***********************';
$client_email ='***********************';
$useragent = '***********************';
$developer_token = '***********************';
$application_token = '***********************';

$headers =
  '<email>' . $email . '</email>'.
  '<password>' . $password . '</password>' .
  '<clientEmail>' . $client_email . '</clientEmail>' .
  '<useragent>' . $useragent . '</useragent>' .
  '<developerToken>' . $developer_token . '</developerToken>' .
  '<applicationToken>' . $application_token . '</applicationToken>';

$namespace = 'https://adwords.google.com/api/adwords/v12';
$campaign_service =
  SoapClientFactory::GetClient($namespace . '/CampaignService?wsdl',
'wsdl');
$campaign_service->setHeaders($headers);
$debug = 1;

                $id=1********4;
                $status='Active';
                $campaign='<campaign>'.
                                 '<id>'.$id.'</id>'.
                                 '<status>'.$status.'</status>'.
                           '</campaign>';
                $request_xml ='<updateCampaign>'.$campaign.'</
updateCampaign>';
                $updateCampaign = $campaign_service-
>call('updateCampaign',$request_xml);


?>

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to