homepage Welcome to WebmasterWorld Guest from 54.234.60.133
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Accredited PayPal World Seller

Home / Forums Index / Google / Google AdWords
Forum Library, Charter, Moderators: buckworks & eWhisper & skibum

Google AdWords Forum

    
Adwords API error
Elric99




msg:4159045
 8:35 am on Jun 25, 2010 (gmt 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);

flush();

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.

Thanks

Tom

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google AdWords
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved