Performance Max campaigns - Get Asset Value

88 views
Skip to first unread message

Thushara Pelendage

unread,
Dec 5, 2023, 5:46:16 PM12/5/23
to Google Ads API and AdWords API Forum
Is there a way to getAsset value using javascript in Pmax campaigns API?
For example, There us no function called get the exisitng asset values such as HEADLINE, DESCRIPTION etc...

1) I have created followings

asset.addAsset ("example, "HEADLINE");
asset.removeAsset ("example, "HEADLINE");

but no function like to get headline values like asset.getAsset ("example, "HEADLINE");

Thanks

Google Ads API Forum Advisor

unread,
Dec 6, 2023, 1:18:06 AM12/6/23
to subas...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

By reviewing your query, I understand that you want to know the way to getAsset value using javascript in Pmax campaigns API. The Google Ads API supports automated assets managed directly by Google Ads, with the scope of the API limited to pausing or removing individual assets and retrieving stats. You opt in or out of automated assets through the Google Ads web interface. For more information refer to this documentation

I suggest you refer to this article About asset reporting in Performance Max and Assets in a Performance Max Campaign where each asset group in a Performance Max campaign requires an initial minimum set of assets. These could be existing assets used in other campaigns or new assets specifically for an asset group in a Performance Max campaign.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02qWsNv:ref"

Thanks,
 
Google Logo Google Ads API Team
 


 

Thushara Pelendage

unread,
Dec 10, 2023, 8:21:02 PM12/10/23
to Google Ads API and AdWords API Forum
Hi,

Thanks for reaching out! I only need assets created by the user and not the automatically created assets. For more context,

I need to get headline #4 or description #1 or image asset #1 value in a particular asset group (say: womenswear). Can I do that in the Google ads script? Or els is there a way to get a particular asset value?

Google Ads API Forum Advisor

unread,
Dec 10, 2023, 8:47:05 PM12/10/23
to subas...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

You can do the Assets in a Performance Max Campaign using the Google Ads API. Kindly note that the requests to create an AssetGroup in a non-retail campaign or update the assets associated with any AssetGroup will fail unless all of the requirements are met. For more details, you may refer to the Required assets guide. Assets can have some Optional assets. Also, you may follow this Code example to create the necessary assets in a new request.

If you would like to create the assets using the Google Ads scripts, I would recommend reaching out to the Google Ads Scripts support team as they are better equipped to address your concern. Please be informed that our support channel can only best assist you with regards to Google Ads API related concerns and technical implementations only.
Reply all
Reply to author
Forward
0 new messages