I think that there is a problem with my Location ID but I cant find where.
Here is my Code for the Location ID:

_DEFAULT_LOCATION_IDS = '2276' 
location_rns = _map_locations_ids_to_resource_names(client, 
_DEFAULT_LOCATION_IDS)

request.geo_target_constants = location_rns

def _map_locations_ids_to_resource_names(client, location_ids):
"""Converts a list of location IDs to resource names.
Args:
client: an initialized GoogleAdsClient instance.
location_ids: a list of location ID strings.
Returns:
a list of resource name strings using the given location IDs.
"""
build_resource_name = client.get_service(
"GeoTargetConstantService"
).geo_target_constant_path
return [build_resource_name(location_id) for location_id in location_ids]
On Tuesday 6 February 2024 at 10:58:21 UTC+1 Mehmet Kocak wrote:

> Hi,
> i get a invalid Value Error from my Kewordlist and i can't figure out why. 
> Here you can see my Request:
> customer_id: "#########" language: "languageConstants/1001" 
> geo_target_constants: "geoTargetConstants/2" geo_target_constants: 
> "geoTargetConstants/2" geo_target_constants: "geoTargetConstants/7" 
> geo_target_constants: "geoTargetConstants/6" keyword_plan_network: 
> GOOGLE_SEARCH_AND_PARTNERS keyword_seed { keywords: "abschleppseile" 
> keywords: "abschleppstangen" keywords: "anhaengerkupplung" }
>
>
>
>
> As you can see I try to get from my 3 Keywords the Keyword Ideas. but i 
> get a Error in the following Line: keyword_ideas = 
> keyword_plan_idea_service.generate_keyword_ideas(request=request)
>
>
> The Error:
>
> WARNING:google.ads.googleads.client:Request made: ClientCustomerId: 
> ##########, Host: googleads.googleapis.com, Method: 
> /google.ads.googleads.v15.services.KeywordPlanIdeaService/GenerateKeywordIdeas,
>  
> RequestId: cfx7OEDXn8k5EV4VRRfsqg, IsFault: True, FaultMessage: The input 
> has an invalid value.
>
>
> I would Appreciate if anyone can help me with my problem.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d2a4b5b4-9b47-4811-a71b-f5e713eb418bn%40googlegroups.com.
  • Ge... Mehmet Kocak
    • ... Mehmet Kocak
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to