Hi,

I'm trying to create an In-stream video ad. According to template 
documentation 
<https://developers.google.com/adwords/api/docs/appendix/templateads#instream_video>,
 
It seems that we need to create the media ad first, in order to get the 
media id. I've tried first create the Youtube Video Media as you can see 
below :

$user = new AdWordsUser();
$user->SetClientCustomerId('727-815-6373');
$mediaService = $user->GetService('MediaService', ADWORDS_VERSION);
$video = new Video();
$video->name='Youtube Video AD #' . uniqid();
$video->type = 'VIDEO';
$video->youTubeVideoIdString="oUNHV_kbmY0";
$result = $mediaService->upload(array($video));
printf("Video id '%s' was "
.    "uploaded.\n",  $result[0]->mediaId);

But I don't understand why I'm getting this error :

Uncaught SoapFault exception: [soap:Server] [MediaError.UNSUPPORTED_TYPE @ 
media[0]]

Thanks for any help.

Youssef

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/104b976c-f0c4-47fa-b463-d86f48cc1141%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to