Error when try to update campaign DSA feeds

64 views
Skip to first unread message

Сергей Старовойтов

unread,
Oct 16, 2019, 2:51:41 AM10/16/19
to AdWords API and Google Ads API Forum
Hello!

I get an error, when i try to update camapign DSA feeds:


Request:
{"customer_id":"9912517395","operations":[{"update_mask":{"paths":["dynamic_search_ads_setting.feeds","dynamic_search_ads_setting.domain_name","dynamic_search_ads_setting.language_code","dynamic_search_ads_setting.use_supplied_urls_only"]},"update":{"resourceName":"customers/9912517395/campaigns/1833711722","dynamic_search_ads_setting":{"domain_name":"concetdirector.ru","language_code":"en","use_supplied_urls_only":"true","feeds":["118707120"]}}}]}

Response:
{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.ads.googleads.v2.errors.GoogleAdsFailure",
        "errors": [
          {
            "errorCode": {
              "settingError": "DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT"
            },
            "message": "At least one feed id should be present.",
            "trigger": {
              "stringValue": ""
            },
            "location": {
              "fieldPathElements": [
                {
                  "fieldName": "operations",
                  "index": "0"
                },
                {
                  "fieldName": "update"
                },
                {
                  "fieldName": "dynamic_search_ads_setting"
                }
              ]
            }
          }
        ]
      }
    ]
  }
}

Google Ads API Forum Advisor Prod

unread,
Oct 16, 2019, 10:54:40 AM10/16/19
to sastar...@gmail.com, adwor...@googlegroups.com

Hi Сергей,

Thank you for reaching out. This is an issue that our team is aware of. We will update you when there is a solution available.

Regards,
Anthony
Google Ads API Team



ref:_00D1U1174p._5001UKNSNY:ref

Mariam Soady

unread,
Jul 14, 2020, 9:59:36 AM7/14/20
to AdWords API and Google Ads API Forum
Hello, 

I am getting the same error using java SDK V2, is there any updates about it?

Regards,
Mariam.

Google Ads API Forum Advisor Prod

unread,
Jul 14, 2020, 11:39:12 AM7/14/20
to mariam...@gmail.com, adwor...@googlegroups.com
Greetings!

I took over this thread, and when I take over a thread, I do an in-depth analysis of what's going on. I think I found the source of the issue, and I'm checking with my fellow engineers who wrote this code to see if I've pinpointed what's going on. 

Just to give you a bit of background, here's what I found. In AdWords API, you would specify a PageFeed over here: https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService.DynamicSearchAdsSetting
In Google Ads API, it says 'output only' on the feeds[] field (https://developers.google.com/google-ads/api/reference/rpc/v4/Campaign.DynamicSearchAdsSetting?hl=en#feeds[]). That means that it can only be set at the campaign, and then the setting would inherit. 

I did verify that the feed below was created correctly. It appears the criterion type is set to 61 for page feeds with the feed mapping and feed attributes created. So, everything seems ok there. I think something may have changed in the process in Google Ads API for attaching the feed to this kind of campaign. I'm checking on that now to see what the correct way is now. I'll get back to you when I hear back.

Best,
Nadine Wang, Google Ads API Team

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