AdGroupCriterionService Rtueturn result object inconsistent

26 views
Skip to first unread message

Chirag

unread,
May 19, 2016, 1:16:52 AM5/19/16
to AdWords API Forum
Hello All,

AdGroupCriterionService Object return inconsistent object while change CPC bid for criteria.

I am getting BiddableAdGroupCriterion odject with biddingStrategyConfiguration as inconstant.
 
In some case getting CPCBid change as first parameter under Bids and sometime it is second parameter.

I am storing logs for which I have changed Bids along with criteriaid.

So I am storing values get at $result->value[0]->biddingStrategyConfiguration->bids[0]->bid->microAmount; as CPCBid. but this is not true every time.

In this case sometimes bids[0]->bid->microAmount; is returing CPMBid.

Can anyone tell how I can identify the bids value I am getting is for CPC Bid.

Thanks,

Shwetha Vastrad (AdWords API Team)

unread,
May 19, 2016, 11:56:18 AM5/19/16
to AdWords API Forum
Hi Chirag,

The BiddingStrategyConfiguration of an AdGroupCriterion contains all the bids associated with it. You can get the type of bid from bids[0]->BidsType to check if it is a CpcBid or CpmBid. 

Regards,
Shwetha, AdWords API Team.

Chirag

unread,
May 20, 2016, 12:49:25 AM5/20/16
to AdWords API Forum
Hello Shwetha,

Thank You!
Yes, I have done Same.
Reply all
Reply to author
Forward
0 new messages