.png?part=0.2&view=1)

function main() { var campaignIterator = AdsApp.shoppingCampaigns().get(); // only fetches standard shopping campaigns i.e. no smart shoppingwhile (campaignIterator.hasNext()) { var campaign = campaignIterator.next(); Logger.log(campaign.getName() + ', ' + campaign.getId()); }var report = AdsApp.report( 'SELECT ' + 'Cost, ConversionValue ' + 'FROM ACCOUNT_PERFORMANCE_REPORT ' + // all reports https://developers.google.com/adwords/api/docs/appendix/reports 'DURING LAST_7_DAYS' ) var rows = report.rows(); while (rows.hasNext()) { var row = rows.next(); Logger.log('Account cost ' + row['Cost'] + ', Rev: ' + row['ConversionValue'] + '\n*\n'); // includes unsupported campaign types } var CampReport = AdsApp.report( 'SELECT ' + 'Cost, ConversionValue, CampaignName, CampaignId ' + 'FROM CAMPAIGN_PERFORMANCE_REPORT ' + 'DURING LAST_7_DAYS' ) var rows = CampReport.rows(); while (rows.hasNext()) { var row = rows.next(); Logger.log(row['CampaignName']+' id: '+row['CampaignId']+', cost '+row['Cost']+', rev: '+row['ConversionValue']); }Hi Petra,
As an alternative, you may check with the API team if the said campaign type is supported or can be managed by using AdWords API and Google Ads API by posting to this forum. I wouldn't be able to provide suggestion about the API's as this is out of my expertise.
Regards,
Ejay
Google Ads Scripts Team
|
||||||
--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/IBDQc_Yh5Xw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/7oHDl000000000000000000000000000000000000000000000QU2GTD00jxKIhN8_Rs6fNy6JOW7s8A%40sfdc.net.