Skip to content

Commit

Permalink
Merge pull request #43 from SvanThuijl/patch-1
Browse files Browse the repository at this point in the history
Update Item.php
  • Loading branch information
lukesnowden authored Aug 5, 2019
2 parents 0833714 + e452e7e commit edbc324
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 edbc324

Please sign in to comment.