Anyone can help me with this?

On Monday, June 8, 2020 at 3:21:03 PM UTC-7, Fabrizio Ferrari wrote:
>
> Hello everyone.
>
> I just implemented the GoogleAds API and I could perform all the examples 
> provided in the original package, but now that I am trying to pull the data 
> I need for myself, I have a problem.
>
> I am trying to download yesterday's final URLs of our shopping campaign, 
> which should include pretty much the same information I can manually 
> download from the "Landing Pages" report in the GoogleAds management 
> portal, but instead, I get zeros... see below...
>
> I use the PHP library, and here is my code for the call:
>
>  $query = (new ReportQueryBuilder())
>            ->select([
>              'EffectiveFinalUrl',
>                'Clicks',
>                'Conversions'
>            ])
>            ->from(ReportDefinitionReportType::FINAL_URL_REPORT)
>            ->where('CampaignId')->in(['my_campaign_id_here'])
>            ->duringDateRange(ReportDefinitionDateRangeType::YESTERDAY)
>            ->build();
>
> // Download report as a string.
>        $reportDownloader = new ReportDownloader($session);
>        // Optional: If you need to adjust report settings just for this one
>        // request, you can create and supply the settings override here.
>        // Otherwise, default values from the configuration
>        // file (adsapi_php.ini) are used.
>        $reportSettingsOverride = (new ReportSettingsBuilder())
>            ->includeZeroImpressions(false)
>            ->build();
>        $reportDownloadResult = $reportDownloader->downloadReportWithAwql(
>            sprintf('%s', $query),
>            $reportFormat,
>            $reportSettingsOverride
>        );
>        print "Report was downloaded and printed below:\n";
>        print $reportDownloadResult->getAsString();
>
>
>
>
> What I get back is just this:
>
> "FINAL_URL_REPORT (Jun 7, 2020)"
>
> Final URL,Clicks,Conversions
>
> Total,0,0.00
>
> Any ideas? Do you see anything wrong? What I'd expect is a list of the 
> ad's final URLs with their clicks and conversions values.
>
> Any help is really appreciated, thank you in advance!
>
> Best,
> Fab.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7a821562-82f5-43c2-bc3a-aac08e460241o%40googlegroups.com.

Reply via email to