Hello,
We're trying to add filtering on a Local Campaign to target specific stores.To do so we're creating a campaignFeed to filterer the locations. (GMB is linked to the GA account and the CustomerFeed is created and active).
CampaignFeed campaignFeed = CampaignFeed.newBuilder()
.setFeed(#gmbFeedResourceName#)
.setCampaign(#myGoogleLocalCampaingRessourceName#)
.addPlaceholderTypes(PlaceholderType.LOCATION)
.setMatchingFunction(MatchingFunction.newBuilder().setFunctionString("CONTAINS_ANY(FeedAttribute[#FeedId#,14],
{\"#StoreLabel#\}")").build()
).build()
When doing the mutation we're getting this error :
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"
}
}
}
Are we doing something wrong ? Can we use campaignFeed with the Location Placeholder on a Local Campaign. Strangely, it seems to work at the adgroup level.
Thanks,
Hugo