Skip to content

Commit 012f46d

Browse files
author
Luca Bruno
committed
Add Support for Dynamic Local Awareness
Summary: as above Test Plan: documentation code samples
1 parent 166088c commit 012f46d

File tree

6 files changed

+102
-0
lines changed

6 files changed

+102
-0
lines changed

src/FacebookAds/Object/AdAccount.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,17 @@ public function getMinimumBudgets(
344344
MinimumBudget::className(), $fields, $params, 'minimum_budgets');
345345
}
346346

347+
/**
348+
* @param array $fields
349+
* @param array $params
350+
* @return Cursor
351+
*/
352+
public function getPlacePageSets(
353+
array $fields = array(), array $params = array()) {
354+
return $this->getManyByConnection(
355+
PlacePageSet::className(), $fields, $params);
356+
}
357+
347358
/**
348359
* @param array $fields
349360
* @param array $params

src/FacebookAds/Object/Fields/AdCreativeFields.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class AdCreativeFields extends AbstractEnum {
3737
const APPLINK_TREATMENT = 'applink_treatment';
3838
const BODY = 'body';
3939
const CALL_TO_ACTION_TYPE = 'call_to_action_type';
40+
const DYNAMIC_AD_VOICE = 'dynamic_ad_voice';
4041
const FOLLOW_REDIRECT = 'follow_redirect';
4142
const ID = 'id';
4243
const IMAGE_HASH = 'image_hash';
@@ -54,6 +55,7 @@ class AdCreativeFields extends AbstractEnum {
5455
const OBJECT_STORE_URL = 'object_store_url';
5556
const OBJECT_TYPE = 'object_type';
5657
const OBJECT_URL = 'object_url';
58+
const PLACE_PAGE_SET_ID = 'place_page_set_id';
5759
const PREVIEW_URL = 'preview_url';
5860
const PRODUCT_SET_ID = 'product_set_id';
5961
const RUN_STATUS = 'run_status';

src/FacebookAds/Object/Fields/ObjectStory/TemplateDataFields.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ class TemplateDataFields extends AbstractEnum {
3737
const MESSAGE = 'message';
3838
const NAME = 'name';
3939
const MAX_PRODUCT_COUNT = 'max_product_count';
40+
const PICTURE = 'picture';
4041
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
/**
3+
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
4+
*
5+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
6+
* use, copy, modify, and distribute this software in source code or binary
7+
* form for use in connection with the web services and APIs provided by
8+
* Facebook.
9+
*
10+
* As with any software that integrates with the Facebook platform, your use
11+
* of this software is subject to the Facebook Developer Principles and
12+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
13+
* shall be included in all copies or substantial portions of the software.
14+
*
15+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21+
* DEALINGS IN THE SOFTWARE.
22+
*
23+
*/
24+
25+
namespace FacebookAds\Object\Fields;
26+
27+
use FacebookAds\Enum\AbstractEnum;
28+
29+
/**
30+
* @method static PlacePageSetFields getInstance()
31+
*/
32+
class PlacePageSetFields extends AbstractEnum {
33+
34+
const ACCOUNT_ID = 'account_id';
35+
const ID = 'id';
36+
const NAME = 'name';
37+
const PAGES_COUNT = 'pages_count';
38+
const PARENT_PAGE = 'parent_page';
39+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?php
2+
/**
3+
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
4+
*
5+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
6+
* use, copy, modify, and distribute this software in source code or binary
7+
* form for use in connection with the web services and APIs provided by
8+
* Facebook.
9+
*
10+
* As with any software that integrates with the Facebook platform, your use
11+
* of this software is subject to the Facebook Developer Principles and
12+
* Policies [http://developers.facebook.com/policy/]. This copyright notice
13+
* shall be included in all copies or substantial portions of the software.
14+
*
15+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21+
* DEALINGS IN THE SOFTWARE.
22+
*
23+
*/
24+
25+
namespace FacebookAds\Object;
26+
27+
use FacebookAds\Object\Fields\PlacePageSetFields;
28+
use FacebookAds\Object\Traits\CannotDelete;
29+
use FacebookAds\Object\Traits\FieldValidation;
30+
31+
class PlacePageSet extends AbstractCrudObject {
32+
use FieldValidation;
33+
use CannotDelete;
34+
35+
/**
36+
* @return string
37+
*/
38+
protected function getEndpoint() {
39+
return 'ad_place_page_sets';
40+
}
41+
42+
/**
43+
* @return PlacePageSetFields
44+
*/
45+
public static function getFieldsEnum() {
46+
return PlacePageSetFields::getInstance();
47+
}
48+
}

src/FacebookAds/Object/Values/InsightsBreakdowns.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ class InsightsBreakdowns extends AbstractEnum {
3939
const HOURLY_STATS_AGGREGATED_BY_AUDIENCE_TIME_ZONE =
4040
'hourly_stats_aggregated_by_audience_time_zone';
4141
const IMPRESSION_DEVICE = 'impression_device';
42+
const PLACE_PAGE_ID = 'place_page_id';
4243
const PLACEMENT = 'placement';
4344
}

0 commit comments

Comments
 (0)