setting a budget and enhanced CPC for campaings in v201409

110 views
Skip to first unread message

András Révai

unread,
Nov 23, 2014, 10:10:56 AM11/23/14
to adwor...@googlegroups.com
Hi,

#1 Is there a way to set a non-shared budget for a campaign in version v201409?

#2 How exactly do I set Enhanced CPC for a campaign?

Thanks,

András




Danial Klimkin

unread,
Nov 24, 2014, 6:14:43 AM11/24/14
to adwor...@googlegroups.com
Hello András,


1. Yes, just create a budget with isExplicitShared = false.

2. You need to use the EnhancedCpcBiddingScheme:



-Danial, AdWords API Team.

András Révai

unread,
Nov 26, 2014, 6:45:28 AM11/26/14
to adwor...@googlegroups.com
Hello Danial,

Setting a non-shared budget works now, thanks!

I still have a problem with Enhanced CPC.

#1 If I try it this way:

            $biddingStrategyConfigurationC = new BiddingStrategyConfiguration();
            $biddingStrategyConfigurationC->biddingStrategyType = 'ENHANCED_CPC';
           
            $biddingScheme = new EnhancedCpcBiddingScheme();
           
            $biddingStrategyConfigurationC->biddingScheme = $biddingScheme;

I get BiddingErrors.INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE @ operations[0].operand.biddingStrategyConfiguration.biddingStrategyType; trigger:'ENHANCED_CPC

#2 If I do it this way:

            $biddingStrategyConfigurationC = new BiddingStrategyConfiguration();
            $biddingStrategyConfigurationC->biddingStrategyType = 'MANUAL_CPC';
           
            $biddingScheme = new EnhancedCpcBiddingScheme();
           
            $biddingStrategyConfigurationC->biddingScheme = $biddingScheme;

I get BiddingErrors.INVALID_BIDDING_SCHEME @ operations[0].operand.biddingStrategyConfiguration.biddingScheme; trigger:'The type of MANUAL_CPC requires a ManualCpcBiddingScheme but was EnhancedCpcBiddingScheme'

#3 The only way it works for me is this but I don't want to use a shared bidding strategy:

            $sharedBiddingStrategyC->name = 'ENHANCED_CPC';
            $sharedBiddingStrategyC->type = 'ENHANCED_CPC'; 
           
            $operation = new BiddingStrategyOperation();
            $operation->operator = 'ADD';
            $operation->operand = $sharedBiddingStrategyC;

            try
            {              
                $result = $biddingStrategyService->mutate(array($operation));
            }
            catch (\Exception $e)
            {
                return "Error while trying to set bidding:" . $e->getMessage();                       
            }

            $biddingStrategy = $result->value[0];

            $biddingStrategyConfigurationC = new \BiddingStrategyConfiguration();
            $biddingStrategyConfigurationC->biddingStrategyId = $biddingStrategy->id;

Could you please give step-by-step instructions on how to do it?

#4 The code in the example file did not work either for me:

    // Set bidding strategy (required).
    $biddingStrategyConfiguration = new BiddingStrategyConfiguration();
    $biddingStrategyConfiguration->biddingStrategyType = 'MANUAL_CPC';

    // You can optionally provide a bidding scheme in place of the type.
    $biddingScheme = new ManualCpcBiddingScheme();
    $biddingScheme->enhancedCpcEnabled = FALSE;
    $biddingStrategyConfiguration->biddingScheme = $biddingScheme;

Thanks,

András

András Révai

unread,
Nov 26, 2014, 7:47:50 AM11/26/14
to adwor...@googlegroups.com
Hi Danial,

I replied but it looks like you did not receive my answer so I'm writing again.

The non-shared budget settings works now, thanks.

I still have a problem with Enhanced CPC though. I've tried it several ways but always get an error message. Can you give me an example you tested which actually works?


Thanks,

András

2014. november 24., hétfő 12:14:43 UTC+1 időpontban Danial Klimkin a következőt írta:

Danial Klimkin

unread,
Nov 28, 2014, 6:00:07 AM11/28/14
to adwor...@googlegroups.com
Hello András,


First of all, Type and Scheme fields need to match, so approach (2) is not valid. You can actually send of of these two to specify the type.

It looks like this bidding scheme is not available for individual (unshared) strategies, please use a shared one instead. There is no downside of that -- you don't have to share a shareable strategy but can create one for each case.


-Danial, AdWords API Team.

András Révai

unread,
Nov 28, 2014, 6:15:51 AM11/28/14
to adwor...@googlegroups.com
Hi Danial,

OK, thanks.

András
Reply all
Reply to author
Forward
0 new messages