是否可以通过 API 更新关键字的文本
Is it possible to update the text of a keyword via the API
是否可以通过 API 更新关键字文本?我们正在使用 PHP 示例并且我们已经看到了这个
https://developers.google.com/adwords/api/docs/samples/php/basic-operations#update-a-keyword
但这解释了出价并使用了 AdGroupCriterionService
。如果您尝试用 setText
代替 setFinalUrls
,则会出现错误,因为文本是针对关键字而不是 AdGroupCriterionService
。错误是
Fatal error: Uncaught Error: Call to undefined method Google\AdsApi\AdWords\v201809\cm\BiddableAdGroupCriterion::setText()
正确的做法是什么?
显然,在 AdWords 中 keyword text is immutable。
解决方法是只创建一个新关键字,如果创建成功则删除旧关键字。
是否可以通过 API 更新关键字文本?我们正在使用 PHP 示例并且我们已经看到了这个
https://developers.google.com/adwords/api/docs/samples/php/basic-operations#update-a-keyword
但这解释了出价并使用了 AdGroupCriterionService
。如果您尝试用 setText
代替 setFinalUrls
,则会出现错误,因为文本是针对关键字而不是 AdGroupCriterionService
。错误是
Fatal error: Uncaught Error: Call to undefined method Google\AdsApi\AdWords\v201809\cm\BiddableAdGroupCriterion::setText()
正确的做法是什么?
显然,在 AdWords 中 keyword text is immutable。
解决方法是只创建一个新关键字,如果创建成功则删除旧关键字。