Welcome to WebmasterWorld Guest from

Forum Moderators: buckworks & eWhisper & skibum

Message Too Old, No Replies

Adwords API error

8:35 am on Jun 25, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:May 7, 2005
posts: 143
votes: 0

Hello I am getting an error when I try to update keyword params and insert the into an ad.

Here's my code:

// Get the AdParamService.
$adParamService = $user->GetAdParamService('v200909');

$adgroup_id = $adgroup_id;
$keywordId = $keyword_id;

// Create ad parameters.
$adParam1 = new AdParam($adgroup_id, $keywordId, "$price", 1);

$operation = new AdParamOperation('$adParam1', 'SET');

$adParams = $adParamService->mutate($operation);


and here's the output:

Fatal error: Uncaught SoapFault exception: [soap:Server] [RequiredError.REQUIRED @ operations[0].operand.insertionText, RequiredError.REQUIRED @ operations[0].operand.paramIndex, RequiredError.REQUIRED @ operations[0].operand.criterionId, RequiredError.REQUIRED @ operations[0].operand.adGroupId] in /adwords-api/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php:179 Stack trace: #0 /adwords-api/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(179): SoapClient->__soapCall('mutate', Array, NULL, Array, Array) #1 /adwords-api/src/Google/Api/Ads/AdWords/v200909/cm/AdParamService.php(2152): AdsSoapClient->__soapCall('mutate', Array) #2 /adwords-api/update-prices2/update-keyword-params.php(41): AdParamService->mutate(Object(AdParamOperation)) #3 /adwords-api/update-prices2/set-keyword-params.php(60): include('/web/sites/dusk...') #4 in /adwords-api/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 179

Can't find a solution to this - please help.