public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array(); $enums = array(); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/', new Domain(), 'NODE', Domain::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('name' => 'string'); $enums = array(); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new AdPlacePageSet(), 'NODE', AdPlacePageSet::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('applinks' => 'Object', 'base_price' => 'float', 'currency' => 'string', 'description' => 'string', 'images' => 'list<Object>', 'margin_level' => 'unsigned int', 'name' => 'string', 'pricing_variables' => 'list<Object>', 'sale_price' => 'float', 'url' => 'string'); $enums = array(); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new HotelRoom(), 'NODE', HotelRoom::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('app_event' => 'string', 'app_id_for_app_event_firing' => 'int', 'name' => 'string', 'tag' => 'tag_enum'); $enums = array('tag_enum' => OffsitePixelTagValues::getInstance()->getValues()); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new OffsitePixel(), 'NODE', OffsitePixel::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('variants' => 'list<Object>'); $enums = array(); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new ProductGroup(), 'NODE', ProductGroup::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('additional_image_urls' => 'list<string>', 'android_app_name' => 'string', 'android_class' => 'string', 'android_package' => 'string', 'android_url' => 'string', 'availability' => 'availability_enum', 'brand' => 'string', 'category' => 'string', 'checkout_url' => 'string', 'color' => 'string', 'condition' => 'condition_enum', 'currency' => 'string', 'custom_data' => 'map', 'custom_label_0' => 'string', 'custom_label_1' => 'string', 'custom_label_2' => 'string', 'custom_label_3' => 'string', 'custom_label_4' => 'string', 'description' => 'string', 'expiration_date' => 'string', 'gender' => 'gender_enum', 'gtin' => 'string', 'image_url' => 'string', 'inventory' => 'unsigned int', 'ios_app_name' => 'string', 'ios_app_store_id' => 'unsigned int', 'ios_url' => 'string', 'ipad_app_name' => 'string', 'ipad_app_store_id' => 'unsigned int', 'ipad_url' => 'string', 'iphone_app_name' => 'string', 'iphone_app_store_id' => 'unsigned int', 'iphone_url' => 'string', 'manufacturer_part_number' => 'string', 'name' => 'string', 'ordering_index' => 'unsigned int', 'pattern' => 'string', 'price' => 'unsigned int', 'product_type' => 'string', 'sale_price' => 'unsigned int', 'sale_price_end_date' => 'datetime', 'sale_price_start_date' => 'datetime', 'short_description' => 'string', 'size' => 'string', 'start_date' => 'string', 'url' => 'string', 'visibility' => 'visibility_enum', 'windows_phone_app_id' => 'unsigned int', 'windows_phone_app_name' => 'string', 'windows_phone_url' => 'string'); $enums = array('availability_enum' => ProductItemAvailabilityValues::getInstance()->getValues(), 'condition_enum' => ProductItemConditionValues::getInstance()->getValues(), 'gender_enum' => ProductItemGenderValues::getInstance()->getValues(), 'visibility_enum' => ProductItemVisibilityValues::getInstance()->getValues()); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new ProductItem(), 'NODE', ProductItem::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('default_conversion_value' => 'float', 'description' => 'string', 'name' => 'string'); $enums = array(); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new CustomConversion(), 'NODE', CustomConversion::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('claim_objective' => 'claim_objective_enum', 'content_type' => 'content_type_enum', 'description' => 'string', 'event_source_group' => 'string', 'lookalike_spec' => 'string', 'name' => 'string', 'opt_out_link' => 'string', 'product_set_id' => 'string', 'retention_days' => 'unsigned int', 'rule' => 'string'); $enums = array('claim_objective_enum' => CustomAudienceClaimObjectiveValues::getInstance()->getValues(), 'content_type_enum' => CustomAudienceContentTypeValues::getInstance()->getValues()); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new CustomAudience(), 'NODE', CustomAudience::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('default_currency' => 'string', 'deletion_enabled' => 'bool', 'delimiter' => 'delimiter_enum', 'encoding' => 'encoding_enum', 'name' => 'string', 'quoted_fields' => 'bool', 'schedule' => 'string'); $enums = array('delimiter_enum' => ProductFeedDelimiterValues::getInstance()->getValues(), 'encoding_enum' => ProductFeedEncodingValues::getInstance()->getValues()); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new ProductFeed(), 'NODE', ProductFeed::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('agency_client_declaration' => 'map', 'business_info' => 'map', 'end_advertiser' => 'string', 'is_notifications_enabled' => 'bool', 'media_agency' => 'string', 'name' => 'string', 'partner' => 'string', 'redownload' => 'bool', 'spend_cap' => 'float', 'spend_cap_action' => 'string'); $enums = array(); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new AdAccount(), 'NODE', AdAccount::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function getUsers(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array(); $enums = array(); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/users', new AbstractCrudObject(), 'EDGE', array(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('adlabels' => 'list<Object>', 'execution_options' => 'list<execution_options_enum>', 'name' => 'string', 'objective' => 'objective_enum', 'promoted_object' => 'Object', 'spend_cap' => 'unsigned int', 'status' => 'status_enum'); $enums = array('execution_options_enum' => CampaignExecutionOptionsValues::getInstance()->getValues(), 'objective_enum' => CampaignObjectiveValues::getInstance()->getValues(), 'status_enum' => CampaignStatusValues::getInstance()->getValues()); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new Campaign(), 'NODE', Campaign::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('adlabels' => 'list<Object>', 'adset_id' => 'unsigned int', 'bid_amount' => 'int', 'creative' => 'AdCreative', 'display_sequence' => 'unsigned int', 'execution_options' => 'list<execution_options_enum>', 'name' => 'string', 'redownload' => 'bool', 'status' => 'status_enum', 'tracking_specs' => 'Object'); $enums = array('execution_options_enum' => AdExecutionOptionsValues::getInstance()->getValues(), 'status_enum' => AdStatusValues::getInstance()->getValues()); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new Ad(), 'NODE', Ad::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('account_id' => 'string', 'adlabels' => 'list<Object>', 'name' => 'string', 'run_status' => 'unsigned int'); $enums = array(); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new AdCreative(), 'NODE', AdCreative::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('account_id' => 'string', 'adlabels' => 'list<Object>', 'adset_schedule' => 'list<Object>', 'attribution_window_days' => 'unsigned int', 'bid_amount' => 'int', 'billing_event' => 'billing_event_enum', 'creative_sequence' => 'list<string>', 'daily_budget' => 'unsigned int', 'daily_imps' => 'unsigned int', 'end_time' => 'datetime', 'execution_options' => 'list<execution_options_enum>', 'is_autobid' => 'bool', 'lifetime_budget' => 'unsigned int', 'lifetime_imps' => 'unsigned int', 'name' => 'string', 'optimization_goal' => 'optimization_goal_enum', 'pacing_type' => 'list<string>', 'promoted_object' => 'Object', 'redownload' => 'bool', 'rf_prediction_id' => 'string', 'start_time' => 'datetime', 'status' => 'status_enum', 'targeting' => 'Targeting', 'time_based_ad_rotation_id_blocks' => 'list<list<unsigned int>>', 'time_based_ad_rotation_intervals' => 'list<unsigned int>'); $enums = array('billing_event_enum' => AdSetBillingEventValues::getInstance()->getValues(), 'execution_options_enum' => AdSetExecutionOptionsValues::getInstance()->getValues(), 'optimization_goal_enum' => AdSetOptimizationGoalValues::getInstance()->getValues(), 'status_enum' => AdSetStatusValues::getInstance()->getValues()); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new AdSet(), 'NODE', AdSet::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }
public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array('address' => 'Object', 'applinks' => 'Object', 'brand' => 'string', 'description' => 'string', 'guest_ratings' => 'list<Object>', 'images' => 'list<Object>', 'name' => 'string', 'phone' => 'string', 'star_rating' => 'float', 'url' => 'string'); $enums = array(); $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new Hotel(), 'NODE', Hotel::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums)); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); }