Google Tag Manager V4 Download Manager

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!

+4
source share
2 answers

In draft or web container is Downloadnot included, so the menu looks like this: Mobile container menu project

(Export , JSON, .)

( ) Download: The ultimate mobile container menu

, , , .

+2

, , , Google, Firebase Legacy.

Legacy (Android), .

+1

Source: https://habr.com/ru/post/1618656/


All Articles