Hi,
Thanks for the detailed explanation,
I tried the same in code but I am getting the below error message

[ "[ASSET_GROUP_DOES_NOT_EXIST_UNDER_THIS_CUSTOMER]" ]
I am using Google Ads Test Account

 Customer ID:  164-882-7291
Asset Group Id:  6538300920

Please let me know If I'm missing anything

Please find my code snippet below
[image: PMAX-AdPreview-Code.PNG]

On Friday, 13 December 2024 at 07:28:40 UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> I understand that you are looking for a specific example for the 
> ShareablePreviewService 
> <https://developers.google.com/google-ads/api/reference/rpc/v18/ShareablePreviewService>
>  for 
> reviewing the performance max asset group ads using the Google Ads API. 
> Kindly note that officially there is no specific example in the Google Ads 
> API documentation for using this service. Kindly note that after creating 
> asset groups and linking assets to them, you can generate a shareable 
> preview to showcase how the ads created from each asset group will appear. 
> You need to pass the asset group IDs to 
> ShareablePreviewService.GenerateShareablePreviews 
> <https://developers.google.com/google-ads/api/reference/rpc/v18/ShareablePreviewService#GenerateShareablePreviews>,
>  
> you can obtain URLs for the ad previews, along with their expiration 
> timestamps, which can be shared with your users. You can use this method 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v18/customers/generateShareablePreviews?apix=true>
>  
> for making an API call using the Google Ads API. However, I have created 
> from my end and provided you the sample request and response logs for your 
> reference. 
>
> *Request Body:
> ==============
> *
> POST https://googleads.googleapis.com/v18/customers/{customer 
> ID}:generateShareablePreviews?key=[YOUR_API_KEY] HTTP/1.1
>
> developer-token: **********************
> Authorization: Bearer [YOUR_ACCESS_TOKEN]
> Accept: application/json
> Content-Type: application/json
>
> {
>   "shareablePreviews": [
>     {
>       "assetGroupIdentifier": {
>         "assetGroupId": {assetGroupID}
>       }
>     }
>   ]
> }
>
> *Response:
> ==========
> *
> HTTP/1.1 200 
> content-encoding: gzip
> content-length: 362
> content-type: application/json; charset=UTF-8
> date: Fri, 13 Dec 2024 01:29:01 GMT
> server: ESF
> vary: Origin, X-Origin, Referer
>
> {
>   "responses": [
>     {
>       "shareablePreviewResult": {
>         "shareablePreviewUrl": "{URL}",
>         "expirationDateTime": "2024-12-27 06:59:01.098"
>       },
>       "assetGroupIdentifier": {
>         "assetGroupId": "{asset group ID}"
>       }
>     }
>   ]
> }
>
> I hope this helps.
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02vGont:ref" (ADR-00278623)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
> Feedback
> How was our support today? 
>
> [image: rating1] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=5004Q00002vGont>
>   
>   [image: rating2] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=5004Q00002vGont>
>   
>   [image: rating3] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=5004Q00002vGont>
>   
>   [image: rating4] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/formResponse?usp=pp_url&entry.141427034=4&entry.295079254=5004Q00002vGont>
>   
>   [image: rating5] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/formResponse?usp=pp_url&entry.141427034=5&entry.295079254=5004Q00002vGont>
>
>  
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/e464f4ef-becd-478c-9e46-f2d8e25f02e0n%40googlegroups.com.
  • Pe... Ramanajee
    • ... Ramanajee
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to