Skip to content

Commit 586b8bd

Browse files
authored
Merge pull request #24 from yas-okadatech/update-to-apiv19
bump facebook sdk to 19.0.3
2 parents 1145913 + 5499ff3 commit 586b8bd

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

build.gradle

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
plugins {
2-
id "com.jfrog.bintray" version "1.1"
32
id "com.github.jruby-gradle.base" version "1.5.0"
43
id "com.palantir.git-version" version "0.13.0"
54
id "com.diffplug.spotless" version "5.15.0"
@@ -30,7 +29,7 @@ targetCompatibility = 1.8
3029
dependencies {
3130
compile "org.embulk:embulk-core:0.9.17"
3231
provided "org.embulk:embulk-core:0.9.17"
33-
compile group: "com.facebook.business.sdk", name: "facebook-java-business-sdk", version: "18.0.4"
32+
compile group: "com.facebook.business.sdk", name: "facebook-java-business-sdk", version: "19.0.3"
3433
// compile "YOUR_JAR_DEPENDENCY_GROUP:YOUR_JAR_DEPENDENCY_MODULE:YOUR_JAR_DEPENDENCY_VERSION"
3534
testCompile "junit:junit:4.+"
3635
}
@@ -106,3 +105,15 @@ end
106105
}
107106
}
108107
clean { delete "${project.name}.gemspec" }
108+
109+
sourceSets.all {
110+
configurations.getByName(runtimeClasspathConfigurationName) {
111+
attributes.attribute(Attribute.of("org.gradle.jvm.environment", String), "standard-jvm")
112+
}
113+
configurations.getByName(compileClasspathConfigurationName) {
114+
attributes.attribute(Attribute.of("org.gradle.jvm.environment", String), "standard-jvm")
115+
}
116+
configurations.getByName(runtimeConfigurationName) {
117+
attributes.attribute(Attribute.of("org.gradle.jvm.environment", String), "standard-jvm")
118+
}
119+
}

src/main/java/org/embulk/input/facebook_ads_insights/AdsInsightsAccessor.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public String get(String name)
3737
case "adset_id": return adsInsights.getFieldAdsetId();
3838
case "adset_name": return adsInsights.getFieldAdsetName();
3939
case "adset_start": return adsInsights.getFieldAdsetStart();
40-
case "age_targeting": return adsInsights.getFieldAgeTargeting();
4140
case "auction_bid": return adsInsights.getFieldAuctionBid();
4241
case "auction_competitiveness": return adsInsights.getFieldAuctionCompetitiveness();
4342
case "auction_max_competitor_bid": return adsInsights.getFieldAuctionMaxCompetitorBid();
@@ -77,24 +76,17 @@ public String get(String name)
7776
case "dda_countby_convs": return adsInsights.getFieldDdaCountbyConvs();
7877
case "engagement_rate_ranking": return adsInsights.getFieldEngagementRateRanking();
7978
case "estimated_ad_recall_rate": return adsInsights.getFieldEstimatedAdRecallRate();
80-
case "estimated_ad_recall_rate_lower_bound": return adsInsights.getFieldEstimatedAdRecallRateLowerBound();
81-
case "estimated_ad_recall_rate_upper_bound": return adsInsights.getFieldEstimatedAdRecallRateUpperBound();
8279
case "estimated_ad_recallers": return adsInsights.getFieldEstimatedAdRecallers();
83-
case "estimated_ad_recallers_lower_bound": return adsInsights.getFieldEstimatedAdRecallersLowerBound();
84-
case "estimated_ad_recallers_upper_bound": return adsInsights.getFieldEstimatedAdRecallersUpperBound();
8580
case "frequency": return adsInsights.getFieldFrequency();
8681
case "full_view_impressions": return adsInsights.getFieldFullViewImpressions();
8782
case "full_view_reach": return adsInsights.getFieldFullViewReach();
88-
case "gender_targeting": return adsInsights.getFieldGenderTargeting();
8983
case "impressions": return adsInsights.getFieldImpressions();
9084
case "inline_link_click_ctr": return adsInsights.getFieldInlineLinkClickCtr();
9185
case "inline_link_clicks": return adsInsights.getFieldInlineLinkClicks();
9286
case "inline_post_engagement": return adsInsights.getFieldInlinePostEngagement();
9387
case "instant_experience_clicks_to_open": return adsInsights.getFieldInstantExperienceClicksToOpen();
9488
case "instant_experience_clicks_to_start": return adsInsights.getFieldInstantExperienceClicksToStart();
9589
case "instant_experience_outbound_clicks": return actionsToString(adsInsights.getFieldInstantExperienceOutboundClicks());
96-
case "labels": return adsInsights.getFieldLabels();
97-
case "location": return adsInsights.getFieldLocation();
9890
case "mobile_app_purchase_roas": return actionsToString(adsInsights.getFieldMobileAppPurchaseRoas());
9991
case "objective": return adsInsights.getFieldObjective();
10092
case "outbound_clicks": return actionsToString(adsInsights.getFieldOutboundClicks());

0 commit comments

Comments
 (0)