Hello,
I need some suggestions ,what i'm trying to do, if possibile is :
- check if a given campaing yesterday had reached the daily budget
- if so change the max cpc bid for keywords of that campaign.
For change the max cpc bid i was thinking to use
this example :
// Update the CPC bid if specified.
if (!is_null($cpcBidMicroAmount)) {
$bid = new CpcBid();
$money = new Money();
$money->setMicroAmount($cpcBidMicroAmount);
$bid->setBid($money);
$biddingStrategyConfiguration = new BiddingStrategyConfiguration();
$biddingStrategyConfiguration->setBids([$bid]);
$adGroup->setBiddingStrategyConfiguration($biddingStrategyConfiguration);
}
Is this the best / correct way to do?
While im not sure what to do to achieve the first question (check if a given campaing yesterday had reached the daily budget) if i have to use campaign perfmormance report or Budget Performance Report (or something else?). a pratical example would be wonderful.
Thanks