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 able to
return the actual ip address in the criterion with that query. To be clear
I am using this api call:
POST https:
//googleads.googleapis.com/v1/customers/CUSTOMER_ID/googleAds:search
and my request body includes:
{
"query": "SELECT campaign.id, campaign.name, campaign.status,
campaign.serving_status, campaign_criterion.criterion_id,
campaign_criterion.type FROM campaign_criterion WHERE
campaign_criterion.type='IP_BLOCK'"
}
As a result I am getting a list of results with this object inside:
{
"campaign": {
"resourceName":
"customers/CUSTOMER_ID/campaigns/CAMPAIGN_ID",
"id": "CAMPAIGN_ID",
"name": "Display-1",
"status": "ENABLED",
"servingStatus": "SERVING"
},
"campaignCriterion": {
"resourceName":
"customers/CUSTOMER_ID/campaignCriteria/CAMPAIGN_ID~CRITERION_ID",
"criterionId": "CRITERION_ID",
"type": "IP_BLOCK"
}
}
What do I need to add to the query to get the actual criterion ip_block
object with {ip_address: "127.0.0.1"} inside under campaignCriterion to
show up? Ive tried all sorts of things such as
campaign_criterion.criterion, campaign_criterion.ip_block,
campaign_criterion.criterion.ip_block but none seem to be a valid argument.
The only other option here would be to make a request for each criterion by
its ID to get all of its remaining details/fields but that would be
inefficient. Is it possible to retrieve this information within that query?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/50c242b0-0806-43c4-92fe-dce27cab7bd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.