Connecting Adwords Script to Shared Library > Business Data Feeds

718 views
Skip to first unread message

admin nineclicks

unread,
Feb 10, 2015, 5:09:47 PM2/10/15
to adwords...@googlegroups.com
Hello everybody!

I'm trying to create an Adwords Script that connects to the "Shared Library > Business Data Feeds" section of my Adwords account.

The idea is, using an iterator, obtaining a list of all the data feeds uploaded into my account (I have currently more than 10 feeds uploaded), in order to interact with them, but the iterator doesn't obtain any data.

I'm following the code provided in this tutorial: https://developers.google.com/adwords/scripts/docs/reference/adwordsapp/adwordsapp_adcustomizersourceselector

This is the source code:

 var adCustomizerSourceSelector = AdWordsApp.adCustomizerSources();

 
var adCustomizerSourceIterator = adCustomizerSourceSelector.withLimit(5).get();
 
while (adCustomizerSourceIterator.hasNext()) {
Logger.log("Data feed found");
   
var adCustomizerSource = adCustomizerSourceIterator.next();
 
}

As you see, I have only added a Logger in order to check if the iterator is obtaining any data, but it is not (the message is not printed in the console), and I cannot understand why.

Does anybody else have this problem?

Thank you very much



Alexander Wang

unread,
Feb 10, 2015, 7:21:31 PM2/10/15
to adwords...@googlegroups.com
The method should fetch all ad customizer feeds in your account. Are you sure the uploaded feeds are of the correct type? If so, can you reply privately to me with your account id and I can take a closer look?

Cheers,
Alex

admin nineclicks

unread,
Feb 11, 2015, 3:50:06 AM2/11/15
to adwords...@googlegroups.com
Hello Alexander,

I have just submited you the account ID in a private message.

Thank you,

Thomas Friedrich

unread,
Dec 4, 2015, 3:29:04 AM12/4/15
to AdWords Scripts Forum
Did you solve your problem? any updates?

thx

admin nineclicks

unread,
Dec 4, 2015, 3:35:52 AM12/4/15
to AdWords Scripts Forum
Hello Thomas,

Unfortunately, not. This method only fetches Ad Customizer feeds, but not Dynamic Display feeds which is what I was hoping to do. This type of feed is not supported by this method, at least for now.

Cheers,

jblu...@nmpidigital.com

unread,
Jan 28, 2019, 6:09:41 AM1/28/19
to Google Ads Scripts Forum
Hi all, 

Slightly related question:

Is there any way to refresh a feed using Scripts? It's an ad customizer feed, in business data, with the actual data stored in a G-sheet. The issue I'm having is that the maximum refresh frequency is every 6 hours, except that you can refresh it whenever you want if you go in and manually click "update now" within the Google Ads interface. 

Is there any way for a script to essentially do that button click?

Thanks,

nineclicks MCC

unread,
Jan 28, 2019, 6:22:33 AM1/28/19
to Google Ads Scripts Forum
Hello Josh,

According to this documentation:


The maximum update frequency is 6 times a day (every 4 hours). If that doesn't suit you, I think there's no other choice, but it's been a while since I last researched this feature.

Best,

googleadsscrip...@google.com

unread,
Jan 28, 2019, 3:17:49 PM1/28/19
to adwords-scripts+apn2wqeylfj3bar8...@googlegroups.com, Google Ads Scripts Forum
Hi Josh,

Adding to the post above, Scripts cannot trigger feed updates, though you can set schedules

Regards,
Matt
Google Ads Scripts Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_scripts
    https://developers.google.com/google-ads/scripts/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scripts+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/b213b85c-5526-4791-9cdc-dfea8eab1f54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Josh Blumberg

unread,
Jan 29, 2019, 5:10:59 AM1/29/19
to Google Ads Scripts Forum
Thanks both for your replies. I had suspected that would be the case but good to have it confirmed. 

Thanks, 
Josh


On Monday, January 28, 2019 at 8:17:49 PM UTC, googleadsscripts-forumadvisor wrote:
Hi Josh,

Adding to the post above, Scripts cannot trigger feed updates, though you can set schedules

Regards,
Matt
Google Ads Scripts Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_scripts
    https://developers.google.com/google-ads/scripts/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Sigurd

unread,
Jan 29, 2019, 6:55:08 AM1/29/19
to Google Ads Scripts Forum
@Josh Blumberg

Just a quick though: If it is possible to give existing feeds a new name using scripts, you should be able circumvent the update restriction. That is, if the ads actually refers to a feed name and not a hidden feed ID that are independent of changes to the name.

Say your ads references data from feedX.
In business data you could have multiple instances of that feed but call them something else: feed1, feed2, feed3 etc. these are all scheduled to update from the same source every x hour with one hour in between.
Then you could re-name feed1 to feedX when it's the most current and next hour re-name it back and instead rename feed2 to feedX etc. So instead of updating the feeds more frequently, the ads would reference different feeds.

If that doesn't work because of the ID thing,  you could use a screen macro on an old computer to update 'manually' every x time unit

@all developers in the world: Creating software where users have to schedule to click a button should land you in prison ;)



 sigurd

Josh Blumberg

unread,
Jan 30, 2019, 3:49:00 AM1/30/19
to Google Ads Scripts Forum
Hi Sigurd, 

That's not a bad idea, thanks.

Agree with your last point!

Josh
Reply all
Reply to author
Forward
0 new messages