How to get Html5UploadAd data

93 views
Skip to first unread message

Marie P-Lavoie

unread,
Apr 5, 2022, 1:38:01 PM4/5/22
to Google Ads API and AdWords API Forum
Hi!

So I'm trying to get the file and name of a Html5UploadAd. I first go through the ad_group_ad view to get the field ad.display_upload_ad.media_bundle, and then, I try to get the asset information through the asset view with the MediaBundleAsset resource name I get from the field ad.display_upload_ad.media_bundle.

However, it seems that I can't get any name/title and media file corresponding to the Html5UploadAd (categorized as a Display Upload Ad) through the asset view.

What are the fields and views I must use to get the name/title, description and/or file information for ads of type Html5UploadAd? Is it even possible?

Thank you!


Marie-Pier

Google Ads API Forum Advisor

unread,
Apr 5, 2022, 10:00:43 PM4/5/22
to marie...@dashthis.com, adwor...@googlegroups.com
Hi Marie-Pier,

Thank you for reaching out to our API support team.

As per checking a DisplayUploadAdInfo currently does not include attributes for name, title, or description. That said, such attributes may also not be available in the reports.

Could you confirm if such types include the said attributes when viewed via the Google Ads UI? If yes, could you share the complete Google Ads UI screenshot containing the said attributes so that I can create a feature request, subject for review, for their support in the API's reports?

Should the screenshot contain your user / account information, 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._5004Q2ZK2Qu:ref

Sugiyama Takuya

unread,
Apr 5, 2022, 11:48:07 PM4/5/22
to Google Ads API and AdWords API Forum
Hi.

We are using a test account and trying to test uploading Enhanced Conversions.
I am trying to get the number of conversions to be above 1 in the Ads console, but it is still at 0.0.
There are no specific messages on the diagnostics page.

We are using the Python SDK and are referring to https://developers.google.com/google-ads/api/docs/conversions/enhance-conversions .
The following is the Partial Error message obtained from the Python SDK.
`Partial error encountered: No click was found for the given user identifiers that could be applied to the specified conversion action., at conversions[0].user_identifiers`
For the user_identifier, we use an email address that actually exists as a gmail account.
How can I work around this error message, as I believe that the test account cannot actually serve ads and will not get clicks.
I would like to accomplish the test with a test account, since there is no actual campaign in operation and the goal is to implement it using the Ads API.

About the convesion on the test account:
- Conversion Tracking ID: AW-10862359481
- Conversion Label: hhLLCJae-acDELnnybso

Implemented the following in Javascript:
```
    <script async src="https://www.googletagmanager.com/gtag/js?id=AW-10862359481"></script>

    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag() { dataLayer.push(arguments); }
        gtag('js', new Date());
        gtag('config', 'AW-10862359481', { 'allow_enhanced_conversions': true });
    </script>
    <script>
        gtag('event', 'conversion', { 'send_to': 'AW-10862359481/hhLLCJae-acDELnnybso' });
    </script>
```

Google Ads API Forum Advisor

unread,
Apr 6, 2022, 2:44:10 AM4/6/22
to takuya....@plaid.partners, adwor...@googlegroups.com

Hi Sugiyama,

Thanks for commenting on this thread. However, I can see that your concern is relatively different from what opened by Marie-Pier. Moving forward, please note that you may open new forum thread for your separate concern so issue tracking would be appropriate. 

With regards to your concern, please see this page for more details on complete requirements for setup and configuration steps before you can use enhanced conversions in the Google Ads API. I can see that you’ve encountered error ConversionUploadError due to no click was found for the given user identifiers that could be applied to the specified conversion action. This is because enhanced conversions cannot be used in test accounts -- they can only be used in production accounts.  

Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ZK2Qu:ref

Marie P-Lavoie

unread,
Apr 7, 2022, 9:12:58 AM4/7/22
to Google Ads API and AdWords API Forum
Hi Peter!

Thank you for your quick response and sorry for the delay.

Actually, I was looking for a way to just get basic data, such as the ad's images in the zip bundle and the names of these images, to identify the DisplayUploadAd, as I was able to do so in the Adwords API. I was able to go through the AdWordsService.v201809.AdService and get the TemplateAd (as it was categorized in the old API), and then I could get the file by using the field templateAd.fieldMedia.mediaBundleUrl of the MediaBundle in the TemplateAd. And then using the url, I could make a simple Http request to get the ZipArchive (an object in C#) and there I could get the images uploaded with the ad that would help me identify the ad other than just having the Id.

However, in the new Google Ads API, I don't see a way to get the Media Bundle inside the ad. I use the field 'ad.display_upload_ad.media_bundle ' and receive an asset resource name, which I try to retrieve through the 'asset' view, but I can't get any information for the ad in regards to the media bundle. So I wanted to know if there's a way, like in the old Adwords API, to get the whole Media Bundle of this type of ad to be able to show something to my clients that will allow them to identify their ads in their reports (other than the ad id).

As an example, here is what we could get from the old Adwords API: we could at least get the names of the uploaded zip file.

1c79d054-461f-457e-8a39-5b2db7c7f754.png

Thank you for your help! :)


Marie-Pier

Google Ads API Forum Advisor

unread,
Apr 7, 2022, 2:06:41 PM4/7/22
to marie...@dashthis.com, adwor...@googlegroups.com
Hi Marie,

I work with Peter. The new Ads API can only be a conduit for the ads product as exposed in the UI. Could you privately provide us with logs of request and response to both the API's when log level is set to 'DEBUG' combined with a full screen screenshot of the UI's access to html5 ads so that we can see what you are seeing?

In the Ads API, the request and response appears similar to the JSON Mappings in our REST documentation with additional information such as  request ID. Our client libraries have loggers with logging instructions, to see these instructions you can click on the client library you use in the sidebar of our client library guide and click on "Logging”.

In the AdWords API , a request looks like the 3rd section in request and a response looks similar to response. Logging instructions are in the read.me on Github of each client library.

Regards,

Google Logo
Aryeh
Google Ads API Team
 
​​​​​​​

ref:_00D1U1174p._5004Q2ZK2Qu:ref
Reply all
Reply to author
Forward
0 new messages