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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/6109eed2-8e88-42e0-8135-410cd8a8d73b%40googlegroups.com.

Reply via email to