Clearing Bid Modifier in Google ads

340 views
Skip to first unread message

kinganil...@gmail.com

unread,
Apr 2, 2022, 10:25:41 AM4/2/22
to Google Ads API and AdWords API Forum
Hi Google Team,

We were working on Bid modifier of the CampaignTargetService. As per the document we were able to set the values in the range [0 to 10.0]. Where, 0 opt out of the device targeting.

As in Adwords to clear the bidModifer field we set bidModifier value to -1 in an update request and it clears it but now in google ads it throw Too Low error. 

Kindly confirm, if same is supported in google ads as well. If yes, then how we can clear the bid modifier.

Thanks
Anil Kumar Halmadgi

kinganil...@gmail.com

unread,
Apr 2, 2022, 10:38:19 AM4/2/22
to Google Ads API and AdWords API Forum

Google Ads API Forum Advisor

unread,
Apr 4, 2022, 10:08:23 AM4/4/22
to kinganil...@gmail.com, adwor...@googlegroups.com

Hi Anil,

Thanks for reaching out to the Google Ads API Forum.

As per this guide in setting bid_modifier value, it mentions that the modifier must be in the range: 0.1 - 10.0. Also, Google Ads API is not specified to set bidModifier value to -1 in order to clear an existing bid modifier, and this is the reason your Google Ads API request fails. However, have you tried to add bid_modifier to the UpdateMask and not set a value in update?

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ZJ9BH:ref

cv

unread,
Apr 27, 2022, 2:49:54 AM4/27/22
to Google Ads API and AdWords API Forum
Hi,

I have similar question, I need to clear an existing bid modifier.

When we clear an existing bid modifier through UI, I received this in change history, but not possible through Google Ads API, like it is in Adwords API.
Mobile Highend: Platform bid adjustment of +50% removed


I am doing UpdateMask to set the value

           $CampaignCriterionOperation = new CampaignCriterionOperation();
            $CampaignCriterionOperation->setUpdate($campaign);
            $CampaignCriterionOperation->setUpdateMask(FieldMasks::allSetFieldsOf($campaign));

How to clear an existing bid modifier?

Thanks,

Google Ads API Forum Advisor

unread,
Apr 27, 2022, 10:46:26 PM4/27/22
to chirag....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for providing more details to your concern.

The usual way on how to empty specific field in the Google Ads API is by setting the field that you want to empty in the update mask but not specifying it in the CampaignCriterion. With this, could you try this suggestion and let me know how it goes after?

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ZJ9BH:ref

cv

unread,
Apr 28, 2022, 2:10:06 AM4/28/22
to Google Ads API and AdWords API Forum
Hi Ernie,

The usual way on how to empty specific field in the Google Ads API is by setting the field that you want to empty in the update mask but not specifying it in the CampaignCriterion. With this, could you try this suggestion and let me know how it goes after?
-> I tried this, but getting error 

Uncaught Exception: Cannot convert '' to double

So empty specific field is not the correct option.


I did this 


           $bidModifierValue = "";
            $campaignCriterion = new CampaignCriterion([

                'resource_name' => ResourceNames::forCampaignCriterion(
                    $customerId,
                    $campaignId,
                    30001
                ),
                'bid_modifier' => $bidModifierValue
            ]);


Google Ads API Forum Advisor

unread,
Apr 28, 2022, 11:23:25 PM4/28/22
to chirag....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for the reply.

It appears that you included the bid_modifier field in the CampaignCriterion but setting an empty value to it. With this, could you try not adding the bid_modifier field in the CampaignCriterion of the API request but including it in the update mask only? I would suggest referring to this document to manage update mask for this scenario.

Let me know how it goes after.

cv

unread,
Apr 29, 2022, 1:14:46 AM4/29/22
to Google Ads API and AdWords API Forum
HI ernie,

I did same as you suggest with update mask.

See this

$campaignCriterion = new CampaignCriterion([

                'resource_name' => ResourceNames::forCampaignCriterion(
                    $customerId,
                    $campaignId,
                    30001
                )

            ]);

$CampaignCriterionOperation = new CampaignCriterionOperation();
            $CampaignCriterionOperation->setUpdate($campaignCriterion);
            $CampaignCriterionOperation->setUpdateMask(FieldMasks::allSetFieldsOf($campaignCriterion));


Message has been deleted

cv

unread,
Apr 29, 2022, 1:27:02 AM4/29/22
to Google Ads API and AdWords API Forum
Hi Ernie,

I followed what you suggest, If I pas nothing It will change nothing. So no solution yet to clear Bid Modifiers.

Google Ads API Forum Advisor

unread,
Apr 29, 2022, 1:44:56 AM4/29/22
to chirag....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for providing updates to your concern.

So that I can further check on my end or to discuss with the rest of the team, could you provide the complete request and response logs with request ID and request header generated on your end by using the provided suggestion?

You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

cv

unread,
Apr 29, 2022, 1:50:08 AM4/29/22
to Google Ads API and AdWords API Forum
I have sent request and response log.

1) Pass nothing as suggested by you
2) Pass with bid modifier.

Thanks,

Yiftach Ye

unread,
Oct 22, 2023, 11:38:02 PM10/22/23
to Google Ads API and AdWords API Forum
I want to know how to solve it, because I also have the same problem and need to clear it.

Thanks,

Google Ads API Forum Advisor

unread,
Oct 25, 2023, 5:28:21 AM10/25/23
to yeyangy...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

Upon checking, I understand that you have the same issue regarding the Bid modifier of the CampaignTargetService. In order to investigate your issue further, kindly provide us with the issue details and complete API logs (request and response with request-id and request header) generated at your end and uncropped UI screenshot of where you are facing the issue.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02ZJ9BH:ref"

Thanks,
 
Google Logo Google Ads API Team

 

Reply all
Reply to author
Forward
0 new messages