GEO_PERFORMANCE_REPORT LocationType issue

38 views
Skip to first unread message

denma test

unread,
Oct 1, 2020, 6:45:44 AM10/1/20
to AdWords API and Google Ads API Forum
Hi
I can work with Geo report works well. But when adding location type not working, i cannot find the mistake. Below is my qiery used

$query = (new ReportQueryBuilder())
                    ->select($reportFields)
                    ->from(ReportDefinitionReportType::GEO_PERFORMANCE_REPORT)
                    ->where('IsTargetingLocation')->in([true,false])
                 ->where('LocationType')->in([GeoTargetTypeSettingPositiveGeoTargetType::AREA_OF_INTEREST])        
                    ->during($startAt, $endAt)
                    ->build();

Google Ads API Forum Advisor Prod

unread,
Oct 1, 2020, 9:59:39 AM10/1/20
to denm...@gmail.com, adwor...@googlegroups.com
Hello,

What is the error you are facing when using this field?

Thanks,
Anthony
Google Ads API Team

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q25YKvJ:ref

denma test

unread,
Oct 3, 2020, 1:57:30 AM10/3/20
to AdWords API and Google Ads API Forum
Hi
Found the causes, issue in below line
->where('IsTargetingLocation')->in(['true','false'])
need to pass as string, i used as true, false constant.
Reply all
Reply to author
Forward
0 new messages