I had they same problem. The workaround I used was to go through the ad performance report instead of using the ad object.
function main() { var adIterator = AdWordsApp.ads().withCondition("CampaignName CONTAINS_IGNORE_CASE 'Script_Test'").get(); while (adIterator.hasNext()) { var ad = adIterator.next(); var sAdType = ad.getType(); if (ad.getType() == "TEXT_AD") { Logger.log('Headline : ' + ad.getHeadline()); } else if (ad.getType() == "EXPANDED_TEXT_AD") { var expandedTextAd = ad.asType().expandedTextAd(); var headlinePart1 = expandedTextAd.getHeadlinePart1(); var headlinePart2 = expandedTextAd.getHeadlinePart2(); Logger.log('ETA Headline Part 1 : ' + expandedTextAd.getHeadlinePart1()); Logger.log('ETA Headline Part 2 : ' + expandedTextAd.getHeadlinePart2()); Logger.log('ETA Description : ' + expandedTextAd.getDescription()); } }}{PH_0}
{PH_1}
It's off topic, but this seemed the best place to report it. Maybe you could pass it along...
Cheers
Martin
Hi Mykhailo,
With regard to your concern about getHeadlinePart3 and getDescription2, upon testing in my test account, I was able to get the values for both fields successfully. With this, so I can further investigate the issue, could you provide your CID and script name via Reply privately to author?
Regards,
Hiroyuki
Google Ads Scripts Team