When i try to create a new VideoDiscoveryAd with long YouTube video title 
and using short Headline 
withHeadline("short title")

, i  get error that the Title is too long.
It means that the method withHeadline does not replace YouTube video title 
before validation.

How to solve this problem?

My code:

getVideo: function (youTubeVideoId) {
            var mediaOperation = AdWordsApp.adMedia().newVideoBuilder()
                .withYouTubeVideoId(youTubeVideoId)
                .build();
            var video = mediaOperation.getResult();
            return video;
        } 

var video = getVideo(youTubeVideoId);

videoAdGroup.newVideoAd().videoDiscoveryAdBuilder()
                    .withAdName(youTubeVideoId)
                    .withDescription1(descriptionOne)
                    .withDescription2(descriptionTwo)
                    .withHeadline("short title")
                    .withThumbnail("DEFAULT")
                    .withDestinationPage("WATCH")
                    .withVideo(video)
                .build();

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7cf91f77-acb7-4fbd-83c3-9d0687924848%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Create V... Andrey Nazimov
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum

Reply via email to