Hi,

I am able to:

*1.* Query the current excluded/blocked IP address for the particular 
campaign with

POST 
https://googleads.googleapis.com/v12/customers/{customer_id}/googleAds:searchStream
{
   "customerId" : "{customer_id}",
   "query" : " SELECT campaign_criterion.ip_block.ip_address FROM 
campaign_criterion "
}

*2.* Able to add exclude/block an IP address to campaign using 
campaignCriteria:mutate

POST 
https://googleads.googleapis.com/v12/customers/3930653162/campaignCriteria:mutate
{
   "operations" : [
      {
         "create" : {
            "ipBlock" : {
               "ip_address" : "192.168.23.11"
            },
            "resourceName" : 
"customers/{customer_id}/campaignCriteria/{campaign_id}~27",
            "negative" : "True"
         }
      }
   ],
   "customerId" : "{customer_id}"
}


*But with the same campaignCriteria mutate remove operation is not working.*If 
I change *create* operation to *remove* in this same request, I get this 
error:


*Invalid value at 'operations[1]' (remove), Starting an object on a scalar 
field*I am using google-ads-perl 
<https://github.com/googleads/google-ads-perl> client lib for these 
requests.


*Is it possible to remove excluded/blocked IP addresses from the campaign 
using this?*Please let me know if any other information is needed for this 
question.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a7aa3928-01d6-41e4-a339-1c36b991ed61n%40googlegroups.com.
  • No... Abhishek Bhasker
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Abhishek Bhasker
        • ... Abhishek Bhasker
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to