Hi there,

thx for the pointer towards the Feed and Feed Item ressources, I as looking 
at the Extension Feed Items before (with the Interactive Query Builder) but 
I couln't quite figure out how to link them to Feed or Feed Item for that 
matter and thus get an Id.

Because unfortunately the Extension Feed Item does not have an id.

Cheers
Fabian

On Thursday, 21 March 2019 22:21:29 UTC+1, googleadsapi-forumadvisor wrote:
>
> Hello, 
>
> You will be able to use the Feed 
> <https://developers.google.com/google-ads/api/docs/fields/feed>, Feed Item 
> <https://developers.google.com/google-ads/api/docs/fields/feed_item>, 
> Extension 
> Feed Item 
> <https://developers.google.com/google-ads/api/docs/fields/extension_feed_item>
>  resources 
> to pull the Feed Ids. You may also use the Interactive Query Builder 
> <https://developers.google.com/google-ads/api/docs/query/interactive-gaql-builder>
>  to 
> build the query. 
>
> Thanks,
> Bharani, Google Ads API Team
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
>     http://googleadsdeveloper.blogspot.com/search/label/adwords_api
>     https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> <https://support.google.com/google-ads/contact/survey_transactional?caseid=1-5962000025688&hl=en&ctx=1>
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
> On 03/21/19 14:13:30 [email protected] <javascript:> wrote:
>
> feed_service = client.get_service('ExtensionFeedItemService', version='v1')
>
> extension_feed_item_operation = 
> client.get_type('ExtensionFeedItemOperation', version='v1')
> extension_feed_item = extension_feed_item_operation.create
> extension_feed_item.sitelink_feed_item.link_text.value = 'Text'
> extension_feed_item.sitelink_feed_item.line1.value = 'Line 1 Value'
> extension_feed_item.sitelink_feed_item.line2.value = 'Line 2 Value'
> final_url = extension_feed_item.sitelink_feed_item.final_urls.add()
> final_url.value = 'www.example.com'
>
> # Add extension
> try:
>     feed_response = (
>         feed_service.mutate_extension_feed_items(customer_id, 
> [extension_feed_item_operation])
>     )
> except google.ads.google_ads.errors.GoogleAdsException as ex:
>     print('Request with ID "%s" failed with status "%s" and includes the '
>           'following errors:' % (ex.request_id, ex.error.code().name))
>     for error in ex.failure.errors:
>         print('\tError with message "%s".' % error.message)
>         if error.location:
>             for field_path_element in error.location.field_path_elements:
>                 print('\t\tOn field: %s' % field_path_element.field_name)
>     sys.exit(1)
>
>
> print('Created Sitelink %s.' % feed_response.results[0].resource_name).
>
>
> This actually works. But its so hard to get Ids ...
>
> On Thursday, 21 March 2019 19:03:21 UTC+1, googleadsapi-forumadvisor wrote:
>
> Hello, 
>
> If you're using the Google Ads API, you may use the CampaignFeedService 
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v0.services#campaignfeedservice>
>  and AdGroupFeedService 
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v0.services#adgroupfeedservice>
>  and 
> use the PlaceholderType 
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v0.enums#google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType>
>  to 
> create the Sitelink feeds. Currently we do not have a Python code sample 
> to create the Sitelink extensions. We have raised this as a feature request 
> to the team. To get you started, please find the attached code sample in 
> Java assuming that the feed already exists to associate the Sitelink 
> feeds to campaign or adgroup.
>
> Could you please give this a try with the shared sample and let me know if 
> you have any other questions?
>
> Regards,
> Bharani, Google Ads API Team
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
>     http://googleadsdeveloper.blogspot.com/search/label/adwords_api
>     https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> <https://support.google.com/google-ads/contact/survey_transactional?caseid=1-5962000025688&hl=en&ctx=1>
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>
> -- 
> -- 
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 
> "AdWords API and Google Ads API Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> 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/e980c441-7f54-4c2f-a6ed-c3a0f245670c%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/adwords-api/e980c441-7f54-4c2f-a6ed-c3a0f245670c%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 [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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/3dd63591-1caf-4216-952a-ecb11d8ce45d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to ... F B
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... F B
        • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
          • ... F B
            • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
        • ... F B

Reply via email to