External conversion source APP_UNSPECIFIED filter value broken

21 views
Skip to first unread message

Tiana S.

unread,
Oct 22, 2021, 7:18:26 AM10/22/21
to AdWords API and Google Ads API Forum
Hi there,

For the external conversion source field, APP_UNSPECIFIED is listed as enum value for both the old (Google AdWords: ExternalConversionSource) API and the new (Google Ads: segments.external_conversion_source) API.

Filtering on this through the old (Google AdWords) API works fine, but filtering on this through the new API triggers a PROHIBITED_ENUM_CONSTANT error:

Error: 400 - {"error":{"code":400,"message":"Request contains an invalid argument.","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.ads.googleads.v8.errors.GoogleAdsFailure","errors":[{"errorCode":{"queryError":"PROHIBITED_ENUM_CONSTANT"},"message":"Filtering by 'APP_UNSPECIFIED' is not supported."}],"requestId":"<REDACTED>"}]}}


Example query:

SELECT metrics.conversions FROM campaign WHERE segments.external_conversion_source = "APP_UNSPECIFIED" AND segments.date >= '2021-10-11' AND segments.date <= '2021-10-17'

Other enum values for the external conversion source field work fine, it's just the APP_UNSPECIFIED value that's not working, and only for the new API.

Is this intended behavior?

Thank you,

Tiana

Google Ads API Forum Advisor

unread,
Oct 24, 2021, 11:33:01 PM10/24/21
to ti...@swydo.com, adwor...@googlegroups.com

Hello Tiana,

Thank you for raising this to us.

So our team can better check on this, can you share to us the following details below?

Please send the requested details via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

As aside, I tried using the Query builder with your provided sample query and it returns an invalid query message (Field 'segments.external_conversion_source' in the WHERE clause is causing an error. Segments other than core date segments ('segments.date', 'segments.week', 'segments.month', 'segments.quarter', 'segments.year') must be present in the SELECT clause before being added to the WHERE clause.).

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q2QEMRv:ref
Reply all
Reply to author
Forward
0 new messages