Skip to content

Commit

Permalink
Update Item.php
Browse files Browse the repository at this point in the history
added ads_redirect
  • Loading branch information
SvanThuijl authored Aug 5, 2019
1 parent 0833714 commit e452e7e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/LukeSnowden/GoogleShoppingFeed/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ public function link($link)
$this->nodes['link'] = $node->value($link)->_namespace($this->namespace)->addCdata();
}

/**
* @param $link
*/
public function ads_redirect($link)
{
$node = new Node('ads_redirect');
$link = $this->safeCharEncodeURL($link);
$this->nodes['ads_redirect'] = $node->value($link)->_namespace($this->namespace)->addCdata();
}

/**
* @param $price
*/
Expand Down

0 comments on commit e452e7e

Please sign in to comment.