No existing bid modifier for AdGroupId - Issue with AdGroupBidModifierService

255 views
Skip to first unread message

Chirag

unread,
Jul 12, 2016, 9:11:43 AM7/12/16
to AdWords API Forum
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 

Vishal Vinayak (Adwords API Team)

unread,
Jul 12, 2016, 11:17:22 AM7/12/16
to AdWords API Forum
Chirag,

To help debug, could you please provide me with the SOAP XML request and response logs for the API call? Please click on Reply privately to author when responding.

Regards,
Vishal, AdWords API Team 

Vishal Vinayak (Adwords API Team)

unread,
Jul 13, 2016, 4:41:04 PM7/13/16
to AdWords API Forum
Hi Chirag,

When you try to SET (i.e. update) the bid modifier of an ad group, for which a bid modifier has not been added yet, you get this error. You should use an ADD operation, instead of a SET, for ad groups for which you are defining a bid modifier for the first time.  

Chirag

unread,
Jul 14, 2016, 12:14:18 AM7/14/16
to AdWords API Forum
Hello Vishal,

Thanks for looking into it.

I have found the issue, when using get method for AdGroupBidModifierService, I need to look at bidModifierSource, If It is Adgroup Level then I need to use SET otherwise ADD.


I was missing bidModifierSource while using get operation, Now this is working fine.

Thanks,
Reply all
Reply to author
Forward
0 new messages