Hi Team,

we're trying to get ad details using below query. but using below query 
we're able to get data for *EXPANDED_TEXT_AD *Ad type only.

Could you please help us to get data for all types like TEXT_AD 
,DYNAMIC_SEARCH_AD, EXPANDED_DYNAMIC_SEARCH_AD, 
GMAIL_AD, GOAL_OPTIMIZED_SHOPPING_AD, IMAGE_AD, 
MULTI_ASSET_RESPONSIVE_DISPLAY_AD, PRODUCT_AD, RESPONSIVE_DISPLAY_AD, 
RESPONSIVE_SEARCH_AD, SHOWCASE_AD, TEMPLATE_AD, TEXT_AD 
?

Could you please provide *single query* to get data for all above type?

 $query =
            'SELECT ad_group.id, '
            . 'ad_group_ad.status, '
            . 'ad_group.labels, '
            . 'ad_group_ad.ad.id, '
            . 'ad_group_ad.ad.type, '
            . 'ad_group_ad.ad.name, '
            . 'campaign.base_campaign, '
            . 'ad_group_ad.ad.expanded_text_ad.headline_part1, '
            . 'ad_group_ad.ad.expanded_text_ad.headline_part2, '
            . 'ad_group_ad.ad.expanded_text_ad.description, '
            . 'ad_group_ad.ad.expanded_text_ad.description2, '
            . 'ad_group_ad.policy_summary.approval_status, '
            . 'ad_group_ad.ad.final_urls, '
            . 'ad_group_ad.ad.display_url, '
            . 'ad_group_ad.ad.final_mobile_urls, '
            . 'ad_group_ad.ad.tracking_url_template, '
            . 'ad_group_ad.ad.final_url_suffix, '
            . 'ad_group_ad.ad.url_custom_parameters, '
            . 'ad_group_ad.ad.device_preference, '
            . 'ad_group_ad.ad.system_managed_resource_source '
            . 'FROM ad_group_ad '
            . 'WHERE ad_group_ad.ad.type = EXPANDED_TEXT_AD';
        if ($adGroupId !== null) {
            $query .= " AND ad_group.id = $adGroupId";
        }

Thanks,
Shweta Suthar

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2046ec0a-0dc5-46eb-bc42-d74b8ce4a2e6n%40googlegroups.com.

Reply via email to