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


how current bid keyword in account? tried

$adgroupcriterion->biddingstrategyconfiguration->bids[0]->bid->value * adwordsconstants::micros_per_dollar; 

but gave me error 'trying property of non-object'. when add keyword, i'm able bid in return value ok.

the bid doesn't appear selectable in operation. i've searched on documentation it.

https://developers.google.com/adwords/api/docs/reference/v201502/adgroupcriterionservice.biddableadgroupcriterion#biddingstrategyconfiguration

https://developers.google.com/adwords/api/docs/reference/v201502/adgroupcriterionservice.bids

although field returned in response, ignored on input , cannot selected.

i'm using example fetch keywords:

https://github.com/googleads/googleads-php-lib/blob/master/examples/adwords/v201502/basicoperations/getkeywords.php#l43

i found it.

https://developers.google.com/adwords/api/docs/reference/v201502/adgroupcriterionservice.cpcbid#bid

$selector->fields = array('id', 'keywordtext', 'keywordmatchtype', 'adgroupid', 'status', 'cpcbid'); 

and had property , operator wrong:

$adgroupcriterion->biddingstrategyconfiguration->bids[0]->bid->microamount / adwordsconstants::micros_per_dollar; 

sorry bother you.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -