Hi everyone I want to make local changes in google...
# ask-community-for-troubleshooting
s
Hi everyone I want to make local changes in google_ads connector - I’d like to add stream geo_target_constant In which files should I make edits to change connector? Right now I make changes in source_google_ads/schemas source_google_ads/googleads.py source_google_ads/source.py source_google_ads/streams.py
m
Why not use custom query?
s
you can use custom queries like this one:
Copy code
select ad_group_ad.ad.type, campaign.id, campaign.name, ad_group_ad.ad.id,  segments.device, ad_group_ad.ad.final_urls, segments.ad_network_type, ad_group_ad.ad_group, ad_group.name, customer.descriptive_name, campaign.name, customer.id, campaign.name, metrics.clicks, metrics.all_conversions, metrics.conversions, metrics.view_through_conversions, metrics.conversions, metrics.impressions, metrics.all_conversions_value, metrics.cost_micros, metrics.video_views, metrics.conversions_value from ad_group_ad
s
Thank you Marcos But I think my problem caused that segments.date parameter is inapplicable to geo_target_constant My GAQL is:
SELECT geo_target_constant.country_code, geo_target_constant.id FROM geo_target_constant
I getting error
message: "Cannot select or filter on the following segments: \'segments.date\'(could not support requested resources: \'GEO_TARGET_CONSTANT\'), since segment is incompatible with the resource in the FROM clause or other selected segmenting resources."
👍 1
m
Thanks for sharing this @Sergei Kapochkin, you’re correct probably you need to create a new stream in Google Ads. Also do you mind creating an issue in Github saying you’re not able to use custom queries don’t allow segments.date parameter?
s
Yes, I’m think it’s a good idea
you need to create a new stream in Google Ads.
Do you have guidelines for that?