This article shares a possible use case your app could support, as well as an example flow. You're certainly not limited to this use case, but it can be a helpful jumping off point as you plan your app's implementation.
Your app could help site owners manage their marketing tags after they have updated their site structure. First, you’ll list the existing tags. Then your app will update the associated domains.
First, your app will call the List Marketing Tags endpoint to retrieve the marketing tags that the owners have previously embedded.
1
In the response of the call, you can see that the associated domains are out-dated, and thus the marketing tags won’t load anymore.
1
Then, you’ll do a separate call of the Upsert Marketing Tag endpoint for each tag to change the associated domain. You’ll need to pass the new domain in the body of each call, as shown in the example below for the Google Ads Conversion tag.
1