gpt4 book ai didi

php - 如何在 Google AdWords API 中获取关键字的当前 CPC 出价?

转载 作者:可可西里 更新时间:2023-11-01 00:59:44 26 4
gpt4 key购买 nike

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

$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

Although this field is returned in the response, it is ignored on input and cannot be selected.

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

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;

不好意思打扰了。

关于php - 如何在 Google AdWords API 中获取关键字的当前 CPC 出价?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30927759/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com