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

时间:2015-06-18 23:52:53

标签: php google-adwords

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

$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

1 个答案:

答案 0 :(得分:4)

我找到了。

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

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

我的财产和经营者错了:

createToolWindowContent

很抱歉打扰你。