Filtering Location Extension in a Campaign Feed

2022-08-09 Thread Hugo Picard
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b350d533-3531-4fad-9fbc-57836f624496n%40googlegroups.com.


Re: GMB Location Extension and Google Local Campaign

2021-04-16 Thread Hugo Picard
Hi Peter,

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

Hugo
Le vendredi 16 avril 2021 à 08:22:29 UTC+2, adsapiforumadvisor a écrit :

> 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,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2FYkMm:ref
>

-- 




You received this electronic message as part of a business or 
employment relationship with one or several S4M 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 S4M 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a5b9eb44-8080-4d8c-a579-cdabb75f5103n%40googlegroups.com.


GMB Location Extension and Google Local Campaign

2021-04-15 Thread Hugo Picard
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



-- 




You received this electronic message as part of a business or 
employment relationship with one or several S4M 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 S4M 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b031f63b-a435-42e0-9b49-fae654559c4cn%40googlegroups.com.