Hi,
I am a .net developer.
I've heard that you can mutate different kinds of related resources by only one request, which is a sort of transaction in RDBMS(all or nothing).
Also I've heart that to do so you've got to give a negative integer to the id which you are trying to create.
So, My code is something like below
**********************************
var googleAdsService = client.GetService(Google.Ads.GoogleAds.Services.V3.GoogleAdsService);
googleAdsService.Mutate(googleAdsId, new List<MutateOperation>
{
new MutateOperation
{
FeedItemOperation = new FeedItemOperation
{
Create = new FeedItem { ResourceName = "customers/{customers_id}/feedItems/{feed_id}~-1", ... }
},
new MutateOperation
{
FeedItemTargetOperation = new FeedItemTargetOperation
{
Create = new FeedItemTarget { FeedItem = "customers/{customers_id}/feedItems/{feed_id}~-1", ... }
}
},
});
**********************************
But, I only get an error saying something like this : "you do not have the permission to do this kind of operation".
I can add a feeditem to a feed by making one request and then add an feeditemtarget to it by making another request, but this is not exactly what I want to do.
Succeeding in Adding a feeditem and then failing in adding a feeditemtarge to it is what I want to avoid the most.
Where am I wrong?
Is there any good idea?
Thanks