Hi Hazar, I was able to reproduce this issue on my side. It appears that the template ad validation is looking for the *assetPath* field, but that field is not settable via the API. Do you have to make copies of a large number of such ads, or just the handful in this particular ad group? If it's just this handful, I'd recommend editing/copying the ads through the user interface.
I will follow up with the template ads team to see if there's a work around, but using the user interface will be the fastest way to address this in the meantime. Thanks, Josh, AdWords API Team On Monday, August 10, 2015 at 3:31:12 AM UTC-4, Hazar Hayat wrote: > > The finalUrls value is going in the *url *element as you can see it in > the post. > > The problem is with the > [templateElements[0].fields[7].fieldMedia.assetPath] field name is > *Custom_layout* and field type is *IMAGE *which contain the zip file we > uploaded for the *gmail_custom_ad *that contain the HTML,teaser images > etc.I think that i need to set the contents of this element but I am unable > to get this using MediaService because the MediaService return no record > for the Media Id shown here. > > Following is the element xml that I am using in the post. > > <fields><name>Custom_layout</name><type>IMAGE</type><fieldMedia > xsi:type="Image"><mediaId>1489628318</mediaId><referenceId>-8627339302394658816</referenceId><dimensions><key>FULL</key><value><width>0</width><height>0</height></value></dimensions><urls><key>FULL</key><value> > https://tpc.googlesyndication.com/sadbundle/9819404771314892800/index.html > </value></urls><sourceUrl>media://da/image?source=user_file&id_from_source= > *GSP_Creative.zip* > &operation=original</sourceUrl><name>GSP_Creative.zip</name><Media.Type>Image</Media.Type></fieldMedia></fields> > > *Please clarify what I am missing.* > > Is there any way I can download the *GSP_Creative.zip* using API? > > Thanks > > On Friday, August 7, 2015 at 7:56:48 PM UTC+5, Anthony Madrigal wrote: >> >> Hi Hazar, >> >> After looking at your ad, I saw that its final URL is null, so when you >> set *templateAdNew.finalUrls = templateAd.finalUrls *there is no value >> going in there. Once you set that you should no longer be getting the >> *EMPTY_FIELD >> *error. >> >> Cheers, >> Anthony >> AdWords API Team >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. 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/945f8fee-1110-432c-b149-f8387fc90080%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.