Hi  adsapiforumadvisor:
     I want get the asset performances. I tried using the 
ad_group_ad_asset_view as you suggest. But there is a problem, I can't get 
the asset name. Can you help me ?   Here is the main code:
     
$query =
           "SELECT
               campaign.id,
               campaign.name,
               ad_group.id,
               ad_group.name,
               ad_group_ad.ad.id,
               ad_group_ad.ad.type,
               ad_group_ad.ad.name,
               asset.id,
               asset.name,
               asset.type,
               asset.resource_name,
               metrics.impressions,
               metrics.clicks,
               metrics.cost_micros,
               metrics.conversions,
               segments.date
           FROM ad_group_ad_asset_view
           WHERE segments.date BETWEEN '{$beginTime}' AND '{$endTime}'
           AND metrics.impressions > 0
           ORDER BY ad_group_ad_asset_view.performance_label";
            
$asset = $googleAdsRow->getAsset();
$assetId = $asset->getIdUnwrapped();
$assetName = $asset->getNameUnwrapped();
$assetType = $asset->getType();



在 2020年3月31日星期二 UTC+8下午10:57:22,adsapiforumadvisor写道:
>
> Hi,
>
> You can get ad group-level reporting for the individual assets comprising 
> the ad by following this guide 
> <https://developers.google.com/google-ads/api/docs/assets/fetching-assets#fetching_ad-level_metrics>.
>  
> If you are having trouble retrieving specific metrics, please share them in 
> English along with your client customer ID so I can further investigate the 
> issue.
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5001UZV86Q: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 
"AdWords API and Google Ads 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/70a16d00-b4e6-471d-8dca-c44142ca88f3%40googlegroups.com.

Reply via email to