How to set bid modifier to nothing?

35 views
Skip to first unread message

Ken Dan Tinio

unread,
May 4, 2018, 6:23:58 AM5/4/18
to AdWords API and Google Ads API Forum
I wanted to set modifier to nothing. But I end up removing the criteria.

This is my code. It removes the criteria. I wanted to make it back to nothing (not 0% but just no number)

    $biddableAdGroupCriterion = new BiddableAdGroupCriterion();
    $biddableAdGroupCriterion->setAdGroupId($adGroupId);
    $biddableAdGroupCriterion->setCriterion($target);

    $biddableAdGroupCriterionOperation = new AdGroupCriterionOperation();
    $biddableAdGroupCriterionOperation->setOperand($biddableAdGroupCriterion);
    $biddableAdGroupCriterionOperation->setOperator(Operator::REMOVE);

    $operations[] = $biddableAdGroupCriterionOperation;
  
    $result = $adGroupCriterionService->mutate($operations);

Bharani Cherukuri (AdWords API Team)

unread,
May 4, 2018, 4:04:43 PM5/4/18
to AdWords API and Google Ads API Forum
Hello Ken, 

It is possible to unset the bid modifier by using the AdGroupCriterionService and set it to -1.0. If you're looking to set the bid modifier value to nothing in the UI, you will have to leave that field blank. 

Let me know if you have any further questions. 

Regards,
Bharani, AdWords API Team

Ken Dan Tinio

unread,
May 7, 2018, 7:20:21 AM5/7/18
to AdWords API and Google Ads API Forum
I will try this. Thanks!

Ken Dan Tinio

unread,
May 7, 2018, 8:42:30 AM5/7/18
to AdWords API and Google Ads API Forum
Works perfectly! :)
Reply all
Reply to author
Forward
0 new messages