Thanks!

On Thursday, December 29, 2022 at 2:49:38 PM UTC+1 adsapi wrote:

> 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 <http://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 <http://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*
>  
> <https://developers.google.com/google-ads/api/fields/v12/ad_group_query_builder>
>
> Let me know if you have any additional questions.
>
> Regards, 
> [image: Google Logo] 
> 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 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 
"Google Ads API and AdWords 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/b42d4011-da8b-449a-92f4-3590312ab0abn%40googlegroups.com.
  • Ad... Jip Veerbeek
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... Jip Veerbeek

Reply via email to