Hi,

I am getting an exception while linking a feed to a campaign.

feed id: 174838166
campaign id: 19876813904

Request Id: 7gHANeikZiYLWgu0fnfTUA
Error message: The required field was not present.

What am I missing? How can I fix this?

My code is like below:
        var campaignFeed = new CampaignFeed()
        {
            Feed = ResourceNames.Feed(request.CustomerClientId, feedId),
            Campaign = ResourceNames.Campaign(request.CustomerClientId, 
campaignId),
            PlaceholderTypes = { 
PlaceholderTypeEnum.Types.PlaceholderType.Callout },
        };

        var operation = new CampaignFeedOperation() { Create = campaignFeed 
};

        try
        {
            var response = 
campaignFeedService.MutateCampaignFeeds(request.CustomerClientId.ToString(), 
[operation]);
        }
        catch (GoogleAdsException gaex)
        {

        }
    }

Thanks in advance

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/cf50003b-9db4-403e-a283-36bf4504a569n%40googlegroups.com.
  • Ex... Özgür Nevres
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... valentin volossin
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to