Hi Vishal,

Thanks for the information. Let me rephrase just to make sure I'm 
understanding properly.

You're suggesting that, if I have a new sitelink that I want to tie to 
multiple campaigns, I should 
1) add that sitelink to Campaign 1 using the 
CampaignExtensionSettingService (not as part of a BatchService call), 
2) extract the FeedId and FeedItemId from the response of the 
CampaignExtensionSettingService call, and then 
3) use the now-created feed item in the Batch Job as a 
CampaignExtensionOperation for each campaign I want to tie it to (other 
than the first one, which got linked in step 1)? 

Which is to say, there's no way to accomplish this without multiple service 
calls (i.e. it's impossible to do within a single batch job)? For example, 
could I do something like this instead, in a single batch job:
1) Create a FeedItemOperation to create the sitelink with a Temporary ID
2) Use the Temporary ID in several subsequent 
CampaignExtensionSettingOperations to tie it to the campaigns I want to tie 
it to (I suppose with the SET operator)?

Thanks again for the help.
- Alex

On Tuesday, February 28, 2017 at 11:43:26 AM UTC-6, Vishal Vinayak (Adwords 
API Team) wrote:
>
> 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/400c6388-e256-4df1-8c5d-951bc523bee1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to share s... Alexander Cavalli
    • Re: How t... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
      • Re: H... Alexander Cavalli
        • R... Alexander Cavalli
          • ... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
            • ... Alexander Cavalli
    • Re: How t... Alexander Cavalli
      • Re: H... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
        • R... Alexander Cavalli
          • ... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
            • ... Alexander Cavalli
              • ... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
                • ... 'Nadine Sundquist (AdWords API Team)' via AdWords API Forum
                • ... Alexander Cavalli
                • ... 'Nadine Sundquist (AdWords API Team)' via AdWords API Forum
                • ... Alexander Cavalli

Reply via email to