Skip to first unread message

cv

unread,
Mar 5, 2020, 8:49:02 AM3/5/20
to AdWords API and Google Ads API Forum
Hi,

I am getting error while enabling the UNKNOWN genderType.

request_error: Enum value 'UNKNOWN' cannot be used.


Can you please help how I can do same?


Thanks,


Google Ads API Forum Advisor Prod

unread,
Mar 5, 2020, 12:08:39 PM3/5/20
to chirag....@gmail.com, adwor...@googlegroups.com
Hello,

Did you include UNKNOWN in a predicate filter? As you can see here, the value UNKNOWN is used for return value only. 

Regards,
Anthony
Google Ads API Team

ref:_00D1U1174p._5001UXUBfZ:ref

cv

unread,
Mar 5, 2020, 11:38:15 PM3/5/20
to AdWords API and Google Ads API Forum
Hi Anthony,

I was trying to Demographics enable for UNKNOWN

$unknownAdGroupCriterion = new AdGroupCriterion([
'ad_group' => $adGroupResourceName,
// Targets Unknown.
'gender' => new GenderInfo([
'type' => GenderType::UNKNOWN
])
]);

Thanks,
Reply all
Reply to author
Forward
0 new messages