I am migrating from the old API where I used to do
$bidding = new BiddingStrategyConfiguration();$bidding->setBiddingStrategyType("whatever");
$campaign->setBiddingStrategyConfiguration($bidding);
And than push the updated campaign
For the new api I checked some post and example but they are either for a brand new campaign... or do not work!
If I execute a code like
$campaign = new Campaign([
'resource_name' => ResourceNames::forCampaign($customerId, $campaignId)
]);
$campaign->setMaximizeConversions(new MaximizeConversions());
And than push I will end up with this json
{
"customerId": "XYZ",
"operations": [{
"updateMask": "resourceName",
"update": {
"resourceName": "customers\/XYZ\/campaigns\/ABC",
"maximizeConversions": {}
}
}]
}
I receive a "valid" response like
{
"results": [{
"resourceName": "customers/XYZ/campaigns/ABC"
}]
}
But nothing is happening...
DId anyone can help me ?
Do I must use portfolio bidding strategy ?