I read all the posts here and others and cannot find out how to do this.
I follow this from google: https://developers.google.com/tag-manager/android/v4/
It says to download a binary file. However, I have no option on my container to download the binary for the container. JSON only.
I confirmed that Android is installed for the container.
When I try to use the JSON file as follows:
TagManager tagManager = TagManager.getInstance(this);
PendingResult<ContainerHolder> pending =
tagManager.loadContainerPreferNonDefault(CONTAINER_ID,
R.raw.gtm_default_container_json);
Failure:
java.lang.RuntimeException: JSONArrays are not supported
Any help with this would be appreciated!
Thanks!
source
share