File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ codebird-php - changelog
8
8
+ Add Ads Sandbox API POST accounts method
9
9
+ Add Ads Sandbox API POST accounts/:account_id/features method
10
10
+ Add Ads Sandbox API POST accounts/:account_id/funding_instruments method
11
+ + Update more Ads API methods
12
+ - Fix Ads API batch methods to send JSON body
11
13
12
14
3.1.0 (2016-02-15)
13
15
+ #143 Add support for proxy types
Original file line number Diff line number Diff line change @@ -1928,6 +1928,12 @@ protected function _detectMedia($method) {
1928
1928
*/
1929
1929
protected function _detectJsonBody ($ method ) {
1930
1930
$ json_bodies = [
1931
+ 'ads/batch/accounts/:account_id/campaigns ' ,
1932
+ 'ads/batch/accounts/:account_id/line_items ' ,
1933
+ 'ads/batch/accounts/:account_id/targeting_criteria ' ,
1934
+ 'ads/sandbox/batch/accounts/:account_id/campaigns ' ,
1935
+ 'ads/sandbox/batch/accounts/:account_id/line_items ' ,
1936
+ 'ads/sandbox/batch/accounts/:account_id/targeting_criteria ' ,
1931
1937
'collections/entries/curate '
1932
1938
];
1933
1939
return in_array ($ method , $ json_bodies );
Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ public function testDetectJsonBody()
189
189
$ cb = $ this ->getCB ();
190
190
$ this ->assertFalse ($ cb ->call ('_detectJsonBody ' , ['statuses/update ' ]));
191
191
$ this ->assertTrue ($ cb ->call ('_detectJsonBody ' , ['collections/entries/curate ' ]));
192
+ $ this ->assertTrue ($ cb ->call ('_detectJsonBody ' , ['ads/batch/accounts/:account_id/targeting_criteria ' ]));
192
193
}
193
194
194
195
/**
You can’t perform that action at this time.
0 commit comments