How to use ImageAd's adToCopyImageFrom field

29 views
Skip to first unread message

mIshka

unread,
May 25, 2017, 11:09:38 PM5/25/17
to AdWords API Forum

I've an ImageAd that is retrieved using `AdGroupAdService`. Here is how the object looks (some fields are masked).

AdGroupAd Object
(
   
[adGroupId] => 341****442
   
[ad] => ImageAd Object
       
(
           
[image] => Image Object
               
(
                   
[data] =>
                   
[mediaId] =>
                   
[type] => IMAGE
                   
[referenceId] => 5167****1872
                   
[dimensions] => Array
                       
(
                           
[0] => Media_Size_DimensionsMapEntry Object
                               
(
                                   
[key] => FULL
                                   
[value] => Dimensions Object
                                       
(
                                           
[width] => 728
                                           
[height] => 90
                                       
)


                               
)


                           
[1] => Media_Size_DimensionsMapEntry Object
                               
(
                                   
[key] => PREVIEW
                                   
[value] => Dimensions Object
                                       
(
                                           
[width] => 180
                                           
[height] => 22
                                       
)

                               
)

                       
)


                   
[urls] => Array
                       
(
                           
[0] => Media_Size_StringMapEntry Object
                               
(
                                   
[key] => FULL
                                   
[value] => https://tpc.googlesyndication.com/simgad/177****160
                               
)


                           
[1] => Media_Size_StringMapEntry Object
                               
(
                                   
[key] => PREVIEW
                                   
[value] => https://tpc.googlesyndication.com/simgad/904****366
                               
)


                       
)


                   
[mimeType] => IMAGE_JPEG
                   
[sourceUrl] =>
                   
[name] =>
                   
[fileSize] => 0
                   
[creationTime] =>
                   
[MediaType] => Image
                   
[_parameterMap:Media:private] => Array
                       
(
                           
[Media.Type] => MediaType
                       
)


               
)


           
[name] => LeaderBoard_***_NewYork_2
           
[adToCopyImageFrom] =>
           
[id] => 117661352642
           
[url] =>
           
[displayUrl] => thesite.com/NewYork
           
[finalUrls] => Array
               
(
                   
[0] => https://thesite.com/
               
)


           
[finalMobileUrls] =>
           
[finalAppUrls] =>
           
[trackingUrlTemplate] =>
           
[urlCustomParameters] =>
           
[type] => IMAGE_AD
           
[devicePreference] =>
           
[AdType] => ImageAd
           
[_parameterMap:Ad:private] => Array
               
(
                   
[Ad.Type] => AdType
               
)


       
)


   
[status] => ENABLED
   
[approvalStatus] => FAMILY_SAFE
   
[trademarks] =>
   
[disapprovalReasons] =>
   
[trademarkDisapproved] =>
   
[labels] =>
   
[baseCampaignId] => 643***438
   
[baseAdGroupId] =>
   
[forwardCompatibilityMap] =>
)

Now, when I try to mutate this ad using `ADD` operator and `adToCopyImageFrom` set to the id from above. I get the following error:

[AdError.IMAGE_ERROR @ operations[0].operand.ad]


Peter Oliquino

unread,
May 26, 2017, 12:36:01 AM5/26/17
to AdWords API Forum
Hi,

In order to better investigate your concern, could you provide the SOAP request and response generated when the error occurred? Please reply using Reply privately to author.

Best regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages