Hi Abhishek,

Thanks for reaching out to the Google Ads API Forum. I hope you are doing well 
today.

With regard to your concern, In order to block IP addresses, you may use 
CampaignCriterionOperation. You may refer to the Perl code sample in this link. 
You may also use SET operator (for the mutate operation) to update existing 
excluded IP addresses (Which will remove existing IP addresses and set the new 
IP address to exclude provided by SET operator).

See sample curl reference in campaignCriteria mutate remove operation:

curl -f --request POST 
"https://googleads.googleapis.com/v12/customers/{customerID}/campaignCriteria:mutate";
 \
--header "Content-Type: application/json" \
--header "developer-token: ${DEVELOPER_TOKEN}" \
--header "login-customer-id: ${MANAGER_CUSTOMER_ID}" \
--header "Authorization: Bearer ${OAUTH2_ACCESS_TOKEN}" \
--data "{
"operations" : [
{
"remove" : "customers/{customerID}/campaignCriteria/{campaignID}~{criterionID}"
}
]
}"

Please let me know if you have further concerns. Have a great day.

Regards,

Marjorie
Google Ads API Team
ref:_00D1U1174p._5004Q2hx0Bk: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/uEXc8000000000000000000000000000000000000000000000ROB8GO00_qCpJVd0TtaE9v8b3Y4wew%40sfdc.net.
  • 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