Kyon147
Kyon147

Reputation: 798

Reverse multiple transactions Google Management API?

I am looking at refunds and reserving transactions in Google Enhanced Ecommerce. Using the Management API you can do it for refunds - full or partial but with reversing a transaction the only example it by a "hit" i.e loading another confirmation page.

The business that I am looking into it for have a lot of price changes because they use an auction based system. Do you know if there is a way of reversing the transaction to add negative value to an existing transaction ID to reduce the price but do this on a bigger scale.

It is easy to do one transaction one transaction but if you wanted to automate the process is there a way of doing it through the API?

Upvotes: 1

Views: 209

Answers (1)

Eike Pierstorff
Eike Pierstorff

Reputation: 32780

The Management API is for account management (i.e. setting up properties and views, configuring filters, addding and removing users etc). So the Management API is not what you are looking for. To retrieve information on your transactions you would use the Core Reporting API. To send transactions you'd have to use the "data collection API", or as it is called by its proper name the Measurement Protocol which would allow to send hits (including transactions) programmatically.

However you should not try to reverse transactions by sending negative transactions.

If you send another transaction with the same ID it will not actually reverse the transaction, instead its transaction value will be added to the first one, so if you send a negative value the values will cancel each other out.

However internally they are still recorded as two transactions, which has several consequences:

  • your conversion rate will be off
  • transactions values cancel each other out only if both transactions are within the same reporting timeframe
  • you need to take care that both transaction are attributed to the same channel, else you cannot properly report revenue per channel (and if you optimize bidding or created audiences based on revenue you have just wrecked your marketing)

So do not reverse transactions. Use refunds, despite their apparent shortcomings.

Upvotes: 1

Related Questions