ad_name from keyword resource

73 views
Skip to first unread message

frank mcmanus

unread,
Jul 17, 2020, 10:38:54 AM7/17/20
to AdWords API and Google Ads API Forum
We are getting ad metrics from the keyword resource and ad_group_ad.ad.id works but not ad_group_ad.ad.name.

How can we get the ad name too?

frank mcmanus

unread,
Jul 17, 2020, 3:39:24 PM7/17/20
to AdWords API and Google Ads API Forum
Our query is this:

    query = '''
            SELECT
                campaign.id
                campaign.name
                campaign.status, 
                campaign.start_date,
                campaign.end_date, 
                campaign.manual_cpm,
                campaign.manual_cpv, 
                ad_group_ad.ad.id,
                ad_group_ad.ad.name,
                ad_group_ad.ad.type,
                ad_group_ad.ad.final_urls,
                ad_group_ad.ad.display_url,
                ad_group.id,
                ad_group.name,
                metrics.impressions,
                metrics.clicks, metrics.ctr,
                metrics.cost_micros,
                metrics.average_cpc,
                metrics.interactions,
                metrics.engagements,
                metrics.conversions,
                metrics.all_conversions,
                metrics.absolute_top_impression_percentage,
                metrics.all_conversions_value, 
                metrics.value_per_all_conversions, 
                metrics.active_view_viewability,
                metrics.active_view_impressions,
                metrics.active_view_measurable_impressions, 
                metrics.all_conversions, 
                metrics.all_conversions_value,
                metrics.current_model_attributed_conversions_value,
                metrics.current_model_attributed_conversions,
                metrics.interaction_event_types,
                metrics.top_impression_percentage, 
                metrics.video_quartile_100_rate,
                metrics.video_quartile_25_rate, 
                metrics.video_quartile_50_rate, 
                metrics.video_quartile_75_rate, 
                metrics.video_view_rate, 
                metrics.video_views, 
                metrics.view_through_conversions, 
                metrics.value_per_all_conversions,
                metrics.value_per_conversion,
                metrics.value_per_current_model_attributed_conversion,
                metrics.cross_device_conversions,
                metrics.conversions_value,
                segments.device,
                segments.keyword.info.text,
                segments.keyword.info.match_type,
                segments.keyword.ad_group_criterion,
                segments.date,
                segments.ad_network_type
            FROM ad_group_ad
            WHERE segments.date = '2020-01-01'
            ORDER BY campaign.id
            '''

All fields return data but NOT ad.name

Google Ads API Forum Advisor Prod

unread,
Jul 17, 2020, 4:35:33 PM7/17/20
to frank.mcmanu...@gmail.com, adwor...@googlegroups.com
Hi Frank,

In order for me to further look into this, can you please provide your CID? Additionally, if you can provide an example ad_group_ad.ad.id value in which the ad_group_ad.ad.name is not showing, that would be helpful to our investigation as well. Please "Reply privately to author" when providing these details. 

Thanks,
Danica, Google Ads API Team

ref:_00D1U1174p._5004Q21mrYR:ref

frank mcmanus

unread,
Jul 17, 2020, 4:54:48 PM7/17/20
to AdWords API and Google Ads API Forum
i'm using chrome but 'reply to author' is grayed out

Google Ads API Forum Advisor Prod

unread,
Jul 17, 2020, 5:29:56 PM7/17/20
to frank.mcmanu...@gmail.com, adwor...@googlegroups.com
Hi Frank,

Upon double-checking here, object IDs such as CID and ad group ID are not considered confidential information and can be mentioned in this thread. You can provide these details here if you cannot respond privately. As an alternative, you can also send these details to googleadsa...@google.com if you do not want this information to be available to the public. 

frank mcmanus

unread,
Jul 17, 2020, 6:25:24 PM7/17/20
to AdWords API and Google Ads API Forum
thank you. 
 
CID is 2486418405
ad_group_id is 77006920716
ad_id 377211373888 

Google Ads API Forum Advisor Prod

unread,
Jul 20, 2020, 1:44:25 PM7/20/20
to frank.mcmanu...@gmail.com, adwor...@googlegroups.com

Hi Frank, 

I am checking on this further within the team. Rest assured we will reach out to you once we have more insight on why you are unable to retrieve the ad_group_ad.ad.name value. 

Regards,


Danica, Google Ads API Team



ref:_00D1U1174p._5004Q21mrYR:ref

frank mcmanus

unread,
Jul 21, 2020, 12:21:50 PM7/21/20
to AdWords API and Google Ads API Forum
Thank you!

Google Ads API Forum Advisor Prod

unread,
Jul 22, 2020, 8:40:30 AM7/22/20
to frank.mcmanu...@gmail.com, adwor...@googlegroups.com
Hello,

Not all ad types have names. The field will be populated for ads that have names, but for other ad types, the field will be blank.

The web interface sometimes "makes up" a name by composing bits of the headlines and descriptions for ad types that don't have a name, but the API does not.

Regards,
Mike, Google Ads API Team

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