Hi,

You need to use the REMOVE operator to delete a keyword.  An example
of this is included in the AdWords API PHP client library:

  
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v200909/DeleteAdGroupCriterion.php

Best,
- Eric Koleda, AdWords API Team

On Jul 3, 4:46 am, Swyam Joshi <[email protected]> wrote:
> Hi All Dear Friends,
>
>  i m trying to delete/remove keywords by setting their status "REMOVE"
> like
>                      $adGroupCriterion->userStatus = 'REMOVE';
>
> But it;s not working but if i test other status like ACTIVE, PAUSED
> then then it's working file.
> so please help me here how to delete keywords. following is my code.
>
> $adGroupCriterion = new BiddableAdGroupCriterion();
>   $adGroupCriterion->adGroupId = $adGroupId;
>   $adGroupCriterion->criterion = new Criterion($criterionId);
>  //  $adGroupCriterion->userStatus = 'PAUSED'; // use to pause keyword
>  //  $adGroupCriterion->userStatus = 'REMOVE'; // use to remove/delete
> keyword
>  //  $adGroupCriterion->userStatus = 'ACTIVE'; // use to activate
> keyword
>   $adGroupCriterion->userStatus = 'REMOVE';
>
> Thanks in advance.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
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