Yes Tliou, we should be getting error for this.

I just ran into another odd bit of behavior when editing a keyword's
text. In order to 'edit' a keyword's text I implemented a function
that adds a new keyword with the new text and deletes the old keyword,
just like Gareth did. But here's what happened...I updated a keyword
from 'blah' to 'more blah' and everything worked. I then updated
another keyword ALSO to 'more blah' but with a different bid amount.
Instead of throwing an error that there was a duplicate keyword with
that text Google over-wrote the bid of the previously-created 'more
blah'.

Has anyone seen this? Is it expected behavior?

On Mar 24, 4:55 pm, Tliou <[email protected]> wrote:
> I am also not getting any soap errors when updating text and/or
> updating matchtype. Shouldn't we be getting API errors instead of none
> at all in this case?
>
> On Mar 22, 6:39 am, GarethFuller <[email protected]> wrote:
>
> > Hi,
>
> > I am calling a function in PHP to update akeywordlike this:
>
> > $api_keyword_manager->updateKeyword($apiAdGroup->id, $updatedKeyword,
> > $matchType, $id);
>
> > the arguments i'm parsing are valid in that I know thekeywordAPI id
> > is correct as is the adgroup API id, the function updateKeyword looks
> > like this:
>
> > public function updateKeyword($adGroupId, $keyWord, $matchType,
> > $keyWordId){
>
> >                 try{
> >                         if (isset($adGroupId))
> >                         {
>
> >                                 $keyword= newKeyword();
> >                                 $keyword->id = $keyWordId;
> >                                 $keyword->text= $keyWord;
> >                                 $keyword->matchType = 
> > strtoupper($matchType);
>
> >                                 // Create biddable ad group criterion.
> >                                 $keywordAdGroupCriterion = new 
> > BiddableAdGroupCriterion();
> >                                 $keywordAdGroupCriterion->adGroupId = 
> > $adGroupId;
> >                                 $keywordAdGroupCriterion->criterion = 
> > $keyword;
>
> >                                 // Create operations.
> >                                 $keywordAdGroupCriterionOperation = new
> > AdGroupCriterionOperation();
> >                                 $keywordAdGroupCriterionOperation->operand =
> > $keywordAdGroupCriterion;
> >                                 $keywordAdGroupCriterionOperation->operator 
> > = 'SET';
>
> >                                 $this->operations = 
> > $keywordAdGroupCriterionOperation;
>
> >                                 return 
> > ($this->adGroupCriteriaService->mutate( $this-
>
> > >operations ));
>
> >                         } else {
> >                                 return false;
> >                         }
>
> >                 } catch ( Exception $e ) {
> >                         return false;
> >                 }
> >         }
>
> > The issue I am having is that this script is running fine and not
> > returning any soap errors etc but the keywords are notupdatingin the
> > system. I was just wondering if maybe there is some sort of other
> > argument you need to send to the system to update a criterion.
>
> > Thanks for your help,
>
> > Gareth

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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