adops_report_scrapper 0.2.30 → 0.2.31
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2288a92f0ad862ac09e8e40f3f17c7ae70f803e
|
4
|
+
data.tar.gz: 1c4860ef79e575ac81bc0999e61ea17322c8b3eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e990a5ee1eb7451e02ab969a7b809622d38b36b4504a404e3dd0102d2912e28c72721fe6102e84409d938c50697db6ebcb9605ee4e1a44a42088d5dbf11d6c7
|
7
|
+
data.tar.gz: 669e4b8d5cf3b70abe920769bbf27f0e11ddd3c1872f40bfb15329b2c0a61c160af7f3d175b381d97e8559b57fa853917af1a49261117146b48c00208b0062c5
|
@@ -37,7 +37,7 @@ class AdopsReportScrapper::RhythmoneClient < AdopsReportScrapper::BaseClient
|
|
37
37
|
5.times do
|
38
38
|
response = HTTPClient.get("https://api.portal.rhythmone.com/v1/publishers/#{@publisher_id}/reports/standard_report", { ad_dimension: 0, endDate: date_str, endDateType: 1, groupBy1: 1, groupByTimePeriodType: 1, rmp_placement: 0, startDate: date_str, startDatePredefined: 0, startDateType: 1 }, { 'Authorization' => "Bearer #{@access_token}" })
|
39
39
|
data_obj = JSON.parse response.body
|
40
|
-
if data_obj.is_a?(Array) && !response.body.include?
|
40
|
+
if data_obj.is_a?(Array) && !response.body.include?('Data is still processing')
|
41
41
|
flag_valid_data_found = true
|
42
42
|
break
|
43
43
|
end
|