This is definitely a bug. We are having the same issue after moving from 
AdWords API to Google Ads API V9 today. Some images seem to work, but we 
are getting "*Image has layout problem*" on specific images for some 
reason. When I try to upload the exact same image via the Google Ads UI 
there are no issues and it uploads fine. This seems like a bug, but can we 
get some insight google?

Here are a couple example images that are resulting in "*Image has layout 
problem*" when trying to upload with google ads API v9:
https://realtyads.com/reporting/img_uploads/upload_54461_1649855869tmp_653890936.jpg
https://realtyads.com/reporting/img_uploads/upload_55536_1646846286tmp_949189003.png

On Wednesday, April 27, 2022 at 1:16:50 PM UTC-4 JohnD wrote:

> Hello,
>
> We had the same problem since yesterday, after upgrade to Google Ads API 
> v10.
> Some images are working well, but images 512x128 don't.
> The same image that give an error is working perfectly if you try to 
> upload it manually by the Google Ads Manager.
> On this link seems that 512x128 it's a correct layout for Logo Images --> 
> https://support.google.com/google-ads/editor/answer/57755?hl=en#zippy=%2Cdisplay-ads
>
> PHP Code doing the Request:
> ```
> ...
> $fileData = file_get_contents($imageUrl);
>
> $imageAsset = new ImageAsset();
> $imageAsset->setData($fileData);
>
> $asset = new Asset();
> $asset->setName("some image name");
> $asset->setType(AssetType::IMAGE);
> $asset->setImageAsset($imageAsset);
>
> $operation = new AssetOperation();
> $operation->setCreate($asset);
>
> $result = $assetService
> ->mutateAssets($googleAdsAccountId, [$operation]);
> ...
> ```
>
> Response:
>
> ```
> Google\ApiCore\ApiException
>
> Message:
> {
>     "message": "Request contains an invalid argument.",
>     "code": 3,
>     "status": "INVALID_ARGUMENT",
>     "details": [
>         {
>             "@type": "type.googleapis.com
> \/google.ads.googleads.v10.errors.GoogleAdsFailure",
>             "errors": [
>                 {
>                     "errorCode": {
>                         "mediaUploadError": "LAYOUT_PROBLEM"
>                     },
>                     "message": "Image has layout problem.",
>                     "location": {
>                         "fieldPathElements": [
>                             {
>                                 "fieldName": "operations",
>                                 "index": 0
>                             }
>                         ]
>                     }
>                 }
>             ],
>             "requestId": "Mq_sKUfoj3f9E3afw19pbQ"
>         }
>     ]
> }
> ```
>
> Where we can get a detailed error or is this a bug from v10 API?.
>
> Regards.
>
> On Wednesday, April 27, 2022 at 10:28:05 AM UTC+2 [email protected] 
> wrote:
>
>> Hello,
>> I can manually upload asset to asset library, but upload failed via 
>> google ads api.
>> The details are as follows:
>> google.ads.googleads.client: Request made: ClientCustomerId: xxxxxx, 
>> Host: googleads.googleapis.com, Method: 
>> /google.ads.googleads.v9.services.AssetService/MutateAssets, 
>> RequestId: jWhc-nNtLweTeUOGthbh1A, IsFault: False, FaultMessage: None
>> code: 3
>> message: "Image has layout problem., at operations[0]"
>> details {
>>   type_url: "
>> type.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure"
>>   value: "\n2\n\003\240\007\026\022\031Image has layout 
>> problem.\"\020\022\016\n\noperations\030\000"
>> }
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a82cc9a9-1cd7-4b3a-910e-d941f71ea2b4n%40googlegroups.com.
  • up... amanda yang
    • ... Keegan Kuhn
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... Keegan Kuhn
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
            • ... 'JohnD' via Google Ads API and AdWords API Forum

Reply via email to