如何在 Google AdWords API 中获取关键字的当前每次点击费用出价


How do I get the current CPC bid for a keyword in Google AdWords API?

如何获取帐户中关键字的当前出价?我试过了

$adGroupCriterion->biddingStrategyConfiguration->bids[0]->bid->value * AdWordsConstants::MICROS_PER_DOLLAR;

但它给了我一个错误'Trying to get property of non-object'.当我添加关键字时,我能够在返回值中确定出价。

出价似乎无法在 GET 操作中选择。我已经搜索了整个文档。

https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupCriterionService.BiddableAdGroupCriterion#biddingStrategyConfiguration

https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupCriterionService.Bids

尽管此字段在响应中返回,但在输入时会忽略该字段,并且无法选择该字段。

我正在使用此示例来获取关键字:

https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201502/BasicOperations/GetKeywords.php#L43

我找到了。

https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupCriterionService.CpcBid#bid

$selector->fields = array('Id', 'KeywordText', 'KeywordMatchType', 'AdGroupId', 'Status', 'CpcBid');

而且我的财产和运营商是错误的:

$adGroupCriterion->biddingStrategyConfiguration->bids[0]->bid->microAmount / AdWordsConstants::MICROS_PER_DOLLAR;

很抱歉打扰您。