Hello,
We're trying to filter the location on a campaign using a campaign Feed
based on the informations found in this documentation :
https://developers.google.com/google-ads/api/docs/location-extensions/filtering-location-extensions#filtering_location_extensions
We're creating a campaignFeed targeting specific location's labels. We're
getting an error regarding the matching function and the placeholder but we
seems to do exactly what it's in the documentation
Body: customer_id: "7714867186"
operations {
create {
placeholder_types: LOCATION
matching_function {
function_string: "CONTAINS_ANY(FeedAttribute[356967118,14],{\"S4M
Paris\"})"
}
feed: "customers/7714867186/feeds/356967118"
campaign: "customers/7714867186/campaigns/17998583407"
}
}
Response
--------
Headers:
Metadata(content-type=application/grpc,request-id=j5IBeehY1ojIGlVUF3x5jA,date=Tue,
09 Aug 2022 11:47:04 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443";
ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: errors {
error_code {
function_error: INVALID_FUNCTION_FOR_PLACEHOLDER
}
message: "The matching function is not allowed for the specified
placeholder"
trigger {
string_value: ""
}
location {
field_path_elements {
field_name: "operations"
index: 0
}
field_path_elements {
field_name: "create"
}
field_path_elements {
field_name: "matching_function"
}
}
}
request_id: "j5IBeehY1ojIGlVUF3x5jA"
Status: Status{code=INVALID_ARGUMENT, description=Request contains an
invalid argument., cause=null}.
Request ID j5IBeehY1ojIGlVUF3x5jA failed due to GoogleAdsException.
Underlying errors:
Error 0: error_code {
function_error: INVALID_FUNCTION_FOR_PLACEHOLDER
}
message: "The matching function is not allowed for the specified
placeholder"
trigger {
string_value: ""
}
location {
field_path_elements {
field_name: "operations"
index: 0
}
field_path_elements {
field_name: "create"
}
field_path_elements {
field_name: "matching_function"
}
}
Can you help ?
Regards,
Hugo
--
You received this electronic message as part of a business or
employment relationship with one or several Ask Locala entities. Its
content is strictly confidential and is covered by the obligation of
confidentiality and business secrecy. Any dissemination, copying, printing
distribution, retention or use of the message’s content or any attachments
that could be detrimental to Ask Locala is forbidden, even if it was
forwarded by mailing lists.
If you are not the intended recipient, please
notify the sender of the error without delay and delete permanently this
email and any files from your system and destroy any printed copies.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/b350d533-3531-4fad-9fbc-57836f624496n%40googlegroups.com.