SELECT ad_group_ad.ad.id,
ad_group_ad.ad.final_urls,
ad_group_ad.status,
ad_group_ad_label.resource_name,
campaign.id
FROM ad_group_ad
WHERE segments.date DURING YESTERDAY
AND campaign.id = $campaignId
AND ad_group.status IN ('ENABLED', 'PAUSED')
AND ad_group_ad.status IN ('ENABLED', 'PAUSED')
LIMIT 1PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE$selector = new Selector();
$selector->setFields([
'CampaignId',
'AdGroupId',
'Id',
'CreativeFinalUrls',
'Status',
'Labels',
]);
$reportDefinition = new ReportDefinition();
$reportDefinition->setSelector($selector);
$reportDefinition->setReportType(
ReportDefinitionReportType::AD_PERFORMANCE_REPORT
);
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/