|
@@ -1,5 +1,6 @@
|
|
|
package com.wechi.adweb.bridge.google.gtm.dto;
|
|
|
|
|
|
+import com.google.common.base.Joiner;
|
|
|
import com.wechi.adweb.bridge.google.common.ResourceDTO;
|
|
|
|
|
|
import lombok.Data;
|
|
@@ -42,7 +43,10 @@ public class GTMContainerDTO extends ResourceDTO {
|
|
|
|
|
|
private List<GTMTagDTO> tags;
|
|
|
|
|
|
- public static String toResourceName(String id) {
|
|
|
- return StringUtils.isNumeric(id) ? "accounts" + RESOURCE_NAME_SPLITTER + id : id;
|
|
|
+ public static String toResourceName(String accountId, String containerId) {
|
|
|
+ return StringUtils.isNumeric(accountId) && StringUtils.isNumeric(containerId)
|
|
|
+ ? Joiner.on(RESOURCE_NAME_SPLITTER)
|
|
|
+ .join("accounts", accountId, "containers", containerId)
|
|
|
+ : containerId;
|
|
|
}
|
|
|
}
|