Hello,
I was using AdGroupBidModifierService to get the if any bid modifier already SET and If Not set than I am Adding same.
And if set I am updating bid mobifier through API.
But I am not able to do same.
My get modifier object is returning which has bid modifier already SET,
AdGroupBidModifier Object
(
[campaignId] => ID
[adGroupId] => 604168831
[criterion] => Platform Object
(
[platformName] =>
[id] => 30001
[type] => PLATFORM
[CriterionType] => Platform
[_parameterMap:Criterion:private] => Array
(
[Criterion.Type] => CriterionType
)
)
[bidModifier] => 1.2000000476837
[bidModifierSource] => ) "
So I am updating same using SET operation, but SET operation is returning error
the Error is : [Jul 12 2016 08:57:21.000000 - ERROR] effectiveUser=ID service=AdGroupBidModifierService method=mutate operators={SET: 5} responseTime=125 requestId=0005376fc121a3500a62cd4a8f0aebd8 operations=5 units= server=
adwords.google.com isFault=true faultMessage=[EntityNotFound.INVALID_ID @ operations[0].operand.criterion; trigger:'No existing bid modifier for AdGroupId: 604168831 CriterionId{id=30001}']
Please guide me what is the best way to when to use SET or ADD operation using AdGroupBidModifierService.
Thanks