URL_PERFORMANCE_REPORT Can't Do CONTAINS on URL Field

23 views
Skip to first unread message

Charlie Saunders

unread,
Jan 27, 2015, 1:53:18 PM1/27/15
to adwor...@googlegroups.com
Hello all,

I am attempting to download a URL_PERFORMANCE_REPORT with a CONTAINS predicate on the URL field, but I keep getting the following error:

HTTP Response Code: 400, FieldPath: selector, Trigger: Url, Type: SelectorError.INVALID_PREDICATE_FIELD_NAME

Here is an example of my request:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <ns2:selector>
        <ns2:fields>CampaignName</ns2:fields>
        <ns2:fields>AdGroupName</ns2:fields>
        <ns2:fields>Url</ns2:fields>
        <ns2:fields>Clicks</ns2:fields>
        <ns2:fields>Cost</ns2:fields>
        <ns2:fields>Conversions</ns2:fields>
        <ns2:fields>ConversionValue</ns2:fields>
        <ns2:predicates>
            <ns2:field>Url</ns2:field>
            <ns2:operator>CONTAINS</ns2:operator>
            <ns2:values>example.com</ns2:values>
        </ns2:predicates>
        <ns2:dateRange>
            <ns2:min>20150101</ns2:min>
            <ns2:max>20150111</ns2:max>
        </ns2:dateRange>
    </ns2:selector>
    <ns2:reportName>URL_PERFORMANCE_REPORT #1422383552807</ns2:reportName>
    <ns2:reportType>URL_PERFORMANCE_REPORT</ns2:reportType>
    <ns2:dateRangeType>CUSTOM_DATE</ns2:dateRangeType>
    <ns2:downloadFormat>TSV</ns2:downloadFormat>
</reportDefinition>

I am using v201409 of the Java library.

Am I doing something wrong, or is this predicate not allowed?

Thanks!

Charlie

Josh Radcliff (AdWords API Team)

unread,
Jan 27, 2015, 4:14:01 PM1/27/15
to adwor...@googlegroups.com
Hi Charlie,

I just tried various predicates on the Url field in that report, and I can't get it to work either. I've contacted the reporting team to see if this is a documentation error or an issue with the report itself. I'll post back here once I hear from them.

In the meantime, I think your only option would be to filter the results on your side.

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages