Skip to content

Instantly share code, notes, and snippets.

// export a configuration from a source GTM container and merge import it with a target GTM container
// from: https://developers.google.com/tag-manager/api/v1/
// Get the published version of the source container
// GET https://www.googleapis.com/tagmanager/v1/accounts/{{accountId}}/containers/{{containerId}}/versions/published
source = tagmanager.accounts().containers().versions().get(
accountId='123456',
containerId='54321',
containerVersionId='2'
).execute()
{
"basics": {
"name": "Pedro Ávila",
"label": "Solution Architect",
"picture": "",
"email": "pedroavila@gmail.com",
"phone": "925.297.5538",
"website": "narcan.github.io",
"summary": "I have a talent for architecting solutions to complex problems across systems & disciplines. I enjoy using data, technology and smart people to improve the world.",
"location": {
@narcan-zz
narcan-zz / GADemoGTM: Logcat
Created November 21, 2014 22:20
Logcat of successful run of the GADemoGTM app
11-21 17:19:08.986 30860-30860/com.pdro.gademogtm V/GoogleTagManager﹕ Attempting to load a container from the resource ID 2131099648 (com.pdro.gademogtm:raw/gtm_default_container)
11-21 17:19:08.988 30860-30860/com.pdro.gademogtm W/GoogleTagManager﹕ Failed to extract the container from the resource file. Resource is a UTF-8 encoded string but doesn't contain a JSON container
11-21 17:19:09.042 30860-30860/com.pdro.gademogtm V/GoogleTagManager﹕ The container was successfully loaded from the resource (using binary file)
11-21 17:19:09.069 30860-30879/com.pdro.gademogtm V/GoogleTagManager﹕ Deleted 0 expired items
11-21 17:19:09.087 30860-30881/com.pdro.gademogtm V/GoogleTagManager﹕ Attempting to load resource from disk
11-21 17:19:09.089 30860-30881/com.pdro.gademogtm D/GoogleTagManager﹕ Failed to find the resource in the disk
11-21 17:19:09.090 30860-30881/com.pdro.gademogtm V/GoogleTagManager﹕ loadAfterDelay: containerId=GTM-5TP8R3 delay=0
11-21 17:19:09.090 30860-30881/com.pdro.gademogtm D/GoogleTagMa