Hello,
I am running into problem while setting a BiddingStrategyConfiguration in my campaign:
here a example of my php code:
$biddingScheme = new TargetSpendBiddingScheme();
$biddingScheme->bidCeiling = new Money(1 * 1000000);
$biddingStrategyConfiguration = new BiddingStrategyConfiguration();
$biddingStrategyConfiguration->biddingStrategyType = "TARGET_SPEND";
$biddingStrategyConfiguration->biddingStrategySource = 'CAMPAIGN';
$biddingStrategyConfiguration->biddingScheme = $biddingScheme;
$campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration;
Everytime I am running this error:
INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE
[BiddingErrors.INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE @ operations[0].operand.biddingStrategyConfiguration.biddingStrategyType; trigger:'TARGET_SPEND']
Any hints?
Greetings,
Ralf Kraus
BiddingStrategyReturnValue Object
(
[value] => Array
(
[0] => SharedBiddingStrategy Object
(
[biddingScheme] => PageOnePromotedBiddingScheme Object
(
[strategyGoal] => PAGE_ONE_PROMOTED
[bidCeiling] => Money Object
(
[microAmount] => 4000000
[ComparableValueType] => Money
[_parameterMap:ComparableValue:private] => Array
(
[ComparableValue.Type] => ComparableValueType
)
)
[bidModifier] =>
[bidChangesForRaisesOnly] =>
[raiseBidWhenBudgetConstrained] =>
[raiseBidWhenLowQualityScore] =>
[BiddingSchemeType] => PageOnePromotedBiddingScheme
[_parameterMap:BiddingScheme:private] => Array
(
[BiddingScheme.Type] => BiddingSchemeType
)
)
[id] => 1419094668
[name] => _PO_Used_1298089587
[status] => ENABLED
[type] => PAGE_ONE_PROMOTED
[systemStatus] =>
)
)
[ListReturnValueType] => BiddingStrategyReturnValue
[_parameterMap:ListReturnValue:private] => Array
(
[ListReturnValue.Type] => ListReturnValueType
)
)
Then I use it in the parameters for my campaign, here's my Campaign object:
Campaign Object
(
[id] =>
[name] => ___POP_GMC Sierra 2500HD 2013| XM351 - EN
[status] => ENABLED
[servingStatus] => SERVING
[startDate] => 20160819
[endDate] =>
[budget] => Budget Object
(
[budgetId] => 246661707
[name] =>
[amount] =>
[deliveryMethod] =>
[referenceCount] =>
[isExplicitlyShared] =>
[status] =>
)
[conversionOptimizerEligibility] =>
[adServingOptimizationStatus] =>
[frequencyCap] =>
[settings] =>
[advertisingChannelType] => SEARCH
[advertisingChannelSubType] =>
[networkSetting] => NetworkSetting Object
(
[targetGoogleSearch] => 1
[targetSearchNetwork] => 1
[targetContentNetwork] =>
[targetPartnerSearchNetwork] =>
)
[labels] =>
[biddingStrategyConfiguration] => SharedBiddingStrategy Object
(
[biddingScheme] =>
[id] => 1419094668
[name] =>
[status] =>
[type] =>
[systemStatus] =>
[biddingStrategyType] => PAGE_ONE_PROMOTED
)
[campaignTrialType] =>
[baseCampaignId] =>
[forwardCompatibilityMap] =>
[trackingUrlTemplate] =>
[urlCustomParameters] =>
[vanityPharma] =>
)
And I get the errors:
[RequiredError.REQUIRED @ operations[0].operand.advertisingChannelType,
BiddingErrors.INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE @
operations[1].operand.biddingStrategyConfiguration.biddingStrategyType;
trigger:'PAGE_ONE_PROMOTED']
The advertisngChannelType error just popped up, didn't have it in my previous tests. I'll try to fix that, but that's a different issue.
As you can see, it generates the same INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE error. It seems to say the trigger is the fact I re-assign the biddingStrategyType to 'PAGE_ONE_PROMOTED', but if I don't, I get another error saying that parameter is required.
It's not anonymous, the bidding strategy exists, it's a SHARED one,
What do I miss?