AdWords
3.8K members online now
3.8K members online now
Dive into advanced features like Remarketing, Flexible Bid Strategies, AdWords Editor, and AdWords Scripts
Guide Me
star_border
Reply

how to get DSA description1 and 2 in adwords scripts?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hey.

 

I get a wierd feature in adwords scripts.

 

When i have a DSA ad and run getType() it returns WEBSITE_AD.

But WEBSITE_AD is not listet ad a possible Type in API.

https://developers.google.com/adwords/scripts/docs/reference/adwordsapp/adwordsapp_ad#getType_0

 

When i run ad.getDescription1() and ad.getDescription2() it returns null.

 

I run the script from mcc.

 

Anyone know if there is a method for getting the two description lines from DSA ads in Adwords scripts?

 

Thanks.

 

Allan

2 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Allan A
September 2015

Re: how to get DSA description1 and 2 in adwords scripts?

Top Contributor
# 3
Top Contributor

Hi Allan, the scripts reference does say that getDescriptionLine1() (and 2) "May return null for some types of ads.", so I'm guessing DSA are one of those types of Ads...

 

Have you tried pulling them from the AD_PERFORMANCE_REPORT instead of directly via the Ad object?

 

https://developers.google.com/adwords/api/docs/appendix/reports#ad

 

Jon

AdWords Top Contributor Google+ Profile | Partner Profile | AdWords Audits

View solution in original post

Re: how to get DSA description1 and 2 in adwords scripts?

Top Contributor
# 2
Top Contributor

Hey Allan,

 

@Jon_Gritton might assist you with this.

 

Also, here's the dedicated AdWords script forum as well, if you want to re-post this: 

https://groups.google.com/forum/#!forum/adwords-scripts

 

Pankaj

 

 

Marked as Best Answer.
Solution
Accepted by topic author Allan A
September 2015

Re: how to get DSA description1 and 2 in adwords scripts?

Top Contributor
# 3
Top Contributor

Hi Allan, the scripts reference does say that getDescriptionLine1() (and 2) "May return null for some types of ads.", so I'm guessing DSA are one of those types of Ads...

 

Have you tried pulling them from the AD_PERFORMANCE_REPORT instead of directly via the Ad object?

 

https://developers.google.com/adwords/api/docs/appendix/reports#ad

 

Jon

AdWords Top Contributor Google+ Profile | Partner Profile | AdWords Audits

Re: how to get DSA description1 and 2 in adwords scripts?

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
Thanks Jon

AD_PERFORMANCE_REPORT contained the descriptions.