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.*


On Monday, October 31, 2022 at 3:27:46 PM UTC-4 CFJ wrote:

> Hi Jinky,
>
> Everything in the instructions 
> <https://developers.google.com/google-ads/api/docs/dynamic-search-ads/dsa-page-feeds#associate_the_assetset_with_a_campaign>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
>
>
> On Monday, October 17, 2022 at 11:29:02 AM UTC-4 adsapi wrote:
>
>> 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 
>> <https://developers.google.com/google-ads/api/docs/dynamic-search-ads/dsa-page-feeds#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 
>> <https://developers.google.com/google-ads/api/docs/dynamic-search-ads/dsa-page-feeds#associate_the_assetset_with_a_campaign>
>>  you 
>> need to follow. Let me know what goes after.
>>
>> Best regards,
>> [image: Google Logo] 
>> Jinky 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2f6fOm: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/1a45407d-cd04-4881-bc6b-486486b12ec8n%40googlegroups.com.

Reply via email to