AdWords api: how to download AdName / Headline

60 views
Skip to first unread message

huy.ng...@roivenue.com

unread,
Jun 7, 2018, 5:48:24 AM6/7/18
to AdWords API and Google Ads API Forum
Hello AdWords community,

I'd like to ask you for a help regarding to downloading data from AdWords.

I need to download some dimensions to connect data to Web Analytics and what I am pending is AdName.

I could not find dimension "AdName", I tried another dimensions "HeadlinePart1" / "HeadlinePart2" / "Headline" / "ShortHeadline" ... and it returns to me with an error that it is an invalid name for the report.

Those dimensions are on the list of available dimension in AdWords documentation.

Any have an idea why it is not working and how to fix it?

Many thanks,
Huy

Bharani Cherukuri (AdWords API Team)

unread,
Jun 7, 2018, 11:40:14 AM6/7/18
to AdWords API and Google Ads API Forum
Hello Huy, 

If you're using AdWords API, the Ad Headline will be returned with the Headline fields. You will be able to generate the Ad description using the Description fields of the Ad Performance Report. This will return the descriptive text of the expanded text ad or responsive display ad. Please check this guide for more information.

If this is not what you're looking for, could you please share a screenshot of the UI, so I can take a look?

Regards,
Bharani, AdWords API Team

Bharani Cherukuri (AdWords API Team)

unread,
Jun 8, 2018, 1:14:36 PM6/8/18
to AdWords API and Google Ads API Forum
Hello Huy, 

Thank you for sharing the details privately. The INVALID_FIELD_NAME_FOR_REPORT indicates that there is an invalid report name specified in the request. If you're looking to pull metrics at the ad level, you will be able to use the Ad Performance Report. This will return stats aggregated at the ad level, one row per ad. So the request query in Java will look something like this:

ReportQuery query = 
new ReportQuery.Builder() 
.fields("Id","AdType","AdGroupId","CampaignId","Description","Description1", "Description2", "Headline", "HeadlinePart1", "HeadlinePart2") 
.from(ReportDefinitionReportType.AD_PERFORMANCE_REPORT) 
.where("Status").in("ENABLED", "PAUSED") 
.during(ReportDefinitionDateRangeType.YESTERDAY) 
.build();

Please take a look at this guide which illustrates on how the API report map with the AdWords UI. If you continue to have an issue with this, please share a screenshot of the UI along with the complete report definition, so I can take a look.

Thanks,
Bharani, AdWords API Team
Reply all
Reply to author
Forward
0 new messages