ASPECT_RATIO_NOT_ALLOWED at registration of 1200 × 628 px images

180 views
Skip to first unread message

dspapp....@gmail.com

unread,
May 30, 2018, 6:09:33 AM5/30/18
to AdWords API and Google Ads API Forum
Hi,
Attempt to add responsiveDisplayAd with AdGroupAdService.
600 x 314 px is OK, but 1200 x 628 px will result in an error.
[ImageError.ASPECT_RATIO_NOT_ALLOWED @ operations [0] .operand.ad.marketingImage.mediaId]
How can I register an image of 1200 × 628px?

Dhanya Sundararaju (AdWords API Team)

unread,
May 30, 2018, 1:51:22 PM5/30/18
to AdWords API and Google Ads API Forum
Hi,

Could you please confirm if you are able to add the same image via UI? If yes, could you please reply back with complete SOAP logs including request and response so that I can troubleshoot further?

Regards,
Dhanya, AdWords API Team
Message has been deleted

dspapp....@gmail.com

unread,
May 30, 2018, 10:52:49 PM5/30/18
to AdWords API and Google Ads API Forum
I could added The same image via UI.
SOAP log, target image attached.
Thanking you in advance.

2018年5月31日木曜日 2時51分22秒 UTC+9 Dhanya Sundararaju (AdWords API Team):
1200_628.png
gdn_soaplog.txt

Dhanya Sundararaju (AdWords API Team)

unread,
May 31, 2018, 11:53:22 AM5/31/18
to AdWords API and Google Ads API Forum
Hi,

Thank you confirming and sending the logs. Upon testing, I found that I was able to add your image via the UI and via API. Could you please try adding just the marketingImage to make sure it is throwing an error? If you still have issues, could you please reply back with your squaremarketingImage and logoIimage as well, so that I can test further?

dspapp....@gmail.com

unread,
May 31, 2018, 9:08:48 PM5/31/18
to AdWords API and Google Ads API Forum
The situation does not change.
Until the image is successfully uploaded with MediaService,
Attempting to create an advertisement with AdGroupAdService by setting acquired MediaId to marketingImage of ResponsiveDisplayAd
ImageError.ASPECT_RATIO_NOT_ALLOWED will occur.
The same error occurs even if squareMarketingImage, logoImage is not set.
Again, we attach the SOAP log of the entire process, images of squareMarketingImage and logoImage. squareMarketingImage and logoImage are the same image.
marketingImage is the same image as last time.


2018年6月1日金曜日 0時53分22秒 UTC+9 Dhanya Sundararaju (AdWords API Team):
300_300.png
gdn_soaplog_20180601.txt

dspapp....@gmail.com

unread,
Jun 4, 2018, 12:56:46 AM6/4/18
to AdWords API and Google Ads API Forum
solved. This is because we set arguments corresponding to invalid certificate sites in file_get_contents when making images as character strings.
I solved it by removing the argument.
Thank you very much.

2018年6月1日金曜日 0時53分22秒 UTC+9 Dhanya Sundararaju (AdWords API Team):
Reply all
Reply to author
Forward
0 new messages