Hi Alex, Since there are duplicate elements in the upload when trying to add the same extension setting object to multiple campaigns, I would recommend creating the extension setting separately using CampaignExtensionSettingService (rather than a dependent operation), fetching the feed ID and feed item ID from the extension and using these IDs when trying to add the extension setting to multiple campaigns. This would also help you in the case where the sitelink already exists and you do not want to create duplicates.
Referring to the Batch Jobs <https://developers.google.com/adwords/api/docs/guides/batch-jobs> documentation, Temporary IDs <https://developers.google.com/adwords/api/docs/guides/batch-jobs#using_temporary_ids> allow you to reference the result of an ADD operation from the previous operation in the same batch job. However, you need to ensure that the operation that creates a parent object comes before the operations that create its child objects. In your case, the situation becomes a little different, as explained below: *Expected Scenario:* When you define an extension_setting object with a feed item ID of -5, you are assuming the object to hold this value for *both *(or all) operations where this extension_setting object would be applied. *Actual Scenario:* During creation of the first campaign extension, the extension setting is created as a *dependent* object of the first campaign extension setting operation (and not the other way around). As a result, when the second operation executes, the original extension setting object is now treated as a duplicate. Please let me know if you are facing issues when creating extension separately and re-using them in the batch job. Regards, Vishal, AdWords API Team -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/0d248202-0631-47d9-9489-13d2741b25b7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.