Hi Stella,

Could you provide more details about what you meant by "adcopies"? Also,
when retrieving ad information via the AdWords API's services, the
AdGroupAdService.get()
<https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupAdService#get> is
indeed the correct service/method you need to use use. Also,
the ExpandedTextAdDescription2 is not supported  or retrievable via the
AdGroupExtensionSettingService.get()
<https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupExtensionSettingService>
 (AdGroupExtensionSetting
<https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupExtensionSettingService.AdGroupExtensionSetting>).
Kindly refer to this documentation
<https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupAdService.ExpandedTextAd> for
the supported fields that you can retrieve from your ExpandedTextAd using
the AdGroupAdService.

As for the no results being returned by your code, could you provide
instead the SOAP request and response logs that were generated when you
used the AdGroupAdService.get() so I can further investigate?

Thanks and regards,
Peter
AdWords API Team

On 02/06/19 08:59:06 yangyang....@gmail.com wrote:

Hey,
I am trying to pull existing adcopies from adgroup.
Noticed AdGroupAdService and AdGroupExtensionSettingService are possible
right service to use. However, when I am filering with a particular
ad_group_id nothing is returned. But I can see ad extention for the adgroup
from UI.
1) Is there anything need to be modified from below code?
2) when I add ExpandedTextAdDescription2 in get_adservice_adgroup() i got
“googleads.errors.GoogleAdsServerFault: [SelectorError.INVALID_FIELD_NAME @
serviceSelector; trigger:'ExpandedTextAdDescription2']
“. However, that field is available in web https://developers.google.com/
adwords/api/docs/appendix/selectorfields#v201809-
AdGroupExtensionSettingService . Any idea why this error still pop up?

I am quite new to adgroup service. Thank you very much


def get_adservice_adgroup(ad_group_ad_service, ad_group_id):

    selector = {
        'fields': ['Id', 'AdGroupId', 'AdType', 'Automated'
, 'Headline' , 'HeadlinePart1' , 'HeadlinePart2'\, 'Description', 'Description1', 'Description2' \# , 'ExpandedTextAdDescription2' \, 'DisplayUrl', 'Url' \, 'PromoText' ,'TemplateId'],






        'predicates': [
                {'field': 'AdGroupId',
'operator': 'EQUALS','values': [ad_group_id] } ] } ad_group_ad_result = ad_group_ad_service.get(selector)['entries']return ad_group_ad_resultdef get_adextention_adgroup(ad_group_ad_service, ad_group_id): selector = {'fields': ['AdGroupId', 'ExtensionType', 'Extensions',














            'PlatformRestrictions'
           ]
        , 'predicates': [
                {'field': 'AdGroupId',
'operator': 'EQUALS','values': [ad_group_id] } ] } ad_extension_result = ad_extension_service.get(selector)['entries']return ad_extension_resultad_group_ad_service = client.GetService('AdGroupAdService', version='v201809')ad_extension_service = client.GetService('











AdGroupExtensionSettingService', version='v201809')



--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/
msgid/adwords-api/9f8baff2-b709-4432-8a60-7e4ae04896b1%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/9f8baff2-b709-4432-8a60-7e4ae04896b1%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/18i7si0000000000g4mnig0032j358z64mj2cpg6oo30c1g68qj4cpj%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Where t... Stella
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to