I am trying to get Adward Report in CSV format.

29 views
Skip to first unread message

vagh...@gmail.com

unread,
May 9, 2022, 10:10:30 AM5/9/22
to Google Ads API and AdWords API Forum
Hello Everyone,

I need some help.
How to get google Adward Report in CSV format passing this query.

OLD Report Query.

"SELECT CampaignId, AdGroupId, AdGroupName, Impressions, VideoViews, Clicks, VideoViewRate, AverageCpv, Cost, VideoQuartile25Rate, VideoQuartile50Rate, VideoQuartile75Rate, VideoQuartile100Rate, AdGroupStatus FROM ADGROUP_PERFORMANCE_REPORT WHERE AdGroupId IN ["123456"."123456"] DURING YESTERDAY"

OLD Download Code.

$oAuth2Credential = (new OAuth2TokenBuilder())->fromFile('adsapi_php.ini')->build();
$session = (new AdWordsSessionBuilder())->fromFile('adsapi_php.ini')->withOAuth2Credential($oAuth2Credential)->build();
        $fileName = date('m-d-Y').'.csv';
        $filePath = $_SERVER['DOCUMENT_ROOT'].'/abc.csv';
        self::runExample($session, DownloadFormat::CSV, $filePath, $statsType, $groupArray);

Can you please help me how to get.
I am using Adward API. but now google updated Adward to Google Ads API.
I don't know how.
But please help me.


Google Ads API Forum Advisor

unread,
May 10, 2022, 10:02:27 AM5/10/22
to vagh...@gmail.com, adwor...@googlegroups.com
Hi Chirag,

Thank you for reaching out.

The AdWords API has sunset on April 27, 2022. Since you will experience errors and lose API access if you don’t migrate to the Google Ads API as soon as possible. Please see below the information which may be helpful:
If you have any questions about the API or the migration, please respond to this email and one of our team members will follow up with you.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ar1Vi:ref
Reply all
Reply to author
Forward
0 new messages