Hi Jip,
Thanks for getting back to us.
You may use the operator IN in your where clause to get multiple campaigns
details. You may use below GAQL to get the ad group details for multiple
campaigns.
SELECT
metrics.conversions,
metrics.conversions_value,
metrics.cost_micros,
ad_group.effective_target_roas,
ad_group.id,
campaign.name,
ad_group.name
FROM ad_group
WHERE
segments.date DURING LAST_30_DAYS
AND campaign.name IN ('campaign1', 'campaign2', 'campaign3')
**Note: campaign1, campaign2, and campaign3 are the campaign names that you
want to get the data for.
Alternatively, you can get information of ad groups in the selected campaigns
by campaign ID below:
SELECT
metrics.conversions,
metrics.conversions_value,
metrics.cost_micros,
ad_group.effective_target_roas,
ad_group.id,
campaign.name,
ad_group.name
FROM ad_group
WHERE
segments.date DURING LAST_30_DAYS
AND campaign.id IN (campaignID1, campaignID2,campaignID3)
You may user query builder as well to construct your query here:
https://developers.google.com/google-ads/api/fields/v12/ad_group_query_builder
Let me know if you have any additional questions.
Regards,
Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2hOdjO:ref
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/upF7F000000000000000000000000000000000000000000000RNNNQ800jMTS4CtbRZibptVTrXEgwg%40sfdc.net.