Customizing the Account Anomaly Detector

54 views
Skip to first unread message

ava sim

unread,
Jun 15, 2023, 9:12:17 AM6/15/23
to Google Ads Scripts Forum
Hello! I implemented Google's Account Anomaly Detector but I wanted to add the conversion rates to my google sheets. I adjusted everything accordingly in google sheets and in the javascript (I think!) but I'm getting this error:
 
Exception: Call to GoogleAdsService.Search failed: Unrecognized field in the query: 'metrics.conversion_rates'.
 
I have a variable called conversion_rates, so I am a bit confused. Below is the code where the error is from:



const FIELDS = ['segments.hour', 'segments.day_of_week', 'metrics.clicks',
        'metrics.impressions', 'metrics.conversions', 'metrics.cost_micros', 'metrics.conversion_rates'];



Please let me know if you have any ideas on how to go about this! Thank you :)

Nils Rooijmans

unread,
Jun 16, 2023, 9:30:40 AM6/16/23
to Google Ads Scripts Forum
you are probably looking for this metric: 'metrics.conversions_from_interactions_rate' 

see

Hope this helps,

Nils Rooijmans
https://nilsrooijmans.com
See my Google Ads Scripts FAQ to avoid the same mistakes I made: https://nilsrooijmans.com/google-ads-scripts-faq/

Google Ads Scripts Forum Advisor

unread,
Jun 20, 2023, 6:30:25 AM6/20/23
to adwords...@googlegroups.com

Hello,

Thanks for reaching out to the Google Ads Scripts team.

@Nils Rooijmans
Thank you for your insights and recommendations.

@Ava, you may proceed with the suggestions provided by Nils, please do try using metrics.conversions_from_interactions_rate as this is the conversions from interactions divided by the number of ad interactions (such as clicks for text ads or views for video ads). This only includes conversion actions which include_in_conversions_metric attribute is set to true. If you use conversion-based bidding, your bid strategies will optimize for these conversions.

However, if the error persists, can you please provide us with the following information below in order for us to investigate the issue on our end. 

Kindly send the requested details above via ‘Reply privately to author’ option, if the private option is not available on your end, then please send it over through this email googleadsscr...@google.com instead.

This message is in relation to case "ref:_00D1U1174p._5004Q2mUYEo:ref"

Thanks,
 
Google Logo Google Ads Scripts Team


Reply all
Reply to author
Forward
0 new messages