Hi Google ads api team,
Thank you for the reply.
==============================================================================
*1. I followed your guidline, I created query as below to get variations ad
data via Google ads api V10*
==============================================================================
⇓
SELECT
ad_group.id,
ad_group_ad.ad.id,
ad_group_ad.ad.name,
ad_group_ad.ad.type,
ad_group_ad.status,
ad_group_ad.ad.device_preference,
ad_group_ad.ad.final_app_urls,
ad_group_ad.ad.final_mobile_urls,
ad_group_ad.ad.final_urls,
ad_group_ad.ad.final_url_suffix,
ad_group_ad.ad.tracking_url_template,
ad_group_ad.ad.url_custom_parameters,
ad_group_ad.ad.display_url,
ad_group_ad.ad.text_ad.headline,
ad_group_ad.ad.text_ad.description2,
ad_group_ad.ad.text_ad.description1,
ad_group_ad.ad.expanded_text_ad.headline_part1,
ad_group_ad.ad.expanded_text_ad.headline_part2,
ad_group_ad.ad.expanded_text_ad.headline_part3,
ad_group_ad.ad.expanded_text_ad.description,
ad_group_ad.ad.expanded_text_ad.description2,
ad_group_ad.ad.expanded_text_ad.path1,
ad_group_ad.ad.expanded_text_ad.path2,
ad_group_ad.ad.image_ad.name,
ad_group_ad.ad.image_ad.image_url,
ad_group_ad.ad.responsive_display_ad.accent_color,
ad_group_ad.ad.responsive_display_ad.allow_flexible_color,
ad_group_ad.ad.responsive_display_ad.business_name,
ad_group_ad.ad.responsive_display_ad.call_to_action_text,
ad_group_ad.ad.responsive_display_ad.control_spec.enable_asset_enhancements,
ad_group_ad.ad.responsive_display_ad.control_spec.enable_autogen_video,
ad_group_ad.ad.responsive_display_ad.descriptions,
ad_group_ad.ad.responsive_display_ad.format_setting,
ad_group_ad.ad.responsive_display_ad.headlines,
ad_group_ad.ad.responsive_display_ad.logo_images,
ad_group_ad.ad.responsive_display_ad.long_headline,
ad_group_ad.ad.responsive_display_ad.main_color,
ad_group_ad.ad.responsive_display_ad.marketing_images,
ad_group_ad.ad.responsive_display_ad.price_prefix,
ad_group_ad.ad.responsive_display_ad.promo_text,
ad_group_ad.ad.responsive_display_ad.square_logo_images,
ad_group_ad.ad.responsive_display_ad.square_marketing_images,
ad_group_ad.ad.responsive_display_ad.youtube_videos,
ad_group_ad.ad.responsive_search_ad.descriptions,
ad_group_ad.ad.responsive_search_ad.headlines,
ad_group_ad.ad.responsive_search_ad.path1,
ad_group_ad.ad.responsive_search_ad.path2,
ad_group_ad.ad.call_ad.country_code,
ad_group_ad.ad.call_ad.phone_number,
ad_group_ad.ad.call_ad.business_name,
ad_group_ad.ad.call_ad.description1,
ad_group_ad.ad.call_ad.description2,
ad_group_ad.ad.call_ad.phone_number_verification_url,
ad_group_ad.ad.system_managed_resource_source
FROM
ad_group_ad
WHERE
ad_group_ad.status IN ('ENABLED', 'PAUSED')
AND ad_group.id IN (136661421074)
AND ad_group_ad.ad.system_managed_resource_source = 'AD_VARIATIONS'
==========================
*2. Output after I run query above:*
==========================
⇓
[ad_group {
resource_name: "customers/xxxx/adGroups/136661421074"
id: 136661421074
}
ad_group_ad {
resource_name: "customers/xxxx/adGroupAds/136661421074~609081688452"
status: PAUSED
ad {
type: RESPONSIVE_SEARCH_AD
responsive_search_ad {
headlines {
text: "12"
asset_performance_label: PENDING
policy_summary_info {
review_status: REVIEW_IN_PROGRESS
}
}
headlines {
text: "34"
asset_performance_label: PENDING
policy_summary_info {
review_status: REVIEW_IN_PROGRESS
}
}
headlines {
text: "56"
asset_performance_label: PENDING
policy_summary_info {
review_status: REVIEW_IN_PROGRESS
}
}
headlines {
text: "78"
asset_performance_label: PENDING
policy_summary_info {
review_status: REVIEW_IN_PROGRESS
}
}
headlines {
text: "varitant"
asset_performance_label: PENDING
policy_summary_info {
review_status: REVIEW_IN_PROGRESS
}
}
descriptions {
text: "90"
asset_performance_label: PENDING
policy_summary_info {
review_status: REVIEW_IN_PROGRESS
}
}
descriptions {
text: "456"
asset_performance_label: PENDING
policy_summary_info {
review_status: REVIEW_IN_PROGRESS
}
}
}
system_managed_resource_source: AD_VARIATIONS
resource_name: "customers/xxxx/ads/609081688452"
id: 609081688452
final_urls: "https://www.facebook.com/"
}
}
]
* Note: xxx is my Google ads id, so I hide it.
======================================================================================
=> So I've just wonder, *How can I get "Original ad ID" with out variations
ad data above* ? Please support me.
Thank you so much
On Thursday, July 14, 2022 at 5:50:10 PM UTC+7 adsapi wrote:
> Hi,
>
> Thank you for the reply.
>
> For you to get the asking information, you may still use the ad_group_ad
> <https://developers.google.com/google-ads/api/fields/v11/ad_group_ad>
> report. You may need to set this
> ad_group_ad.ad.system_managed_resource_source
> <https://developers.google.com/google-ads/api/fields/v11/ad_group_ad#ad_group_ad.ad.system_managed_resource_source>
>
> field to *AD_VARIATIONS*.
>
> Moving forward, You may note that Ad variations allow you to easily create
> and test variations of your ads across multiple campaigns or your entire
> account. Creating and managing ad variations is currently not supported in
> Google Ads API, but you can identify the experimental ads created by the ad
> variations feature using one of the following methods.
>
> - If you are using AdGroupAdService
>
> <https://developers.google.com/google-ads/api/reference/rpc/v11/AdGroupAdService>
>
> , the system_managed_resource_source
>
> <https://developers.google.com/google-ads/api/reference/rpc/v11/Ad#system_managed_resource_source>
>
> property of an Ad
> <https://developers.google.com/google-ads/api/reference/rpc/v11/Ad>
> object will be set to AD_VARIATIONS.
> - If you are using Google Ads Query Language to retrieve reports, the
> field ad_group_ad.ad.system_managed_resource_source
>
> <https://developers.google.com/google-ads/api/fields/v11/ad_group_ad#ad_group_ad.ad.system_managed_resource_source>
>
> will be set to AD_VARIATIONS.
>
> Best regards,
> [image: Google Logo]
> Heidi
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2cVXpX:ref
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/788ce557-fc67-4c9f-b5c4-93056de6cee1n%40googlegroups.com.