DSA with page-feed assets and supplied URLs only via API

291 views
Skip to first unread message

Paul

unread,
Oct 14, 2022, 11:01:19 AM10/14/22
to Google Ads API and AdWords API Forum
Hello,

we are trying to set up a DSA campaign over the API that uses PageFeedAssets and have it only take URLs from those assets. Setting up the assets/asset sets works fine, but it's not clear to me how to make sure only URLs from the asset set are being used. The DynamicSearchAdsSetting on the campaign allows to set use_supplied_urls_only, but this requires that corresponding *feed* resource names be specified. However, we are using asset sets and not feeds, so this won't work.

(Note that this appears to be possible in the UI where asset sets are somehow surfaced as feeds, but we need to use the API.)

How can we set up an asset-based DSA campaign with supplied URLs only with the API?

Thanks,
Paul

Google Ads API Forum Advisor

unread,
Oct 14, 2022, 3:26:12 PM10/14/22
to adwor...@googlegroups.com
Hi Paul,

Thank you for reaching out to our API support team.

So our team can take a closer look, could you share the Google Ads UI view screenshot that allows for the feature you are looking for?

In the Google Ads API, specifically for DSA page feeds, this section discusses how the assets containing page URLs (with labels) are created. In the example it states :
  • Recommended: adds labels to the asset. These labels can be used later in ad group targeting to restrict the set of pages that can serve.
Now, in this other section, it then discusses how to target your page feed URLs using labels.

Should your screenshot contain user or account information, you may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2f6fOm:ref

Paul

unread,
Oct 17, 2022, 4:33:15 AM10/17/22
to Google Ads API and AdWords API Forum
Hi Peter,

thank you for your response.

The feature I'm looking for is on the campaign settings in the UI:

2022-10-17-101156_763x719_scrot.png

Here "managed-page-feed-asset-set" is a an asset set (as in AssetSet, not a page feed in the sense of Feed). However, in the API for the DynamicSearchAdsSetting it is only possible to specify page feeds (Feed) and the end point will not accept asset-set resource names. In fact, when set up in the UI like shown in the screenshot, the feeds[] field of DynamicSearchAdsSetting is returned as being empty in the API.

I understand that labels can be used to further restrict which items of the asset set can be used, but my understanding is that this will not exclude other URLs "Google knows about the website" from serving, as the blue box in the screenshot appears to imply as well.

Hope this helps to clarify,
Paul

Google Ads API Forum Advisor

unread,
Oct 17, 2022, 11:29:02 AM10/17/22
to adwor...@googlegroups.com
Hi Paul,

Thank you for your clarifications and adding detailed information. I work with Peter and allow me to assist you here.

Upon seeing from your descriptions, I can see that you are using the Legacy: Feed services-based workflow for creating DSA page feeds as you mentioned this DynamicSearchAdsSetting field. That said, since you mentioned that this feed that you are going to attach to a campaign is page-feed-asset-set then this is the instructions you need to follow. Let me know what goes after.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2f6fOm:ref

CFJ

unread,
Oct 31, 2022, 3:27:46 PM10/31/22
to Google Ads API and AdWords API Forum
Hi Jinky,

Everything in the instructions you provided made complete sense EXCEPT for how to set the campaign to utilize ONLY the page-feed-asset-set.  Following the instructions at that link, I did the following via the API:

1. Created a new campaign.  
2. Created a new page feed asset set and populated it with URLs.
3. Made the association between the new Campaign and the new Asset Set

One that is done, I navigate to the Google Ads web interface and find that the Page Asset Set has been correctly connected to the campaign, BUT the campaign is set for "Use all URLs Google knows about the website (including any page feeds"

So what is the missing STEP 4 to change the setting via the API from "Use all URLs Google knows..." to "Use only URLs from page feeds" when the "page feeds" are an Asset Set per step 2 and 3 above?

Thanks

CFJ

unread,
Nov 1, 2022, 10:01:57 AM11/1/22
to Google Ads API and AdWords API Forum
After trying quite a few things, I figured out how to achieve the desired result via the API.  Posting what I found here in case it helps others with the question of "how to create a new DSA campaign restricted to ONLY using the supplied Asset Set of URLs".

1. Created the campaign with a DynamicSearchAdsSetting.  However within the setting, only supplied the DomainName property and the LanguageCode property.  Completely omitted the UseSuppliedUrlsOnly property and the Feeds property.

2. Either created a new AssetSet of PageFeed URLs or grabbed the ResourceName of an existing AssetSet.

3. Used CampaignAssetSetService to make the association between the new Campaign and the AssetSet.  (Note: at this point, if you check the interface you'll find that DynamicSearchAdsSetting.UseSuppliedUrlsOnly is set to FALSE which is the issue that needs overcome.)

4. Retrieve the DynamicSearchAdsSetting and change the UseSuppliedUrlsOnly from FALSE to TRUE.

5. Create a new CampaignOperation and set the Update to the newly altered DynamicSearchAdsSetting and then execute the operation.  (Note: Now the setting in the Google Ads interface will be updated to only use the supplied URLs.

Note to API team.  This would be much more streamlined if we could set the UseSuppliedUrlsOnly property in "STEP 1" of my flow (and still leave the Feeds property blank) without receiving an error.

Google Ads API Forum Advisor

unread,
Nov 2, 2022, 1:52:03 AM11/2/22
to adwor...@googlegroups.com
Hi all,

Thank you for getting back to us. I am Sherwin from Google Ads API and I work with Jinky and Peter. I hope that all of you are doing well today.

@CFJ. Thank you for sharing the steps that you've done. This is noted.

@Paul. You may also try the suggestion of CFJ. Please inform us if these two suggestions works for you.

Kind regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


ref:_00D1U1174p._5004Q2f6fOm:ref
Reply all
Reply to author
Forward
0 new messages