I tested it using AWQL using the example found
at
https://developers.google.com/adwords/api/docs/guides/zeroimpression-structure-reports#retrieving_ad_group_criteria
and it seems to work fine.
$downloader = new ReportDownloader($this->session);
> $query = 'SELECT AdGroupId, Id, CriteriaType, Criteria, IsNegative
> FROM CRITERIA_PERFORMANCE_REPORT';
> $result = $downloader->downloadReportWithAwql($query,
> DownloadFormat::CSV);
> $file_path = sprintf('%s.csv', tempnam(base_path('downloads'),
> 'download-report-'));
> $result->saveToFile($file_path);
Does this not work using *Selector* and *ReportDefinition *as it seems to
be always expecting *dateRangeType *in the SOAP request?
On Thursday, 6 July 2017 23:12:46 UTC-7, Danny wrote:
>
> Yes I'm using examples (not copy and paste though) from client library
> sample code. As I mentioned earlier, it works when I add a *dateRange* but
> I don't want it to be dependent on this as I'm after the structure.
>
> Is there anything wrong with my SOAP?
>
> On Thursday, 6 July 2017 23:06:45 UTC-7, Peter Oliquino wrote:
>>
>> Hi Danny,
>>
>> Using the v201609 version of the AdWords API and the report definition
>> you provided, I was not able to reproduce the error in my end. Could you
>> also confirm if you are using any of the client library sample codes
>> <https://developers.google.com/adwords/api/docs/samples/java/reporting#download-a-criteria-performance-report-with-awql>
>> (other
>> languages are also available in the link) when generating your report?
>>
>> Additionally, if you wish to retrieve Sitelink level information, then I
>> would recommend that you also use the Placeholder FeedItem Report
>> <https://developers.google.com/adwords/api/docs/appendix/reports/placeholder-feed-item-report>
>> and
>> the PlaceholderType
>> <https://developers.google.com/adwords/api/docs/appendix/reports/placeholder-feed-item-report#placeholdertype>
>> = 1
>> <https://developers.google.com/adwords/api/docs/appendix/placeholders#sitelink>
>> as
>> filter.
>>
>> Best regards,
>> Peter
>> AdWords API Team
>>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f8bb4249-4927-44c5-b1a5-0faa1763865e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.