Hi,

Let me confirm, did you create the ad from the UI?
TemplateId 364 is not supported by the 
API<https://developers.google.com/adwords/api/docs/appendix/templateads>
.

I'm assuming that's why it's not returned. 

Best,
- Takeshi, AdWords API Team

On Thursday, December 19, 2013 1:14:46 AM UTC+9, kost...@gmail.com wrote:
>
> Request:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="
> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns1="
> https://adwords.google.com/api/adwords/cm/v201309";>
>   <SOAP-ENV:Header>
>     <ns1:RequestHeader>
>       <ns1:clientCustomerId>****</ns1:clientCustomerId>
>       <ns1:developerToken>****</ns1:developerToken>
>       <ns1:userAgent>user agent</ns1:userAgent>
>     </ns1:RequestHeader>
>   </SOAP-ENV:Header>
>   <SOAP-ENV:Body>
>     <ns1:get>
>       <ns1:serviceSelector>
>         <ns1:fields>Id</ns1:fields>
>         <ns1:fields>AdGroupId</ns1:fields>
>         <ns1:fields>Status</ns1:fields>
>         <ns1:predicates>
>           <ns1:field>AdGroupId</ns1:field>
>           <ns1:operator>IN</ns1:operator>
>           <ns1:values>8765847077</ns1:values>
>         </ns1:predicates>
>         <ns1:predicates>
>           <ns1:field>Status</ns1:field>
>           <ns1:operator>IN</ns1:operator>
>           <ns1:values>ENABLED</ns1:values>
>           <ns1:values>PAUSED</ns1:values>
>           <ns1:values>DISABLED</ns1:values>
>         </ns1:predicates>
>         <ns1:paging>
>           <ns1:startIndex>0</ns1:startIndex>
>           <ns1:numberResults>500</ns1:numberResults>
>         </ns1:paging>
>       </ns1:serviceSelector>
>     </ns1:get>
>   </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> And Response:
>
>       <entries>
>           <adGroupId>8765847077</adGroupId>
>           <ad xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="TemplateAd">
>             <id>27803505077</id>
>             <url>http://bank-credits.net</url>
>             <displayUrl>bank-credits.net</displayUrl>
>             <Ad.Type>TemplateAd</Ad.Type>
>             <templateId>364</templateId>
>             <templateElements>
>               <uniqueName>adData</uniqueName>
>             </templateElements>
>             <dimensions>
>               <width>200</width>
>               <height>200</height>
>             </dimensions>
>             <name>200*200</name>
>           </ad>
>           <status>ENABLED</status>
>           <approvalStatus>FAMILY_SAFE</approvalStatus>
>           <trademarkDisapproved>false</trademarkDisapproved>
>         </entries>
> Still no templateElements with image data.
> I try use other selector fields
>  <ns1:fields>Id</ns1:fields>
>         <ns1:fields>TemplateElementFieldType</ns1:fields>
>         <ns1:fields>Url</ns1:fields>
>         <ns1:fields>Urls</ns1:fields>
>         <ns1:fields>AdvertisingId</ns1:fields>
>         <ns1:fields>CreationTime</ns1:fields>
>         <ns1:fields>Dimensions</ns1:fields>
>         <ns1:fields>FileSize</ns1:fields>
>         <ns1:fields>IndustryStandardCommercialIdentifier</ns1:fields>
>         <ns1:fields>MediaId</ns1:fields>
>         <ns1:fields>MimeType</ns1:fields>
>         <ns1:fields>Status</ns1:fields>
>
> but result:
>
> <entries>
>           <adGroupId>8765847077</adGroupId>
>           <ad xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="TemplateAd">
>             <id>27803505077</id>
>             <url>http://bank-credits.net</url>
>             <displayUrl>bank-credits.net</displayUrl>
>             <Ad.Type>TemplateAd</Ad.Type>
>             <templateId>364</templateId>
>             <templateElements>
>               <uniqueName>adData</uniqueName>
>             </templateElements>
>             <dimensions>
>               <width>200</width>
>               <height>200</height>
>             </dimensions>
>             <name>200*200</name>
>           </ad>
>           <status>ENABLED</status>
>           <approvalStatus>FAMILY_SAFE</approvalStatus>
>           <trademarkDisapproved>false</trademarkDisapproved>
>         </entries>
>
> среда, 27 ноября 2013 г., 6:17:18 UTC+2 пользователь Takeshi Hagikura 
> (AdWords API Team) написал:
>>
>> Hi,
>>
>> Can you please check with your raw XML response?
>> I'm able to fetch templateAd fields with these selectors. 
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <soapenv:Envelope xmlns:soapenv="
>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
>> http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance";>
>>   <soapenv:Header>
>>     <ns1:RequestHeader soapenv:actor="
>> http://schemas.xmlsoap.org/soap/actor/next"; soapenv:mustUnderstand="0" 
>> xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201309";>
>>       <ns1:authToken xmlns:ns1="
>> https://adwords.google.com/api/adwords/cm/v201309";>******</ns1:authToken>
>>       <ns1:clientCustomerId>8737720567 </ns1:clientCustomerId>
>>       <ns1:developerToken>********</ns1:developerToken>
>>       <ns1:userAgent>user agent </ns1:userAgent>
>>       <ns1:validateOnly>false</ns1:validateOnly>
>>       <ns1:partialFailure>false</ns1:partialFailure>
>>     </ns1:RequestHeader>
>>   </soapenv:Header>
>>   <soapenv:Body>
>>     <get xmlns="https://adwords.google.com/api/adwords/cm/v201309";>
>>       <serviceSelector>
>>         <fields>Id</fields>
>>         <fields>AdGroupId</fields>
>>         <fields>Status</fields>
>>         <predicates>
>>           <field>AdGroupId</field>
>>           <operator>IN</operator>
>>           <values>7023600168</values>
>>         </predicates>
>>         <predicates>
>>           <field>Status</field>
>>           <operator>IN</operator>
>>           <values>ENABLED</values>
>>           <values>PAUSED</values>
>>           <values>DISABLED</values>
>>         </predicates>
>>         <ordering>
>>           <field>Id</field>
>>           <sortOrder>ASCENDING</sortOrder>
>>         </ordering>
>>       </serviceSelector>
>>     </get>
>>   </soapenv:Body>
>> </soapenv:Envelope>
>>
>>
>> (Extracted the one entry for templateAd)
>>
>>         <entries>
>>           <adGroupId>7023600168</adGroupId>
>>           <ad xsi:type="TemplateAd" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance";>
>>             <id>35313752088</id>
>>             <url>http://www.example.com</url>
>>             <displayUrl>www.example.com</displayUrl>
>>             <Ad.Type>TemplateAd</Ad.Type>
>>             <templateId>9</templateId>
>>             <templateElements>
>>               <uniqueName>adData</uniqueName>
>>               <fields>
>>                 <name>video</name>
>>                 <type>VIDEO</type>
>>                 <fieldMedia xsi:type="Video">
>>                   <mediaId>716441568</mediaId>
>>                   <type>VIDEO</type>
>>                   <referenceId>-6818191168503559577</referenceId>
>>                   <urls>
>>                     <key>VIDEO_THUMBNAIL</key>
>>                     <value>
>> https://ytimg.googleusercontent.com/vi/oWDrQa6jymc/default.jpg</value>
>>                   </urls>
>>                   <name>Google I/O 2013 Highlights</name>
>>                   <creationTime>20131021 134321 Asia/Tokyo</creationTime>
>>                   <Media.Type>Video</Media.Type>
>>                   <durationMillis>277000</durationMillis>
>>                   <streamingUrl>
>> http://youtube.com/get_video?video_id=oWDrQa6jymc&amp;ts=1385525249124&amp;t=VyrRzFH18OROZEoS2Yc7NPoqdrU&amp;gad=1<http://youtube.com/get_video?video_id=oWDrQa6jymc&ts=1385525249124&t=VyrRzFH18OROZEoS2Yc7NPoqdrU&gad=1>
>> </streamingUrl>
>>                   <readyToPlayOnTheWeb>true</readyToPlayOnTheWeb>
>>                   <industryStandardCommercialIdentifier/>
>>                   <advertisingId/>
>>                   <youTubeVideoIdString>oWDrQa6jymc</youTubeVideoIdString>
>>                 </fieldMedia>
>>               </fields>
>>               <fields>
>>                 <name>startImage</name>
>>                 <type>IMAGE</type>
>>                 <fieldMedia xsi:type="Image">
>>                   <type>IMAGE</type>
>>                   <referenceId>-912048456170733568</referenceId>
>>                   <dimensions>
>>                     <key>FULL</key>
>>                     <value>
>>                       <width>300</width>
>>                       <height>250</height>
>>                     </value>
>>                   </dimensions>
>>                   <urls>
>>                     <key>FULL</key>
>>                     <value>
>> https://tpc.googlesyndication.com/pageadimg/imgad?id=CICAgMCumPCr8wEQrAIY-gEoATII2ijWo4vJxaY
>> </value>
>>                   </urls>
>>                   <mimeType>IMAGE_JPEG</mimeType>
>>                   <Media.Type>Image</Media.Type>
>>                 </fieldMedia>
>>               </fields>
>>             </templateElements>
>>             <dimensions>
>>               <width>300</width>
>>               <height>250</height>
>>             </dimensions>
>>             <name>Mars Cruise video ad #1385524747151</name>
>>             <duration>277000</duration>
>>           </ad>
>>           <status>ENABLED</status>
>>           <approvalStatus>DISAPPROVED</approvalStatus>
>>           <disapprovalReasons>[Display URL] One display URL domain per ad 
>> group</disapprovalReasons>
>>           <trademarkDisapproved>false</trademarkDisapproved>
>>         </entries>
>>
>>
>> Best,
>> - Takeshi, AdWords API Team
>>
>> On Monday, November 18, 2013 9:37:47 PM UTC+9, kost...@gmail.com wrote:
>>>
>>> I use "Urls" and all other fields, but still not have any data in 
>>> TemplateElement -> fields
>>>
>>>  object(TemplateAd)#19 (13) {
>>>     ["templateId"]=>
>>>     string(3) "364"
>>>     ["adUnionId"]=>
>>>     NULL
>>>     ["templateElements"]=>
>>>     array(1) {
>>>       [0]=>
>>>       object(TemplateElement)#21 (2) {
>>>         ["uniqueName"]=>
>>>         string(6) "adData"
>>>         ["fields"]=>
>>>         NULL
>>>       }    
>>> }
>>>
>>> четверг, 14 ноября 2013 г., 11:30:59 UTC+2 пользователь Takeshi Hagikura 
>>> (AdWords API Team) написал:
>>>>
>>>> Hi,
>>>>
>>>> Did you include "Urls" in your selector?
>>>> You can refer to this 
>>>> page<https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201309-AdGroupAdService>for
>>>>  available selector fields.
>>>>
>>>> Best,
>>>> - Takeshi, AdWords API Team
>>>>
>>>> On Tuesday, November 12, 2013 10:21:51 PM UTC+9, kost...@gmail.comwrote:
>>>>>
>>>>>
>>>>> TemplateAd fields
>>>>>
>>>>> I have a TemplateAd with Image, I want copy this ad to change uri
>>>>>
>>>>> get ad by php lib using AdGroupAdService, and have a result AdGroupAd 
>>>>> object like this:
>>>>>
>>>>> object(AdGroupAd)#20 (8) {
>>>>>   ["adGroupId"]=>
>>>>>   string(10) "8765847077"
>>>>>   ["ad"]=>
>>>>>   object(TemplateAd)#18 (13) {
>>>>>     ["templateId"]=>
>>>>>     string(3) "364"
>>>>>     ["adUnionId"]=>
>>>>>     NULL
>>>>>     ["templateElements"]=>
>>>>>     array(1) {
>>>>>       [0]=>
>>>>>       object(TemplateElement)#17 (2) {
>>>>>         ["uniqueName"]=>
>>>>>         string(6) "adData"
>>>>>         ["fields"]=>
>>>>>         NULL
>>>>>       }
>>>>>     }
>>>>>     ["dimensions"]=>
>>>>>     object(Dimensions)#16 (2) {
>>>>>       ["width"]=>
>>>>>       int(160)
>>>>>       ["height"]=>
>>>>>       int(600)
>>>>>     }
>>>>>     ["name"]=>
>>>>>     string(7) "160*600"
>>>>>     ["duration"]=>
>>>>>     NULL
>>>>>     ["originAdId"]=>
>>>>>     NULL
>>>>>     ["id"]=>
>>>>>     string(11) "27803504957"
>>>>>     ["url"]=>
>>>>>     string(23) "http://bank-credits.net";
>>>>>     ["displayUrl"]=>
>>>>>     string(16) "bank-credits.net"
>>>>>     ["devicePreference"]=>
>>>>>     NULL
>>>>>     ["AdType"]=>
>>>>>     string(10) "TemplateAd"
>>>>>     ["_parameterMap":"Ad":private]=>
>>>>>     array(1) {
>>>>>       ["Ad.Type"]=>
>>>>>       string(6) "AdType"
>>>>>     }
>>>>>   }
>>>>>   ["experimentData"]=>
>>>>>   NULL
>>>>>   ["status"]=>
>>>>>   string(7) "ENABLED"
>>>>>   ["approvalStatus"]=>
>>>>>   string(11) "FAMILY_SAFE"
>>>>>   ["disapprovalReasons"]=>
>>>>>   NULL
>>>>>   ["trademarkDisapproved"]=>
>>>>>   bool(false)
>>>>>   ["forwardCompatibilityMap"]=>
>>>>>   NULL
>>>>> }
>>>>>
>>>>> but there is no templateElements with image data, how can I get all 
>>>>> templateElements or Image ?
>>>>>
>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to