Unable to create a Media Bundle Asset through Ads API

367 views
Skip to first unread message

Cody Polakovic

unread,
Dec 7, 2020, 7:47:53 PM12/7/20
to AdWords API and Google Ads API Forum
I'm trying to create HTML5 ads through the API but keep running into errors. 

Steps I have taken so far:

  • Create AdGroupAd
    • Assign AdGroup to my adGroupResourceName
    • Assign Status to Paused
  • Create Ad
    • Assign Name
    • Assign Type to DynamicHtml5Ad
    • Assign DisplayUploadAd
      • Assign DisplayUploadProductType to DynamicHtml5CustomAd
      • Create MediaBundle
        • Assign Asset resource name
  • Error during MutateAdGroupAds
    • {[ { "errorCode": { "adError": "EMPTY_FIELD" }, "message": "A required field was not specified or is an empty string.", "trigger": { "stringValue": "" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 }, { "fieldName": "create" }, { "fieldName": "ad" } ] } } ]

I believe this to be from attempting to use an existing Media Bundle Asset but I have no way to confirm which brings me to the next issue I am having.

I recieve an error when trying to create a MediaBundleAsset.

I have very similar code seen in this example:

The difference is that I am creating a MediaBundleAsset.

Steps I have taken so far:
  • GetAssetDataFromUrl from a .zip file in cloud storage
  • Create MediaBundleAsset Object
    • Assign Data to ByteString content from GetAssetDataFromUrl
  • Create an Asset Object
    • Assign Name
    • Assign Type to MediaBundle
    • Assign MediaBundleAsset to the MediaBundleAsset
  • Error During MutateAssets
    • Errors = {[ { "errorCode": { "mediaUploadError": "MEDIA_BUNDLE_NOT_COMPATIBLE_TO_PRODUCT_TYPE" }, "message": "The media bundle is not compatible with the asset spec product type. (E.g. Gmail, dynamic remarketing, etc.)", "location": { "fieldPathElements": [ { "field...

Any help with these errors will be greatly appreciated.

Google Ads API Forum Advisor Prod

unread,
Dec 10, 2020, 2:10:59 AM12/10/20
to cpola...@gmail.com, adwor...@googlegroups.com
Hi Cody,

To further investigate, please provide the following details for the issues that you've mentioned via Reply privately to author option:
  • Customer ID
  • complete request and response with request ID 

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q28nzfB:ref

Ionut Mihai

unread,
Jan 20, 2022, 9:59:43 AM1/20/22
to Google Ads API and AdWords API Forum
Hello

I'm trying to upload a HTML5 asset as ZIP and I'm getting error "The media bundle is not compatible with the asset spec product type. (E.g. Gmail, dynamic remarketing, etc.)"

This is a HTML5 for remarketing ads (I'm trying to create a
DisplayUploadProductType::DYNAMIC_HTML5_CUSTOM_AD ad).


Thank you.

Google Ads API Forum Advisor

unread,
Jan 21, 2022, 7:58:27 AM1/21/22
to adwor...@googlegroups.com

Hi Ionut,

Thanks for posting on this thread.

Could you provide us with the complete request and response logs with the request-id generated, so our team can better check?

For the PHP client library, logging can be enabled by navigating to the Client libraries > Your client library (select PHP) > Logging documentation, which you can access from this link. You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q28nzfB:ref

Ionut Mihai

unread,
Feb 1, 2022, 8:38:08 AM2/1/22
to Google Ads API and AdWords API Forum
Hello.
Any news on this? It's been almost two weeks.

Thank you.

Google Ads API Forum Advisor

unread,
Feb 2, 2022, 3:00:21 AM2/2/22
to adwor...@googlegroups.com
Hi Ionut,

Thank you for following up and providing more details to you concern.

So that I can raise the issue to the team and to know if the media that you uploaded met the requirement for the specific media type, would you be able to provide the media that you are trying to upload in the Google Ads API? Please provide it via Reply privately to author option or to this email address googleadsa...@google.com if this option is not available.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q28nzfB:ref

Ionut Mihai

unread,
Mar 4, 2022, 8:14:20 AM3/4/22
to Google Ads API and AdWords API Forum
Any news on this? It's been another month without any response. I've sent the complete logs and data two times already.

james.r...@adpearance.com

unread,
Sep 6, 2022, 9:54:47 PM9/6/22
to Google Ads API and AdWords API Forum
@Ionut Mihai, did you ever figure out a solution or workaround here? We are running into a similar issue, unable to upload a HTML5 template via the API. Same bundle works fine through the Google Ads UI and passes verification here: https://h5validator.appspot.com/adwords/asset

Google Ads API Forum Advisor

unread,
Sep 9, 2022, 5:18:21 PM9/9/22
to adwor...@googlegroups.com
Hi James,

Thank you for bumping this thread.

So our team can also take a look at your issue, could you send over your complete request and response logs, and request-id? This way our team can investigate and attempt to replicate your issue so we can troubleshoot and possibly also raise this to the rest of our team.

If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation and by using the DEBUG log level.


You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q28nzfB:ref

Ionut Mihai

unread,
Sep 12, 2022, 9:09:41 AM9/12/22
to Google Ads API and AdWords API Forum
Hello.
No, we never did.
Sent debug logs twice here with absolutely no reply.
Ended up not giving our users the option to upload HTML5 ads, although the feature was fully developed, but not working due to this problem.
Reply all
Reply to author
Forward
0 new messages