diff --git a/.connector-store/meta.json b/.connector-store/meta.json
index 87edc7b..2f50ae9 100644
--- a/.connector-store/meta.json
+++ b/.connector-store/meta.json
@@ -7,7 +7,7 @@
"status": "Active",
"releases": [
{
- "tagName": "v1.0.1",
+ "tagName": "v1.0.2",
"products": [
"MI 4.3.0"
],
diff --git a/README.md b/README.md
index 503736f..7e461f5 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
| Connector Version | Supported WSO2 MI Version |
|-------------------|---------------------------|
-| 1.0.1 | MI 4.3.0 |
+| 1.0.2 | MI 4.3.0 |
## Documentation
diff --git a/gen_resources/config_fb.json b/gen_resources/config_fb.json
index a0dc526..3661251 100644
--- a/gen_resources/config_fb.json
+++ b/gen_resources/config_fb.json
@@ -9,7 +9,7 @@
"project": {
"groupId": "org.wso2.carbon.esb.connector",
"artifactId": "facebook.ads",
- "version": "1.0.1-SNAPSHOT"
+ "version": "1.0.2-SNAPSHOT"
},
"iconFolderPath": "",
"mappers": {
diff --git a/gen_resources/facebook_ads_open_api.yaml b/gen_resources/facebook_ads_open_api.yaml
index 6f21ad1..61f4ddf 100644
--- a/gen_resources/facebook_ads_open_api.yaml
+++ b/gen_resources/facebook_ads_open_api.yaml
@@ -22,7 +22,7 @@ security:
- ApiKeyAuth: [ ]
paths:
/act_{ad_account_id}/adcreatives:
- get:
+ get:
summary: Retrieve a list of ad creatives.
operationId: Get Ad Creatives
responses:
diff --git a/pom.xml b/pom.xml
index 1933a93..410fc39 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
org.wso2.carbon.esb.connector
facebook.ads
- 1.0.1
+ 1.0.2
WSO2 Carbon - Facebook Ads Connector
http://wso2.org
diff --git a/src/main/java/org/wso2/carbon/facebook/ads/connector/RestURLBuilder.java b/src/main/java/org/wso2/carbon/facebook/ads/connector/RestURLBuilder.java
index 08e1266..a30495e 100644
--- a/src/main/java/org/wso2/carbon/facebook/ads/connector/RestURLBuilder.java
+++ b/src/main/java/org/wso2/carbon/facebook/ads/connector/RestURLBuilder.java
@@ -48,6 +48,7 @@ public class RestURLBuilder extends AbstractConnector {
put("summary", "summary");
put("objectCount", "object_count");
put("adAccountId", "ad_account_id");
+ put("customAudienceId", "custom_audience_id");
put("campaignId", "campaign_id");
put("beforeDate", "before_date");
put("updatedSince", "updated_since");
diff --git a/src/main/resources/functions/addUsersToAudience.xml b/src/main/resources/functions/addUsersToAudience.xml
new file mode 100644
index 0000000..045d6d5
--- /dev/null
+++ b/src/main/resources/functions/addUsersToAudience.xml
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/functions/component.xml b/src/main/resources/functions/component.xml
index 2410b98..50e7476 100644
--- a/src/main/resources/functions/component.xml
+++ b/src/main/resources/functions/component.xml
@@ -93,5 +93,13 @@
updateCustomAudience.xml
Updates a custom audience.
+
+ addUsersToAudience.xml
+ Add users to your Custom Audience.
+
+
+ removeUsersFromAudience.xml
+ Remove users from your Custom Audience.
+
diff --git a/src/main/resources/functions/removeUsersFromAudience.xml b/src/main/resources/functions/removeUsersFromAudience.xml
new file mode 100644
index 0000000..8ec06a7
--- /dev/null
+++ b/src/main/resources/functions/removeUsersFromAudience.xml
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/uischema/addUsersToAudience.json b/src/main/resources/uischema/addUsersToAudience.json
new file mode 100644
index 0000000..3190dd6
--- /dev/null
+++ b/src/main/resources/uischema/addUsersToAudience.json
@@ -0,0 +1,61 @@
+{
+ "connectorName": "facebookAds",
+ "operationName": "addUsersToAudience",
+ "title": "Add Users To Custom Audience",
+ "help": "This is Add Users to Custom Audience operation.",
+ "elements": [
+ {
+ "type": "attributeGroup",
+ "value": {
+ "groupName": "General",
+ "elements": [
+ {
+ "type": "attribute",
+ "value": {
+ "name": "configRef",
+ "displayName": "Connection",
+ "inputType": "connection",
+ "allowedConnectionTypes": [
+ "facebookAds"
+ ],
+ "defaultType": "connection.facebookAds",
+ "defaultValue": "",
+ "required": "true",
+ "helpTip": "Connection to be used."
+ }
+ },
+ {
+ "type": "attributeGroup",
+ "value": {
+ "groupName": "Parameters",
+ "elements": [
+ {
+ "type": "attribute",
+ "value": {
+ "name": "customAudienceId",
+ "displayName": "Custom Audience Id",
+ "inputType": "stringOrExpression",
+ "defaultValue": "",
+ "required": "true",
+ "helpTip": "ID of the custom audience."
+ }
+ },
+ {
+ "type": "attribute",
+ "value": {
+ "name": "properties",
+ "displayName": "Properties",
+ "inputType": "stringOrExpression",
+ "defaultValue": "",
+ "required": "true",
+ "helpTip": "Custom audience users properties."
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/src/main/resources/uischema/removeUsersFromAudience.json b/src/main/resources/uischema/removeUsersFromAudience.json
new file mode 100644
index 0000000..185967d
--- /dev/null
+++ b/src/main/resources/uischema/removeUsersFromAudience.json
@@ -0,0 +1,61 @@
+{
+ "connectorName": "facebookAds",
+ "operationName": "removeUsersFromAudience",
+ "title": "Remove Users From Custom Audience",
+ "help": "This is Remove Users from Custom Audience operation.",
+ "elements": [
+ {
+ "type": "attributeGroup",
+ "value": {
+ "groupName": "General",
+ "elements": [
+ {
+ "type": "attribute",
+ "value": {
+ "name": "configRef",
+ "displayName": "Connection",
+ "inputType": "connection",
+ "allowedConnectionTypes": [
+ "facebookAds"
+ ],
+ "defaultType": "connection.facebookAds",
+ "defaultValue": "",
+ "required": "true",
+ "helpTip": "Connection to be used."
+ }
+ },
+ {
+ "type": "attributeGroup",
+ "value": {
+ "groupName": "Parameters",
+ "elements": [
+ {
+ "type": "attribute",
+ "value": {
+ "name": "customAudienceId",
+ "displayName": "Custom audience Id",
+ "inputType": "stringOrExpression",
+ "defaultValue": "",
+ "required": "true",
+ "helpTip": "ID of the ad set."
+ }
+ },
+ {
+ "type": "attribute",
+ "value": {
+ "name": "properties",
+ "displayName": "Properties",
+ "inputType": "stringOrExpression",
+ "defaultValue": "",
+ "required": "true",
+ "helpTip": "Custom audience users update properties."
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+}