Error on upload html5 zip ad CUSTOMER_NOT_WHITELISTED_FOR_ASSET_TYPE

59 views
Skip to first unread message

Diogo Pereira

unread,
Jun 3, 2019, 6:14:57 AM6/3/19
to AdWords API and Google Ads API Forum
Hi,

When i try to upload the html5 zip file for gmail ad the api returns:

Failure: {"errors":[{"errorCode":{"assetError":"CUSTOMER_NOT_WHITELISTED_FOR_ASSET_TYPE"},"message":"The customer is not whitelisted for this asset type.","trigger":{"stringValue":"MEDIA_BUNDLE"},"location":{"fieldPathElements":[{"fieldName":"operations","index":"0"}]}}]} 


How i can set the customer in the whitelist? Or how i can upload an html5 zip ?

Google Ads API Forum Advisor Prod

unread,
Jun 3, 2019, 2:51:20 PM6/3/19
to adwor...@googlegroups.com
Hello, 

Could you please share the complete request and response logs where you're receiving this error? You can share the details privately via Reply privately to author option. 

Regards,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UBl8KL:ref

Diogo Pereira

unread,
Jun 4, 2019, 5:16:06 AM6/4/19
to AdWords API and Google Ads API Forum
$zipBytes = file_get_contents('html5-bundle-generic.zip');

$mediaAsset = new MediaBundleAsset([
'data' => new BytesValue(['value' => $zipBytes])
]);

// Creates the logo image.
$logoMediaFile = new Asset([
'type' => AssetType::MEDIA_BUNDLE,
'name' => new StringValue(['value' => 'Campaign #teste'])
]);

$logoMediaFile->setMediaBundleAsset($mediaAsset);



$assetOperation = new AssetOperation();
$assetOperation->setCreate($logoMediaFile);

$assetsServiceClient = $googleAdsClient->getAssetServiceClient();
$response = $assetsServiceClient->mutateAssets($customerId, [$assetOperation]);

die($response->getResourceName());

$displayUploadAd = new DisplayUploadAdInfo([
'display_upload_product_type' => DisplayUploadProductType::HTML5_UPLOAD_AD,
'media_bundle' => new AdMediaBundleAsset(['asset' => new StringValue(['value' => $response->getResourceName()])])
]);

Diogo Pereira

unread,
Jun 7, 2019, 6:06:41 AM6/7/19
to AdWords API and Google Ads API Forum
Hi

Any answer?

Google Ads API Forum Advisor Prod

unread,
Jun 7, 2019, 12:53:55 PM6/7/19
to adwor...@googlegroups.com
Hello, 

Regret the delay as I was checking this internally with the team. It looks like the error is related to this blog post, where existing accounts that have used or are currently using HTML5 ads will be whitelisted, and will continue to be able to upload HTML5 ads. If the account is new, or has never used HTML5 ads before, they may apply for HTML5 access in the account by filling in the whitelist request form. Could you please reach out to the Google Ads Product team through using the help icon after logging into your account to request whitelist for HTML5 ads. 

Thanks,
Reply all
Reply to author
Forward
0 new messages