Thanks to visit codestin.com
Credit goes to github.com

Skip to content

"StringValue" does not exist in Google Ads API v2 #196

@ahmed-3li

Description

@ahmed-3li

The get_type() method with a 'StringValue' argument is throwing an error for me in all the code examples

def map_locations_to_string_values(client, location_ids):
    gtc_service = client.get_service('GeoTargetConstantService', version='v2')
    locations = []
    for location_id in location_ids:
        location =  client.get_type('StringValue', version='v2')
        location.value = gtc_service.geo_target_constant_path(location_id)
        locations.append(location)
    return locations

The error:
get_type raise ValueError(f'Specified type "{name}" does not exist in Google Ads ' ValueError: Specified type "StringValue" does not exist in Google Ads API v2

Metadata

Metadata

Assignees

Labels

P0Serious breaking issue affecting many/all usersbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions