如何获取帐户中关键字的当前出价?我试过了
$adGroupCriterion->biddingStrategyConfiguration->bids[0]->bid->value * AdWordsConstants::MICROS_PER_DOLLAR;
但它给了我一个错误
'Trying to get property of non-object'
。当我添加关键字时,我能够在返回值中获得出价 OK。出价似乎无法在 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');
我的属性(property)和运营商错了:
$adGroupCriterion->biddingStrategyConfiguration->bids[0]->bid->microAmount / AdWordsConstants::MICROS_PER_DOLLAR;
抱歉打扰你。
关于php - 如何在 Google AdWords API 中获取关键字的当前每次点击费用出价?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30927759/