How do you update the text of a Keyword

49 views
Skip to first unread message

LP AI

unread,
Sep 4, 2019, 11:02:02 AM9/4/19
to AdWords API and Google Ads API Forum
Is it possible to update the keyword text via the API? We are using the PHP examples and we have seen this


but this explains bids and uses the AdGroupCriterionService. If you try to setText in place of setFinalUrls there is an error as text is for the keyword and the error is 

Fatal error: Uncaught Error: Call to undefined method Google\AdsApi\AdWords\v201809\cm\BiddableAdGroupCriterion::setText() 

What is the correct way to do this?

LP AI

unread,
Apr 21, 2020, 9:17:24 AM4/21/20
to AdWords API and Google Ads API Forum
This did not seem to be possible and in the end we had to delete the keyword and create a new one.

Google Ads API Forum Advisor Prod

unread,
Apr 21, 2020, 11:18:34 AM4/21/20
to le...@autographicinsight.com, adwor...@googlegroups.com

Hi LP,

Thank you for reaching out. The keyword text is immutable. Even if you update the keyword text in Google Ads UI it removes the existing keyword and adds the keyword with a new criteria Id. The workaround is to remove the existing keyword and create a new one. Please let me know if you have further questions.

Thanks and regards,
Xiaoming, Google Ads API Team



 

ref:_00D1U1174p._5001UaRkZV:ref
Reply all
Reply to author
Forward
0 new messages