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 
<https://developers.google.com/adwords/api/docs/samples/php/basic-operations#update-an-ad-group>
 :


        // 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, a pratical 
example would be wonderful.
Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fb71af2b-7949-443a-912c-a40ec6fb8b03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to