We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d9eff7 + 4b69550 commit 8a4ca60Copy full SHA for 8a4ca60
marketing/v19/adcreative.go
@@ -298,7 +298,7 @@ func (ac AdCreative) GetLinkCaption() string {
298
return ""
299
}
300
301
- if ac.ObjectStorySpec.LinkData != nil {
+ if ac.ObjectStorySpec.LinkData != nil && ac.ObjectStorySpec.LinkData.CallToAction != nil && ac.ObjectStorySpec.LinkData.CallToAction.Value != nil {
302
return ac.ObjectStorySpec.LinkData.CallToAction.Value.LinkCaption
303
} else if ac.ObjectStorySpec.VideoData != nil && ac.ObjectStorySpec.VideoData.CallToAction != nil && ac.ObjectStorySpec.VideoData.CallToAction.Value != nil {
304
return ac.ObjectStorySpec.VideoData.CallToAction.Value.LinkCaption
0 commit comments