Google ads performance report not return ad name in response

349 views
Skip to first unread message

dev itcan

unread,
Feb 23, 2021, 4:32:47 AM2/23/21
to ads-s...@google.com, adwor...@googlegroups.com
Hello,

I have facing an issue when I call AD_PERFORMANCE_REPORT API it will return data but I can't find Ad name in API response.

Can you help me how to get ad name using AD_PERFORMANCE_REPORT API

Here is the API request:
$fields_of_ads = [
'AbsoluteTopImpressionPercentage',
'AccentColor',
'AccountCurrencyCode',
'AccountDescriptiveName',
'AccountTimeZone',
'ActiveViewCpm',
'ActiveViewCtr',
'ActiveViewImpressions',
'ActiveViewMeasurability',
'ActiveViewMeasurableCost',
'ActiveViewMeasurableImpressions',
'ActiveViewViewability',
'AdGroupId',
'AdGroupName',
'AdGroupStatus',
'AdNetworkType1',
'AdNetworkType2',
'AdStrengthInfo',
'AdType',
'AllConversionRate',
'AllConversions',
'AllConversionValue',
'AllowFlexibleColor',
'Automated',
'AverageCost',
'AverageCpc',
'AverageCpe',
'AverageCpm',
'AverageCpv',
'AveragePageviews',
'AveragePosition',
'AverageTimeOnSite',
'BaseAdGroupId',
'BaseCampaignId',
'BounceRate',
// 'BusinessName',
// 'CallOnlyPhoneNumber',
'CallToActionText',
'CampaignId',
'CampaignName',
'CampaignStatus',
// 'ClickAssistedConversions',
// 'ClickAssistedConversionsOverLastClickConversions',
// 'ClickAssistedConversionValue',
'Clicks',
//'ClickType',
'CombinedApprovalStatus',
//'ConversionAdjustment',
//'ConversionAdjustmentLagBucket',
//'ConversionCategoryName',
//'ConversionLagBucket',
'ConversionRate',
'Conversions',
//'ConversionTrackerId',
//'ConversionTypeName',
'ConversionValue',
'Cost',
'CostPerAllConversion',
'CostPerConversion',
'CostPerCurrentModelAttributedConversion',
'CreativeDestinationUrl',
'CreativeFinalAppUrls',
'CreativeFinalMobileUrls',
'CreativeFinalUrls',
'CreativeFinalUrlSuffix',
'CreativeTrackingUrlTemplate',
'CreativeUrlCustomParameters',
'CriterionId',
'CriterionType',
'CrossDeviceConversions',
'Ctr',
'CurrentModelAttributedConversions',
'CurrentModelAttributedConversionValue',
'CustomerDescriptiveName',
'Date',
'DayOfWeek',
'Description',
'Description1',
'Description2',
//'Device',
'DevicePreference',
'DisplayUrl',
'EngagementRate',
'Engagements',
'EnhancedDisplayCreativeLandscapeLogoImageMediaId',
'EnhancedDisplayCreativeLogoImageMediaId',
'EnhancedDisplayCreativeMarketingImageMediaId',
'EnhancedDisplayCreativeMarketingImageSquareMediaId',
'ExpandedDynamicSearchCreativeDescription2',
'ExpandedTextAdDescription2',
'ExpandedTextAdHeadlinePart3',
//'ExternalConversionSource',
'ExternalCustomerId',
'FormatSetting',
'GmailCreativeHeaderImageMediaId',
'GmailCreativeLogoImageMediaId',
'GmailCreativeMarketingImageMediaId',
'GmailForwards',
'GmailSaves',
'GmailSecondaryClicks',
'GmailTeaserBusinessName',
'GmailTeaserDescription',
'GmailTeaserHeadline',
'Headline',
'HeadlinePart1',
'HeadlinePart2',
'Id',
'ImageAdUrl',
'ImageCreativeImageHeight',
'ImageCreativeImageWidth',
'ImageCreativeMimeType',
'ImageCreativeName',
// 'ImpressionAssistedConversions',
// 'ImpressionAssistedConversionsOverLastClickConversions',
// 'ImpressionAssistedConversionValue',
'Impressions',
'InteractionRate',
'Interactions',
'InteractionTypes',
'IsNegative',
'LabelIds',
'Labels',
'LongHeadline',
'MainColor',
'MarketingImageCallToActionText',
'MarketingImageCallToActionTextColor',
'MarketingImageDescription',
'MarketingImageHeadline',
'Month',
'MonthOfYear',
// 'MultiAssetResponsiveDisplayAdAccentColor',
// 'MultiAssetResponsiveDisplayAdAllowFlexibleColor',
'MultiAssetResponsiveDisplayAdBusinessName',
// 'MultiAssetResponsiveDisplayAdCallToActionText',
// 'MultiAssetResponsiveDisplayAdDescriptions',
'MultiAssetResponsiveDisplayAdDynamicSettingsPricePrefix',
'MultiAssetResponsiveDisplayAdDynamicSettingsPromoText',
'MultiAssetResponsiveDisplayAdFormatSetting',
'MultiAssetResponsiveDisplayAdHeadlines',
'MultiAssetResponsiveDisplayAdLandscapeLogoImages',
'MultiAssetResponsiveDisplayAdLogoImages',
// 'MultiAssetResponsiveDisplayAdLongHeadline',
// 'MultiAssetResponsiveDisplayAdMainColor',
'MultiAssetResponsiveDisplayAdMarketingImages',
// 'MultiAssetResponsiveDisplayAdSquareMarketingImages',
'MultiAssetResponsiveDisplayAdYouTubeVideos',
'Path1',
'Path2',
'PercentNewVisitors',
'PolicySummary',
'PricePrefix',
'PromoText',
'Quarter',
'ResponsiveSearchAdDescriptions',
'ResponsiveSearchAdHeadlines',
'ResponsiveSearchAdPath1',
'ResponsiveSearchAdPath2',
'ShortHeadline',
//'Slot',
'Status',
// 'SystemManagedEntitySource',
'TopImpressionPercentage',
'UniversalAppAdDescriptions',
'UniversalAppAdHeadlines',
'UniversalAppAdHtml5MediaBundles',
'UniversalAppAdImages',
'UniversalAppAdMandatoryAdText',
'UniversalAppAdYouTubeVideos',
'ValuePerAllConversion',
'ValuePerConversion',
'ValuePerCurrentModelAttributedConversion',
'VideoQuartile100Rate',
'VideoQuartile25Rate',
'VideoQuartile50Rate',
'VideoQuartile75Rate',
'VideoViewRate',
'VideoViews',
'ViewThroughConversions',
'Week',
'Year',
];
Response example: 
 Array
        (
            [impr_abs_top] => 0.00
            [accent_color_responsive] =>  --
            [currency] => AED
            [account] => POKAI [Eathos]
            [time_zone] => (GMT+04:00) Dubai
            [active_view_avg_cpm] => 0.00
            [active_view_viewable_ctr] => 0.00%
            [active_view_viewable_impressions] => 0
            [active_view_measurable_impr_impr] => 0.00%
            [active_view_measurable_cost] => 0.00
            [active_view_measurable_impr] => 0
            [active_view_viewable_impr_measurable_impr] => 0.00%
            [ad_group_id] => 116455500689
            [ad_group] => Pokai | Cali Poke | EX | EN
            [ad_group_state] => enabled
            [network] => Search Network
            [network_with_search_partners] => Google search
            [ad_strength] => QUALITY_SCORE_UNKNOWN
            [ad_type] => Expanded text ad
            [all_conv_rate] => 0.00%
            [all_conv] => 0.00
            [all_conv_value] => 0.00
            [allow_flexible_color_responsive] =>  --
            [auto_applied_ad_suggestion] => No
            [avg_cost] => 1.59
            [avg_cpc] => 1.59
            [avg_cpe] => 0
            [avg_cpm] => 795.00
            [avg_cpv] => 0
            [pages_session] => 0.00
            [avg_position] =>  --
            [avg_session_duration_seconds] => 0
            [base_ad_group_id] => 116455500689
            [base_campaign_id] => 10486693134
            [bounce_rate] => 0.00%
            [call_to_action_text_responsive] =>  --
            [campaign_id] => 10486693134
            [campaign] => Pokai | DXB | Search | Web | Poke | EN | itcan
            [campaign_state] => enabled
            [clicks] => 1
            [approval_status] => approved
            [conv_rate] => 0.00%
            [conversions] => 0.00
            [total_conv_value] => 0.00
            [cost] => 1.59
            [cost_all_conv] => 0.00
            [cost_conv] => 0.00
            [cost_conv_current_model] => 0
            [destination_url] =>
            [app_final_url] =>  --
            [mobile_final_url] =>  --
            [final_url] => ["https://order.chatfood.io/pokai/delivery"]
            [final_url_suffix] =>  --
            [tracking_template] =>  --
            [custom_parameter] =>  --
            [keyword_id] => 353280159011
            [criteria_type] => Keyword
            [cross_device_conv] =>  --
            [ctr] => 50.00%
            [conversions_current_model] => 0.00
            [conv_value_current_model] => 0.00
            [client_name] => POKAI [Eathos]
            [day] => 2021-01-05
            [day_of_week] => Tuesday
            [description] => We Serve Signature Poke from Premium Quality Ingredients Starting from AED 49 Only.
            [description_line_1] =>
            [description_line_2] =>
            [device_preference] =>  --
            [display_url] =>
            [engagement_rate] => 0.00%
            [engagements] => 0
            [landscape_logo_id_responsive] =>  --
            [logo_id_responsive] =>  --
            [image_id_responsive] =>  --
            [square_image_id_responsive] =>  --
            [expanded_dynamic_search_ad_description_2] =>  --
            [expanded_text_ad_description_2] => No Minimum Order + Earn 10% in Cashback to Spend in your Next Orders. Order Now.
            [expanded_text_ad_headline_3] => Delicious Poke & Great Value
            [customer_id] => 3243746641
            [ad_format_preference_responsive] =>  --
            [gmail_ad_header_image_media_id] =>  --
            [gmail_ad_logo_image_media_id] =>  --
            [gmail_ad_marketing_image_media_id] =>  --
            [gmail_forwards] => 0
            [gmail_saves] => 0
            [gmail_clicks_to_website] => 0
            [gmail_ad_business_name] =>  --
            [gmail_ad_description] =>  --
            [gmail_ad_headline] =>  --
            [ad] =>
            [headline_1] => Order Online From Pokai
            [headline_2] => 10% Cashback With All Order
            [ad_id] => 482359120212
            [image_ad_url] =>  --
            [image_height] =>  --
            [image_width] =>  --
            [image_mime_type] =>  --
            [image_ad_name] =>  --
            [impressions] => 2
            [interaction_rate] => 50.00%
            [interactions] => 1
            [interaction_types] => ["Clicks"]
            [is_negative] => false
            [label_i_ds] => [13148950999]
            [labels] => ["10% CashBack"]
            [long_headline] =>  --
            [main_color_responsive] =>  --
            [gmail_ad_marketing_image_call_to_action_text] =>  --
            [gmail_ad_marketing_image_call_to_action_text_color] =>  --
            [gmail_ad_marketing_image_description] =>  --
            [gmail_ad_marketing_image_headline] =>  --
            [month] => 2021-01-01
            [month_of_year] => January
            [business_name_multi_asset_responsive_display] =>  --
            [price_prefix_multi_asset_responsive_display] =>  --
            [promotion_text_multi_asset_responsive_display] =>  --
            [ad_format_preference_multi_asset_responsive_display] =>  --
            [headlines_multi_asset_responsive_display] =>  --
            [landscape_logos_multi_asset_responsive_display] =>  --
            [logos_multi_asset_responsive_display] =>  --
            [images_multi_asset_responsive_display] =>  --
            [youtube_videos_multi_asset_responsive_display] =>  --
            [path_1] =>  --
            [path_2] =>  --
            [_new_sessions] => 0.00%
            [policy] =>
            [price_prefix_responsive] =>  --
            [promotion_text_responsive] =>  --
            [quarter] => 2021-01-01
            [responsive_search_ad_descriptions] =>  --
            [responsive_search_ad_headlines] =>  --
            [responsive_search_ad_path_1] =>  --
            [responsive_search_ad_path_2] =>  --
            [short_headline] =>  --
            [ad_state] => paused
            [impr_top] => 1.00
            [universal_app_ad_descriptions] =>  --
            [universal_app_ad_headlines] =>  --
            [universal_app_ad_html5_media_bundles] =>  --
            [universal_app_ad_images] =>  --
            [universal_app_ad_mandatory_ad_text] =>  --
            [universal_app_ad_you_tube_videos] =>  --
            [value_all_conv] => 0.00
            [value_conv] => 0.00
            [value_conv_current_model] => 0.00
            [video_played_to_100] => 0.00%
            [video_played_to_25] => 0.00%
            [video_played_to_50] => 0.00%
            [video_played_to_75] => 0.00%
            [view_rate] => 0.00%
            [views] => 0
            [view_through_conv] => 0
            [week] => 2021-01-04
            [year] => 2021
            [client_id] => 17
            [source_id] => 2
            [account_id] => 3243746641
            [date] => 2021-01-05
            [created_at] => 2021-02-23 09:25:09
            [updated_at] => 2021-02-23 09:25:09
            [conversion_adjustment] => --
            [conversion_category] => --
            [device] => --
            [top_vs_other] =>
        )

)

image.png

Can you please help me here, how to get ad name using this API 

I will be waiting for your response

Thanks 

Google Ads API Forum Advisor Prod

unread,
Feb 23, 2021, 12:55:27 PM2/23/21
to develope...@gmail.com, ads-s...@google.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out. The BusinessName could be used for the business name in a responsive display ad. Otherwise, there isn’t a field that could be fetched for the ad name via the AdWords API. You could give it a try to fetch the ad name by querying the ad_group_ad.ad.name from the ad_group_ad resource via the Google Ads API.

Thanks and regards,
Xiaoming, Google Ads API Team



Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2CTnfn:ref

郭云

unread,
Mar 29, 2021, 5:13:11 AM3/29/21
to AdWords API and Google Ads API Forum
Hello!
   Can you post the details to get the complete php code.
Thank you!

Google Ads API Forum Advisor Prod

unread,
Mar 29, 2021, 9:13:43 AM3/29/21
to gled...@gmail.com, adwor...@googlegroups.com
Hello,

Although we don't have an exact example, you can use this code as reference. It shows you how to create a report through PHP in the API but you will need to adjust the query to select the fields you need.

Regards,
Anthony

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q2CTnfn:ref
Reply all
Reply to author
Forward
0 new messages