Hello, Google Ads API Team.

I'd like to create the Dynamic Search Ads via curl, so I post the following 
JSON to: 
https://googleads.googleapis.com/v1/customers/5838476xxx/campaigns:mutate

{
      'operations': {
        'create': {
          'name': 'New campaign',
          'advertising_channel_type': 'SEARCH',
          'status': 'PAUSED',
          'dynamic_search_ads_setting': {
            'domain_name': 'www.foo.com',
            'language_code': 'ja',
            'use_supplied_urls_only': true
          },
          'campaign_budget': 
'customers/5838476xxx/campaignBudgets/2113622xxx',
          'start_date': '20190701',
          'end_date': '20190801',
          'manual_cpc': {
            'enhanced_cpc_enabled': false
          }
        }
      }
    }

But, I receive the following response:

{
  "error": {
    "status": "INVALID_ARGUMENT", 
    "message": "Request contains an invalid argument.", 
    "code": 400, 
    "details": [
      {
        "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": [
                {
                  "index": "0", 
                  "fieldName": "operations"
                }, 
                {
                  "fieldName": "create"
                }, 
                {
                  "fieldName": "dynamic_search_ads_setting"
                }
              ]
            }
          }
        ], 
        "@type": 
"type.googleapis.com/google.ads.googleads.v1.errors.GoogleAdsFailure"
      }
    ]
  }
}

What is feed id? How should I make it? Is that another request? Then, How 
should I do after creating a campaign?
Could you give me some hints?

Thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/66bda02b-63d5-409e-8d9a-ecb01b734859%40googlegroups.com.

Reply via email to