Hello,

I have tried to upload Dynamic Display Ad Feed using Google Ads API V1 by 
following this 
<https://developers.google.com/google-ads/api/docs/samples/add-ad-customizer> 
code 
example, but while mapping feed as dynamic custom feed getting error 
attached to this question. 

Below is the code for mapping feed as dynamic custom feed, please advice 
where I'm doing wrong.
 
private async Task CreateAdCustomizerMapping(long clientId, string 
feedResourceName, Dictionary<string, FeedAttribute> feedAttributes)
 {
            FeedMappingServiceClient feedMappingService = client.GetService(
Services.V1.FeedMappingService);
            FeedMapping feedMapping = new FeedMapping
            {
                Feed = feedResourceName,
                PlaceholderType = PlaceholderType.DynamicCustom,
                AttributeFieldMappings =
                {
                        new AttributeFieldMapping
                        {
                            FeedAttributeId = feedAttributes[FeedAttributes.
ID].Id,
                            AdCustomizerField = AdCustomizerPlaceholderField
.String
                        },
                        new AttributeFieldMapping
                        {
                            FeedAttributeId = feedAttributes[FeedAttributes.
ITEM_TITLE].Id,
                            AdCustomizerField = AdCustomizerPlaceholderField
.String
                        },
                        new AttributeFieldMapping
                        {
                            FeedAttributeId = feedAttributes[FeedAttributes.
FINAL_URL].Id,
                            AdCustomizerField = AdCustomizerPlaceholderField
.String
                        },
                        new AttributeFieldMapping
                        {
                            FeedAttributeId = feedAttributes[FeedAttributes.
ITEM_SUBTITLE].Id,
                            AdCustomizerField = AdCustomizerPlaceholderField
.String
                        },
                        new AttributeFieldMapping
                        {
                            FeedAttributeId = feedAttributes[FeedAttributes.
FORMATED_PRICE].Id,
                            AdCustomizerField = AdCustomizerPlaceholderField
.Price
                        }
                }
            };


            FeedMappingOperation operation = new FeedMappingOperation()
            {
                Create = feedMapping
            };
            MutateFeedMappingsResponse response = await feedMappingService.
MutateFeedMappingsAsync(clientId.ToString(), new[] { operation }, true, 
false);
  }



Thanks,
Indrani

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/f25768cb-1a34-4a2e-90b5-db3c895c7d24%40googlegroups.com.

Reply via email to