GMB Location Extension and Google Local Campaign

86 views
Skip to first unread message

Hugo Picard

unread,
Apr 15, 2021, 5:13:43 AM4/15/21
to AdWords API and Google Ads API Forum
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


Google Ads API Forum Advisor Prod

unread,
Apr 16, 2021, 2:22:29 AM4/16/21
to hugo....@s4m.io, adwor...@googlegroups.com
Hi Hugo,

So our team can have a closer look, could you provide the complete request and response logs with the request-id?

If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.

You may then send the generated logs via the Reply privately to author option.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2FYkMm:ref

Hugo Picard

unread,
Apr 16, 2021, 10:31:09 AM4/16/21
to AdWords API and Google Ads API Forum
Hi Peter,

The "Reply to author" is disabled on this thread.

Hugo

Google Ads API Forum Advisor Prod

unread,
Apr 18, 2021, 10:48:00 PM4/18/21
to hugo....@s4m.io, adwor...@googlegroups.com
Hi Hugo,

Since the option is disabled on your end, you may send the requested details directly to our googleadsa...@google.com alias instead.
Reply all
Reply to author
Forward
0 new messages