Hi Rohan, When you are creating or updating a criterion you need to specify which type it is, either a keyword or website. This can be done by either setting the field criterionType to "Keyword":
<criteria> <adGroupId>INSERT_AD_GROUP_ID_HERE</adGroupId> <criterionType>Keyword</criterionType> <id> INSERT_KEYWORD_ID_HERE </text> <status>Deteletd</type> </criteria> or by setting the attribute xsi:type to "Keyword" on the criteria element: <criteria xsi:type="Keyword"> <adGroupId>INSERT_AD_GROUP_ID_HERE</adGroupId> <id> INSERT_KEYWORD_ID_HERE </text> <status>Deteletd</type> </criteria> Best, - Eric Koleda, AdWords API Team On Sep 17, 1:04 pm, ROHAN ROZI <smr...@gmail.com> wrote: > Hi. > I was trying to delete keyword from AdGroup. > So what I did was > > request : > $request_xml = > '<updateCriteria>' . > '<criteria>' . > '<adGroupId>' . $group_id . '</adGroupId>' . > '<id>' . $keyword_id . '</id>' . > '<status>Deleted</status>' . > '</criteria>' . > '</updateCriteria>'; > > I've checked group id and keyword id is correct and I got > > Fault: 1 > Code: soapenv:Server.userException > String: java.lang.RuntimeException: Abstract keyValue without > superclass. > Detail: > Error: soapenv:Server.userException: java.lang.RuntimeException: > Abstract keyValue without superclass. > HTTP/1.1 500 Internal Server Error > Content-Type: text/xml; charset=iso-8859-1 > Date: Thu, 17 Sep 2009 19:50:39 GMT > Expires: Thu, 17 Sep 2009 19:50:39 GMT > Cache-Control: private, max-age=0 > X-Content-Type-Options: nosniff > Content-Length: 4528 > Server: GFE/2.0 > > From what I've read is that we can only use > * destinationUrl > * maxCpc > * maxCpm > * paused for updateCriteria , so I've changed '<status>Deleted</ > status>' to '<paused>True</paused>' .. but same error appeared.. > what am i doing wrong? > > Regards --~--~---------~--~----~------------~-------~--~----~ 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 adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~----------~----~----~----~------~----~------~--~---