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 
<https://developers.google.com/google-ads/api/reference/rpc/v10/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
            ]);

On Thursday, 28 April 2022 at 08:16:26 UTC+5:30 adsapi wrote:

> 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 
> <https://developers.google.com/google-ads/api/reference/rpc/v10/CampaignCriterion>.
>  
> With this, could you try this suggestion and let me know how it goes after?
>
> Regards,
> [image: Google Logo] 
> Ernie John 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2ZJ9BH:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e355927a-fa99-4bc1-bf5f-781ec183c9f5n%40googlegroups.com.

Reply via email to