RE: Google Ads REST API - Block IP Address - Get All Blocked IP addresses

2019-05-24 Thread Google Ads API Forum Advisor Prod
Hello, Glad to hear you're mostly up and running! To get the specific IP address, try using campaign_criterion.ip_block.ip_address. Regards, Mike, Google Ads API Team ref:_00D1U1174p._5001UAq6wm:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googl

Re: Google Ads REST API - Block IP Address - Get All Blocked IP addresses

2019-05-23 Thread John Tzanidakis
Hi, Thank you for that information, I am now able to add ip addresses with the create operation and remove ip addresses with the remove operation from a campaign. I am also able to query for all campaign criterion that are of type IP_BLOCK to get all those blocked ip addresses. But im not abl

RE: Google Ads REST API - Block IP Address - Get All Blocked IP addresses

2019-05-23 Thread Google Ads API Forum Advisor Prod
Hello, The message "Criteria type can not be targeted." means that this criteria type is only supported as a negative criteria. I apologize that I didn't notice that in my initial response and sample JSON. You should be able to modify the JSON body to use a negative criterion instead of a posit

Re: Google Ads REST API - Block IP Address - Get All Blocked IP addresses

2019-05-23 Thread John Tzanidakis
Hi, Thank you for that JSON and the links to the protos, it seems to clear up how the body of requests should be formed for each call. But running it against my test account's campaigns I am getting this error returned: { "error": { "code": 400, "message": "Request contai

Re: Google Ads REST API - Block IP Address - Get All Blocked IP addresses

2019-05-22 Thread Google Ads API Forum Advisor Prod
Hello, When working with JSON REST and curl, I find it easier myself to actually stick to the protos and build the operations from there. For example, this time I referenced campaign_criterion and criteria to find all the relevant fields. The campaign_criterion shows that I need a campaign that

Re: Google Ads REST API - Block IP Address - Get All Blocked IP addresses

2019-05-21 Thread John Tzanidakis
Hey Mike, Thank you that link clears up most of my confusion with URL patterns for each request. I am still having trouble forming my request though. The documented example uses a json file for the body, how would the body look for a request like adding IP addresses, and/or fetching all? I kn

Re: Google Ads REST API - Block IP Address - Get All Blocked IP addresses

2019-05-21 Thread Google Ads API Forum Advisor Prod
Hello, The pattern is the same across all mutate requests. /v{x}/customers/{customer_id}/{resource_name_pluralized}:mutate You can always fall back on looking at the exact proto definition if there's any doubt. Here's the one for campaign budgets, for example: https://github.com/googleapis/goo

Re: Google Ads REST API - Block IP Address - Get All Blocked IP addresses

2019-05-21 Thread Google Ads API Forum Advisor Prod
Hi John, My apologies as I may have overlooked this. Upon checking with the team, excluding IP addresses is indeed possible using the IpBlockInfo field. As per your other concern, I would need to discuss this with the team. I will provide you updates once available. Regards, Dave Google Ads AP

Re: Google Ads REST API - Block IP Address - Get All Blocked IP addresses

2019-05-20 Thread John Tzanidakis
Hi Dave, Thank you for the response, if blocking ip address and getting blocked ip addresses is not currently possible, then what is the IpBlockInfo resource name used for as it is listed here: https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.resources#google

RE: Google Ads REST API - Block IP Address - Get All Blocked IP addresses

2019-05-19 Thread Google Ads API Forum Advisor Prod
Hi John, Thank you for reaching out. I'm afraid that blocking IP addresses or getting all blocked IP's isn't currently possible with the API. However, to better assist you, could you elaborate what do you need to achieve using the Google Ads API? If you wish to use cURL to interact with the API