Hi, 

Thanks for your response, I have found my error. I search by labelName, not 
by labelId so I have this error. 

Best regards,
Cabirol Florian. 

On Tuesday, April 26, 2016 at 2:58:44 PM UTC+2, [email protected] wrote:
>
> Hello,
>
> I have some problems with the use of the "CONTAINS_NONE"or other 
> "CONTAINS_*" predicates operator on "Labels" fields when I try to download 
> report from "CAMPAIGN_PERFORMANCE_REPORT" with the php lib.? 
>
> Here the code : 
>
> $selector = new \Selector();
> if($label !== null){
>     $selector->predicates[] = new \Predicate('Labels', 'CONTAINS_NONE', 
> '[\''.$label.'\']');
> }
> $selector->fields = array('Month', 'Clicks', 'Impressions', 'Ctr', 
> 'AverageCpc', 'Cost', 'AveragePosition', 'Conversions', 'CostPerConversion', 
> 'ConversionRate', 'ConversionValue', 'ValuePerConversion');
> $selector->dateRange = new \DateRange($dateStart, $dateEnd);
> $reportDefinition = new \ReportDefinition();
> $reportDefinition->selector = $selector;
> $reportDefinition->reportName = 'Campaign performance report #'.uniqid();
> $reportDefinition->dateRangeType = 'CUSTOM_DATE';
> $reportDefinition->reportType = 'CAMPAIGN_PERFORMANCE_REPORT';
> $reportDefinition->downloadFormat = 'CSV';
> $options = array();
> $options['version'] = 'v201603';
> $options['skipReportHeader'] = true;
>
>
>
> And here the result : 
>
> [Apr 26 2016 14:40:54.000000 - ERROR] POST 
> /api/adwords/reportdownload/v201603 HTTP/1.1
> User-Agent: curl, gzip
> Host: adwords.google.com
> Accept: */*
> Accept-Encoding: gzip
> skipReportHeader: true
> includeZeroImpressions: true
> Content-Length: 939
> Expect: 100-continue
> Content-Type: multipart/form-data; 
> boundary=----------------------------988280b22bdb
>
> Parameters:
> __rdxml: <?xml version="1.0" encoding="UTF-8"?>
> <reportDefinition><selector><fields>Month</fields><fields>Clicks</fields><fields>Impressions</fields><fields>Ctr</fields><fields>AverageCpc</fields><fields>Cost</fields><fields>AveragePosition</fields><fields>Conversions</fields><fields>CostPerConversion</fields><fields>ConversionRate</fields><fields>ConversionValue</fields><fields>ValuePerConversion</fields><predicates><field>Labels</field><operator>CONTAINS_NONE</operator><values>['Branding']</values></predicates><dateRange><min>20160201</min><max>20160229</max></dateRange></selector><reportName>Campaign
>  performance report 
> #571f61d33909e</reportName><reportType>CAMPAIGN_PERFORMANCE_REPORT</reportType><dateRangeType>CUSTOM_DATE</dateRangeType><downloadFormat>CSV</downloadFormat></reportDefinition>
>
> Response Code: 500
> Error Message: Report download failed. Underlying errors are 
> Type = 'ReportDownloadError.ERROR_GETTING_RESPONSE_FROM_BACKEND', Trigger = 
> 'Unable to read report data', FieldPath = ''. 
>
>
> Why I get this error ? 
>
> Thanks. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1f46450d-a0ab-48cb-a1bc-cea9f9edd6b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to