Hello, currently the Campaigns i create automatically use "Pay for Clicks" 
as Payment-Method.

[image: pay for conversions.png] <about:invalid#zClosurez>














(Ignore that in the shown Screenshot "Conversions" cannot be selected, the 
Screenshot is from our Test-Account and not from our Production-Account)

How can i change this to use "Pay for Conversions" instead through the API? 
Which Objects/Constants in the php-API are responsible to set "Pay for 
Conversions"?

The Code currently looks like this:

    switch ($opt_target) {
      case FeedObj::OPT_TARGET_CLICKS:
        $bidding_strategy_configuration = new 
BiddingStrategyConfiguration();
        $bidding_strategy_configuration->setBiddingStrategyType(
          BiddingStrategyType::MANUAL_CPC
        );
        $bidding_scheme = new ManualCpcBiddingScheme();
        $bidding_strategy_configuration->setBiddingScheme($bidding_scheme);
        
$campaign->setBiddingStrategyConfiguration($bidding_strategy_configuration);
        break;
      case FeedObj::OPT_TARGET_CONVERSIONS:
        //@todo: can we do something to select "pay for conversions" ?
        // Set bidding strategy: Target CPA
        $bidding_scheme = new TargetCpaBiddingScheme();
        $money = new Money();
        $money->setMicroAmount($mysterious_micro_amount);
        $bidding_scheme->setTargetCpa($money);
        $bidding_strategy_configuration = new 
BiddingStrategyConfiguration();
        $bidding_strategy_configuration->setBiddingScheme($bidding_scheme);
        
$campaign->setBiddingStrategyConfiguration($bidding_strategy_configuration);
        break;
    }

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/bb3f76ce-6e9b-446b-960c-35d94a390a83%40googlegroups.com.

Reply via email to